You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
457 lines
28 KiB
Plaintext
457 lines
28 KiB
Plaintext
9 years ago
|
------------------------------------------------------------------------
|
||
|
-- log100.decTest -- decimal logarithm in base 10 subset --
|
||
|
-- Copyright (c) IBM Corporation, 2005, 2008. 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.58
|
||
|
|
||
|
extended: 0
|
||
|
precision: 16
|
||
|
rounding: half_up
|
||
|
maxExponent: 384
|
||
|
minexponent: -383
|
||
|
|
||
|
-- basics (examples in specification, etc.)
|
||
|
log0000 log10 0 -> ? Invalid_operation
|
||
|
log0001 log10 7E-1000 -> -999.1549019599857 Inexact Rounded
|
||
|
log0002 log10 1.1E-9 -> -8.958607314841775 Inexact Rounded
|
||
|
log0003 log10 0.0007 -> -3.154901959985743 Inexact Rounded
|
||
|
log0004 log10 0.11 -> -0.9586073148417750 Inexact Rounded
|
||
|
log0005 log10 0.7 -> -0.1549019599857432 Inexact Rounded
|
||
|
log0006 log10 1 -> 0
|
||
|
log0007 log10 1.5 -> 0.1760912590556812 Inexact Rounded
|
||
|
log0008 log10 2 -> 0.3010299956639812 Inexact Rounded
|
||
|
log0009 log10 2.718281828459045 -> 0.4342944819032518 Inexact Rounded
|
||
|
log0010 log10 2.718281828459046 -> 0.4342944819032519 Inexact Rounded
|
||
|
log0011 log10 2.718281828459047 -> 0.4342944819032521 Inexact Rounded
|
||
|
log0012 log10 7 -> 0.8450980400142568 Inexact Rounded
|
||
|
log0013 log10 10 -> 1
|
||
|
log0014 log10 10.5 -> 1.021189299069938 Inexact Rounded
|
||
|
log0015 log10 11 -> 1.041392685158225 Inexact Rounded
|
||
|
log0016 log10 70 -> 1.845098040014257 Inexact Rounded
|
||
|
log0017 log10 9999 -> 3.999956568380192 Inexact Rounded
|
||
|
log0018 log10 1.21E6 -> 6.082785370316450 Inexact Rounded
|
||
|
log0019 log10 1.1E+9 -> 9.041392685158225 Inexact Rounded
|
||
|
log0020 log10 7E+1000 -> 1000.845098040014 Inexact Rounded
|
||
|
|
||
|
-- notable cases
|
||
|
-- negatives
|
||
|
log0031 log10 -1E-9 -> ? Invalid_operation
|
||
|
log0032 log10 -0.0007 -> ? Invalid_operation
|
||
|
log0033 log10 -0.1 -> ? Invalid_operation
|
||
|
log0034 log10 -0.7 -> ? Invalid_operation
|
||
|
log0035 log10 -1 -> ? Invalid_operation
|
||
|
log0036 log10 -1.5 -> ? Invalid_operation
|
||
|
log0037 log10 -2 -> ? Invalid_operation
|
||
|
log0038 log10 -10.5 -> ? Invalid_operation
|
||
|
log0039 log10 -10.5 -> ? Invalid_operation
|
||
|
log0040 log10 -9999 -> ? Invalid_operation
|
||
|
log0041 log10 -10 -> ? Invalid_operation
|
||
|
log0042 log10 -0 -> ? Invalid_operation
|
||
|
log0043 log10 -0E+17 -> ? Invalid_operation
|
||
|
log0044 log10 -0E-17 -> ? Invalid_operation
|
||
|
-- other zeros
|
||
|
log0051 log10 0 -> ? Invalid_operation
|
||
|
log0052 log10 0E+17 -> ? Invalid_operation
|
||
|
log0053 log10 0E-17 -> ? Invalid_operation
|
||
|
-- ones
|
||
|
log0061 log10 1 -> 0
|
||
|
log0062 log10 1.0 -> 0
|
||
|
log0063 log10 1.000000000000000 -> 0
|
||
|
log0064 log10 1.000000000000000000 -> 0 Rounded
|
||
|
|
||
|
-- notable cases -- exact powers of 10
|
||
|
log1100 log10 1 -> 0
|
||
|
log1101 log10 10 -> 1
|
||
|
log1102 log10 100 -> 2
|
||
|
log1103 log10 1000 -> 3
|
||
|
log1104 log10 10000 -> 4
|
||
|
log1105 log10 100000 -> 5
|
||
|
log1106 log10 1000000 -> 6
|
||
|
log1107 log10 10000000 -> 7
|
||
|
log1108 log10 100000000 -> 8
|
||
|
log1109 log10 1000000000 -> 9
|
||
|
log1110 log10 10000000000 -> 10
|
||
|
log1111 log10 100000000000 -> 11
|
||
|
log1112 log10 1000000000000 -> 12
|
||
|
|
||
|
-- check normally exact cases round properly
|
||
|
precision: 1
|
||
|
log1141 log10 10000000000 -> 1E+1 Rounded
|
||
|
log1142 log10 1000000000000 -> 1E+1 Inexact Rounded
|
||
|
log1143 log10 1E+100 -> 1E+2 Rounded
|
||
|
log1144 log10 1E+123 -> 1E+2 Inexact Rounded
|
||
|
log1145 log10 1E+126 -> 1E+2 Inexact Rounded
|
||
|
log1146 log10 1E+916 -> 9E+2 Inexact Rounded
|
||
|
log1147 log10 1E+999 -> 1E+3 Inexact Rounded
|
||
|
|
||
|
precision: 2
|
||
|
log1151 log10 10000000000 -> 10 Rounded
|
||
|
log1152 log10 1000000000000 -> 12 Rounded
|
||
|
log1153 log10 1E+100 -> 1.0E+2 Rounded
|
||
|
log1154 log10 1E+123 -> 1.2E+2 Inexact Rounded
|
||
|
log1155 log10 1E+126 -> 1.3E+2 Inexact Rounded
|
||
|
log1156 log10 1E+916 -> 9.2E+2 Inexact Rounded
|
||
|
log1157 log10 1E+999 -> 1.0E+3 Inexact Rounded
|
||
|
|
||
|
precision: 3
|
||
|
log1161 log10 10000000000 -> 10 Rounded
|
||
|
log1162 log10 1000000000000 -> 12 Rounded
|
||
|
log1163 log10 1E+100 -> 100
|
||
|
log1164 log10 1E+123 -> 123
|
||
|
log1165 log10 1E+126 -> 126
|
||
|
log1166 log10 1E+916 -> 916
|
||
|
log1167 log10 1E+999 -> 999
|
||
|
--
|
||
|
|
||
|
-- log10(2) .. tests both ln(2) and ln(10) constants, too
|
||
|
precision: 50
|
||
|
log1201 log10 2 -> 0.30102999566398119521373889472449302676818988146211 Inexact Rounded
|
||
|
log1202 log10 2.000 -> 0.30102999566398119521373889472449302676818988146211 Inexact Rounded
|
||
|
log1203 log10 0.2E1 -> 0.30102999566398119521373889472449302676818988146211 Inexact Rounded
|
||
|
precision: 49
|
||
|
log1204 log10 2 -> 0.3010299956639811952137388947244930267681898814621 Inexact Rounded
|
||
|
precision: 48
|
||
|
log1205 log10 2 -> 0.301029995663981195213738894724493026768189881462 Inexact Rounded
|
||
|
precision: 47
|
||
|
log1206 log10 2 -> 0.30102999566398119521373889472449302676818988146 Inexact Rounded
|
||
|
precision: 46
|
||
|
log1207 log10 2 -> 0.3010299956639811952137388947244930267681898815 Inexact Rounded
|
||
|
precision: 45
|
||
|
log1208 log10 2 -> 0.301029995663981195213738894724493026768189881 Inexact Rounded
|
||
|
precision: 44
|
||
|
log1209 log10 2 -> 0.30102999566398119521373889472449302676818988 Inexact Rounded
|
||
|
precision: 43
|
||
|
log1210 log10 2 -> 0.3010299956639811952137388947244930267681899 Inexact Rounded
|
||
|
precision: 42
|
||
|
log1211 log10 2 -> 0.301029995663981195213738894724493026768190 Inexact Rounded
|
||
|
precision: 41
|
||
|
log1212 log10 2 -> 0.30102999566398119521373889472449302676819 Inexact Rounded
|
||
|
precision: 40
|
||
|
log1213 log10 2 -> 0.3010299956639811952137388947244930267682 Inexact Rounded
|
||
|
precision: 39
|
||
|
log1214 log10 2 -> 0.301029995663981195213738894724493026768 Inexact Rounded
|
||
|
precision: 38
|
||
|
log1215 log10 2 -> 0.30102999566398119521373889472449302677 Inexact Rounded
|
||
|
precision: 37
|
||
|
log1216 log10 2 -> 0.3010299956639811952137388947244930268 Inexact Rounded
|
||
|
precision: 36
|
||
|
log1217 log10 2 -> 0.301029995663981195213738894724493027 Inexact Rounded
|
||
|
precision: 35
|
||
|
log1218 log10 2 -> 0.30102999566398119521373889472449303 Inexact Rounded
|
||
|
precision: 34
|
||
|
log1219 log10 2 -> 0.3010299956639811952137388947244930 Inexact Rounded
|
||
|
precision: 33
|
||
|
log1220 log10 2 -> 0.301029995663981195213738894724493 Inexact Rounded
|
||
|
precision: 32
|
||
|
log1221 log10 2 -> 0.30102999566398119521373889472449 Inexact Rounded
|
||
|
precision: 31
|
||
|
log1222 log10 2 -> 0.3010299956639811952137388947245 Inexact Rounded
|
||
|
precision: 30
|
||
|
log1223 log10 2 -> 0.301029995663981195213738894724 Inexact Rounded
|
||
|
precision: 29
|
||
|
log1224 log10 2 -> 0.30102999566398119521373889472 Inexact Rounded
|
||
|
precision: 28
|
||
|
log1225 log10 2 -> 0.3010299956639811952137388947 Inexact Rounded
|
||
|
precision: 27
|
||
|
log1226 log10 2 -> 0.301029995663981195213738895 Inexact Rounded
|
||
|
precision: 26
|
||
|
log1227 log10 2 -> 0.30102999566398119521373889 Inexact Rounded
|
||
|
precision: 25
|
||
|
log1228 log10 2 -> 0.3010299956639811952137389 Inexact Rounded
|
||
|
precision: 24
|
||
|
log1229 log10 2 -> 0.301029995663981195213739 Inexact Rounded
|
||
|
precision: 23
|
||
|
log1230 log10 2 -> 0.30102999566398119521374 Inexact Rounded
|
||
|
precision: 22
|
||
|
log1231 log10 2 -> 0.3010299956639811952137 Inexact Rounded
|
||
|
precision: 21
|
||
|
log1232 log10 2 -> 0.301029995663981195214 Inexact Rounded
|
||
|
precision: 20
|
||
|
log1233 log10 2 -> 0.30102999566398119521 Inexact Rounded
|
||
|
precision: 19
|
||
|
log1234 log10 2 -> 0.3010299956639811952 Inexact Rounded
|
||
|
precision: 18
|
||
|
log1235 log10 2 -> 0.301029995663981195 Inexact Rounded
|
||
|
precision: 17
|
||
|
log1236 log10 2 -> 0.30102999566398120 Inexact Rounded
|
||
|
precision: 16
|
||
|
log1237 log10 2 -> 0.3010299956639812 Inexact Rounded
|
||
|
precision: 15
|
||
|
log1238 log10 2 -> 0.301029995663981 Inexact Rounded
|
||
|
precision: 14
|
||
|
log1239 log10 2 -> 0.30102999566398 Inexact Rounded
|
||
|
precision: 13
|
||
|
log1240 log10 2 -> 0.3010299956640 Inexact Rounded
|
||
|
precision: 12
|
||
|
log1241 log10 2 -> 0.301029995664 Inexact Rounded
|
||
|
precision: 11
|
||
|
log1242 log10 2 -> 0.30102999566 Inexact Rounded
|
||
|
precision: 10
|
||
|
log1243 log10 2 -> 0.3010299957 Inexact Rounded
|
||
|
precision: 9
|
||
|
log1244 log10 2 -> 0.301029996 Inexact Rounded
|
||
|
precision: 8
|
||
|
log1245 log10 2 -> 0.30103000 Inexact Rounded
|
||
|
precision: 7
|
||
|
log1246 log10 2 -> 0.3010300 Inexact Rounded
|
||
|
precision: 6
|
||
|
log1247 log10 2 -> 0.301030 Inexact Rounded
|
||
|
precision: 5
|
||
|
log1248 log10 2 -> 0.30103 Inexact Rounded
|
||
|
precision: 4
|
||
|
log1249 log10 2 -> 0.3010 Inexact Rounded
|
||
|
precision: 3
|
||
|
log1250 log10 2 -> 0.301 Inexact Rounded
|
||
|
precision: 2
|
||
|
log1251 log10 2 -> 0.30 Inexact Rounded
|
||
|
precision: 1
|
||
|
log1252 log10 2 -> 0.3 Inexact Rounded
|
||
|
|
||
|
maxExponent: 384
|
||
|
minExponent: -383
|
||
|
precision: 16
|
||
|
rounding: half_up
|
||
|
|
||
|
-- More close-to-e, etc., tests
|
||
|
precision: 34
|
||
|
log1301 log10 2.718281828459045235360287471352661 -> 0.4342944819032518276511289189166048 Inexact Rounded
|
||
|
log1302 log10 2.718281828459045235360287471352662 -> 0.4342944819032518276511289189166050 Inexact Rounded
|
||
|
log1303 log10 2.718281828459045235360287471352663 -> 0.4342944819032518276511289189166052 Inexact Rounded
|
||
|
log1304 log10 0.99999999999999999999999999999999 -> -4.342944819032518276511289189166073E-33 Inexact Rounded
|
||
|
log1305 log10 0.999999999999999999999999999999999 -> -4.342944819032518276511289189166053E-34 Inexact Rounded
|
||
|
log1306 log10 0.9999999999999999999999999999999999 -> -4.342944819032518276511289189166051E-35 Inexact Rounded
|
||
|
log1307 log10 1.000000000000000000000000000000000 -> 0
|
||
|
log1308 log10 1.0000000000000000000000000000000001 -> 0 Inexact Rounded Lost_digits
|
||
|
log1309 log10 1.000000000000000000000000000000001 -> 4.342944819032518276511289189166049E-34 Inexact Rounded
|
||
|
log1310 log10 1.00000000000000000000000000000001 -> 4.342944819032518276511289189166029E-33 Inexact Rounded
|
||
|
-- lower p [several with input rounding]
|
||
|
precision: 7
|
||
|
log1320 log10 0.999999 -> -4.342947E-7 Inexact Rounded
|
||
|
log1321 log10 0.9999999 -> -4.342945E-8 Inexact Rounded
|
||
|
log1322 log10 0.99999999 -> 0 Inexact Rounded Lost_digits
|
||
|
log1323 log10 0.999999999 -> 0 Inexact Rounded Lost_digits
|
||
|
log1324 log10 1.00000000 -> 0 Rounded
|
||
|
log1325 log10 1.00000001 -> 0 Inexact Rounded Lost_digits
|
||
|
log1326 log10 1.0000001 -> 0 Inexact Rounded Lost_digits
|
||
|
log1327 log10 1.000001 -> 4.342943E-7 Inexact Rounded
|
||
|
|
||
|
-- Randoms
|
||
|
-- P=50, within 0-9999
|
||
|
Precision: 50
|
||
|
log2501 log10 0.00035448001667968141775891246991912655961163345904 -> -3.4504082425411775290864053318247274944685586188505 Inexact Rounded
|
||
|
log2502 log10 70.636455726424311228255338637935330826995136597644 -> 1.8490288998408492045793070255302335558140975719247 Inexact Rounded
|
||
|
log2503 log10 0.00000000000000233550362473821889060812804063040169 -> -14.631619454343834858023578299142866557717904223667 Inexact Rounded
|
||
|
log2504 log10 97.783628621523244679901260358286898958832135433764 -> 1.9902661493224219517897657964362571690592734407330 Inexact Rounded
|
||
|
log2505 log10 0062.2377135315858392802612812022807838599572017342 -> 1.7940536293085066199287632725026837018486533544141 Inexact Rounded
|
||
|
log2506 log10 6.3767634652071053619977602804724129652981747879532 -> 0.80460030789825961615100163576080761326857374098644 Inexact Rounded
|
||
|
log2507 log10 63.297088981313278529306533814195068850532666658798 -> 1.8013837373724427092417170149098614410849353839673 Inexact Rounded
|
||
|
log2508 log10 0.00000077239693316881797717820110898167721602299187 -> -6.1121594592718550613773886241951966264826760310047 Inexact Rounded
|
||
|
log2509 log10 0.00000003953580359780185534830572461922527831395002 -> -7.4030094293833847136252547069905477213541787177561 Inexact Rounded
|
||
|
log2510 log10 754.62905817369989169188998111527272688791544577204 -> 2.8777335243761300047758534304371912099958057545416 Inexact Rounded
|
||
|
log2511 log10 0.00000048360378410241428936607147056283282849158312 -> -6.3155103095309353457604038397980091650760346334512 Inexact Rounded
|
||
|
log2512 log10 0.00007509037583645612577196104591672080542932166089 -> -4.1244157219700166314012344705538088030592896111026 Inexact Rounded
|
||
|
log2513 log10 0.00000000000705475944638915053419839063567898092064 -> -11.151517790256466048553810002525868198178167950377 Inexact Rounded
|
||
|
log2514 log10 9.6210300460497657917445410947099633479609165120661 -> 0.98322157093260978206633922877716078683518617768411 Inexact Rounded
|
||
|
log2515 log10 0.00000000050150361386555527496607245976120864985611 -> -9.2997259330798261040411086835563234390934934629340 Inexact Rounded
|
||
|
log2516 log10 098.24754029731994125797723545333677604490074810751 -> 1.9923216862874337077795278629351060819105679670633 Inexact Rounded
|
||
|
log2517 log10 7.5091998150046994320441463854301624742491015752980 -> 0.87559366078005924080766469158763499725414024128781 Inexact Rounded
|
||
|
log2518 log10 0.00000000000079540571273330075193668596942268542425 -> -12.099411294165176028817305108475326325006250936963 Inexact Rounded
|
||
|
log2519 log10 0.00000042395034799555215782907515074134154915491701 -> -6.3726850039125381134069450802108893075604464135297 Inexact Rounded
|
||
|
log2520 log10 56.683376304674355481905023145238799909301732694982 -> 1.7534557107853480435703421826077606250636580091754 Inexact Rounded
|
||
|
log2521 log10 48.734033811444195070807606721517169810438049581227 -> 1.6878323602741065190942654710049433808208291564049 Inexact Rounded
|
||
|
log2522 log10 0.00074830310930046865009851706989430228561880221063 -> -3.1259224502209974082223667712016445572431791920618 Inexact Rounded
|
||
|
log2523 log10 36.677348885111593384020836720396262497122708598359 -> 1.5643979364260796086754530282302605477567469395425 Inexact Rounded
|
||
|
log2524 log10 0.00000000000000004495678560480432858812419145833744 -> -16.347204748239740510014320630363244015916029619561 Inexact Rounded
|
||
|
log2525 log10 9509.5854013650642799374159131940108748594774307104 -> 3.9781615829916326741100166519726824430945406302661 Inexact Rounded
|
||
|
log2526 log10 0.07834891268689177014044454793608715276615743819097 -> -1.1059670262197643147805517398621288897669876996348 Inexact Rounded
|
||
|
log2527 log10 0.00000029584529880706128444454688454999032801904794 -> -6.5289353275814043710076526920566721570375026917206 Inexact Rounded
|
||
|
log2528 log10 3.0713496544497618098794332787772186176981011904294 -> 0.48732926103896828546424341029492468100431414072994 Inexact Rounded
|
||
|
log2529 log10 352.66392670788816474407442785460803833927136413943 -> 2.5473610388199562714709836398243933320284077008314 Inexact Rounded
|
||
|
log2530 log10 0.00304743125181876267210516527361742185617091801650 -> -2.5160660830163981967774124745311497447050056400207 Inexact Rounded
|
||
|
log2531 log10 0.00000076120535894952136499250364604538117729437183 -> -6.1184981629047051532448413863950776496652483019415 Inexact Rounded
|
||
|
log2532 log10 769.88795978534353052965286195053735007473187735815 -> 2.8864275277862652709986498581064117950288798222100 Inexact Rounded
|
||
|
log2533 log10 0.00000000000000041297494808612226304619570016336188 -> -15.384076292745415917510668454361868659468669804710 Inexact Rounded
|
||
|
log2534 log10 860.88864595714426940247940960258558876903741966974 -> 2.9349469800554277915920278090647283233440859155176 Inexact Rounded
|
||
|
log2535 log10 5839.0328812994787235900178587371051096898683972444 -> 3.7663409208972392569269125539438874737147906238543 Inexact Rounded
|
||
|
log2536 log10 0.00000028532710151284840471670497112821201598377841 -> -6.5446569753514027675878879843238065488490618159490 Inexact Rounded
|
||
|
log2537 log10 0.00000000000000009734490059931638483445631835651581 -> -16.011686794011271135978633880864278692254243106931 Inexact Rounded
|
||
|
log2538 log10 5.8610949526439529489252302463450302981511714144330 -> 0.76797875722452549281028552067645732490929361952278 Inexact Rounded
|
||
|
log2539 log10 6.6282432221115923372151148990137179611977576327206 -> 0.82139843639227213211012044000785757267155736071361 Inexact Rounded
|
||
|
log2540 log10 0.00000000001994071862386846626954819923923344413454 -> -10.700259194632339980266559224447212260115021637626 Inexact Rounded
|
||
|
|
||
|
-- P=34, within 0-9999
|
||
|
Precision: 34
|
||
|
log2201 log10 1.522513203889714179088327328864183 -> 0.1825610677098896250496651330492109 Inexact Rounded
|
||
|
log2202 log10 0.171123774769717316154080888930404 -> -0.7666896483548462582461898092764408 Inexact Rounded
|
||
|
log2203 log10 0.0000000997467236251714283104963838 -> -7.001101360652518274271569010312115 Inexact Rounded
|
||
|
log2204 log10 0.0008856103624122479769647543468633 -> -3.052757310476070891830490327138190 Inexact Rounded
|
||
|
log2205 log10 1.938274868738032930709498221236758 -> 0.2874153648259449520201536171714594 Inexact Rounded
|
||
|
log2206 log10 479.5667847823826713082613445010097 -> 2.680849095850361068709165157286435 Inexact Rounded
|
||
|
log2207 log10 8856.136599178820202141823157336804 -> 3.947244306584767101480454261950559 Inexact Rounded
|
||
|
log2208 log10 0.0000911026318801903982642871344858 -> -4.040469076434979398438617464033826 Inexact Rounded
|
||
|
log2209 log10 0.0000000000017271112650427414732630 -> -11.76267968314038748995178212654921 Inexact Rounded
|
||
|
log2210 log10 6.962605370078885647639503548229695 -> 0.8427717807200322352686396925992250 Inexact Rounded
|
||
|
log2211 log10 0.3354804428992793132855923541692781 -> -0.4743327923012159170967636070844834 Inexact Rounded
|
||
|
log2212 log10 2.079864257474859008252165836663504 -> 0.3180349916198059046812506741388856 Inexact Rounded
|
||
|
log2213 log10 2805.479529292939499220276986621988 -> 3.448007104139974344565978780624744 Inexact Rounded
|
||
|
log2214 log10 66.45731133034187374557028537213949 -> 1.822542767005644041661520936223086 Inexact Rounded
|
||
|
log2215 log10 0.0000001206521261762681738274822835 -> -6.918465020390216969561494755767318 Inexact Rounded
|
||
|
log2216 log10 0.0000000001884891916264401160472381 -> -9.724713548119065386091933007528633 Inexact Rounded
|
||
|
log2217 log10 0.0000015467279551726326581314582759 -> -5.810586065070435383755759514608738 Inexact Rounded
|
||
|
log2218 log10 0.0090776316728068586744633914135952 -> -2.042027442843745884503280954390114 Inexact Rounded
|
||
|
log2219 log10 0.0000000000024541106528713393740030 -> -11.61010585935635713090119156069479 Inexact Rounded
|
||
|
log2220 log10 14.12936879385863410081087750645856 -> 1.150122760895466989841057385742662 Inexact Rounded
|
||
|
log2221 log10 0.0000036912481831392922922647231392 -> -5.432826753789892283556211380824203 Inexact Rounded
|
||
|
log2222 log10 0.0000000004067477525420424270138734 -> -9.390674838050073122857868012475060 Inexact Rounded
|
||
|
log2223 log10 7080.122562705399744969319589806194 -> 3.850040775747103318724330047546916 Inexact Rounded
|
||
|
log2224 log10 261.3491411363679209175524790255725 -> 2.417221077227536319655699517530855 Inexact Rounded
|
||
|
log2225 log10 003.9945581449915240094728380041494 -> 0.6014687471531988260823066997845691 Inexact Rounded
|
||
|
log2226 log10 0.0000000000583549164588495206767840 -> -10.23392254834182677023231713519341 Inexact Rounded
|
||
|
log2227 log10 9567.961832607240278342761088487484 -> 3.980819434211107631569386147016368 Inexact Rounded
|
||
|
log2228 log10 06.26592979160342972777219828867033 -> 0.7969855243966221408595024012574729 Inexact Rounded
|
||
|
log2229 log10 0.0000000000589847046598067273287319 -> -10.22926059078206218717755253582907 Inexact Rounded
|
||
|
log2230 log10 567.9388648235589204769442863724997 -> 2.754301589058313576472380262907638 Inexact Rounded
|
||
|
log2231 log10 039.7790325480037778918162264883415 -> 1.599654216592019199639285308997886 Inexact Rounded
|
||
|
log2232 log10 0.0000000005123951921894162149817207 -> -9.290394953898862694847327137242690 Inexact Rounded
|
||
|
log2233 log10 0.0000000000038500999723636904276723 -> -11.41452799337924056186867324854691 Inexact Rounded
|
||
|
log2234 log10 0.0006726500658977759825616537935864 -> -3.172210810922768725687671849421792 Inexact Rounded
|
||
|
log2235 log10 260.2400250475967528429943779126507 -> 2.415374092073799204236801383070064 Inexact Rounded
|
||
|
log2236 log10 0.0000000006101942339385102585042548 -> -9.214531900562046557191261226632509 Inexact Rounded
|
||
|
log2237 log10 0.0000000010846867501382746760066557 -> -8.964695664883282406359874242387236 Inexact Rounded
|
||
|
log2238 log10 60.24078375568814769010333711509928 -> 1.779890613567084253168373266648922 Inexact Rounded
|
||
|
log2239 log10 0.0012058738711757669337600252986093 -> -2.918698115012605915753728220896010 Inexact Rounded
|
||
|
log2240 log10 230.9450930197841600611503095185600 -> 2.363508739056822846742942599628966 Inexact Rounded
|
||
|
|
||
|
-- P=16, within 0-999
|
||
|
Precision: 16
|
||
|
log2101 log10 0.0072067119605184 -> -2.142262835573038 Inexact Rounded
|
||
|
log2102 log10 503.6828482226624 -> 2.702157162195652 Inexact Rounded
|
||
|
log2103 log10 64.96074447821815 -> 1.812650993464174 Inexact Rounded
|
||
|
log2104 log10 48.75408597467246 -> 1.688011018842600 Inexact Rounded
|
||
|
log2105 log10 0.0329009839269587 -> -1.482791113975280 Inexact Rounded
|
||
|
log2106 log10 223.5320415060633 -> 2.349339784523410 Inexact Rounded
|
||
|
log2107 log10 73.12765002292194 -> 1.864081617476268 Inexact Rounded
|
||
|
log2108 log10 487.3749378358509 -> 2.687863192802252 Inexact Rounded
|
||
|
log2109 log10 0.0000019671987621 -> -5.706151757557926 Inexact Rounded
|
||
|
log2110 log10 0.0570680660609784 -> -1.243606844697873 Inexact Rounded
|
||
|
log2111 log10 33.10311638788998 -> 1.519868880976773 Inexact Rounded
|
||
|
log2112 log10 0.0687382699187077 -> -1.162801402868185 Inexact Rounded
|
||
|
log2113 log10 258.9416193626484 -> 2.413201859654145 Inexact Rounded
|
||
|
log2114 log10 0.0005306100136736 -> -3.275224558269725 Inexact Rounded
|
||
|
log2115 log10 65.78490393408572 -> 1.818126244825109 Inexact Rounded
|
||
|
log2116 log10 504.2328842073510 -> 2.702631165346958 Inexact Rounded
|
||
|
log2117 log10 9.417432755815027 -> 0.9739325278524503 Inexact Rounded
|
||
|
log2118 log10 006.7054835355498 -> 0.8264301004947640 Inexact Rounded
|
||
|
log2119 log10 0.0917012272363915 -> -1.037624852133399 Inexact Rounded
|
||
|
log2120 log10 5.959404385244921 -> 0.7752028561953401 Inexact Rounded
|
||
|
log2121 log10 0.0001209759148486 -> -3.917301084968903 Inexact Rounded
|
||
|
log2122 log10 0.0004706112139838 -> -3.327337728428039 Inexact Rounded
|
||
|
log2123 log10 0.0069700457377046 -> -2.156764372035771 Inexact Rounded
|
||
|
log2124 log10 0.5155584569852619 -> -0.2877220847805025 Inexact Rounded
|
||
|
log2125 log10 88.06005885607414 -> 1.944778971389913 Inexact Rounded
|
||
|
log2126 log10 0.0448240038219866 -> -1.348489353509709 Inexact Rounded
|
||
|
log2127 log10 3.419622484059565 -> 0.5339781639101145 Inexact Rounded
|
||
|
log2128 log10 5.171123353858721 -> 0.7135848977142854 Inexact Rounded
|
||
|
log2129 log10 0.0002133188319807 -> -3.670970802945872 Inexact Rounded
|
||
|
log2130 log10 46.21086703136966 -> 1.664744117045149 Inexact Rounded
|
||
|
log2131 log10 0.0000631053714415 -> -4.199933672639880 Inexact Rounded
|
||
|
log2132 log10 78.66019196870698 -> 1.895755001962469 Inexact Rounded
|
||
|
log2133 log10 0.0007152278351188 -> -3.145555592082297 Inexact Rounded
|
||
|
log2134 log10 45.52509819928536 -> 1.658250891256892 Inexact Rounded
|
||
|
log2135 log10 0.0000703227795740 -> -4.152903971697183 Inexact Rounded
|
||
|
log2136 log10 26.24438641426669 -> 1.419036423550599 Inexact Rounded
|
||
|
log2137 log10 0.0000044654829535 -> -5.350131564166817 Inexact Rounded
|
||
|
log2138 log10 0.7360702733062529 -> -0.1330807211893611 Inexact Rounded
|
||
|
log2139 log10 8.417059176469655 -> 0.9251603805112778 Inexact Rounded
|
||
|
log2140 log10 0.0002926570767968 -> -3.533640969664818 Inexact Rounded
|
||
|
|
||
|
-- P=7, within 0-99
|
||
|
Precision: 7
|
||
|
log2001 log10 57.26089 -> 1.757858 Inexact Rounded
|
||
|
log2002 log10 0.0575421 -> -1.240014 Inexact Rounded
|
||
|
log2003 log10 0.5918465 -> -0.2277909 Inexact Rounded
|
||
|
log2004 log10 0.0068776 -> -2.162563 Inexact Rounded
|
||
|
log2005 log10 0.0066833 -> -2.175009 Inexact Rounded
|
||
|
log2006 log10 9.926963 -> 0.9968164 Inexact Rounded
|
||
|
log2007 log10 0.0041852 -> -2.378284 Inexact Rounded
|
||
|
log2008 log10 84.15412 -> 1.925075 Inexact Rounded
|
||
|
log2009 log10 2.466856 -> 0.3921438 Inexact Rounded
|
||
|
log2010 log10 0.0058047 -> -2.236220 Inexact Rounded
|
||
|
log2011 log10 9.885154 -> 0.9949834 Inexact Rounded
|
||
|
log2012 log10 0.6667654 -> -0.1760269 Inexact Rounded
|
||
|
log2013 log10 34.65736 -> 1.539795 Inexact Rounded
|
||
|
log2014 log10 0.0026884 -> -2.570506 Inexact Rounded
|
||
|
log2015 log10 0.0432767 -> -1.363746 Inexact Rounded
|
||
|
log2016 log10 66.01407 -> 1.819637 Inexact Rounded
|
||
|
log2017 log10 0.0070572 -> -2.151368 Inexact Rounded
|
||
|
log2018 log10 0.0731613 -> -1.135719 Inexact Rounded
|
||
|
log2019 log10 9.838983 -> 0.9929502 Inexact Rounded
|
||
|
log2020 log10 15.89696 -> 1.201314 Inexact Rounded
|
||
|
log2021 log10 8.459247 -> 0.9273317 Inexact Rounded
|
||
|
log2022 log10 0.0010873 -> -2.963651 Inexact Rounded
|
||
|
log2023 log10 0.6498619 -> -0.1871789 Inexact Rounded
|
||
|
log2024 log10 0.0847008 -> -1.072112 Inexact Rounded
|
||
|
log2025 log10 0.0075489 -> -2.122116 Inexact Rounded
|
||
|
log2026 log10 51.11152 -> 1.708519 Inexact Rounded
|
||
|
log2027 log10 0.7233866 -> -0.1406295 Inexact Rounded
|
||
|
log2028 log10 2.254721 -> 0.3530928 Inexact Rounded
|
||
|
log2029 log10 6.568444 -> 0.8174625 Inexact Rounded
|
||
|
log2030 log10 83.72639 -> 1.922862 Inexact Rounded
|
||
|
log2031 log10 6.720585 -> 0.8274071 Inexact Rounded
|
||
|
log2032 log10 87.90366 -> 1.944007 Inexact Rounded
|
||
|
log2033 log10 0.0433324 -> -1.363187 Inexact Rounded
|
||
|
log2034 log10 34.63912 -> 1.539567 Inexact Rounded
|
||
|
log2035 log10 0.8089059 -> -0.09210200 Inexact Rounded
|
||
|
log2036 log10 7.793405 -> 0.8917272 Inexact Rounded
|
||
|
log2037 log10 0.0041757 -> -2.379271 Inexact Rounded
|
||
|
log2038 log10 7.135417 -> 0.8534194 Inexact Rounded
|
||
|
log2039 log10 12.49570 -> 1.096761 Inexact Rounded
|
||
|
log2040 log10 6.356276 -> 0.8032027 Inexact Rounded
|
||
|
|
||
|
--------
|
||
|
maxExponent: 384
|
||
|
minExponent: -383
|
||
|
precision: 16
|
||
|
rounding: half_up
|
||
|
|
||
|
-- Invalid operations due to restrictions
|
||
|
-- [next two probably skipped by most test harnesses]
|
||
|
precision: 100000000
|
||
|
log901 log10 ? -> ? Invalid_operation
|
||
|
precision: 99999999
|
||
|
log902 log10 0 -> ? Invalid_operation
|
||
|
|
||
|
precision: 9
|
||
|
maxExponent: 1000000
|
||
|
minExponent: -999999
|
||
|
log903 log10 1 -> ? Invalid_context
|
||
|
maxExponent: 999999
|
||
|
minExponent: -999999
|
||
|
log904 log10 0 -> ? Invalid_operation
|
||
|
maxExponent: 999999
|
||
|
minExponent: -1000000
|
||
|
log905 log10 1 -> ? Invalid_context
|
||
|
maxExponent: 999999
|
||
|
minExponent: -999998
|
||
|
log906 log10 0 -> ? Invalid_operation
|
||
|
|
||
|
-- Null test
|
||
|
log900 log10 # -> ? Invalid_operation
|
||
|
|
||
|
|