libm-test-ulps-powerpc 26 KB

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