libm-test-ulps-arc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. # Begin of automatic generation
  2. # cos
  3. Test "cos (M_PI_6l * 2.0) == 0.5":
  4. idouble: 1
  5. Test "cos (M_PI_6l * 4.0) == -0.5":
  6. double: 2
  7. float: 1
  8. idouble: 2
  9. ifloat: 1
  10. # erf
  11. Test "erf (0.75) == 0.711155633653515131598937834591410777":
  12. double: 1
  13. idouble: 1
  14. Test "erf (1.25) == 0.922900128256458230136523481197281140":
  15. double: 1
  16. idouble: 1
  17. # erfc
  18. Test "erfc (4.125) == 0.542340079956506600531223408575531062e-8":
  19. double: 1
  20. idouble: 1
  21. # exp
  22. Test "exp (1) == e":
  23. double: 1
  24. idouble: 1
  25. # expm1
  26. Test "expm1 (0.75) == 1.11700001661267466854536981983709561":
  27. double: 1
  28. idouble: 1
  29. # hypot
  30. Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
  31. float: 1
  32. ifloat: 1
  33. Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
  34. float: 1
  35. ifloat: 1
  36. Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
  37. float: 1
  38. ifloat: 1
  39. Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
  40. float: 1
  41. ifloat: 1
  42. Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
  43. float: 1
  44. ifloat: 1
  45. Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
  46. float: 1
  47. ifloat: 1
  48. Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
  49. float: 1
  50. ifloat: 1
  51. Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
  52. float: 1
  53. ifloat: 1
  54. # lgamma
  55. Test "lgamma (0.7) == 0.260867246531666514385732417016759578":
  56. double: 1
  57. float: 1
  58. idouble: 1
  59. ifloat: 1
  60. Test "lgamma (1.2) == -0.853740900033158497197028392998854470e-1":
  61. double: 1
  62. float: 2
  63. idouble: 1
  64. ifloat: 2
  65. # log10
  66. Test "log10 (0.75) == -0.124938736608299953132449886193870744":
  67. double: 1
  68. idouble: 1
  69. Test "log10 (e) == log10(e)":
  70. float: 1
  71. ifloat: 1
  72. # tgamma
  73. Test "tgamma (-0.5) == -2 sqrt (pi)":
  74. double: 1
  75. idouble: 1
  76. Test "tgamma (0.7) == 1.29805533264755778568117117915281162":
  77. double: 1
  78. float: 1
  79. idouble: 1
  80. ifloat: 1
  81. # Maximal error of functions:
  82. Function: "cos":
  83. double: 2
  84. float: 1
  85. idouble: 2
  86. ifloat: 1
  87. Function: "erf":
  88. double: 1
  89. idouble: 1
  90. Function: "erfc":
  91. double: 1
  92. idouble: 1
  93. Function: "exp":
  94. double: 1
  95. idouble: 1
  96. Function: "expm1":
  97. double: 1
  98. idouble: 1
  99. Function: "hypot":
  100. float: 1
  101. ifloat: 1
  102. Function: "lgamma":
  103. double: 1
  104. float: 2
  105. idouble: 1
  106. ifloat: 2
  107. Function: "log":
  108. float: 1
  109. ifloat: 1
  110. Function: "log10":
  111. double: 1
  112. float: 1
  113. idouble: 1
  114. ifloat: 1
  115. Function: "tan":
  116. double: 1
  117. idouble: 1
  118. Function: "tgamma":
  119. double: 1
  120. float: 1
  121. idouble: 1
  122. ifloat: 1
  123. # end of automatic generation