Average Error: 0.5 → 0.6
Time: 1.0m
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)_*}{(\left(v \cdot -5\right) \cdot v + 1)_*}}\right)\]

Error

Bits error versus v

Derivation

  1. Initial program 0.5

    \[\cos^{-1} \left(\frac{1 - 5 \cdot \left(v \cdot v\right)}{v \cdot v - 1}\right)\]
  2. Initial simplification0.5

    \[\leadsto \cos^{-1} \left(\frac{(\left(-5 \cdot v\right) \cdot v + 1)_*}{(v \cdot v + -1)_*}\right)\]
  3. Using strategy rm
  4. Applied clear-num0.6

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

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

Runtime

Time bar (total: 1.0m)Debug logProfile

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