libm-test-ulps-sparc64 27 KB

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