The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.
if (-.f64 (*.f64 y z) (*.f64 t z)) < -4.00000000000000007e198 or -9.99999999999999985e-119 < (-.f64 (*.f64 y z) (*.f64 t z)) < -0.0 or 5.0000000000000002e268 < (-.f64 (*.f64 y z) (*.f64 t z))
if -4.00000000000000007e198 < (-.f64 (*.f64 y z) (*.f64 t z)) < -9.99999999999999985e-119 or -0.0 < (-.f64 (*.f64 y z) (*.f64 t z)) < 5.0000000000000002e268
herbie shell --seed 2023160
(FPCore (x y z t)
:name "Linear.Projection:infinitePerspective from linear-1.19.1.3, A"
:precision binary64
:herbie-target
(if (< (/ (* x 2.0) (- (* y z) (* t z))) -2.559141628295061e-13) (* (/ x (* (- y t) z)) 2.0) (if (< (/ (* x 2.0) (- (* y z) (* t z))) 1.045027827330126e-269) (/ (* (/ x z) 2.0) (- y t)) (* (/ x (* (- y t) z)) 2.0)))
(/ (* x 2.0) (- (* y z) (* t z))))