real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = ((x * x) / (y * y)) + ((z * z) / (t * t))
end function
↓
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = ((x / y) / (y / x)) + ((z / t) * (z / t))
end function
(+.f64 (*.f64 (/.f64 x y) (/.f64 x y)) (*.f64 (/.f64 z t) (/.f64 z t))): 0 points increase in error, 0 points decrease in error
(+.f64 (Rewrite<= times-frac_binary64 (/.f64 (*.f64 x x) (*.f64 y y))) (*.f64 (/.f64 z t) (/.f64 z t))): 77 points increase in error, 15 points decrease in error
(+.f64 (/.f64 (*.f64 x x) (*.f64 y y)) (Rewrite<= times-frac_binary64 (/.f64 (*.f64 z z) (*.f64 t t)))): 62 points increase in error, 6 points decrease in error
herbie shell --seed 2022329
(FPCore (x y z t)
:name "Graphics.Rasterific.Svg.PathConverter:arcToSegments from rasterific-svg-0.2.3.1"
:precision binary64
:herbie-target
(+ (pow (/ x y) 2.0) (pow (/ z t) 2.0))
(+ (/ (* x x) (* y y)) (/ (* z z) (* t t))))