(FPCore (x y z t)
:precision binary64
(+ (/ (* x x) (* y y)) (/ (* z z) (* t t))))
↓
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ (* (/ x y) (/ x y)) (/ z (* t (/ t z)))))
(t_2 (+ (/ (* z (/ z t)) t) (/ (/ x y) (/ y x)))))
(if (<= t -6.198516607574852e+250)
t_2
(if (<= t -2e-212)
t_1
(if (<= t 1e-161)
(+ (pow (/ z t) 2.0) (* x (/ (/ x y) y)))
(if (<= t 2.704629184144483e+172) t_1 t_2))))))
(fma.f64 x (/.f64 x (*.f64 y y)) (/.f64 z (/.f64 (*.f64 t t) z))): 0 points increase in error, 0 points decrease in error
(fma.f64 x (/.f64 x (*.f64 y y)) (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 z z) (*.f64 t t)))): 55 points increase in error, 12 points decrease in error
(Rewrite<= fma-def_binary64 (+.f64 (*.f64 x (/.f64 x (*.f64 y y))) (/.f64 (*.f64 z z) (*.f64 t t)))): 1 points increase in error, 0 points decrease in error
(+.f64 (Rewrite=> associate-*r/_binary64 (/.f64 (*.f64 x x) (*.f64 y y))) (/.f64 (*.f64 z z) (*.f64 t t))): 39 points increase in error, 5 points decrease in error
Applied egg-rr5.3
\[\leadsto \color{blue}{{\left(\frac{z}{t}\right)}^{2} + x \cdot \frac{\frac{x}{y}}{y}}
\]
Applied egg-rr7.4
\[\leadsto \color{blue}{\frac{\frac{z}{t} \cdot z}{t}} + x \cdot \frac{\frac{x}{y}}{y}
\]
(fma.f64 x (/.f64 x (*.f64 y y)) (/.f64 z (/.f64 (*.f64 t t) z))): 0 points increase in error, 0 points decrease in error
(fma.f64 x (/.f64 x (*.f64 y y)) (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 z z) (*.f64 t t)))): 55 points increase in error, 12 points decrease in error
(Rewrite<= fma-def_binary64 (+.f64 (*.f64 x (/.f64 x (*.f64 y y))) (/.f64 (*.f64 z z) (*.f64 t t)))): 1 points increase in error, 0 points decrease in error
(+.f64 (Rewrite=> associate-*r/_binary64 (/.f64 (*.f64 x x) (*.f64 y y))) (/.f64 (*.f64 z z) (*.f64 t t))): 39 points increase in error, 5 points decrease in error
Applied egg-rr2.7
\[\leadsto \color{blue}{{\left(\frac{z}{t}\right)}^{2} + x \cdot \frac{\frac{x}{y}}{y}}
\]
herbie shell --seed 2022316
(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))))