Average Error: 1.0 → 0.0
Time: 3.6s
Precision: binary64
\[\]
\[\]

Error

Bits error versus g

Bits error versus h

Derivation

  1. Initial program 1.0

    \[\]
  2. Using strategy rm
  3. Applied frac-add1.0

    \[\leadsto \]
  4. Simplified1.0

    \[\leadsto \]
  5. Using strategy rm
  6. Applied add-log-exp1.0

    \[\leadsto \]
  7. Simplified1.0

    \[\leadsto \]
  8. Using strategy rm
  9. Applied *-un-lft-identity1.0

    \[\leadsto \]
  10. Applied exp-prod0.0

    \[\leadsto \]
  11. Simplified0.0

    \[\leadsto \]
  12. Final simplification0.0

    \[\leadsto \]

Reproduce

herbie shell --seed 2020191 
(FPCore (g h)
  :name "2-ancestry mixing, negative discriminant"
  :precision binary64
  (* 2.0 (cos (+ (/ (* 2.0 PI) 3.0) (/ (acos (/ (neg g) h)) 3.0)))))