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

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 *-un-lft-identity0.5

    \[\leadsto \cos^{-1} \left(\frac{\color{blue}{1 \cdot \left(1 - 5 \cdot \left(v \cdot v\right)\right)}}{v \cdot v - 1}\right)\]
  4. Applied associate-/l*0.6

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

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

Runtime

Time bar (total: 24.7s)Debug logProfile

herbie shell --seed 2018249 
(FPCore (v)
  :name "Falkner and Boettcher, Appendix B, 1"
  (acos (/ (- 1 (* 5 (* v v))) (- (* v v) 1))))