⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 randoms.dectest

📁 eda is an estimation of distributions algorithm
💻 DECTEST
📖 第 1 页 / 共 5 页
字号:
------------------------------------------------------------------------
-- randoms.decTest -- decimal random testcases                        --
-- Copyright (c) IBM Corporation, 1981, 2002.  All rights reserved.   --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases"     --
-- at http://www2.hursley.ibm.com/decimal for the description of      --
-- these testcases.                                                   --
--                                                                    --
-- These testcases are experimental ('beta' versions), and they       --
-- may contain errors.  They are offered on an as-is basis.  In       --
-- particular, achieving the same results as the tests here is not    --
-- a guarantee that an implementation complies with any Standard      --
-- or specification.  The tests are not exhaustive.                   --
--                                                                    --
-- Please send comments, suggestions, and corrections to the author:  --
--   Mike Cowlishaw, IBM Fellow                                       --
--   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
--   mfc@uk.ibm.com                                                   --
------------------------------------------------------------------------
version: 2.15

extended:    1
maxexponent: 999999999
precision:   9
rounding:    half_up

-- Randomly generated testcases [31 Dec 2000, with results defined for
-- all cases [27 Oct 2001], and no trim/finish [9 Jun 2002]
xadd001 add 905.67402 -202896611.E-780472620 -> 905.674020 Inexact Rounded
xcom001 compare 905.67402 -202896611.E-780472620 -> 1
xdiv001 divide 905.67402 -202896611.E-780472620 -> -4.46372177E+780472614 Inexact Rounded
xdvi001 divideint 905.67402 -202896611.E-780472620 -> NaN Division_impossible
xmul001 multiply 905.67402 -202896611.E-780472620 -> -1.83758189E-780472609 Inexact Rounded
xpow001 power 905.67402 -2 -> 0.00000121914730 Inexact Rounded
xrem001 remainder 905.67402 -202896611.E-780472620 -> NaN Division_impossible
xsub001 subtract 905.67402 -202896611.E-780472620 -> 905.674020 Inexact Rounded
xadd002 add 3915134.7 -597164907. -> -593249772 Inexact Rounded
xcom002 compare 3915134.7 -597164907. -> 1
xdiv002 divide 3915134.7 -597164907. -> -0.00655620358 Inexact Rounded
xdvi002 divideint 3915134.7 -597164907. -> -0
xmul002 multiply 3915134.7 -597164907. -> -2.33798105E+15 Inexact Rounded
xpow002 power 3915134.7 -597164907 -> 0E-1000000007 Underflow Subnormal Inexact Rounded
xrem002 remainder 3915134.7 -597164907. -> 3915134.7
xsub002 subtract 3915134.7 -597164907. -> 601080042 Inexact Rounded
xadd003 add 309759261 62663.487 -> 309821924 Inexact Rounded
xcom003 compare 309759261 62663.487 -> 1
xdiv003 divide 309759261 62663.487 -> 4943.21775 Inexact Rounded
xdvi003 divideint 309759261 62663.487 -> 4943
xmul003 multiply 309759261 62663.487 -> 1.94105954E+13 Inexact Rounded
xpow003 power 309759261 62663 -> 1.13679199E+532073 Inexact Rounded
xrem003 remainder 309759261 62663.487 -> 13644.759
xsub003 subtract 309759261 62663.487 -> 309696598 Inexact Rounded
xadd004 add 3.93591888E-236595626 7242375.00 -> 7242375.00 Inexact Rounded
xcom004 compare 3.93591888E-236595626 7242375.00 -> -1
xdiv004 divide 3.93591888E-236595626 7242375.00 -> 5.43456930E-236595633 Inexact Rounded
xdvi004 divideint 3.93591888E-236595626 7242375.00 -> 0
xmul004 multiply 3.93591888E-236595626 7242375.00 -> 2.85054005E-236595619 Inexact Rounded
xpow004 power 3.93591888E-236595626 7242375 -> 0E-1000000007 Underflow Subnormal Inexact Rounded
xrem004 remainder 3.93591888E-236595626 7242375.00 -> 3.93591888E-236595626
xsub004 subtract 3.93591888E-236595626 7242375.00 -> -7242375.00 Inexact Rounded
xadd005 add 323902.714 -608669.607E-657060568 -> 323902.714 Inexact Rounded
xcom005 compare 323902.714 -608669.607E-657060568 -> 1
xdiv005 divide 323902.714 -608669.607E-657060568 -> -5.32148657E+657060567 Inexact Rounded
xdvi005 divideint 323902.714 -608669.607E-657060568 -> NaN Division_impossible
xmul005 multiply 323902.714 -608669.607E-657060568 -> -1.97149738E-657060557 Inexact Rounded
xpow005 power 323902.714 -6 -> 8.65989204E-34 Inexact Rounded
xrem005 remainder 323902.714 -608669.607E-657060568 -> NaN Division_impossible
xsub005 subtract 323902.714 -608669.607E-657060568 -> 323902.714 Inexact Rounded
xadd006 add 5.11970092 -8807.22036 -> -8802.10066 Inexact Rounded
xcom006 compare 5.11970092 -8807.22036 -> 1
xdiv006 divide 5.11970092 -8807.22036 -> -0.000581307236 Inexact Rounded
xdvi006 divideint 5.11970092 -8807.22036 -> -0
xmul006 multiply 5.11970092 -8807.22036 -> -45090.3342 Inexact Rounded
xpow006 power 5.11970092 -8807 -> 4.81819262E-6247 Inexact Rounded
xrem006 remainder 5.11970092 -8807.22036 -> 5.11970092
xsub006 subtract 5.11970092 -8807.22036 -> 8812.34006 Inexact Rounded
xadd007 add -7.99874516 4561.83758 -> 4553.83883 Inexact Rounded
xcom007 compare -7.99874516 4561.83758 -> -1
xdiv007 divide -7.99874516 4561.83758 -> -0.00175340420 Inexact Rounded
xdvi007 divideint -7.99874516 4561.83758 -> -0
xmul007 multiply -7.99874516 4561.83758 -> -36488.9763 Inexact Rounded
xpow007 power -7.99874516 4562 -> 3.85236199E+4119 Inexact Rounded
xrem007 remainder -7.99874516 4561.83758 -> -7.99874516
xsub007 subtract -7.99874516 4561.83758 -> -4569.83633 Inexact Rounded
xadd008 add 297802878 -927206.324 -> 296875672 Inexact Rounded
xcom008 compare 297802878 -927206.324 -> 1
xdiv008 divide 297802878 -927206.324 -> -321.182967 Inexact Rounded
xdvi008 divideint 297802878 -927206.324 -> -321
xmul008 multiply 297802878 -927206.324 -> -2.76124712E+14 Inexact Rounded
xpow008 power 297802878 -927206 -> 1.94602810E-7857078 Inexact Rounded
xrem008 remainder 297802878 -927206.324 -> 169647.996
xsub008 subtract 297802878 -927206.324 -> 298730084 Inexact Rounded
xadd009 add -766.651824 31300.3619 -> 30533.7101 Inexact Rounded
xcom009 compare -766.651824 31300.3619 -> -1
xdiv009 divide -766.651824 31300.3619 -> -0.0244933853 Inexact Rounded
xdvi009 divideint -766.651824 31300.3619 -> -0
xmul009 multiply -766.651824 31300.3619 -> -23996479.5 Inexact Rounded
xpow009 power -766.651824 31300 -> 8.37189011E+90287 Inexact Rounded
xrem009 remainder -766.651824 31300.3619 -> -766.651824
xsub009 subtract -766.651824 31300.3619 -> -32067.0137 Inexact Rounded
xadd010 add -56746.8689E+934981942 471002521. -> -5.67468689E+934981946 Inexact Rounded
xcom010 compare -56746.8689E+934981942 471002521. -> -1
xdiv010 divide -56746.8689E+934981942 471002521. -> -1.20481030E+934981938 Inexact Rounded
xdvi010 divideint -56746.8689E+934981942 471002521. -> NaN Division_impossible
xmul010 multiply -56746.8689E+934981942 471002521. -> -2.67279183E+934981955 Inexact Rounded
xpow010 power -56746.8689E+934981942 471002521 -> -Infinity Overflow Inexact Rounded
xrem010 remainder -56746.8689E+934981942 471002521. -> NaN Division_impossible
xsub010 subtract -56746.8689E+934981942 471002521. -> -5.67468689E+934981946 Inexact Rounded
xadd011 add 456417160 -41346.1024 -> 456375814 Inexact Rounded
xcom011 compare 456417160 -41346.1024 -> 1
xdiv011 divide 456417160 -41346.1024 -> -11038.9404 Inexact Rounded
xdvi011 divideint 456417160 -41346.1024 -> -11038
xmul011 multiply 456417160 -41346.1024 -> -1.88710706E+13 Inexact Rounded
xpow011 power 456417160 -41346 -> 1.04766863E-358030 Inexact Rounded
xrem011 remainder 456417160 -41346.1024 -> 38881.7088
xsub011 subtract 456417160 -41346.1024 -> 456458506 Inexact Rounded
xadd012 add 102895.722 -2.62214826 -> 102893.100 Inexact Rounded
xcom012 compare 102895.722 -2.62214826 -> 1
xdiv012 divide 102895.722 -2.62214826 -> -39241.0008 Inexact Rounded
xdvi012 divideint 102895.722 -2.62214826 -> -39241
xmul012 multiply 102895.722 -2.62214826 -> -269807.838 Inexact Rounded
xpow012 power 102895.722 -3 -> 9.17926786E-16 Inexact Rounded
xrem012 remainder 102895.722 -2.62214826 -> 0.00212934
xsub012 subtract 102895.722 -2.62214826 -> 102898.344 Inexact Rounded
xadd013 add 61.3033331E+157644141 -567740.918E-893439456 -> 6.13033331E+157644142 Inexact Rounded
xcom013 compare 61.3033331E+157644141 -567740.918E-893439456 -> 1
xdiv013 divide 61.3033331E+157644141 -567740.918E-893439456 -> -Infinity Inexact Overflow Rounded
xdvi013 divideint 61.3033331E+157644141 -567740.918E-893439456 -> NaN Division_impossible
xmul013 multiply 61.3033331E+157644141 -567740.918E-893439456 -> -3.48044106E-735795308 Inexact Rounded
xpow013 power 61.3033331E+157644141 -6 -> 1.88406322E-945864857 Inexact Rounded
xrem013 remainder 61.3033331E+157644141 -567740.918E-893439456 -> NaN Division_impossible
xsub013 subtract 61.3033331E+157644141 -567740.918E-893439456 -> 6.13033331E+157644142 Inexact Rounded
xadd014 add 80223.3897 73921.0383E-467772675 -> 80223.3897 Inexact Rounded
xcom014 compare 80223.3897 73921.0383E-467772675 -> 1
xdiv014 divide 80223.3897 73921.0383E-467772675 -> 1.08525789E+467772675 Inexact Rounded
xdvi014 divideint 80223.3897 73921.0383E-467772675 -> NaN Division_impossible
xmul014 multiply 80223.3897 73921.0383E-467772675 -> 5.93019626E-467772666 Inexact Rounded
xpow014 power 80223.3897 7 -> 2.13848919E+34 Inexact Rounded
xrem014 remainder 80223.3897 73921.0383E-467772675 -> NaN Division_impossible
xsub014 subtract 80223.3897 73921.0383E-467772675 -> 80223.3897 Inexact Rounded
xadd015 add -654645.954 -9.12535752 -> -654655.079 Inexact Rounded
xcom015 compare -654645.954 -9.12535752 -> -1
xdiv015 divide -654645.954 -9.12535752 -> 71739.2116 Inexact Rounded
xdvi015 divideint -654645.954 -9.12535752 -> 71739
xmul015 multiply -654645.954 -9.12535752 -> 5973878.38 Inexact Rounded
xpow015 power -654645.954 -9 -> -4.52836690E-53 Inexact Rounded
xrem015 remainder -654645.954 -9.12535752 -> -1.93087272
xsub015 subtract -654645.954 -9.12535752 -> -654636.829 Inexact Rounded
xadd016 add 63.1917772E-706014634 -7.56253257E-138579234 -> -7.56253257E-138579234 Inexact Rounded
xcom016 compare 63.1917772E-706014634 -7.56253257E-138579234 -> 1
xdiv016 divide 63.1917772E-706014634 -7.56253257E-138579234 -> -8.35590149E-567435400 Inexact Rounded
xdvi016 divideint 63.1917772E-706014634 -7.56253257E-138579234 -> -0
xmul016 multiply 63.1917772E-706014634 -7.56253257E-138579234 -> -4.77889873E-844593866 Inexact Rounded
xpow016 power 63.1917772E-706014634 -8 -> Infinity Overflow Inexact Rounded
xrem016 remainder 63.1917772E-706014634 -7.56253257E-138579234 -> 6.31917772E-706014633
xsub016 subtract 63.1917772E-706014634 -7.56253257E-138579234 -> 7.56253257E-138579234 Inexact Rounded
xadd017 add -39674.7190 2490607.78 -> 2450933.06 Inexact Rounded
xcom017 compare -39674.7190 2490607.78 -> -1
xdiv017 divide -39674.7190 2490607.78 -> -0.0159297338 Inexact Rounded
xdvi017 divideint -39674.7190 2490607.78 -> -0
xmul017 multiply -39674.7190 2490607.78 -> -9.88141638E+10 Inexact Rounded
xpow017 power -39674.7190 2490608 -> 2.55032329E+11453095 Inexact Rounded
xrem017 remainder -39674.7190 2490607.78 -> -39674.7190
xsub017 subtract -39674.7190 2490607.78 -> -2530282.50 Inexact Rounded
xadd018 add -3364.59737E-600363681 896487.451 -> 896487.451 Inexact Rounded
xcom018 compare -3364.59737E-600363681 896487.451 -> -1
xdiv018 divide -3364.59737E-600363681 896487.451 -> -3.75308920E-600363684 Inexact Rounded
xdvi018 divideint -3364.59737E-600363681 896487.451 -> -0
xmul018 multiply -3364.59737E-600363681 896487.451 -> -3.01631932E-600363672 Inexact Rounded
xpow018 power -3364.59737E-600363681 896487 -> -0E-1000000007 Underflow Subnormal Inexact Rounded
xrem018 remainder -3364.59737E-600363681 896487.451 -> -3.36459737E-600363678
xsub018 subtract -3364.59737E-600363681 896487.451 -> -896487.451 Inexact Rounded
xadd019 add -64138.0578 31759011.3E+697488342 -> 3.17590113E+697488349 Inexact Rounded
xcom019 compare -64138.0578 31759011.3E+697488342 -> -1
xdiv019 divide -64138.0578 31759011.3E+697488342 -> -2.01952313E-697488345 Inexact Rounded
xdvi019 divideint -64138.0578 31759011.3E+697488342 -> -0
xmul019 multiply -64138.0578 31759011.3E+697488342 -> -2.03696130E+697488354 Inexact Rounded
xpow019 power -64138.0578 3 -> -2.63844116E+14 Inexact Rounded
xrem019 remainder -64138.0578 31759011.3E+697488342 -> -64138.0578
xsub019 subtract -64138.0578 31759011.3E+697488342 -> -3.17590113E+697488349 Inexact Rounded
xadd020 add 61399.8527 -64344484.5 -> -64283084.6 Inexact Rounded
xcom020 compare 61399.8527 -64344484.5 -> 1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -