libm-test-ulps-x86_64 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308
  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. ldouble: 1
  99. ildouble: 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. ildouble: 1
  160. ldouble: 1
  161. float: 1
  162. ifloat: 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 (M_PI_6l * 2.0) == 0.5":
  291. double: 1
  292. float: 1
  293. idouble: 1
  294. ifloat: 1
  295. Test "cos (M_PI_6l * 4.0) == -0.5":
  296. double: 2
  297. float: 1
  298. idouble: 2
  299. ifloat: 1
  300. ildouble: 1
  301. ldouble: 1
  302. Test "cos (pi/2) == 0":
  303. double: 1
  304. float: 1
  305. idouble: 1
  306. ifloat: 1
  307. ildouble: 1
  308. ldouble: 1
  309. Test "cos (0.80190127184058835) == 0.69534156199418473":
  310. double: 1
  311. idouble: 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. ldouble: 1
  317. ildouble: 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 "Real part of: csin (0.75 + 1.25 i) == 1.28722291002649188575873510790565441 + 1.17210635989270256101081285116138863 i":
  365. ildouble: 1
  366. ldouble: 1
  367. Test "Imaginary part of: csin (0.75 + 1.25 i) == 1.28722291002649188575873510790565441 + 1.17210635989270256101081285116138863 i":
  368. float: 1
  369. ifloat: 1
  370. Test "Imaginary part of: csin (-2 - 3 i) == -9.15449914691142957346729954460983256 + 4.16890695996656435075481305885375484 i":
  371. double: 1
  372. idouble: 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. float: 2
  421. ifloat: 2
  422. ildouble: 5
  423. ldouble: 5
  424. double: 1
  425. idouble: 1
  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. ildouble: 1
  437. ldouble: 1
  438. double: 1
  439. idouble: 1
  440. # erf
  441. Test "erf (1.25) == 0.922900128256458230136523481197281140":
  442. double: 1
  443. idouble: 1
  444. # erfc
  445. Test "erfc (1.25) == 0.0770998717435417698634765188027188596":
  446. ildouble: 1
  447. ldouble: 1
  448. Test "erfc (2.0) == 0.00467773498104726583793074363274707139":
  449. double: 1
  450. idouble: 1
  451. Test "erfc (4.125) == 0.542340079956506600531223408575531062e-8":
  452. double: 1
  453. idouble: 1
  454. ildouble: 1
  455. ldouble: 1
  456. # exp10
  457. Test "exp10 (-1) == 0.1":
  458. ildouble: 1
  459. ldouble: 1
  460. float: 1
  461. ifloat: 1
  462. double: 2
  463. idouble: 2
  464. Test "exp10 (0.75) == 5.62341325190349080394951039776481231":
  465. ildouble: 2
  466. ldouble: 2
  467. float: 1
  468. ifloat: 1
  469. double: 1
  470. idouble: 1
  471. Test "exp10 (3) == 1000":
  472. ildouble: 8
  473. ldouble: 8
  474. float: 2
  475. ifloat: 2
  476. double: 6
  477. idouble: 6
  478. # expm1
  479. Test "expm1 (0.75) == 1.11700001661267466854536981983709561":
  480. double: 1
  481. idouble: 1
  482. Test "expm1 (1) == M_El - 1.0":
  483. double: 1
  484. float: 1
  485. idouble: 1
  486. ifloat: 1
  487. # gamma
  488. Test "gamma (-0.5) == log(2*sqrt(pi))":
  489. ildouble: 1
  490. ldouble: 1
  491. # hypot
  492. Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
  493. float: 1
  494. ifloat: 1
  495. Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
  496. float: 1
  497. ifloat: 1
  498. Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
  499. float: 1
  500. ifloat: 1
  501. Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
  502. float: 1
  503. ifloat: 1
  504. Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
  505. float: 1
  506. ifloat: 1
  507. Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
  508. float: 1
  509. ifloat: 1
  510. Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
  511. float: 1
  512. ifloat: 1
  513. Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
  514. float: 1
  515. ifloat: 1
  516. # j0
  517. Test "j0 (-4.0) == -3.9714980986384737228659076845169804197562E-1":
  518. double: 1
  519. float: 1
  520. idouble: 1
  521. ifloat: 1
  522. ildouble: 1
  523. ldouble: 1
  524. Test "j0 (0.75) == 0.864242275166648623555731103820923211":
  525. float: 1
  526. ifloat: 1
  527. Test "j0 (10.0) == -0.245935764451348335197760862485328754":
  528. double: 2
  529. float: 1
  530. idouble: 2
  531. ifloat: 1
  532. Test "j0 (2.0) == 0.223890779141235668051827454649948626":
  533. float: 2
  534. ifloat: 2
  535. Test "j0 (4.0) == -3.9714980986384737228659076845169804197562E-1":
  536. double: 1
  537. float: 1
  538. idouble: 1
  539. ifloat: 1
  540. ildouble: 1
  541. ldouble: 1
  542. Test "j0 (8.0) == 0.171650807137553906090869407851972001":
  543. double: 2
  544. float: 1
  545. idouble: 2
  546. ifloat: 1
  547. # j1
  548. Test "j1 (10.0) == 0.0434727461688614366697487680258592883":
  549. float: 2
  550. ifloat: 2
  551. ildouble: 1
  552. ldouble: 1
  553. Test "j1 (2.0) == 0.576724807756873387202448242269137087":
  554. double: 1
  555. idouble: 1
  556. Test "j1 (8.0) == 0.234636346853914624381276651590454612":
  557. double: 1
  558. idouble: 1
  559. ildouble: 1
  560. ldouble: 1
  561. # jn
  562. Test "jn (0, -4.0) == -3.9714980986384737228659076845169804197562E-1":
  563. double: 1
  564. float: 1
  565. idouble: 1
  566. ifloat: 1
  567. ildouble: 1
  568. ldouble: 1
  569. Test "jn (0, 0.75) == 0.864242275166648623555731103820923211":
  570. float: 1
  571. ifloat: 1
  572. Test "jn (0, 10.0) == -0.245935764451348335197760862485328754":
  573. double: 2
  574. float: 1
  575. idouble: 2
  576. ifloat: 1
  577. Test "jn (0, 2.0) == 0.223890779141235668051827454649948626":
  578. float: 2
  579. ifloat: 2
  580. Test "jn (0, 4.0) == -3.9714980986384737228659076845169804197562E-1":
  581. double: 1
  582. float: 1
  583. idouble: 1
  584. ifloat: 1
  585. ildouble: 1
  586. ldouble: 1
  587. Test "jn (0, 8.0) == 0.171650807137553906090869407851972001":
  588. double: 2
  589. float: 1
  590. idouble: 2
  591. ifloat: 1
  592. Test "jn (1, 10.0) == 0.0434727461688614366697487680258592883":
  593. float: 2
  594. ifloat: 2
  595. ildouble: 1
  596. ldouble: 1
  597. Test "jn (1, 2.0) == 0.576724807756873387202448242269137087":
  598. double: 1
  599. idouble: 1
  600. Test "jn (1, 8.0) == 0.234636346853914624381276651590454612":
  601. double: 1
  602. idouble: 1
  603. ildouble: 1
  604. ldouble: 1
  605. Test "jn (10, -1.0) == 0.263061512368745320699785368779050294e-9":
  606. ildouble: 1
  607. ldouble: 1
  608. Test "jn (10, 0.125) == 0.250543369809369890173993791865771547e-18":
  609. double: 1
  610. float: 1
  611. idouble: 1
  612. ifloat: 1
  613. Test "jn (10, 0.75) == 0.149621713117596814698712483621682835e-10":
  614. double: 1
  615. float: 1
  616. idouble: 1
  617. ifloat: 1
  618. ildouble: 2
  619. ldouble: 2
  620. Test "jn (10, 1.0) == 0.263061512368745320699785368779050294e-9":
  621. ildouble: 1
  622. ldouble: 1
  623. Test "jn (10, 10.0) == 0.207486106633358857697278723518753428":
  624. double: 4
  625. float: 3
  626. idouble: 4
  627. ifloat: 3
  628. ildouble: 2
  629. ldouble: 2
  630. Test "jn (10, 2.0) == 0.251538628271673670963516093751820639e-6":
  631. float: 4
  632. ifloat: 4
  633. ildouble: 1
  634. ldouble: 1
  635. Test "jn (3, -1.0) == -0.0195633539826684059189053216217515083":
  636. ildouble: 1
  637. ldouble: 1
  638. Test "jn (3, 0.125) == 0.406503832554912875023029337653442868e-4":
  639. double: 1
  640. float: 1
  641. idouble: 1
  642. ifloat: 1
  643. Test "jn (3, 0.75) == 0.848438342327410884392755236884386804e-2":
  644. double: 1
  645. float: 1
  646. idouble: 1
  647. ifloat: 1
  648. Test "jn (3, 1.0) == 0.0195633539826684059189053216217515083":
  649. ildouble: 1
  650. ldouble: 1
  651. Test "jn (3, 10.0) == 0.0583793793051868123429354784103409563":
  652. double: 3
  653. float: 1
  654. idouble: 3
  655. ifloat: 1
  656. ildouble: 1
  657. ldouble: 1
  658. Test "jn (3, 2.0) == 0.128943249474402051098793332969239835":
  659. double: 1
  660. float: 2
  661. idouble: 1
  662. ifloat: 2
  663. ildouble: 1
  664. ldouble: 1
  665. # lgamma
  666. Test "lgamma (-0.5) == log(2*sqrt(pi))":
  667. ildouble: 1
  668. ldouble: 1
  669. Test "lgamma (0.7) == 0.260867246531666514385732417016759578":
  670. double: 1
  671. float: 1
  672. idouble: 1
  673. ifloat: 1
  674. Test "lgamma (1.2) == -0.853740900033158497197028392998854470e-1":
  675. double: 1
  676. float: 2
  677. idouble: 1
  678. ifloat: 2
  679. ildouble: 1
  680. ldouble: 1
  681. # log10
  682. Test "log10 (0.75) == -0.124938736608299953132449886193870744":
  683. ildouble: 1
  684. ldouble: 1
  685. float: 2
  686. ifloat: 2
  687. double: 1
  688. idouble: 1
  689. Test "log10 (e) == log10(e)":
  690. float: 1
  691. ifloat: 1
  692. ildouble: 1
  693. ldouble: 1
  694. # log1p
  695. Test "log1p (-0.25) == -0.287682072451780927439219005993827432":
  696. float: 1
  697. ifloat: 1
  698. # sincos
  699. Test "sincos (M_PI_6l*2.0, &sin_res, &cos_res) puts 0.5 in cos_res":
  700. double: 1
  701. float: 1
  702. idouble: 1
  703. ifloat: 1
  704. Test "sincos (M_PI_6l*2.0, &sin_res, &cos_res) puts 0.86602540378443864676372317075293616 in sin_res":
  705. double: 1
  706. float: 1
  707. idouble: 1
  708. ifloat: 1
  709. ildouble: 1
  710. ldouble: 1
  711. Test "sincos (pi/2, &sin_res, &cos_res) puts 0 in cos_res":
  712. double: 1
  713. float: 1
  714. idouble: 1
  715. ifloat: 1
  716. ildouble: 1
  717. ldouble: 1
  718. Test "sincos (pi/6, &sin_res, &cos_res) puts 0.86602540378443864676372317075293616 in cos_res":
  719. float: 1
  720. ifloat: 1
  721. Test "sincos (0.80190127184058835, &sin_res, &cos_res) puts 0.69534156199418473 in cos_res":
  722. double: 1
  723. idouble: 1
  724. # tan
  725. Test "tan (pi/4) == 1":
  726. double: 1
  727. idouble: 1
  728. # tgamma
  729. Test "tgamma (-0.5) == -2 sqrt (pi)":
  730. double: 1
  731. float: 1
  732. idouble: 1
  733. ifloat: 1
  734. ildouble: 1
  735. ldouble: 1
  736. Test "tgamma (0.5) == sqrt (pi)":
  737. float: 1
  738. ifloat: 1
  739. Test "tgamma (0.7) == 1.29805533264755778568117117915281162":
  740. double: 1
  741. float: 1
  742. idouble: 1
  743. ifloat: 1
  744. Test "tgamma (4) == 6":
  745. ildouble: 1
  746. ldouble: 1
  747. # y0
  748. Test "y0 (0.125) == -1.38968062514384052915582277745018693":
  749. ildouble: 1
  750. ldouble: 1
  751. Test "y0 (1.0) == 0.0882569642156769579829267660235151628":
  752. double: 2
  753. float: 1
  754. idouble: 2
  755. ifloat: 1
  756. ildouble: 1
  757. ldouble: 1
  758. Test "y0 (1.5) == 0.382448923797758843955068554978089862":
  759. double: 2
  760. float: 1
  761. idouble: 2
  762. ifloat: 1
  763. Test "y0 (10.0) == 0.0556711672835993914244598774101900481":
  764. float: 1
  765. ifloat: 1
  766. ildouble: 1
  767. ldouble: 1
  768. Test "y0 (8.0) == 0.223521489387566220527323400498620359":
  769. double: 1
  770. float: 1
  771. idouble: 1
  772. ifloat: 1
  773. ildouble: 1
  774. ldouble: 1
  775. # y1
  776. Test "y1 (0.125) == -5.19993611253477499595928744876579921":
  777. double: 1
  778. idouble: 1
  779. ildouble: 1
  780. ldouble: 1
  781. Test "y1 (1.5) == -0.412308626973911295952829820633445323":
  782. float: 1
  783. ifloat: 1
  784. Test "y1 (10.0) == 0.249015424206953883923283474663222803":
  785. double: 3
  786. float: 1
  787. idouble: 3
  788. ifloat: 1
  789. Test "y1 (2.0) == -0.107032431540937546888370772277476637":
  790. double: 1
  791. float: 1
  792. idouble: 1
  793. ifloat: 1
  794. ildouble: 1
  795. ldouble: 1
  796. Test "y1 (8.0) == -0.158060461731247494255555266187483550":
  797. double: 1
  798. float: 2
  799. idouble: 1
  800. ifloat: 2
  801. ildouble: 1
  802. ldouble: 1
  803. # yn
  804. Test "yn (0, 0.125) == -1.38968062514384052915582277745018693":
  805. ildouble: 1
  806. ldouble: 1
  807. Test "yn (0, 1.0) == 0.0882569642156769579829267660235151628":
  808. double: 2
  809. float: 1
  810. idouble: 2
  811. ifloat: 1
  812. ildouble: 1
  813. ldouble: 1
  814. Test "yn (0, 1.5) == 0.382448923797758843955068554978089862":
  815. double: 2
  816. float: 1
  817. idouble: 2
  818. ifloat: 1
  819. Test "yn (0, 10.0) == 0.0556711672835993914244598774101900481":
  820. float: 1
  821. ifloat: 1
  822. ildouble: 1
  823. ldouble: 1
  824. Test "yn (0, 8.0) == 0.223521489387566220527323400498620359":
  825. double: 1
  826. float: 1
  827. idouble: 1
  828. ifloat: 1
  829. ildouble: 1
  830. ldouble: 1
  831. Test "yn (1, 0.125) == -5.19993611253477499595928744876579921":
  832. double: 1
  833. idouble: 1
  834. ildouble: 1
  835. ldouble: 1
  836. Test "yn (1, 1.5) == -0.412308626973911295952829820633445323":
  837. float: 1
  838. ifloat: 1
  839. Test "yn (1, 10.0) == 0.249015424206953883923283474663222803":
  840. double: 3
  841. float: 1
  842. idouble: 3
  843. ifloat: 1
  844. Test "yn (1, 2.0) == -0.107032431540937546888370772277476637":
  845. double: 1
  846. float: 1
  847. idouble: 1
  848. ifloat: 1
  849. ildouble: 1
  850. ldouble: 1
  851. Test "yn (1, 8.0) == -0.158060461731247494255555266187483550":
  852. double: 1
  853. float: 2
  854. idouble: 1
  855. ifloat: 2
  856. ildouble: 1
  857. ldouble: 1
  858. Test "yn (10, 0.125) == -127057845771019398.252538486899753195":
  859. double: 1
  860. idouble: 1
  861. ildouble: 2
  862. ldouble: 2
  863. Test "yn (10, 0.75) == -2133501638.90573424452445412893839236":
  864. double: 1
  865. float: 1
  866. idouble: 1
  867. ifloat: 1
  868. ildouble: 4
  869. ldouble: 4
  870. Test "yn (10, 1.0) == -121618014.278689189288130426667971145":
  871. double: 1
  872. idouble: 1
  873. Test "yn (10, 10.0) == -0.359814152183402722051986577343560609":
  874. double: 1
  875. float: 1
  876. idouble: 1
  877. ifloat: 1
  878. Test "yn (10, 2.0) == -129184.542208039282635913145923304214":
  879. double: 2
  880. idouble: 2
  881. Test "yn (3, 0.125) == -2612.69757350066712600220955744091741":
  882. double: 1
  883. idouble: 1
  884. ildouble: 1
  885. ldouble: 1
  886. Test "yn (3, 0.75) == -12.9877176234475433186319774484809207":
  887. double: 1
  888. float: 1
  889. idouble: 1
  890. ifloat: 1
  891. ildouble: 2
  892. ldouble: 2
  893. Test "yn (3, 10.0) == -0.251362657183837329779204747654240998":
  894. double: 1
  895. float: 1
  896. idouble: 1
  897. ifloat: 1
  898. Test "yn (3, 2.0) == -1.12778377684042778608158395773179238":
  899. double: 1
  900. idouble: 1
  901. # Maximal error of functions:
  902. Function: "acos":
  903. ildouble: 1
  904. ldouble: 1
  905. Function: "asin":
  906. ildouble: 1
  907. ldouble: 1
  908. Function: "atan2":
  909. float: 1
  910. ifloat: 1
  911. Function: "atanh":
  912. float: 1
  913. ifloat: 1
  914. ildouble: 1
  915. ldouble: 1
  916. Function: Imaginary part of "cacos":
  917. float: 1
  918. ifloat: 1
  919. ildouble: 2
  920. ldouble: 2
  921. Function: Real part of "cacosh":
  922. double: 1
  923. float: 7
  924. idouble: 1
  925. ifloat: 7
  926. ildouble: 6
  927. ldouble: 6
  928. Function: Imaginary part of "cacosh":
  929. double: 1
  930. float: 3
  931. idouble: 1
  932. ifloat: 3
  933. ildouble: 1
  934. ldouble: 1
  935. Function: Real part of "casin":
  936. double: 1
  937. float: 1
  938. idouble: 1
  939. ifloat: 1
  940. ildouble: 2
  941. ldouble: 2
  942. Function: Imaginary part of "casin":
  943. float: 1
  944. ifloat: 1
  945. ildouble: 2
  946. ldouble: 2
  947. Function: Real part of "casinh":
  948. double: 5
  949. float: 1
  950. idouble: 5
  951. ifloat: 1
  952. ildouble: 5
  953. ldouble: 5
  954. Function: Imaginary part of "casinh":
  955. double: 3
  956. float: 6
  957. idouble: 3
  958. ifloat: 6
  959. ildouble: 5
  960. ldouble: 5
  961. Function: Real part of "catan":
  962. float: 4
  963. ifloat: 4
  964. Function: Imaginary part of "catan":
  965. double: 1
  966. float: 1
  967. idouble: 1
  968. ifloat: 1
  969. Function: Real part of "catanh":
  970. double: 4
  971. idouble: 4
  972. ildouble: 1
  973. ldouble: 1
  974. Function: Imaginary part of "catanh":
  975. float: 6
  976. ifloat: 6
  977. Function: "cbrt":
  978. double: 1
  979. idouble: 1
  980. ildouble: 1
  981. ldouble: 1
  982. Function: Real part of "ccos":
  983. double: 1
  984. float: 1
  985. idouble: 1
  986. ifloat: 1
  987. ildouble: 1
  988. ldouble: 1
  989. Function: Imaginary part of "ccos":
  990. float: 1
  991. ifloat: 1
  992. ildouble: 1
  993. ldouble: 1
  994. Function: Real part of "ccosh":
  995. double: 1
  996. float: 1
  997. idouble: 1
  998. ifloat: 1
  999. Function: Imaginary part of "ccosh":
  1000. double: 1
  1001. float: 1
  1002. idouble: 1
  1003. ifloat: 1
  1004. ildouble: 1
  1005. ldouble: 1
  1006. Function: Real part of "cexp":
  1007. float: 1
  1008. ifloat: 1
  1009. Function: Imaginary part of "cexp":
  1010. float: 1
  1011. ifloat: 1
  1012. ildouble: 1
  1013. ldouble: 1
  1014. Function: Real part of "clog":
  1015. float: 1
  1016. ifloat: 1
  1017. ildouble: 1
  1018. ldouble: 1
  1019. Function: Imaginary part of "clog":
  1020. float: 3
  1021. ifloat: 3
  1022. Function: Real part of "clog10":
  1023. double: 1
  1024. float: 1
  1025. idouble: 1
  1026. ifloat: 1
  1027. ildouble: 1
  1028. ldouble: 1
  1029. Function: Imaginary part of "clog10":
  1030. double: 1
  1031. float: 5
  1032. idouble: 1
  1033. ifloat: 5
  1034. ildouble: 1
  1035. ldouble: 1
  1036. Function: "cos":
  1037. double: 2
  1038. float: 1
  1039. idouble: 2
  1040. ifloat: 1
  1041. ildouble: 1
  1042. ldouble: 1
  1043. Function: Real part of "cpow":
  1044. double: 2
  1045. float: 5
  1046. idouble: 2
  1047. ifloat: 5
  1048. ildouble: 5
  1049. ldouble: 5
  1050. Function: Imaginary part of "cpow":
  1051. double: 2
  1052. float: 2
  1053. idouble: 2
  1054. ifloat: 2
  1055. ildouble: 2
  1056. ldouble: 2
  1057. Function: Real part of "csin":
  1058. ildouble: 1
  1059. ldouble: 1
  1060. Function: Imaginary part of "csin":
  1061. double: 1
  1062. float: 1
  1063. idouble: 1
  1064. ifloat: 1
  1065. Function: Real part of "csinh":
  1066. double: 1
  1067. float: 1
  1068. idouble: 1
  1069. ifloat: 1
  1070. ildouble: 1
  1071. ldouble: 1
  1072. Function: Imaginary part of "csinh":
  1073. double: 1
  1074. float: 1
  1075. idouble: 1
  1076. ifloat: 1
  1077. ildouble: 2
  1078. ldouble: 2
  1079. Function: Real part of "csqrt":
  1080. float: 1
  1081. ifloat: 1
  1082. Function: Real part of "ctan":
  1083. double: 1
  1084. idouble: 1
  1085. ildouble: 439
  1086. ldouble: 439
  1087. Function: Imaginary part of "ctan":
  1088. double: 1
  1089. float: 1
  1090. idouble: 1
  1091. ifloat: 1
  1092. ildouble: 3
  1093. ldouble: 3
  1094. Function: Real part of "ctanh":
  1095. double: 1
  1096. float: 2
  1097. idouble: 1
  1098. ifloat: 2
  1099. ildouble: 5
  1100. ldouble: 5
  1101. Function: Imaginary part of "ctanh":
  1102. float: 1
  1103. ifloat: 1
  1104. ildouble: 25
  1105. ldouble: 25
  1106. double: 1
  1107. idouble: 1
  1108. Function: "erf":
  1109. double: 1
  1110. idouble: 1
  1111. Function: "erfc":
  1112. double: 1
  1113. idouble: 1
  1114. ildouble: 1
  1115. ldouble: 1
  1116. Function: "exp10":
  1117. ildouble: 8
  1118. ldouble: 8
  1119. float: 2
  1120. ifloat: 2
  1121. double: 6
  1122. idouble: 6
  1123. Function: "expm1":
  1124. double: 1
  1125. float: 1
  1126. idouble: 1
  1127. ifloat: 1
  1128. Function: "gamma":
  1129. ildouble: 1
  1130. ldouble: 1
  1131. Function: "hypot":
  1132. float: 1
  1133. ifloat: 1
  1134. Function: "j0":
  1135. double: 2
  1136. float: 2
  1137. idouble: 2
  1138. ifloat: 2
  1139. ildouble: 1
  1140. ldouble: 1
  1141. Function: "j1":
  1142. double: 1
  1143. float: 2
  1144. idouble: 1
  1145. ifloat: 2
  1146. ildouble: 1
  1147. ldouble: 1
  1148. Function: "jn":
  1149. double: 4
  1150. float: 4
  1151. idouble: 4
  1152. ifloat: 4
  1153. ildouble: 2
  1154. ldouble: 2
  1155. Function: "lgamma":
  1156. double: 1
  1157. float: 2
  1158. idouble: 1
  1159. ifloat: 2
  1160. ildouble: 1
  1161. ldouble: 1
  1162. Function: "log10":
  1163. float: 2
  1164. ifloat: 2
  1165. ildouble: 1
  1166. ldouble: 1
  1167. double: 1
  1168. idouble: 1
  1169. Function: "log1p":
  1170. float: 1
  1171. ifloat: 1
  1172. Function: "sincos":
  1173. double: 1
  1174. float: 1
  1175. idouble: 1
  1176. ifloat: 1
  1177. ildouble: 1
  1178. ldouble: 1
  1179. Function: "tan":
  1180. double: 1
  1181. idouble: 1
  1182. Function: "tgamma":
  1183. double: 1
  1184. float: 1
  1185. idouble: 1
  1186. ifloat: 1
  1187. ildouble: 1
  1188. ldouble: 1
  1189. Function: "y0":
  1190. double: 2
  1191. float: 1
  1192. idouble: 2
  1193. ifloat: 1
  1194. ildouble: 1
  1195. ldouble: 1
  1196. Function: "y1":
  1197. double: 3
  1198. float: 2
  1199. idouble: 3
  1200. ifloat: 2
  1201. ildouble: 1
  1202. ldouble: 1
  1203. Function: "yn":
  1204. double: 3
  1205. float: 2
  1206. idouble: 3
  1207. ifloat: 2
  1208. ildouble: 4
  1209. ldouble: 4
  1210. # end of automatic generation