libm-test-ulps-sh 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # Begin of automatic generation
  2. # cos
  3. Test "cos (M_PI_6l * 2.0) == 0.5":
  4. double: 1
  5. idouble: 1
  6. Test "cos (M_PI_6l * 4.0) == -0.5":
  7. double: 2
  8. idouble: 2
  9. # erf
  10. Test "erf (0.75) == 0.711155633653515131598937834591410777":
  11. double: 1
  12. idouble: 1
  13. Test "erf (1.25) == 0.922900128256458230136523481197281140":
  14. double: 1
  15. idouble: 1
  16. # erfc
  17. Test "erfc (4.125) == 0.542340079956506600531223408575531062e-8":
  18. double: 1
  19. idouble: 1
  20. # exp
  21. Test "exp (1) == e":
  22. double: 1
  23. idouble: 1
  24. # expm1
  25. Test "expm1 (0.75) == 1.11700001661267466854536981983709561":
  26. double: 1
  27. idouble: 1
  28. # lgamma
  29. Test "lgamma (0.7) == 0.260867246531666514385732417016759578":
  30. double: 1
  31. idouble: 1
  32. Test "lgamma (1.2) == -0.853740900033158497197028392998854470e-1":
  33. double: 1
  34. idouble: 1
  35. # log10
  36. Test "log10 (0.75) == -0.124938736608299953132449886193870744":
  37. double: 1
  38. idouble: 1
  39. # tgamma
  40. Test "tgamma (-0.5) == -2 sqrt (pi)":
  41. double: 1
  42. idouble: 1
  43. Test "tgamma (0.7) == 1.29805533264755778568117117915281162":
  44. double: 1
  45. idouble: 1
  46. # Maximal error of functions:
  47. Function: "cos":
  48. double: 2
  49. idouble: 2
  50. Function: "erf":
  51. double: 1
  52. idouble: 1
  53. Function: "erfc":
  54. double: 1
  55. idouble: 1
  56. Function: "exp":
  57. double: 1
  58. idouble: 1
  59. Function: "expm1":
  60. double: 1
  61. idouble: 1
  62. Function: "lgamma":
  63. double: 1
  64. idouble: 1
  65. Function: "log10":
  66. double: 1
  67. idouble: 1
  68. Function: "tan":
  69. double: 1
  70. idouble: 1
  71. Function: "tgamma":
  72. double: 1
  73. idouble: 1
  74. # end of automatic generation