Initial program 51.8
\[\frac{c0}{2 \cdot w} \cdot \left(\frac{c0 \cdot \left(d \cdot d\right)}{\left(w \cdot h\right) \cdot \left(D \cdot D\right)} + \sqrt{\frac{c0 \cdot \left(d \cdot d\right)}{\left(w \cdot h\right) \cdot \left(D \cdot D\right)} \cdot \frac{c0 \cdot \left(d \cdot d\right)}{\left(w \cdot h\right) \cdot \left(D \cdot D\right)} - M \cdot M}\right)
\]
Simplified57.9
\[\leadsto \color{blue}{\frac{\frac{c0}{2}}{w} \cdot \mathsf{fma}\left(d \cdot d, \frac{c0}{w \cdot \left(h \cdot \left(D \cdot D\right)\right)}, \sqrt{\mathsf{fma}\left(\frac{c0}{w \cdot h}, \frac{c0}{w \cdot h} \cdot {\left(\frac{d}{D}\right)}^{4}, M \cdot \left(-M\right)\right)}\right)}
\]
Proof
(*.f64 (/.f64 (/.f64 c0 2) w) (fma.f64 (*.f64 d d) (/.f64 c0 (*.f64 w (*.f64 h (*.f64 D D)))) (sqrt.f64 (fma.f64 (/.f64 c0 (*.f64 w h)) (*.f64 (/.f64 c0 (*.f64 w h)) (pow.f64 (/.f64 d D) 4)) (*.f64 M (neg.f64 M)))))): 0 points increase in error, 0 points decrease in error
(*.f64 (Rewrite<= associate-/r*_binary64 (/.f64 c0 (*.f64 2 w))) (fma.f64 (*.f64 d d) (/.f64 c0 (*.f64 w (*.f64 h (*.f64 D D)))) (sqrt.f64 (fma.f64 (/.f64 c0 (*.f64 w h)) (*.f64 (/.f64 c0 (*.f64 w h)) (pow.f64 (/.f64 d D) 4)) (*.f64 M (neg.f64 M)))))): 0 points increase in error, 0 points decrease in error
(*.f64 (/.f64 c0 (*.f64 2 w)) (fma.f64 (*.f64 d d) (/.f64 c0 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 w h) (*.f64 D D)))) (sqrt.f64 (fma.f64 (/.f64 c0 (*.f64 w h)) (*.f64 (/.f64 c0 (*.f64 w h)) (pow.f64 (/.f64 d D) 4)) (*.f64 M (neg.f64 M)))))): 2 points increase in error, 4 points decrease in error
(*.f64 (/.f64 c0 (*.f64 2 w)) (fma.f64 (*.f64 d d) (/.f64 c0 (*.f64 (*.f64 w h) (*.f64 D D))) (sqrt.f64 (fma.f64 (/.f64 c0 (*.f64 w h)) (*.f64 (/.f64 c0 (*.f64 w h)) (pow.f64 (/.f64 d D) (Rewrite<= metadata-eval (+.f64 3 1)))) (*.f64 M (neg.f64 M)))))): 0 points increase in error, 0 points decrease in error
(*.f64 (/.f64 c0 (*.f64 2 w)) (fma.f64 (*.f64 d d) (/.f64 c0 (*.f64 (*.f64 w h) (*.f64 D D))) (sqrt.f64 (fma.f64 (/.f64 c0 (*.f64 w h)) (*.f64 (/.f64 c0 (*.f64 w h)) (Rewrite<= pow-plus_binary64 (*.f64 (pow.f64 (/.f64 d D) 3) (/.f64 d D)))) (*.f64 M (neg.f64 M)))))): 0 points increase in error, 1 points decrease in error
(*.f64 (/.f64 c0 (*.f64 2 w)) (fma.f64 (*.f64 d d) (/.f64 c0 (*.f64 (*.f64 w h) (*.f64 D D))) (sqrt.f64 (fma.f64 (/.f64 c0 (*.f64 w h)) (*.f64 (/.f64 c0 (*.f64 w h)) (*.f64 (Rewrite=> unpow3_binary64 (*.f64 (*.f64 (/.f64 d D) (/.f64 d D)) (/.f64 d D))) (/.f64 d D))) (*.f64 M (neg.f64 M)))))): 0 points increase in error, 0 points decrease in error
(*.f64 (/.f64 c0 (*.f64 2 w)) (fma.f64 (*.f64 d d) (/.f64 c0 (*.f64 (*.f64 w h) (*.f64 D D))) (sqrt.f64 (fma.f64 (/.f64 c0 (*.f64 w h)) (*.f64 (/.f64 c0 (*.f64 w h)) (*.f64 (*.f64 (Rewrite<= times-frac_binary64 (/.f64 (*.f64 d d) (*.f64 D D))) (/.f64 d D)) (/.f64 d D))) (*.f64 M (neg.f64 M)))))): 1 points increase in error, 4 points decrease in error
(*.f64 (/.f64 c0 (*.f64 2 w)) (fma.f64 (*.f64 d d) (/.f64 c0 (*.f64 (*.f64 w h) (*.f64 D D))) (sqrt.f64 (fma.f64 (/.f64 c0 (*.f64 w h)) (*.f64 (/.f64 c0 (*.f64 w h)) (Rewrite<= associate-*r*_binary64 (*.f64 (/.f64 (*.f64 d d) (*.f64 D D)) (*.f64 (/.f64 d D) (/.f64 d D))))) (*.f64 M (neg.f64 M)))))): 1 points increase in error, 1 points decrease in error
(*.f64 (/.f64 c0 (*.f64 2 w)) (fma.f64 (*.f64 d d) (/.f64 c0 (*.f64 (*.f64 w h) (*.f64 D D))) (sqrt.f64 (fma.f64 (/.f64 c0 (*.f64 w h)) (*.f64 (/.f64 c0 (*.f64 w h)) (*.f64 (/.f64 (*.f64 d d) (*.f64 D D)) (Rewrite<= times-frac_binary64 (/.f64 (*.f64 d d) (*.f64 D D))))) (*.f64 M (neg.f64 M)))))): 2 points increase in error, 0 points decrease in error
(*.f64 (/.f64 c0 (*.f64 2 w)) (fma.f64 (*.f64 d d) (/.f64 c0 (*.f64 (*.f64 w h) (*.f64 D D))) (sqrt.f64 (fma.f64 (/.f64 c0 (*.f64 w h)) (*.f64 (/.f64 c0 (*.f64 w h)) (*.f64 (/.f64 (*.f64 d d) (*.f64 D D)) (/.f64 (*.f64 d d) (*.f64 D D)))) (Rewrite<= distribute-rgt-neg-in_binary64 (neg.f64 (*.f64 M M))))))): 0 points increase in error, 0 points decrease in error
(*.f64 (/.f64 c0 (*.f64 2 w)) (fma.f64 (*.f64 d d) (/.f64 c0 (*.f64 (*.f64 w h) (*.f64 D D))) (sqrt.f64 (Rewrite<= fma-neg_binary64 (-.f64 (*.f64 (/.f64 c0 (*.f64 w h)) (*.f64 (/.f64 c0 (*.f64 w h)) (*.f64 (/.f64 (*.f64 d d) (*.f64 D D)) (/.f64 (*.f64 d d) (*.f64 D D))))) (*.f64 M M)))))): 0 points increase in error, 0 points decrease in error
(*.f64 (/.f64 c0 (*.f64 2 w)) (fma.f64 (*.f64 d d) (/.f64 c0 (*.f64 (*.f64 w h) (*.f64 D D))) (sqrt.f64 (-.f64 (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 (/.f64 c0 (*.f64 w h)) (/.f64 c0 (*.f64 w h))) (*.f64 (/.f64 (*.f64 d d) (*.f64 D D)) (/.f64 (*.f64 d d) (*.f64 D D))))) (*.f64 M M))))): 3 points increase in error, 0 points decrease in error
(*.f64 (/.f64 c0 (*.f64 2 w)) (fma.f64 (*.f64 d d) (/.f64 c0 (*.f64 (*.f64 w h) (*.f64 D D))) (sqrt.f64 (-.f64 (Rewrite<= swap-sqr_binary64 (*.f64 (*.f64 (/.f64 c0 (*.f64 w h)) (/.f64 (*.f64 d d) (*.f64 D D))) (*.f64 (/.f64 c0 (*.f64 w h)) (/.f64 (*.f64 d d) (*.f64 D D))))) (*.f64 M M))))): 1 points increase in error, 7 points decrease in error
(*.f64 (/.f64 c0 (*.f64 2 w)) (fma.f64 (*.f64 d d) (/.f64 c0 (*.f64 (*.f64 w h) (*.f64 D D))) (sqrt.f64 (-.f64 (*.f64 (Rewrite<= times-frac_binary64 (/.f64 (*.f64 c0 (*.f64 d d)) (*.f64 (*.f64 w h) (*.f64 D D)))) (*.f64 (/.f64 c0 (*.f64 w h)) (/.f64 (*.f64 d d) (*.f64 D D)))) (*.f64 M M))))): 5 points increase in error, 0 points decrease in error
(*.f64 (/.f64 c0 (*.f64 2 w)) (fma.f64 (*.f64 d d) (/.f64 c0 (*.f64 (*.f64 w h) (*.f64 D D))) (sqrt.f64 (-.f64 (*.f64 (/.f64 (*.f64 c0 (*.f64 d d)) (*.f64 (*.f64 w h) (*.f64 D D))) (Rewrite<= times-frac_binary64 (/.f64 (*.f64 c0 (*.f64 d d)) (*.f64 (*.f64 w h) (*.f64 D D))))) (*.f64 M M))))): 1 points increase in error, 6 points decrease in error
(*.f64 (/.f64 c0 (*.f64 2 w)) (Rewrite<= fma-def_binary64 (+.f64 (*.f64 (*.f64 d d) (/.f64 c0 (*.f64 (*.f64 w h) (*.f64 D D)))) (sqrt.f64 (-.f64 (*.f64 (/.f64 (*.f64 c0 (*.f64 d d)) (*.f64 (*.f64 w h) (*.f64 D D))) (/.f64 (*.f64 c0 (*.f64 d d)) (*.f64 (*.f64 w h) (*.f64 D D)))) (*.f64 M M)))))): 2 points increase in error, 4 points decrease in error
(*.f64 (/.f64 c0 (*.f64 2 w)) (+.f64 (Rewrite<= *-commutative_binary64 (*.f64 (/.f64 c0 (*.f64 (*.f64 w h) (*.f64 D D))) (*.f64 d d))) (sqrt.f64 (-.f64 (*.f64 (/.f64 (*.f64 c0 (*.f64 d d)) (*.f64 (*.f64 w h) (*.f64 D D))) (/.f64 (*.f64 c0 (*.f64 d d)) (*.f64 (*.f64 w h) (*.f64 D D)))) (*.f64 M M))))): 0 points increase in error, 0 points decrease in error
(*.f64 (/.f64 c0 (*.f64 2 w)) (+.f64 (Rewrite=> associate-*l/_binary64 (/.f64 (*.f64 c0 (*.f64 d d)) (*.f64 (*.f64 w h) (*.f64 D D)))) (sqrt.f64 (-.f64 (*.f64 (/.f64 (*.f64 c0 (*.f64 d d)) (*.f64 (*.f64 w h) (*.f64 D D))) (/.f64 (*.f64 c0 (*.f64 d d)) (*.f64 (*.f64 w h) (*.f64 D D)))) (*.f64 M M))))): 0 points increase in error, 5 points decrease in error
Taylor expanded in d around inf 47.7
\[\leadsto \frac{\frac{c0}{2}}{w} \cdot \color{blue}{\left(2 \cdot \frac{{d}^{2} \cdot c0}{{D}^{2} \cdot \left(w \cdot h\right)}\right)}
\]
Simplified43.8
\[\leadsto \frac{\frac{c0}{2}}{w} \cdot \color{blue}{\left(2 \cdot \left(\frac{\frac{\frac{d \cdot d}{D}}{w \cdot D}}{h} \cdot c0\right)\right)}
\]
Proof
(*.f64 2 (*.f64 (/.f64 (/.f64 (/.f64 (*.f64 d d) D) (*.f64 w D)) h) c0)): 0 points increase in error, 0 points decrease in error
(*.f64 2 (*.f64 (/.f64 (/.f64 (/.f64 (Rewrite<= unpow2_binary64 (pow.f64 d 2)) D) (*.f64 w D)) h) c0)): 0 points increase in error, 0 points decrease in error
(*.f64 2 (*.f64 (/.f64 (Rewrite<= associate-/l/_binary64 (/.f64 (/.f64 (/.f64 (pow.f64 d 2) D) D) w)) h) c0)): 11 points increase in error, 16 points decrease in error
(*.f64 2 (*.f64 (/.f64 (/.f64 (Rewrite<= associate-/r*_binary64 (/.f64 (pow.f64 d 2) (*.f64 D D))) w) h) c0)): 25 points increase in error, 8 points decrease in error
(*.f64 2 (*.f64 (/.f64 (/.f64 (/.f64 (pow.f64 d 2) (Rewrite<= unpow2_binary64 (pow.f64 D 2))) w) h) c0)): 0 points increase in error, 0 points decrease in error
(*.f64 2 (*.f64 (Rewrite<= associate-/r*_binary64 (/.f64 (/.f64 (pow.f64 d 2) (pow.f64 D 2)) (*.f64 w h))) c0)): 14 points increase in error, 5 points decrease in error
(*.f64 2 (*.f64 (Rewrite<= associate-/r*_binary64 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h)))) c0)): 9 points increase in error, 13 points decrease in error
(*.f64 2 (Rewrite<= associate-/r/_binary64 (/.f64 (pow.f64 d 2) (/.f64 (*.f64 (pow.f64 D 2) (*.f64 w h)) c0)))): 13 points increase in error, 6 points decrease in error
(*.f64 2 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (pow.f64 d 2) c0) (*.f64 (pow.f64 D 2) (*.f64 w h))))): 12 points increase in error, 16 points decrease in error
Taylor expanded in c0 around 0 55.1
\[\leadsto \color{blue}{\frac{{d}^{2} \cdot {c0}^{2}}{{D}^{2} \cdot \left({w}^{2} \cdot h\right)}}
\]
Simplified32.0
\[\leadsto \color{blue}{d \cdot \left(\frac{d}{h} \cdot \left(\frac{\frac{c0}{D}}{w} \cdot \frac{\frac{c0}{D}}{w}\right)\right)}
\]
Proof
(*.f64 d (*.f64 (/.f64 d h) (*.f64 (/.f64 (/.f64 c0 D) w) (/.f64 (/.f64 c0 D) w)))): 0 points increase in error, 0 points decrease in error
(*.f64 d (*.f64 (/.f64 d h) (*.f64 (Rewrite=> associate-/l/_binary64 (/.f64 c0 (*.f64 w D))) (/.f64 (/.f64 c0 D) w)))): 11 points increase in error, 7 points decrease in error
(*.f64 d (*.f64 (/.f64 d h) (*.f64 (/.f64 c0 (Rewrite<= *-commutative_binary64 (*.f64 D w))) (/.f64 (/.f64 c0 D) w)))): 0 points increase in error, 0 points decrease in error
(*.f64 d (*.f64 (/.f64 d h) (*.f64 (/.f64 c0 (*.f64 D w)) (Rewrite=> associate-/l/_binary64 (/.f64 c0 (*.f64 w D)))))): 8 points increase in error, 9 points decrease in error
(*.f64 d (*.f64 (/.f64 d h) (*.f64 (/.f64 c0 (*.f64 D w)) (/.f64 c0 (Rewrite<= *-commutative_binary64 (*.f64 D w)))))): 0 points increase in error, 0 points decrease in error
(*.f64 d (*.f64 (/.f64 d h) (Rewrite<= times-frac_binary64 (/.f64 (*.f64 c0 c0) (*.f64 (*.f64 D w) (*.f64 D w)))))): 40 points increase in error, 14 points decrease in error
(*.f64 d (*.f64 (/.f64 d h) (/.f64 (Rewrite<= unpow2_binary64 (pow.f64 c0 2)) (*.f64 (*.f64 D w) (*.f64 D w))))): 0 points increase in error, 0 points decrease in error
(*.f64 d (*.f64 (/.f64 d h) (/.f64 (pow.f64 c0 2) (Rewrite<= unswap-sqr_binary64 (*.f64 (*.f64 D D) (*.f64 w w)))))): 28 points increase in error, 4 points decrease in error
(*.f64 d (*.f64 (/.f64 d h) (/.f64 (pow.f64 c0 2) (*.f64 (Rewrite<= unpow2_binary64 (pow.f64 D 2)) (*.f64 w w))))): 0 points increase in error, 0 points decrease in error
(*.f64 d (*.f64 (/.f64 d h) (/.f64 (pow.f64 c0 2) (*.f64 (pow.f64 D 2) (Rewrite<= unpow2_binary64 (pow.f64 w 2)))))): 0 points increase in error, 0 points decrease in error
(*.f64 d (Rewrite<= associate-/r/_binary64 (/.f64 d (/.f64 h (/.f64 (pow.f64 c0 2) (*.f64 (pow.f64 D 2) (pow.f64 w 2))))))): 3 points increase in error, 20 points decrease in error
(*.f64 d (/.f64 d (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 h (*.f64 (pow.f64 D 2) (pow.f64 w 2))) (pow.f64 c0 2))))): 3 points increase in error, 6 points decrease in error
(*.f64 d (/.f64 d (/.f64 (Rewrite<= *-commutative_binary64 (*.f64 (*.f64 (pow.f64 D 2) (pow.f64 w 2)) h)) (pow.f64 c0 2)))): 0 points increase in error, 0 points decrease in error
(*.f64 d (/.f64 d (/.f64 (Rewrite<= associate-*r*_binary64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 w 2) h))) (pow.f64 c0 2)))): 5 points increase in error, 6 points decrease in error
(Rewrite<= *-commutative_binary64 (*.f64 (/.f64 d (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 w 2) h)) (pow.f64 c0 2))) d)): 0 points increase in error, 0 points decrease in error
(Rewrite<= associate-/r/_binary64 (/.f64 d (/.f64 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 w 2) h)) (pow.f64 c0 2)) d))): 5 points increase in error, 3 points decrease in error
(Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 d d) (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 w 2) h)) (pow.f64 c0 2)))): 30 points increase in error, 3 points decrease in error
(/.f64 (Rewrite<= unpow2_binary64 (pow.f64 d 2)) (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 w 2) h)) (pow.f64 c0 2))): 0 points increase in error, 0 points decrease in error
(Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (pow.f64 d 2) (pow.f64 c0 2)) (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 w 2) h)))): 3 points increase in error, 4 points decrease in error
Initial program 30.4
\[\frac{c0}{2 \cdot w} \cdot \left(\frac{c0 \cdot \left(d \cdot d\right)}{\left(w \cdot h\right) \cdot \left(D \cdot D\right)} + \sqrt{\frac{c0 \cdot \left(d \cdot d\right)}{\left(w \cdot h\right) \cdot \left(D \cdot D\right)} \cdot \frac{c0 \cdot \left(d \cdot d\right)}{\left(w \cdot h\right) \cdot \left(D \cdot D\right)} - M \cdot M}\right)
\]
Taylor expanded in c0 around -inf 33.2
\[\leadsto \color{blue}{-0.5 \cdot \frac{\left(\frac{{d}^{2}}{{D}^{2} \cdot \left(w \cdot h\right)} + -1 \cdot \frac{{d}^{2}}{{D}^{2} \cdot \left(w \cdot h\right)}\right) \cdot {c0}^{2}}{w} + 0.25 \cdot \frac{{D}^{2} \cdot \left({M}^{2} \cdot h\right)}{{d}^{2}}}
\]
Simplified22.6
\[\leadsto \color{blue}{\mathsf{fma}\left(0.25, \left(\frac{D}{d \cdot d} \cdot D\right) \cdot \left(M \cdot \left(M \cdot h\right)\right), 0\right)}
\]
Proof
(fma.f64 1/4 (*.f64 (*.f64 (/.f64 D (*.f64 d d)) D) (*.f64 M (*.f64 M h))) 0): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (*.f64 (*.f64 (/.f64 D (Rewrite<= unpow2_binary64 (pow.f64 d 2))) D) (*.f64 M (*.f64 M h))) 0): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (*.f64 (Rewrite<= associate-/r/_binary64 (/.f64 D (/.f64 (pow.f64 d 2) D))) (*.f64 M (*.f64 M h))) 0): 5 points increase in error, 4 points decrease in error
(fma.f64 1/4 (*.f64 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 D D) (pow.f64 d 2))) (*.f64 M (*.f64 M h))) 0): 36 points increase in error, 2 points decrease in error
(fma.f64 1/4 (*.f64 (/.f64 (Rewrite<= unpow2_binary64 (pow.f64 D 2)) (pow.f64 d 2)) (*.f64 M (*.f64 M h))) 0): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (*.f64 (/.f64 (pow.f64 D 2) (pow.f64 d 2)) (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 M M) h))) 0): 16 points increase in error, 6 points decrease in error
(fma.f64 1/4 (*.f64 (/.f64 (pow.f64 D 2) (pow.f64 d 2)) (*.f64 (Rewrite<= unpow2_binary64 (pow.f64 M 2)) h)) 0): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (*.f64 (/.f64 (pow.f64 D 2) (pow.f64 d 2)) (Rewrite<= *-commutative_binary64 (*.f64 h (pow.f64 M 2)))) 0): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (Rewrite<= associate-/r/_binary64 (/.f64 (pow.f64 D 2) (/.f64 (pow.f64 d 2) (*.f64 h (pow.f64 M 2))))) 0): 11 points increase in error, 6 points decrease in error
(fma.f64 1/4 (/.f64 (pow.f64 D 2) (/.f64 (pow.f64 d 2) (Rewrite=> *-commutative_binary64 (*.f64 (pow.f64 M 2) h)))) 0): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2))) 0): 6 points increase in error, 11 points decrease in error
(fma.f64 1/4 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2)) (Rewrite<= div0_binary64 (/.f64 0 (/.f64 w (pow.f64 c0 2))))): 47 points increase in error, 0 points decrease in error
(fma.f64 1/4 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2)) (/.f64 (Rewrite<= metadata-eval (*.f64 -1/2 0)) (/.f64 w (pow.f64 c0 2)))): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2)) (/.f64 (*.f64 -1/2 (Rewrite<= mul0-lft_binary64 (*.f64 0 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h)))))) (/.f64 w (pow.f64 c0 2)))): 102 points increase in error, 0 points decrease in error
(fma.f64 1/4 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2)) (/.f64 (*.f64 -1/2 (*.f64 (Rewrite<= metadata-eval (+.f64 -1 1)) (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))))) (/.f64 w (pow.f64 c0 2)))): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2)) (/.f64 (*.f64 -1/2 (Rewrite<= distribute-rgt1-in_binary64 (+.f64 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))) (*.f64 -1 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))))))) (/.f64 w (pow.f64 c0 2)))): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2)) (Rewrite<= associate-*r/_binary64 (*.f64 -1/2 (/.f64 (+.f64 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))) (*.f64 -1 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))))) (/.f64 w (pow.f64 c0 2)))))): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2)) (*.f64 -1/2 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (+.f64 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))) (*.f64 -1 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))))) (pow.f64 c0 2)) w)))): 0 points increase in error, 1 points decrease in error
(Rewrite<= fma-def_binary64 (+.f64 (*.f64 1/4 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2))) (*.f64 -1/2 (/.f64 (*.f64 (+.f64 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))) (*.f64 -1 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))))) (pow.f64 c0 2)) w)))): 0 points increase in error, 0 points decrease in error
(Rewrite<= +-commutative_binary64 (+.f64 (*.f64 -1/2 (/.f64 (*.f64 (+.f64 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))) (*.f64 -1 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))))) (pow.f64 c0 2)) w)) (*.f64 1/4 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2))))): 0 points increase in error, 0 points decrease in error
Taylor expanded in D around 0 26.7
\[\leadsto \mathsf{fma}\left(0.25, \color{blue}{\frac{{D}^{2} \cdot \left(h \cdot {M}^{2}\right)}{{d}^{2}}}, 0\right)
\]
Simplified13.3
\[\leadsto \mathsf{fma}\left(0.25, \color{blue}{\frac{D}{\frac{d}{M}} \cdot \frac{D}{\frac{\frac{d}{M}}{h}}}, 0\right)
\]
Proof
(*.f64 (/.f64 D (/.f64 d M)) (/.f64 D (/.f64 (/.f64 d M) h))): 0 points increase in error, 0 points decrease in error
(*.f64 (/.f64 D (/.f64 d M)) (/.f64 D (Rewrite<= associate-/r*_binary64 (/.f64 d (*.f64 M h))))): 23 points increase in error, 8 points decrease in error
(Rewrite<= times-frac_binary64 (/.f64 (*.f64 D D) (*.f64 (/.f64 d M) (/.f64 d (*.f64 M h))))): 59 points increase in error, 14 points decrease in error
(/.f64 (*.f64 D D) (Rewrite<= times-frac_binary64 (/.f64 (*.f64 d d) (*.f64 M (*.f64 M h))))): 42 points increase in error, 4 points decrease in error
(/.f64 (*.f64 D D) (/.f64 (Rewrite<= unpow2_binary64 (pow.f64 d 2)) (*.f64 M (*.f64 M h)))): 0 points increase in error, 0 points decrease in error
(/.f64 (*.f64 D D) (/.f64 (pow.f64 d 2) (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 M M) h)))): 16 points increase in error, 1 points decrease in error
(/.f64 (*.f64 D D) (/.f64 (pow.f64 d 2) (*.f64 (Rewrite<= unpow2_binary64 (pow.f64 M 2)) h))): 0 points increase in error, 0 points decrease in error
(/.f64 (*.f64 D D) (/.f64 (pow.f64 d 2) (Rewrite<= *-commutative_binary64 (*.f64 h (pow.f64 M 2))))): 0 points increase in error, 0 points decrease in error
(/.f64 (Rewrite<= unpow2_binary64 (pow.f64 D 2)) (/.f64 (pow.f64 d 2) (*.f64 h (pow.f64 M 2)))): 0 points increase in error, 0 points decrease in error
(Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 h (pow.f64 M 2))) (pow.f64 d 2))): 6 points increase in error, 11 points decrease in error
Applied egg-rr11.9
\[\leadsto \mathsf{fma}\left(0.25, \frac{D}{\frac{d}{M}} \cdot \color{blue}{\left(\left(M \cdot \frac{D}{d}\right) \cdot h\right)}, 0\right)
\]
Initial program 64.0
\[\frac{c0}{2 \cdot w} \cdot \left(\frac{c0 \cdot \left(d \cdot d\right)}{\left(w \cdot h\right) \cdot \left(D \cdot D\right)} + \sqrt{\frac{c0 \cdot \left(d \cdot d\right)}{\left(w \cdot h\right) \cdot \left(D \cdot D\right)} \cdot \frac{c0 \cdot \left(d \cdot d\right)}{\left(w \cdot h\right) \cdot \left(D \cdot D\right)} - M \cdot M}\right)
\]
Taylor expanded in c0 around -inf 63.4
\[\leadsto \color{blue}{-0.5 \cdot \frac{\left(\frac{{d}^{2}}{{D}^{2} \cdot \left(w \cdot h\right)} + -1 \cdot \frac{{d}^{2}}{{D}^{2} \cdot \left(w \cdot h\right)}\right) \cdot {c0}^{2}}{w} + 0.25 \cdot \frac{{D}^{2} \cdot \left({M}^{2} \cdot h\right)}{{d}^{2}}}
\]
Simplified28.5
\[\leadsto \color{blue}{\mathsf{fma}\left(0.25, \left(\frac{D}{d \cdot d} \cdot D\right) \cdot \left(M \cdot \left(M \cdot h\right)\right), 0\right)}
\]
Proof
(fma.f64 1/4 (*.f64 (*.f64 (/.f64 D (*.f64 d d)) D) (*.f64 M (*.f64 M h))) 0): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (*.f64 (*.f64 (/.f64 D (Rewrite<= unpow2_binary64 (pow.f64 d 2))) D) (*.f64 M (*.f64 M h))) 0): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (*.f64 (Rewrite<= associate-/r/_binary64 (/.f64 D (/.f64 (pow.f64 d 2) D))) (*.f64 M (*.f64 M h))) 0): 5 points increase in error, 4 points decrease in error
(fma.f64 1/4 (*.f64 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 D D) (pow.f64 d 2))) (*.f64 M (*.f64 M h))) 0): 36 points increase in error, 2 points decrease in error
(fma.f64 1/4 (*.f64 (/.f64 (Rewrite<= unpow2_binary64 (pow.f64 D 2)) (pow.f64 d 2)) (*.f64 M (*.f64 M h))) 0): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (*.f64 (/.f64 (pow.f64 D 2) (pow.f64 d 2)) (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 M M) h))) 0): 16 points increase in error, 6 points decrease in error
(fma.f64 1/4 (*.f64 (/.f64 (pow.f64 D 2) (pow.f64 d 2)) (*.f64 (Rewrite<= unpow2_binary64 (pow.f64 M 2)) h)) 0): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (*.f64 (/.f64 (pow.f64 D 2) (pow.f64 d 2)) (Rewrite<= *-commutative_binary64 (*.f64 h (pow.f64 M 2)))) 0): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (Rewrite<= associate-/r/_binary64 (/.f64 (pow.f64 D 2) (/.f64 (pow.f64 d 2) (*.f64 h (pow.f64 M 2))))) 0): 11 points increase in error, 6 points decrease in error
(fma.f64 1/4 (/.f64 (pow.f64 D 2) (/.f64 (pow.f64 d 2) (Rewrite=> *-commutative_binary64 (*.f64 (pow.f64 M 2) h)))) 0): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2))) 0): 6 points increase in error, 11 points decrease in error
(fma.f64 1/4 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2)) (Rewrite<= div0_binary64 (/.f64 0 (/.f64 w (pow.f64 c0 2))))): 47 points increase in error, 0 points decrease in error
(fma.f64 1/4 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2)) (/.f64 (Rewrite<= metadata-eval (*.f64 -1/2 0)) (/.f64 w (pow.f64 c0 2)))): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2)) (/.f64 (*.f64 -1/2 (Rewrite<= mul0-lft_binary64 (*.f64 0 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h)))))) (/.f64 w (pow.f64 c0 2)))): 102 points increase in error, 0 points decrease in error
(fma.f64 1/4 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2)) (/.f64 (*.f64 -1/2 (*.f64 (Rewrite<= metadata-eval (+.f64 -1 1)) (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))))) (/.f64 w (pow.f64 c0 2)))): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2)) (/.f64 (*.f64 -1/2 (Rewrite<= distribute-rgt1-in_binary64 (+.f64 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))) (*.f64 -1 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))))))) (/.f64 w (pow.f64 c0 2)))): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2)) (Rewrite<= associate-*r/_binary64 (*.f64 -1/2 (/.f64 (+.f64 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))) (*.f64 -1 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))))) (/.f64 w (pow.f64 c0 2)))))): 0 points increase in error, 0 points decrease in error
(fma.f64 1/4 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2)) (*.f64 -1/2 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (+.f64 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))) (*.f64 -1 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))))) (pow.f64 c0 2)) w)))): 0 points increase in error, 1 points decrease in error
(Rewrite<= fma-def_binary64 (+.f64 (*.f64 1/4 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2))) (*.f64 -1/2 (/.f64 (*.f64 (+.f64 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))) (*.f64 -1 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))))) (pow.f64 c0 2)) w)))): 0 points increase in error, 0 points decrease in error
(Rewrite<= +-commutative_binary64 (+.f64 (*.f64 -1/2 (/.f64 (*.f64 (+.f64 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))) (*.f64 -1 (/.f64 (pow.f64 d 2) (*.f64 (pow.f64 D 2) (*.f64 w h))))) (pow.f64 c0 2)) w)) (*.f64 1/4 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 (pow.f64 M 2) h)) (pow.f64 d 2))))): 0 points increase in error, 0 points decrease in error
Taylor expanded in D around 0 33.8
\[\leadsto \mathsf{fma}\left(0.25, \color{blue}{\frac{{D}^{2} \cdot \left(h \cdot {M}^{2}\right)}{{d}^{2}}}, 0\right)
\]
Simplified13.8
\[\leadsto \mathsf{fma}\left(0.25, \color{blue}{\frac{D}{\frac{d}{M}} \cdot \frac{D}{\frac{\frac{d}{M}}{h}}}, 0\right)
\]
Proof
(*.f64 (/.f64 D (/.f64 d M)) (/.f64 D (/.f64 (/.f64 d M) h))): 0 points increase in error, 0 points decrease in error
(*.f64 (/.f64 D (/.f64 d M)) (/.f64 D (Rewrite<= associate-/r*_binary64 (/.f64 d (*.f64 M h))))): 23 points increase in error, 8 points decrease in error
(Rewrite<= times-frac_binary64 (/.f64 (*.f64 D D) (*.f64 (/.f64 d M) (/.f64 d (*.f64 M h))))): 59 points increase in error, 14 points decrease in error
(/.f64 (*.f64 D D) (Rewrite<= times-frac_binary64 (/.f64 (*.f64 d d) (*.f64 M (*.f64 M h))))): 42 points increase in error, 4 points decrease in error
(/.f64 (*.f64 D D) (/.f64 (Rewrite<= unpow2_binary64 (pow.f64 d 2)) (*.f64 M (*.f64 M h)))): 0 points increase in error, 0 points decrease in error
(/.f64 (*.f64 D D) (/.f64 (pow.f64 d 2) (Rewrite<= associate-*l*_binary64 (*.f64 (*.f64 M M) h)))): 16 points increase in error, 1 points decrease in error
(/.f64 (*.f64 D D) (/.f64 (pow.f64 d 2) (*.f64 (Rewrite<= unpow2_binary64 (pow.f64 M 2)) h))): 0 points increase in error, 0 points decrease in error
(/.f64 (*.f64 D D) (/.f64 (pow.f64 d 2) (Rewrite<= *-commutative_binary64 (*.f64 h (pow.f64 M 2))))): 0 points increase in error, 0 points decrease in error
(/.f64 (Rewrite<= unpow2_binary64 (pow.f64 D 2)) (/.f64 (pow.f64 d 2) (*.f64 h (pow.f64 M 2)))): 0 points increase in error, 0 points decrease in error
(Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 (pow.f64 D 2) (*.f64 h (pow.f64 M 2))) (pow.f64 d 2))): 6 points increase in error, 11 points decrease in error
Applied egg-rr13.2
\[\leadsto \mathsf{fma}\left(0.25, \frac{D}{\frac{d}{M}} \cdot \color{blue}{\left(\left(M \cdot \frac{D}{d}\right) \cdot h\right)}, 0\right)
\]
Applied egg-rr11.6
\[\leadsto \mathsf{fma}\left(0.25, \color{blue}{\left(\frac{D}{d} \cdot M\right)} \cdot \left(\left(M \cdot \frac{D}{d}\right) \cdot h\right), 0\right)
\]