libm-test-ulps-x86_64 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328
  1. # Begin of automatic generation
  2. # acos
  3. Test "acos (0.75) == 0.722734247813415611178377352641333362":
  4. ildouble: 1
  5. ldouble: 1
  6. # asin
  7. Test "asin (-0.5) == -pi/6":
  8. ildouble: 1
  9. ldouble: 1
  10. Test "asin (-1.0) == -pi/2":
  11. ildouble: 1
  12. ldouble: 1
  13. Test "asin (0.5) == pi/6":
  14. ildouble: 1
  15. ldouble: 1
  16. Test "asin (0.75) == 0.848062078981481008052944338998418080":
  17. ildouble: 1
  18. ldouble: 1
  19. Test "asin (1.0) == pi/2":
  20. ildouble: 1
  21. ldouble: 1
  22. # atan2
  23. Test "atan2 (-0.75, -1.0) == -2.49809154479650885165983415456218025":
  24. float: 1
  25. ifloat: 1
  26. Test "atan2 (0.75, -1.0) == 2.49809154479650885165983415456218025":
  27. float: 1
  28. ifloat: 1
  29. Test "atan2 (1.390625, 0.9296875) == 0.981498387184244311516296577615519772":
  30. float: 1
  31. ifloat: 1
  32. # atanh
  33. Test "atanh (0.75) == 0.972955074527656652552676371721589865":
  34. float: 1
  35. ifloat: 1
  36. ildouble: 1
  37. ldouble: 1
  38. # cacos
  39. Test "Imaginary part of: cacos (0.75 + 1.25 i) == 1.11752014915610270578240049553777969 - 1.13239363160530819522266333696834467 i":
  40. float: 1
  41. ifloat: 1
  42. ildouble: 2
  43. ldouble: 2
  44. # cacosh
  45. Test "Real part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
  46. double: 1
  47. float: 7
  48. idouble: 1
  49. ifloat: 7
  50. ildouble: 6
  51. ldouble: 6
  52. Test "Imaginary part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
  53. double: 1
  54. float: 3
  55. idouble: 1
  56. ifloat: 3
  57. ildouble: 1
  58. ldouble: 1
  59. Test "Real part of: cacosh (0.75 + 1.25 i) == 1.13239363160530819522266333696834467 + 1.11752014915610270578240049553777969 i":
  60. ildouble: 1
  61. ldouble: 1
  62. # casin
  63. Test "Real part of: casin (0.75 + 1.25 i) == 0.453276177638793913448921196101971749 + 1.13239363160530819522266333696834467 i":
  64. double: 1
  65. float: 1
  66. idouble: 1
  67. ifloat: 1
  68. ildouble: 2
  69. ldouble: 2
  70. Test "Imaginary part of: casin (0.75 + 1.25 i) == 0.453276177638793913448921196101971749 + 1.13239363160530819522266333696834467 i":
  71. float: 1
  72. ifloat: 1
  73. ildouble: 2
  74. ldouble: 2
  75. # casinh
  76. Test "Real part of: casinh (-2 - 3 i) == -1.9686379257930962917886650952454982 - 0.96465850440760279204541105949953237 i":
  77. double: 5
  78. float: 1
  79. idouble: 5
  80. ifloat: 1
  81. ildouble: 5
  82. ldouble: 5
  83. Test "Imaginary part of: casinh (-2 - 3 i) == -1.9686379257930962917886650952454982 - 0.96465850440760279204541105949953237 i":
  84. double: 3
  85. float: 6
  86. idouble: 3
  87. ifloat: 6
  88. ildouble: 5
  89. ldouble: 5
  90. Test "Real part of: casinh (0.75 + 1.25 i) == 1.03171853444778027336364058631006594 + 0.911738290968487636358489564316731207 i":
  91. float: 1
  92. ifloat: 1
  93. Test "Imaginary part of: casinh (0.75 + 1.25 i) == 1.03171853444778027336364058631006594 + 0.911738290968487636358489564316731207 i":
  94. double: 1
  95. float: 1
  96. idouble: 1
  97. ifloat: 1
  98. ildouble: 1
  99. ldouble: 1
  100. # catan
  101. Test "Real part of: catan (-2 - 3 i) == -1.4099210495965755225306193844604208 - 0.22907268296853876629588180294200276 i":
  102. float: 3
  103. ifloat: 3
  104. Test "Imaginary part of: catan (-2 - 3 i) == -1.4099210495965755225306193844604208 - 0.22907268296853876629588180294200276 i":
  105. double: 1
  106. float: 1
  107. idouble: 1
  108. ifloat: 1
  109. Test "Real part of: catan (0.75 + 1.25 i) == 1.10714871779409050301706546017853704 + 0.549306144334054845697622618461262852 i":
  110. float: 4
  111. ifloat: 4
  112. # catanh
  113. Test "Real part of: catanh (-2 - 3 i) == -0.14694666622552975204743278515471595 - 1.3389725222944935611241935759091443 i":
  114. double: 4
  115. idouble: 4
  116. ildouble: 1
  117. ldouble: 1
  118. Test "Imaginary part of: catanh (-2 - 3 i) == -0.14694666622552975204743278515471595 - 1.3389725222944935611241935759091443 i":
  119. float: 4
  120. ifloat: 4
  121. Test "Real part of: catanh (0.75 + 1.25 i) == 0.261492138795671927078652057366532140 + 0.996825126463918666098902241310446708 i":
  122. double: 1
  123. idouble: 1
  124. Test "Imaginary part of: catanh (0.75 + 1.25 i) == 0.261492138795671927078652057366532140 + 0.996825126463918666098902241310446708 i":
  125. float: 6
  126. ifloat: 6
  127. # cbrt
  128. Test "cbrt (-0.001) == -0.1":
  129. ildouble: 1
  130. ldouble: 1
  131. Test "cbrt (-27.0) == -3.0":
  132. double: 1
  133. idouble: 1
  134. Test "cbrt (0.75) == 0.908560296416069829445605878163630251":
  135. double: 1
  136. idouble: 1
  137. Test "cbrt (0.9921875) == 0.997389022060725270579075195353955217":
  138. double: 1
  139. idouble: 1
  140. ildouble: 1
  141. ldouble: 1
  142. # ccos
  143. Test "Real part of: ccos (-2 - 3 i) == -4.18962569096880723013255501961597373 - 9.10922789375533659797919726277886212 i":
  144. double: 1
  145. idouble: 1
  146. Test "Imaginary part of: ccos (-2 - 3 i) == -4.18962569096880723013255501961597373 - 9.10922789375533659797919726277886212 i":
  147. float: 1
  148. ifloat: 1
  149. ildouble: 1
  150. ldouble: 1
  151. Test "Real part of: ccos (0.75 + 1.25 i) == 1.38173873063425888530729933139078645 - 1.09193013555397466170919531722024128 i":
  152. double: 1
  153. float: 1
  154. idouble: 1
  155. ifloat: 1
  156. ildouble: 1
  157. ldouble: 1
  158. Test "Imaginary part of: ccos (0.75 + 1.25 i) == 1.38173873063425888530729933139078645 - 1.09193013555397466170919531722024128 i":
  159. float: 1
  160. ifloat: 1
  161. ildouble: 1
  162. ldouble: 1
  163. # ccosh
  164. Test "Real part of: ccosh (-2 - 3 i) == -3.72454550491532256547397070325597253 + 0.511822569987384608834463849801875634 i":
  165. float: 1
  166. ifloat: 1
  167. Test "Imaginary part of: ccosh (-2 - 3 i) == -3.72454550491532256547397070325597253 + 0.511822569987384608834463849801875634 i":
  168. double: 1
  169. float: 1
  170. idouble: 1
  171. ifloat: 1
  172. ildouble: 1
  173. ldouble: 1
  174. Test "Real part of: ccosh (0.75 + 1.25 i) == 0.408242591877968807788852146397499084 + 0.780365930845853240391326216300863152 i":
  175. double: 1
  176. float: 1
  177. idouble: 1
  178. ifloat: 1
  179. Test "Imaginary part of: ccosh (0.75 + 1.25 i) == 0.408242591877968807788852146397499084 + 0.780365930845853240391326216300863152 i":
  180. float: 1
  181. ifloat: 1
  182. # cexp
  183. Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
  184. float: 1
  185. ifloat: 1
  186. Test "Real part of: cexp (0.75 + 1.25 i) == 0.667537446429131586942201977015932112 + 2.00900045494094876258347228145863909 i":
  187. float: 1
  188. ifloat: 1
  189. Test "Imaginary part of: cexp (0.75 + 1.25 i) == 0.667537446429131586942201977015932112 + 2.00900045494094876258347228145863909 i":
  190. ildouble: 1
  191. ldouble: 1
  192. # clog
  193. Test "Imaginary part of: clog (-2 - 3 i) == 1.2824746787307683680267437207826593 - 2.1587989303424641704769327722648368 i":
  194. float: 3
  195. ifloat: 3
  196. Test "Real part of: clog (0.75 + 1.25 i) == 0.376885901188190075998919126749298416 + 1.03037682652431246378774332703115153 i":
  197. float: 1
  198. ifloat: 1
  199. ildouble: 1
  200. ldouble: 1
  201. # clog10
  202. Test "Imaginary part of: clog10 (-0 + inf i) == inf + pi/2*log10(e) i":
  203. double: 1
  204. float: 1
  205. idouble: 1
  206. ifloat: 1
  207. Test "Imaginary part of: clog10 (-0 - inf i) == inf - pi/2*log10(e) i":
  208. double: 1
  209. float: 1
  210. idouble: 1
  211. ifloat: 1
  212. Test "Imaginary part of: clog10 (-2 - 3 i) == 0.556971676153418384603252578971164214 - 0.937554462986374708541507952140189646 i":
  213. double: 1
  214. float: 5
  215. idouble: 1
  216. ifloat: 5
  217. ildouble: 1
  218. ldouble: 1
  219. Test "Imaginary part of: clog10 (-3 + inf i) == inf + pi/2*log10(e) i":
  220. double: 1
  221. float: 1
  222. idouble: 1
  223. ifloat: 1
  224. Test "Imaginary part of: clog10 (-3 - inf i) == inf - pi/2*log10(e) i":
  225. double: 1
  226. float: 1
  227. idouble: 1
  228. ifloat: 1
  229. Test "Imaginary part of: clog10 (-inf + 0 i) == inf + pi*log10(e) i":
  230. double: 1
  231. float: 1
  232. idouble: 1
  233. ifloat: 1
  234. Test "Imaginary part of: clog10 (-inf + 1 i) == inf + pi*log10(e) i":
  235. double: 1
  236. float: 1
  237. idouble: 1
  238. ifloat: 1
  239. Test "Imaginary part of: clog10 (-inf + inf i) == inf + 3/4 pi*log10(e) i":
  240. double: 1
  241. idouble: 1
  242. Test "Imaginary part of: clog10 (-inf - 0 i) == inf - pi*log10(e) i":
  243. double: 1
  244. float: 1
  245. idouble: 1
  246. ifloat: 1
  247. Test "Imaginary part of: clog10 (-inf - 1 i) == inf - pi*log10(e) i":
  248. double: 1
  249. float: 1
  250. idouble: 1
  251. ifloat: 1
  252. Test "Imaginary part of: clog10 (0 + inf i) == inf + pi/2*log10(e) i":
  253. double: 1
  254. float: 1
  255. idouble: 1
  256. ifloat: 1
  257. Test "Imaginary part of: clog10 (0 - inf i) == inf - pi/2*log10(e) i":
  258. double: 1
  259. float: 1
  260. idouble: 1
  261. ifloat: 1
  262. Test "Real part of: clog10 (0.75 + 1.25 i) == 0.163679467193165171449476605077428975 + 0.447486970040493067069984724340855636 i":
  263. double: 1
  264. float: 1
  265. idouble: 1
  266. ifloat: 1
  267. ildouble: 1
  268. ldouble: 1
  269. Test "Imaginary part of: clog10 (3 + inf i) == inf + pi/2*log10(e) i":
  270. double: 1
  271. float: 1
  272. idouble: 1
  273. ifloat: 1
  274. Test "Imaginary part of: clog10 (3 - inf i) == inf - pi/2*log10(e) i":
  275. double: 1
  276. float: 1
  277. idouble: 1
  278. ifloat: 1
  279. Test "Imaginary part of: clog10 (inf + inf i) == inf + pi/4*log10(e) i":
  280. double: 1
  281. float: 1
  282. idouble: 1
  283. ifloat: 1
  284. Test "Imaginary part of: clog10 (inf - inf i) == inf - pi/4*log10(e) i":
  285. double: 1
  286. float: 1
  287. idouble: 1
  288. ifloat: 1
  289. # cos
  290. Test "cos (0.80190127184058835) == 0.69534156199418473":
  291. double: 1
  292. idouble: 1
  293. Test "cos (M_PI_6l * 2.0) == 0.5":
  294. double: 1
  295. float: 1
  296. idouble: 1
  297. ifloat: 1
  298. Test "cos (M_PI_6l * 4.0) == -0.5":
  299. double: 2
  300. float: 1
  301. idouble: 2
  302. ifloat: 1
  303. ildouble: 1
  304. ldouble: 1
  305. Test "cos (pi/2) == 0":
  306. double: 1
  307. float: 1
  308. idouble: 1
  309. ifloat: 1
  310. ildouble: 1
  311. ldouble: 1
  312. # cpow
  313. Test "Real part of: cpow (0.75 + 1.25 i, 0.0 + 1.0 i) == 0.331825439177608832276067945276730566 + 0.131338600281188544930936345230903032 i":
  314. float: 1
  315. ifloat: 1
  316. ildouble: 1
  317. ldouble: 1
  318. Test "Imaginary part of: cpow (0.75 + 1.25 i, 0.0 + 1.0 i) == 0.331825439177608832276067945276730566 + 0.131338600281188544930936345230903032 i":
  319. float: 1
  320. ifloat: 1
  321. ildouble: 1
  322. ldouble: 1
  323. Test "Real part of: cpow (0.75 + 1.25 i, 0.75 + 1.25 i) == 0.117506293914473555420279832210420483 + 0.346552747708338676483025352060418001 i":
  324. double: 1
  325. float: 4
  326. idouble: 1
  327. ifloat: 4
  328. ildouble: 5
  329. ldouble: 5
  330. Test "Imaginary part of: cpow (0.75 + 1.25 i, 0.75 + 1.25 i) == 0.117506293914473555420279832210420483 + 0.346552747708338676483025352060418001 i":
  331. ildouble: 2
  332. ldouble: 2
  333. Test "Real part of: cpow (0.75 + 1.25 i, 1.0 + 0.0 i) == 0.75 + 1.25 i":
  334. ildouble: 1
  335. ldouble: 1
  336. Test "Real part of: cpow (0.75 + 1.25 i, 1.0 + 1.0 i) == 0.0846958290317209430433805274189191353 + 0.513285749182902449043287190519090481 i":
  337. double: 2
  338. float: 3
  339. idouble: 2
  340. ifloat: 3
  341. ildouble: 3
  342. ldouble: 3
  343. Test "Real part of: cpow (2 + 0 i, 10 + 0 i) == 1024.0 + 0.0 i":
  344. ildouble: 1
  345. ldouble: 1
  346. Test "Real part of: cpow (2 + 3 i, 4 + 0 i) == -119.0 - 120.0 i":
  347. double: 1
  348. float: 5
  349. idouble: 1
  350. ifloat: 5
  351. Test "Imaginary part of: cpow (2 + 3 i, 4 + 0 i) == -119.0 - 120.0 i":
  352. float: 2
  353. ifloat: 2
  354. ildouble: 2
  355. ldouble: 2
  356. Test "Imaginary part of: cpow (e + 0 i, 0 + 2 * M_PIl i) == 1.0 + 0.0 i":
  357. double: 2
  358. float: 2
  359. idouble: 2
  360. ifloat: 2
  361. ildouble: 1
  362. ldouble: 1
  363. # csin
  364. Test "Imaginary part of: csin (-2 - 3 i) == -9.15449914691142957346729954460983256 + 4.16890695996656435075481305885375484 i":
  365. double: 1
  366. idouble: 1
  367. Test "Real part of: csin (0.75 + 1.25 i) == 1.28722291002649188575873510790565441 + 1.17210635989270256101081285116138863 i":
  368. ildouble: 1
  369. ldouble: 1
  370. Test "Imaginary part of: csin (0.75 + 1.25 i) == 1.28722291002649188575873510790565441 + 1.17210635989270256101081285116138863 i":
  371. float: 1
  372. ifloat: 1
  373. # csinh
  374. Test "Real part of: csinh (-2 - 3 i) == 3.59056458998577995201256544779481679 - 0.530921086248519805267040090660676560 i":
  375. double: 1
  376. idouble: 1
  377. Test "Imaginary part of: csinh (-2 - 3 i) == 3.59056458998577995201256544779481679 - 0.530921086248519805267040090660676560 i":
  378. double: 1
  379. idouble: 1
  380. ildouble: 2
  381. ldouble: 2
  382. Test "Real part of: csinh (0.75 + 1.25 i) == 0.259294854551162779153349830618433028 + 1.22863452409509552219214606515777594 i":
  383. float: 1
  384. ifloat: 1
  385. ildouble: 1
  386. ldouble: 1
  387. Test "Imaginary part of: csinh (0.75 + 1.25 i) == 0.259294854551162779153349830618433028 + 1.22863452409509552219214606515777594 i":
  388. float: 1
  389. ifloat: 1
  390. # csqrt
  391. Test "Real part of: csqrt (-2 + 3 i) == 0.89597747612983812471573375529004348 + 1.6741492280355400404480393008490519 i":
  392. float: 1
  393. ifloat: 1
  394. Test "Real part of: csqrt (-2 - 3 i) == 0.89597747612983812471573375529004348 - 1.6741492280355400404480393008490519 i":
  395. float: 1
  396. ifloat: 1
  397. # ctan
  398. Test "Real part of: ctan (-2 - 3 i) == 0.376402564150424829275122113032269084e-2 - 1.00323862735360980144635859782192726 i":
  399. double: 1
  400. idouble: 1
  401. ildouble: 439
  402. ldouble: 439
  403. Test "Imaginary part of: ctan (-2 - 3 i) == 0.376402564150424829275122113032269084e-2 - 1.00323862735360980144635859782192726 i":
  404. float: 1
  405. ifloat: 1
  406. ildouble: 2
  407. ldouble: 2
  408. Test "Real part of: ctan (0.75 + 1.25 i) == 0.160807785916206426725166058173438663 + 0.975363285031235646193581759755216379 i":
  409. ildouble: 1
  410. ldouble: 1
  411. Test "Imaginary part of: ctan (0.75 + 1.25 i) == 0.160807785916206426725166058173438663 + 0.975363285031235646193581759755216379 i":
  412. double: 1
  413. float: 1
  414. idouble: 1
  415. ifloat: 1
  416. ildouble: 3
  417. ldouble: 3
  418. # ctanh
  419. Test "Real part of: ctanh (-2 - 3 i) == -0.965385879022133124278480269394560686 + 0.988437503832249372031403430350121098e-2 i":
  420. double: 1
  421. float: 2
  422. idouble: 1
  423. ifloat: 2
  424. ildouble: 5
  425. ldouble: 5
  426. Test "Imaginary part of: ctanh (-2 - 3 i) == -0.965385879022133124278480269394560686 + 0.988437503832249372031403430350121098e-2 i":
  427. ildouble: 25
  428. ldouble: 25
  429. Test "Imaginary part of: ctanh (0 + pi/4 i) == 0.0 + 1.0 i":
  430. float: 1
  431. ifloat: 1
  432. Test "Real part of: ctanh (0.75 + 1.25 i) == 1.37260757053378320258048606571226857 + 0.385795952609750664177596760720790220 i":
  433. double: 1
  434. idouble: 1
  435. Test "Imaginary part of: ctanh (0.75 + 1.25 i) == 1.37260757053378320258048606571226857 + 0.385795952609750664177596760720790220 i":
  436. double: 1
  437. idouble: 1
  438. ildouble: 1
  439. ldouble: 1
  440. # erf
  441. Test "erf (0.75) == 0.711155633653515131598937834591410777":
  442. double: 1
  443. idouble: 1
  444. Test "erf (1.25) == 0.922900128256458230136523481197281140":
  445. double: 1
  446. idouble: 1
  447. # erfc
  448. Test "erfc (1.25) == 0.0770998717435417698634765188027188596":
  449. ildouble: 1
  450. ldouble: 1
  451. Test "erfc (2.0) == 0.00467773498104726583793074363274707139":
  452. double: 1
  453. idouble: 1
  454. Test "erfc (4.125) == 0.542340079956506600531223408575531062e-8":
  455. double: 1
  456. idouble: 1
  457. ildouble: 1
  458. ldouble: 1
  459. # exp
  460. Test "exp (1) == e":
  461. double: 1
  462. idouble: 1
  463. # exp10
  464. Test "exp10 (-1) == 0.1":
  465. double: 2
  466. float: 1
  467. idouble: 2
  468. ifloat: 1
  469. ildouble: 1
  470. ldouble: 1
  471. Test "exp10 (0.75) == 5.62341325190349080394951039776481231":
  472. double: 1
  473. float: 1
  474. idouble: 1
  475. ifloat: 1
  476. ildouble: 2
  477. ldouble: 2
  478. Test "exp10 (3) == 1000":
  479. double: 6
  480. float: 2
  481. idouble: 6
  482. ifloat: 2
  483. ildouble: 8
  484. ldouble: 8
  485. # expm1
  486. Test "expm1 (0.75) == 1.11700001661267466854536981983709561":
  487. double: 1
  488. idouble: 1
  489. Test "expm1 (1) == M_El - 1.0":
  490. double: 1
  491. float: 1
  492. idouble: 1
  493. ifloat: 1
  494. # gamma
  495. Test "gamma (-0.5) == log(2*sqrt(pi))":
  496. ildouble: 1
  497. ldouble: 1
  498. # hypot
  499. Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
  500. float: 1
  501. ifloat: 1
  502. Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
  503. float: 1
  504. ifloat: 1
  505. Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
  506. float: 1
  507. ifloat: 1
  508. Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
  509. float: 1
  510. ifloat: 1
  511. Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
  512. float: 1
  513. ifloat: 1
  514. Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
  515. float: 1
  516. ifloat: 1
  517. Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
  518. float: 1
  519. ifloat: 1
  520. Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
  521. float: 1
  522. ifloat: 1
  523. # j0
  524. Test "j0 (-4.0) == -3.9714980986384737228659076845169804197562E-1":
  525. double: 1
  526. float: 1
  527. idouble: 1
  528. ifloat: 1
  529. ildouble: 1
  530. ldouble: 1
  531. Test "j0 (0.75) == 0.864242275166648623555731103820923211":
  532. float: 1
  533. ifloat: 1
  534. Test "j0 (10.0) == -0.245935764451348335197760862485328754":
  535. double: 2
  536. float: 1
  537. idouble: 2
  538. ifloat: 1
  539. Test "j0 (2.0) == 0.223890779141235668051827454649948626":
  540. float: 2
  541. ifloat: 2
  542. Test "j0 (4.0) == -3.9714980986384737228659076845169804197562E-1":
  543. double: 1
  544. float: 1
  545. idouble: 1
  546. ifloat: 1
  547. ildouble: 1
  548. ldouble: 1
  549. Test "j0 (8.0) == 0.171650807137553906090869407851972001":
  550. double: 2
  551. float: 1
  552. idouble: 2
  553. ifloat: 1
  554. # j1
  555. Test "j1 (10.0) == 0.0434727461688614366697487680258592883":
  556. float: 2
  557. ifloat: 2
  558. ildouble: 1
  559. ldouble: 1
  560. Test "j1 (2.0) == 0.576724807756873387202448242269137087":
  561. double: 1
  562. idouble: 1
  563. Test "j1 (8.0) == 0.234636346853914624381276651590454612":
  564. double: 1
  565. idouble: 1
  566. ildouble: 1
  567. ldouble: 1
  568. # jn
  569. Test "jn (0, -4.0) == -3.9714980986384737228659076845169804197562E-1":
  570. double: 1
  571. float: 1
  572. idouble: 1
  573. ifloat: 1
  574. ildouble: 1
  575. ldouble: 1
  576. Test "jn (0, 0.75) == 0.864242275166648623555731103820923211":
  577. float: 1
  578. ifloat: 1
  579. Test "jn (0, 10.0) == -0.245935764451348335197760862485328754":
  580. double: 2
  581. float: 1
  582. idouble: 2
  583. ifloat: 1
  584. Test "jn (0, 2.0) == 0.223890779141235668051827454649948626":
  585. float: 2
  586. ifloat: 2
  587. Test "jn (0, 4.0) == -3.9714980986384737228659076845169804197562E-1":
  588. double: 1
  589. float: 1
  590. idouble: 1
  591. ifloat: 1
  592. ildouble: 1
  593. ldouble: 1
  594. Test "jn (0, 8.0) == 0.171650807137553906090869407851972001":
  595. double: 2
  596. float: 1
  597. idouble: 2
  598. ifloat: 1
  599. Test "jn (1, 10.0) == 0.0434727461688614366697487680258592883":
  600. float: 2
  601. ifloat: 2
  602. ildouble: 1
  603. ldouble: 1
  604. Test "jn (1, 2.0) == 0.576724807756873387202448242269137087":
  605. double: 1
  606. idouble: 1
  607. Test "jn (1, 8.0) == 0.234636346853914624381276651590454612":
  608. double: 1
  609. idouble: 1
  610. ildouble: 1
  611. ldouble: 1
  612. Test "jn (10, -1.0) == 0.263061512368745320699785368779050294e-9":
  613. ildouble: 1
  614. ldouble: 1
  615. Test "jn (10, 0.125) == 0.250543369809369890173993791865771547e-18":
  616. double: 1
  617. float: 1
  618. idouble: 1
  619. ifloat: 1
  620. Test "jn (10, 0.75) == 0.149621713117596814698712483621682835e-10":
  621. double: 1
  622. float: 1
  623. idouble: 1
  624. ifloat: 1
  625. ildouble: 2
  626. ldouble: 2
  627. Test "jn (10, 1.0) == 0.263061512368745320699785368779050294e-9":
  628. ildouble: 1
  629. ldouble: 1
  630. Test "jn (10, 10.0) == 0.207486106633358857697278723518753428":
  631. double: 4
  632. float: 3
  633. idouble: 4
  634. ifloat: 3
  635. ildouble: 2
  636. ldouble: 2
  637. Test "jn (10, 2.0) == 0.251538628271673670963516093751820639e-6":
  638. float: 4
  639. ifloat: 4
  640. ildouble: 1
  641. ldouble: 1
  642. Test "jn (3, -1.0) == -0.0195633539826684059189053216217515083":
  643. ildouble: 1
  644. ldouble: 1
  645. Test "jn (3, 0.125) == 0.406503832554912875023029337653442868e-4":
  646. double: 1
  647. float: 1
  648. idouble: 1
  649. ifloat: 1
  650. Test "jn (3, 0.75) == 0.848438342327410884392755236884386804e-2":
  651. double: 1
  652. float: 1
  653. idouble: 1
  654. ifloat: 1
  655. Test "jn (3, 1.0) == 0.0195633539826684059189053216217515083":
  656. ildouble: 1
  657. ldouble: 1
  658. Test "jn (3, 10.0) == 0.0583793793051868123429354784103409563":
  659. double: 3
  660. float: 1
  661. idouble: 3
  662. ifloat: 1
  663. ildouble: 1
  664. ldouble: 1
  665. Test "jn (3, 2.0) == 0.128943249474402051098793332969239835":
  666. double: 1
  667. float: 2
  668. idouble: 1
  669. ifloat: 2
  670. ildouble: 1
  671. ldouble: 1
  672. # lgamma
  673. Test "lgamma (-0.5) == log(2*sqrt(pi))":
  674. ildouble: 1
  675. ldouble: 1
  676. Test "lgamma (0.7) == 0.260867246531666514385732417016759578":
  677. double: 1
  678. float: 1
  679. idouble: 1
  680. ifloat: 1
  681. Test "lgamma (1.2) == -0.853740900033158497197028392998854470e-1":
  682. double: 1
  683. float: 2
  684. idouble: 1
  685. ifloat: 2
  686. ildouble: 1
  687. ldouble: 1
  688. # log10
  689. Test "log10 (0.75) == -0.124938736608299953132449886193870744":
  690. double: 1
  691. float: 2
  692. idouble: 1
  693. ifloat: 2
  694. ildouble: 1
  695. ldouble: 1
  696. Test "log10 (e) == log10(e)":
  697. float: 1
  698. ifloat: 1
  699. ildouble: 1
  700. ldouble: 1
  701. # log1p
  702. Test "log1p (-0.25) == -0.287682072451780927439219005993827432":
  703. float: 1
  704. ifloat: 1
  705. # sincos
  706. Test "sincos (0.80190127184058835, &sin_res, &cos_res) puts 0.69534156199418473 in cos_res":
  707. double: 1
  708. idouble: 1
  709. Test "sincos (M_PI_6l*2.0, &sin_res, &cos_res) puts 0.5 in cos_res":
  710. double: 1
  711. float: 1
  712. idouble: 1
  713. ifloat: 1
  714. Test "sincos (M_PI_6l*2.0, &sin_res, &cos_res) puts 0.86602540378443864676372317075293616 in sin_res":
  715. double: 1
  716. float: 1
  717. idouble: 1
  718. ifloat: 1
  719. ildouble: 1
  720. ldouble: 1
  721. Test "sincos (pi/2, &sin_res, &cos_res) puts 0 in cos_res":
  722. double: 1
  723. float: 1
  724. idouble: 1
  725. ifloat: 1
  726. ildouble: 1
  727. ldouble: 1
  728. Test "sincos (pi/6, &sin_res, &cos_res) puts 0.86602540378443864676372317075293616 in cos_res":
  729. float: 1
  730. ifloat: 1
  731. # tan
  732. Test "tan (pi/4) == 1":
  733. double: 1
  734. idouble: 1
  735. # tgamma
  736. Test "tgamma (-0.5) == -2 sqrt (pi)":
  737. double: 1
  738. float: 1
  739. idouble: 1
  740. ifloat: 1
  741. ildouble: 1
  742. ldouble: 1
  743. Test "tgamma (0.5) == sqrt (pi)":
  744. float: 1
  745. ifloat: 1
  746. Test "tgamma (0.7) == 1.29805533264755778568117117915281162":
  747. double: 1
  748. float: 1
  749. idouble: 1
  750. ifloat: 1
  751. Test "tgamma (4) == 6":
  752. ildouble: 1
  753. ldouble: 1
  754. # y0
  755. Test "y0 (0.125) == -1.38968062514384052915582277745018693":
  756. ildouble: 1
  757. ldouble: 1
  758. Test "y0 (1.0) == 0.0882569642156769579829267660235151628":
  759. double: 2
  760. float: 1
  761. idouble: 2
  762. ifloat: 1
  763. ildouble: 1
  764. ldouble: 1
  765. Test "y0 (1.5) == 0.382448923797758843955068554978089862":
  766. double: 2
  767. float: 1
  768. idouble: 2
  769. ifloat: 1
  770. Test "y0 (10.0) == 0.0556711672835993914244598774101900481":
  771. float: 1
  772. ifloat: 1
  773. ildouble: 1
  774. ldouble: 1
  775. Test "y0 (8.0) == 0.223521489387566220527323400498620359":
  776. double: 1
  777. float: 1
  778. idouble: 1
  779. ifloat: 1
  780. ildouble: 1
  781. ldouble: 1
  782. # y1
  783. Test "y1 (0.125) == -5.19993611253477499595928744876579921":
  784. double: 1
  785. idouble: 1
  786. ildouble: 1
  787. ldouble: 1
  788. Test "y1 (1.5) == -0.412308626973911295952829820633445323":
  789. float: 1
  790. ifloat: 1
  791. Test "y1 (10.0) == 0.249015424206953883923283474663222803":
  792. double: 3
  793. float: 1
  794. idouble: 3
  795. ifloat: 1
  796. Test "y1 (2.0) == -0.107032431540937546888370772277476637":
  797. double: 1
  798. float: 1
  799. idouble: 1
  800. ifloat: 1
  801. ildouble: 1
  802. ldouble: 1
  803. Test "y1 (8.0) == -0.158060461731247494255555266187483550":
  804. double: 1
  805. float: 2
  806. idouble: 1
  807. ifloat: 2
  808. ildouble: 1
  809. ldouble: 1
  810. # yn
  811. Test "yn (0, 0.125) == -1.38968062514384052915582277745018693":
  812. ildouble: 1
  813. ldouble: 1
  814. Test "yn (0, 1.0) == 0.0882569642156769579829267660235151628":
  815. double: 2
  816. float: 1
  817. idouble: 2
  818. ifloat: 1
  819. ildouble: 1
  820. ldouble: 1
  821. Test "yn (0, 1.5) == 0.382448923797758843955068554978089862":
  822. double: 2
  823. float: 1
  824. idouble: 2
  825. ifloat: 1
  826. Test "yn (0, 10.0) == 0.0556711672835993914244598774101900481":
  827. float: 1
  828. ifloat: 1
  829. ildouble: 1
  830. ldouble: 1
  831. Test "yn (0, 8.0) == 0.223521489387566220527323400498620359":
  832. double: 1
  833. float: 1
  834. idouble: 1
  835. ifloat: 1
  836. ildouble: 1
  837. ldouble: 1
  838. Test "yn (1, 0.125) == -5.19993611253477499595928744876579921":
  839. double: 1
  840. idouble: 1
  841. ildouble: 1
  842. ldouble: 1
  843. Test "yn (1, 1.5) == -0.412308626973911295952829820633445323":
  844. float: 1
  845. ifloat: 1
  846. Test "yn (1, 10.0) == 0.249015424206953883923283474663222803":
  847. double: 3
  848. float: 1
  849. idouble: 3
  850. ifloat: 1
  851. Test "yn (1, 2.0) == -0.107032431540937546888370772277476637":
  852. double: 1
  853. float: 1
  854. idouble: 1
  855. ifloat: 1
  856. ildouble: 1
  857. ldouble: 1
  858. Test "yn (1, 8.0) == -0.158060461731247494255555266187483550":
  859. double: 1
  860. float: 2
  861. idouble: 1
  862. ifloat: 2
  863. ildouble: 1
  864. ldouble: 1
  865. Test "yn (10, 0.125) == -127057845771019398.252538486899753195":
  866. double: 1
  867. idouble: 1
  868. ildouble: 2
  869. ldouble: 2
  870. Test "yn (10, 0.75) == -2133501638.90573424452445412893839236":
  871. double: 1
  872. float: 1
  873. idouble: 1
  874. ifloat: 1
  875. ildouble: 4
  876. ldouble: 4
  877. Test "yn (10, 1.0) == -121618014.278689189288130426667971145":
  878. double: 1
  879. idouble: 1
  880. Test "yn (10, 10.0) == -0.359814152183402722051986577343560609":
  881. double: 1
  882. float: 1
  883. idouble: 1
  884. ifloat: 1
  885. Test "yn (10, 2.0) == -129184.542208039282635913145923304214":
  886. double: 2
  887. idouble: 2
  888. Test "yn (3, 0.125) == -2612.69757350066712600220955744091741":
  889. double: 1
  890. idouble: 1
  891. ildouble: 1
  892. ldouble: 1
  893. Test "yn (3, 0.75) == -12.9877176234475433186319774484809207":
  894. double: 1
  895. float: 1
  896. idouble: 1
  897. ifloat: 1
  898. ildouble: 2
  899. ldouble: 2
  900. Test "yn (3, 10.0) == -0.251362657183837329779204747654240998":
  901. double: 1
  902. float: 1
  903. idouble: 1
  904. ifloat: 1
  905. Test "yn (3, 2.0) == -1.12778377684042778608158395773179238":
  906. double: 1
  907. idouble: 1
  908. # Maximal error of functions:
  909. Function: "acos":
  910. ildouble: 1
  911. ldouble: 1
  912. Function: "asin":
  913. ildouble: 1
  914. ldouble: 1
  915. Function: "atan2":
  916. float: 1
  917. ifloat: 1
  918. Function: "atanh":
  919. float: 1
  920. ifloat: 1
  921. ildouble: 1
  922. ldouble: 1
  923. Function: Imaginary part of "cacos":
  924. float: 1
  925. ifloat: 1
  926. ildouble: 2
  927. ldouble: 2
  928. Function: Real part of "cacosh":
  929. double: 1
  930. float: 7
  931. idouble: 1
  932. ifloat: 7
  933. ildouble: 6
  934. ldouble: 6
  935. Function: Imaginary part of "cacosh":
  936. double: 1
  937. float: 3
  938. idouble: 1
  939. ifloat: 3
  940. ildouble: 1
  941. ldouble: 1
  942. Function: Real part of "casin":
  943. double: 1
  944. float: 1
  945. idouble: 1
  946. ifloat: 1
  947. ildouble: 2
  948. ldouble: 2
  949. Function: Imaginary part of "casin":
  950. float: 1
  951. ifloat: 1
  952. ildouble: 2
  953. ldouble: 2
  954. Function: Real part of "casinh":
  955. double: 5
  956. float: 1
  957. idouble: 5
  958. ifloat: 1
  959. ildouble: 5
  960. ldouble: 5
  961. Function: Imaginary part of "casinh":
  962. double: 3
  963. float: 6
  964. idouble: 3
  965. ifloat: 6
  966. ildouble: 5
  967. ldouble: 5
  968. Function: Real part of "catan":
  969. float: 4
  970. ifloat: 4
  971. Function: Imaginary part of "catan":
  972. double: 1
  973. float: 1
  974. idouble: 1
  975. ifloat: 1
  976. Function: Real part of "catanh":
  977. double: 4
  978. idouble: 4
  979. ildouble: 1
  980. ldouble: 1
  981. Function: Imaginary part of "catanh":
  982. float: 6
  983. ifloat: 6
  984. Function: "cbrt":
  985. double: 1
  986. idouble: 1
  987. ildouble: 1
  988. ldouble: 1
  989. Function: Real part of "ccos":
  990. double: 1
  991. float: 1
  992. idouble: 1
  993. ifloat: 1
  994. ildouble: 1
  995. ldouble: 1
  996. Function: Imaginary part of "ccos":
  997. float: 1
  998. ifloat: 1
  999. ildouble: 1
  1000. ldouble: 1
  1001. Function: Real part of "ccosh":
  1002. double: 1
  1003. float: 1
  1004. idouble: 1
  1005. ifloat: 1
  1006. Function: Imaginary part of "ccosh":
  1007. double: 1
  1008. float: 1
  1009. idouble: 1
  1010. ifloat: 1
  1011. ildouble: 1
  1012. ldouble: 1
  1013. Function: Real part of "cexp":
  1014. float: 1
  1015. ifloat: 1
  1016. Function: Imaginary part of "cexp":
  1017. float: 1
  1018. ifloat: 1
  1019. ildouble: 1
  1020. ldouble: 1
  1021. Function: Real part of "clog":
  1022. float: 1
  1023. ifloat: 1
  1024. ildouble: 1
  1025. ldouble: 1
  1026. Function: Imaginary part of "clog":
  1027. float: 3
  1028. ifloat: 3
  1029. Function: Real part of "clog10":
  1030. double: 1
  1031. float: 1
  1032. idouble: 1
  1033. ifloat: 1
  1034. ildouble: 1
  1035. ldouble: 1
  1036. Function: Imaginary part of "clog10":
  1037. double: 1
  1038. float: 5
  1039. idouble: 1
  1040. ifloat: 5
  1041. ildouble: 1
  1042. ldouble: 1
  1043. Function: "cos":
  1044. double: 2
  1045. float: 1
  1046. idouble: 2
  1047. ifloat: 1
  1048. ildouble: 1
  1049. ldouble: 1
  1050. Function: Real part of "cpow":
  1051. double: 2
  1052. float: 5
  1053. idouble: 2
  1054. ifloat: 5
  1055. ildouble: 5
  1056. ldouble: 5
  1057. Function: Imaginary part of "cpow":
  1058. double: 2
  1059. float: 2
  1060. idouble: 2
  1061. ifloat: 2
  1062. ildouble: 2
  1063. ldouble: 2
  1064. Function: Real part of "csin":
  1065. ildouble: 1
  1066. ldouble: 1
  1067. Function: Imaginary part of "csin":
  1068. double: 1
  1069. float: 1
  1070. idouble: 1
  1071. ifloat: 1
  1072. Function: Real part of "csinh":
  1073. double: 1
  1074. float: 1
  1075. idouble: 1
  1076. ifloat: 1
  1077. ildouble: 1
  1078. ldouble: 1
  1079. Function: Imaginary part of "csinh":
  1080. double: 1
  1081. float: 1
  1082. idouble: 1
  1083. ifloat: 1
  1084. ildouble: 2
  1085. ldouble: 2
  1086. Function: Real part of "csqrt":
  1087. float: 1
  1088. ifloat: 1
  1089. Function: Real part of "ctan":
  1090. double: 1
  1091. idouble: 1
  1092. ildouble: 439
  1093. ldouble: 439
  1094. Function: Imaginary part of "ctan":
  1095. double: 1
  1096. float: 1
  1097. idouble: 1
  1098. ifloat: 1
  1099. ildouble: 3
  1100. ldouble: 3
  1101. Function: Real part of "ctanh":
  1102. double: 1
  1103. float: 2
  1104. idouble: 1
  1105. ifloat: 2
  1106. ildouble: 5
  1107. ldouble: 5
  1108. Function: Imaginary part of "ctanh":
  1109. double: 1
  1110. float: 1
  1111. idouble: 1
  1112. ifloat: 1
  1113. ildouble: 25
  1114. ldouble: 25
  1115. Function: "erf":
  1116. double: 1
  1117. idouble: 1
  1118. Function: "erfc":
  1119. double: 1
  1120. idouble: 1
  1121. ildouble: 1
  1122. ldouble: 1
  1123. Function: "exp":
  1124. double: 1
  1125. idouble: 1
  1126. Function: "exp10":
  1127. double: 6
  1128. float: 2
  1129. idouble: 6
  1130. ifloat: 2
  1131. ildouble: 8
  1132. ldouble: 8
  1133. Function: "expm1":
  1134. double: 1
  1135. float: 1
  1136. idouble: 1
  1137. ifloat: 1
  1138. Function: "gamma":
  1139. ildouble: 1
  1140. ldouble: 1
  1141. Function: "hypot":
  1142. float: 1
  1143. ifloat: 1
  1144. Function: "j0":
  1145. double: 2
  1146. float: 2
  1147. idouble: 2
  1148. ifloat: 2
  1149. ildouble: 1
  1150. ldouble: 1
  1151. Function: "j1":
  1152. double: 1
  1153. float: 2
  1154. idouble: 1
  1155. ifloat: 2
  1156. ildouble: 1
  1157. ldouble: 1
  1158. Function: "jn":
  1159. double: 4
  1160. float: 4
  1161. idouble: 4
  1162. ifloat: 4
  1163. ildouble: 2
  1164. ldouble: 2
  1165. Function: "lgamma":
  1166. double: 1
  1167. float: 2
  1168. idouble: 1
  1169. ifloat: 2
  1170. ildouble: 1
  1171. ldouble: 1
  1172. Function: "log":
  1173. float: 1
  1174. ifloat: 1
  1175. Function: "log10":
  1176. double: 1
  1177. float: 2
  1178. idouble: 1
  1179. ifloat: 2
  1180. ildouble: 1
  1181. ldouble: 1
  1182. Function: "log1p":
  1183. float: 1
  1184. ifloat: 1
  1185. Function: "nexttoward":
  1186. double: 1
  1187. idouble: 1
  1188. Function: "sincos":
  1189. double: 1
  1190. float: 1
  1191. idouble: 1
  1192. ifloat: 1
  1193. ildouble: 1
  1194. ldouble: 1
  1195. Function: "tan":
  1196. double: 1
  1197. idouble: 1
  1198. Function: "tgamma":
  1199. double: 1
  1200. float: 1
  1201. idouble: 1
  1202. ifloat: 1
  1203. ildouble: 1
  1204. ldouble: 1
  1205. Function: "y0":
  1206. double: 2
  1207. float: 1
  1208. idouble: 2
  1209. ifloat: 1
  1210. ildouble: 1
  1211. ldouble: 1
  1212. Function: "y1":
  1213. double: 3
  1214. float: 2
  1215. idouble: 3
  1216. ifloat: 2
  1217. ildouble: 1
  1218. ldouble: 1
  1219. Function: "yn":
  1220. double: 3
  1221. float: 2
  1222. idouble: 3
  1223. ifloat: 2
  1224. ildouble: 4
  1225. ldouble: 4
  1226. # end of automatic generation