Average Error: 0.5 → 0.5
Time: 23.7s
Precision: 64
Internal Precision: 576
\[\cos^{-1} \left(\frac{1 - 5 \cdot \left(v \cdot v\right)}{v \cdot v - 1}\right)\]
\[e^{\log_* (1 + \cos^{-1} \left(\frac{1 - \left(v \cdot v\right) \cdot 5}{v \cdot v - 1}\right))} - 1\]

Error

Bits error versus v

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.5

    \[\cos^{-1} \left(\frac{1 - 5 \cdot \left(v \cdot v\right)}{v \cdot v - 1}\right)\]
  2. Using strategy rm
  3. Applied expm1-log1p-u0.5

    \[\leadsto \color{blue}{(e^{\log_* (1 + \cos^{-1} \left(\frac{1 - 5 \cdot \left(v \cdot v\right)}{v \cdot v - 1}\right))} - 1)^*}\]
  4. Using strategy rm
  5. Applied expm1-udef0.5

    \[\leadsto \color{blue}{e^{\log_* (1 + \cos^{-1} \left(\frac{1 - 5 \cdot \left(v \cdot v\right)}{v \cdot v - 1}\right))} - 1}\]
  6. Final simplification0.5

    \[\leadsto e^{\log_* (1 + \cos^{-1} \left(\frac{1 - \left(v \cdot v\right) \cdot 5}{v \cdot v - 1}\right))} - 1\]

Runtime

Time bar (total: 23.7s)Debug logProfile

BaselineHerbieOracleSpan%
Regimes0.50.50.50.00%
herbie shell --seed 2018290 +o rules:numerics
(FPCore (v)
  :name "Falkner and Boettcher, Appendix B, 1"
  (acos (/ (- 1 (* 5 (* v v))) (- (* v v) 1))))