Average Error: 0.0 → 0.0
Time: 1.6m
Precision: 64
Internal Precision: 128
\[\left(\frac{\sqrt{2}}{4} \cdot \sqrt{1 - 3 \cdot \left(v \cdot v\right)}\right) \cdot \left(1 - v \cdot v\right)\]
\[\frac{\sqrt{(\left(v \cdot v\right) \cdot -3 + 1)_*} \cdot \left(\left(1 - {v}^{4}\right) \cdot \sqrt{2}\right)}{(\left(v \cdot v\right) \cdot 4 + 4)_*}\]

Error

Bits error versus v

Derivation

  1. Initial program 0.0

    \[\left(\frac{\sqrt{2}}{4} \cdot \sqrt{1 - 3 \cdot \left(v \cdot v\right)}\right) \cdot \left(1 - v \cdot v\right)\]
  2. Using strategy rm
  3. Applied flip--0.0

    \[\leadsto \left(\frac{\sqrt{2}}{4} \cdot \sqrt{1 - 3 \cdot \left(v \cdot v\right)}\right) \cdot \color{blue}{\frac{1 \cdot 1 - \left(v \cdot v\right) \cdot \left(v \cdot v\right)}{1 + v \cdot v}}\]
  4. Applied associate-*l/0.0

    \[\leadsto \color{blue}{\frac{\sqrt{2} \cdot \sqrt{1 - 3 \cdot \left(v \cdot v\right)}}{4}} \cdot \frac{1 \cdot 1 - \left(v \cdot v\right) \cdot \left(v \cdot v\right)}{1 + v \cdot v}\]
  5. Applied frac-times0.0

    \[\leadsto \color{blue}{\frac{\left(\sqrt{2} \cdot \sqrt{1 - 3 \cdot \left(v \cdot v\right)}\right) \cdot \left(1 \cdot 1 - \left(v \cdot v\right) \cdot \left(v \cdot v\right)\right)}{4 \cdot \left(1 + v \cdot v\right)}}\]
  6. Simplified0.0

    \[\leadsto \frac{\color{blue}{\left(\sqrt{2} \cdot \left(1 - {v}^{4}\right)\right) \cdot \sqrt{(\left(v \cdot v\right) \cdot -3 + 1)_*}}}{4 \cdot \left(1 + v \cdot v\right)}\]
  7. Simplified0.0

    \[\leadsto \frac{\left(\sqrt{2} \cdot \left(1 - {v}^{4}\right)\right) \cdot \sqrt{(\left(v \cdot v\right) \cdot -3 + 1)_*}}{\color{blue}{(\left(v \cdot v\right) \cdot 4 + 4)_*}}\]
  8. Final simplification0.0

    \[\leadsto \frac{\sqrt{(\left(v \cdot v\right) \cdot -3 + 1)_*} \cdot \left(\left(1 - {v}^{4}\right) \cdot \sqrt{2}\right)}{(\left(v \cdot v\right) \cdot 4 + 4)_*}\]

Runtime

Time bar (total: 1.6m)Debug logProfile

herbie shell --seed 2018274 +o rules:numerics
(FPCore (v)
  :name "Falkner and Boettcher, Appendix B, 2"
  (* (* (/ (sqrt 2) 4) (sqrt (- 1 (* 3 (* v v))))) (- 1 (* v v))))