\[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right)
\]
Applied egg-rr5.8
\[\leadsto x \cdot x - \color{blue}{\frac{y \cdot 4}{\frac{1}{z \cdot z - t}}}
\]
Applied egg-rr6.4
\[\leadsto x \cdot x - \frac{y \cdot 4}{\color{blue}{{\left({\left(\sqrt[3]{z \cdot z - t}\right)}^{2}\right)}^{-1} \cdot {\left(\sqrt[3]{z \cdot z - t}\right)}^{-1}}}
\]
Simplified6.4
\[\leadsto x \cdot x - \frac{y \cdot 4}{\color{blue}{\frac{\frac{1}{\sqrt[3]{z \cdot z - t}} \cdot 1}{{\left(\sqrt[3]{z \cdot z - t}\right)}^{2}}}}
\]
Proof
[Start]6.4
\[ x \cdot x - \frac{y \cdot 4}{{\left({\left(\sqrt[3]{z \cdot z - t}\right)}^{2}\right)}^{-1} \cdot {\left(\sqrt[3]{z \cdot z - t}\right)}^{-1}}
\]
*-commutative [=>]6.4
\[ x \cdot x - \frac{y \cdot 4}{\color{blue}{{\left(\sqrt[3]{z \cdot z - t}\right)}^{-1} \cdot {\left({\left(\sqrt[3]{z \cdot z - t}\right)}^{2}\right)}^{-1}}}
\]
unpow-1 [=>]6.4
\[ x \cdot x - \frac{y \cdot 4}{\color{blue}{\frac{1}{\sqrt[3]{z \cdot z - t}}} \cdot {\left({\left(\sqrt[3]{z \cdot z - t}\right)}^{2}\right)}^{-1}}
\]
unpow-1 [=>]6.4
\[ x \cdot x - \frac{y \cdot 4}{\frac{1}{\sqrt[3]{z \cdot z - t}} \cdot \color{blue}{\frac{1}{{\left(\sqrt[3]{z \cdot z - t}\right)}^{2}}}}
\]
associate-*r/ [=>]6.4
\[ x \cdot x - \frac{y \cdot 4}{\color{blue}{\frac{\frac{1}{\sqrt[3]{z \cdot z - t}} \cdot 1}{{\left(\sqrt[3]{z \cdot z - t}\right)}^{2}}}}
\]
Taylor expanded in z around 0 5.7
\[\leadsto x \cdot x - \color{blue}{\left(4 \cdot \left(y \cdot {z}^{2}\right) + -4 \cdot \left(y \cdot t\right)\right)}
\]
Simplified0.1
\[\leadsto x \cdot x - \color{blue}{\mathsf{fma}\left(y \cdot -4, t, 4 \cdot \left(z \cdot \left(z \cdot y\right)\right)\right)}
\]
Proof
[Start]5.7
\[ x \cdot x - \left(4 \cdot \left(y \cdot {z}^{2}\right) + -4 \cdot \left(y \cdot t\right)\right)
\]
+-commutative [=>]5.7
\[ x \cdot x - \color{blue}{\left(-4 \cdot \left(y \cdot t\right) + 4 \cdot \left(y \cdot {z}^{2}\right)\right)}
\]
associate-*r* [=>]5.7
\[ x \cdot x - \left(\color{blue}{\left(-4 \cdot y\right) \cdot t} + 4 \cdot \left(y \cdot {z}^{2}\right)\right)
\]
*-commutative [<=]5.7
\[ x \cdot x - \left(\color{blue}{\left(y \cdot -4\right)} \cdot t + 4 \cdot \left(y \cdot {z}^{2}\right)\right)
\]
associate-*r* [=>]5.7
\[ x \cdot x - \left(\left(y \cdot -4\right) \cdot t + \color{blue}{\left(4 \cdot y\right) \cdot {z}^{2}}\right)
\]
*-commutative [<=]5.7
\[ x \cdot x - \left(\left(y \cdot -4\right) \cdot t + \color{blue}{\left(y \cdot 4\right)} \cdot {z}^{2}\right)
\]
/-rgt-identity [<=]5.7
\[ x \cdot x - \left(\left(y \cdot -4\right) \cdot t + \color{blue}{\frac{y \cdot 4}{1}} \cdot {z}^{2}\right)
\]
unpow2 [=>]5.7
\[ x \cdot x - \left(\left(y \cdot -4\right) \cdot t + \frac{y \cdot 4}{1} \cdot \color{blue}{\left(z \cdot z\right)}\right)
\]
fma-def [=>]5.7
\[ x \cdot x - \color{blue}{\mathsf{fma}\left(y \cdot -4, t, \frac{y \cdot 4}{1} \cdot \left(z \cdot z\right)\right)}
\]
/-rgt-identity [=>]5.7
\[ x \cdot x - \mathsf{fma}\left(y \cdot -4, t, \color{blue}{\left(y \cdot 4\right)} \cdot \left(z \cdot z\right)\right)
\]
*-commutative [=>]5.7
\[ x \cdot x - \mathsf{fma}\left(y \cdot -4, t, \color{blue}{\left(4 \cdot y\right)} \cdot \left(z \cdot z\right)\right)
\]
unpow2 [<=]5.7
\[ x \cdot x - \mathsf{fma}\left(y \cdot -4, t, \left(4 \cdot y\right) \cdot \color{blue}{{z}^{2}}\right)
\]
associate-*r* [<=]5.7
\[ x \cdot x - \mathsf{fma}\left(y \cdot -4, t, \color{blue}{4 \cdot \left(y \cdot {z}^{2}\right)}\right)
\]
*-commutative [=>]5.7
\[ x \cdot x - \mathsf{fma}\left(y \cdot -4, t, 4 \cdot \color{blue}{\left({z}^{2} \cdot y\right)}\right)
\]
unpow2 [=>]5.7
\[ x \cdot x - \mathsf{fma}\left(y \cdot -4, t, 4 \cdot \left(\color{blue}{\left(z \cdot z\right)} \cdot y\right)\right)
\]
associate-*l* [=>]0.1
\[ x \cdot x - \mathsf{fma}\left(y \cdot -4, t, 4 \cdot \color{blue}{\left(z \cdot \left(z \cdot y\right)\right)}\right)
\]
Final simplification0.1
\[\leadsto x \cdot x - \mathsf{fma}\left(y \cdot -4, t, 4 \cdot \left(z \cdot \left(y \cdot z\right)\right)\right)
\]
herbie shell --seed 2023054
(FPCore (x y z t)
:name "Graphics.Rasterific.Shading:$sradialGradientWithFocusShader from Rasterific-0.6.1, B"
:precision binary64
:herbie-target
(- (* x x) (* 4.0 (* y (- (* z z) t))))
(- (* x x) (* (* y 4.0) (- (* z z) t))))