Graphics.Rasterific.Shading:$sradialGradientWithFocusShader from Rasterific-0.6.1, B

Percentage Accurate: 90.7% → 97.1%
Time: 6.7s
Alternatives: 6
Speedup: 0.8×

Specification

?
\[\begin{array}{l} \\ x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \end{array} \]
(FPCore (x y z t) :precision binary64 (- (* x x) (* (* y 4.0) (- (* z z) t))))
double code(double x, double y, double z, double t) {
	return (x * x) - ((y * 4.0) * ((z * z) - t));
}
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 * 4.0d0) * ((z * z) - t))
end function
public static double code(double x, double y, double z, double t) {
	return (x * x) - ((y * 4.0) * ((z * z) - t));
}
def code(x, y, z, t):
	return (x * x) - ((y * 4.0) * ((z * z) - t))
function code(x, y, z, t)
	return Float64(Float64(x * x) - Float64(Float64(y * 4.0) * Float64(Float64(z * z) - t)))
end
function tmp = code(x, y, z, t)
	tmp = (x * x) - ((y * 4.0) * ((z * z) - t));
end
code[x_, y_, z_, t_] := N[(N[(x * x), $MachinePrecision] - N[(N[(y * 4.0), $MachinePrecision] * N[(N[(z * z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right)
\end{array}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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.

Accuracy vs Speed?

Herbie found 6 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 90.7% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \end{array} \]
(FPCore (x y z t) :precision binary64 (- (* x x) (* (* y 4.0) (- (* z z) t))))
double code(double x, double y, double z, double t) {
	return (x * x) - ((y * 4.0) * ((z * z) - t));
}
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 * 4.0d0) * ((z * z) - t))
end function
public static double code(double x, double y, double z, double t) {
	return (x * x) - ((y * 4.0) * ((z * z) - t));
}
def code(x, y, z, t):
	return (x * x) - ((y * 4.0) * ((z * z) - t))
function code(x, y, z, t)
	return Float64(Float64(x * x) - Float64(Float64(y * 4.0) * Float64(Float64(z * z) - t)))
end
function tmp = code(x, y, z, t)
	tmp = (x * x) - ((y * 4.0) * ((z * z) - t));
end
code[x_, y_, z_, t_] := N[(N[(x * x), $MachinePrecision] - N[(N[(y * 4.0), $MachinePrecision] * N[(N[(z * z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right)
\end{array}

Alternative 1: 97.1% accurate, 0.8× speedup?

\[\begin{array}{l} z_m = \left|z\right| \\ \begin{array}{l} \mathbf{if}\;z\_m \leq 5.2 \cdot 10^{+138}:\\ \;\;\;\;\mathsf{fma}\left(z\_m \cdot z\_m - t, -4 \cdot y, x \cdot x\right)\\ \mathbf{elif}\;z\_m \leq 2.1 \cdot 10^{+269}:\\ \;\;\;\;\mathsf{fma}\left(\left(y \cdot z\_m\right) \cdot z\_m, -4, x \cdot x\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(z\_m \cdot z\_m\right) \cdot y\right) \cdot -4\\ \end{array} \end{array} \]
z_m = (fabs.f64 z)
(FPCore (x y z_m t)
 :precision binary64
 (if (<= z_m 5.2e+138)
   (fma (- (* z_m z_m) t) (* -4.0 y) (* x x))
   (if (<= z_m 2.1e+269)
     (fma (* (* y z_m) z_m) -4.0 (* x x))
     (* (* (* z_m z_m) y) -4.0))))
z_m = fabs(z);
double code(double x, double y, double z_m, double t) {
	double tmp;
	if (z_m <= 5.2e+138) {
		tmp = fma(((z_m * z_m) - t), (-4.0 * y), (x * x));
	} else if (z_m <= 2.1e+269) {
		tmp = fma(((y * z_m) * z_m), -4.0, (x * x));
	} else {
		tmp = ((z_m * z_m) * y) * -4.0;
	}
	return tmp;
}
z_m = abs(z)
function code(x, y, z_m, t)
	tmp = 0.0
	if (z_m <= 5.2e+138)
		tmp = fma(Float64(Float64(z_m * z_m) - t), Float64(-4.0 * y), Float64(x * x));
	elseif (z_m <= 2.1e+269)
		tmp = fma(Float64(Float64(y * z_m) * z_m), -4.0, Float64(x * x));
	else
		tmp = Float64(Float64(Float64(z_m * z_m) * y) * -4.0);
	end
	return tmp
end
z_m = N[Abs[z], $MachinePrecision]
code[x_, y_, z$95$m_, t_] := If[LessEqual[z$95$m, 5.2e+138], N[(N[(N[(z$95$m * z$95$m), $MachinePrecision] - t), $MachinePrecision] * N[(-4.0 * y), $MachinePrecision] + N[(x * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z$95$m, 2.1e+269], N[(N[(N[(y * z$95$m), $MachinePrecision] * z$95$m), $MachinePrecision] * -4.0 + N[(x * x), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z$95$m * z$95$m), $MachinePrecision] * y), $MachinePrecision] * -4.0), $MachinePrecision]]]
\begin{array}{l}
z_m = \left|z\right|

\\
\begin{array}{l}
\mathbf{if}\;z\_m \leq 5.2 \cdot 10^{+138}:\\
\;\;\;\;\mathsf{fma}\left(z\_m \cdot z\_m - t, -4 \cdot y, x \cdot x\right)\\

\mathbf{elif}\;z\_m \leq 2.1 \cdot 10^{+269}:\\
\;\;\;\;\mathsf{fma}\left(\left(y \cdot z\_m\right) \cdot z\_m, -4, x \cdot x\right)\\

\mathbf{else}:\\
\;\;\;\;\left(\left(z\_m \cdot z\_m\right) \cdot y\right) \cdot -4\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < 5.2000000000000002e138

    1. Initial program 92.3%

      \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. lift--.f64N/A

        \[\leadsto \color{blue}{x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right)} \]
      2. lift-*.f64N/A

        \[\leadsto x \cdot x - \color{blue}{\left(y \cdot 4\right) \cdot \left(z \cdot z - t\right)} \]
      3. fp-cancel-sub-sign-invN/A

        \[\leadsto \color{blue}{x \cdot x + \left(\mathsf{neg}\left(y \cdot 4\right)\right) \cdot \left(z \cdot z - t\right)} \]
      4. +-commutativeN/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y \cdot 4\right)\right) \cdot \left(z \cdot z - t\right) + x \cdot x} \]
      5. *-commutativeN/A

        \[\leadsto \color{blue}{\left(z \cdot z - t\right) \cdot \left(\mathsf{neg}\left(y \cdot 4\right)\right)} + x \cdot x \]
      6. lower-fma.f64N/A

        \[\leadsto \color{blue}{\mathsf{fma}\left(z \cdot z - t, \mathsf{neg}\left(y \cdot 4\right), x \cdot x\right)} \]
      7. lift-*.f64N/A

        \[\leadsto \mathsf{fma}\left(z \cdot z - t, \mathsf{neg}\left(\color{blue}{y \cdot 4}\right), x \cdot x\right) \]
      8. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(z \cdot z - t, \mathsf{neg}\left(\color{blue}{4 \cdot y}\right), x \cdot x\right) \]
      9. distribute-lft-neg-inN/A

        \[\leadsto \mathsf{fma}\left(z \cdot z - t, \color{blue}{\left(\mathsf{neg}\left(4\right)\right) \cdot y}, x \cdot x\right) \]
      10. lower-*.f64N/A

        \[\leadsto \mathsf{fma}\left(z \cdot z - t, \color{blue}{\left(\mathsf{neg}\left(4\right)\right) \cdot y}, x \cdot x\right) \]
      11. metadata-eval92.8

        \[\leadsto \mathsf{fma}\left(z \cdot z - t, \color{blue}{-4} \cdot y, x \cdot x\right) \]
    4. Applied rewrites92.8%

      \[\leadsto \color{blue}{\mathsf{fma}\left(z \cdot z - t, -4 \cdot y, x \cdot x\right)} \]

    if 5.2000000000000002e138 < z < 2.1e269

    1. Initial program 60.0%

      \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
    2. Add Preprocessing
    3. Taylor expanded in t around 0

      \[\leadsto \color{blue}{{x}^{2} - 4 \cdot \left(y \cdot {z}^{2}\right)} \]
    4. Step-by-step derivation
      1. fp-cancel-sub-sign-invN/A

        \[\leadsto \color{blue}{{x}^{2} + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(y \cdot {z}^{2}\right)} \]
      2. metadata-evalN/A

        \[\leadsto {x}^{2} + \color{blue}{-4} \cdot \left(y \cdot {z}^{2}\right) \]
      3. +-commutativeN/A

        \[\leadsto \color{blue}{-4 \cdot \left(y \cdot {z}^{2}\right) + {x}^{2}} \]
      4. *-commutativeN/A

        \[\leadsto \color{blue}{\left(y \cdot {z}^{2}\right) \cdot -4} + {x}^{2} \]
      5. lower-fma.f64N/A

        \[\leadsto \color{blue}{\mathsf{fma}\left(y \cdot {z}^{2}, -4, {x}^{2}\right)} \]
      6. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{{z}^{2} \cdot y}, -4, {x}^{2}\right) \]
      7. lower-*.f64N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{{z}^{2} \cdot y}, -4, {x}^{2}\right) \]
      8. unpow2N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(z \cdot z\right)} \cdot y, -4, {x}^{2}\right) \]
      9. lower-*.f64N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(z \cdot z\right)} \cdot y, -4, {x}^{2}\right) \]
      10. unpow2N/A

        \[\leadsto \mathsf{fma}\left(\left(z \cdot z\right) \cdot y, -4, \color{blue}{x \cdot x}\right) \]
      11. lower-*.f6460.0

        \[\leadsto \mathsf{fma}\left(\left(z \cdot z\right) \cdot y, -4, \color{blue}{x \cdot x}\right) \]
    5. Applied rewrites60.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\left(z \cdot z\right) \cdot y, -4, x \cdot x\right)} \]
    6. Step-by-step derivation
      1. Applied rewrites96.0%

        \[\leadsto \mathsf{fma}\left(\left(y \cdot z\right) \cdot z, -4, x \cdot x\right) \]

      if 2.1e269 < z

      1. Initial program 72.7%

        \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
      2. Add Preprocessing
      3. Taylor expanded in z around inf

        \[\leadsto \color{blue}{-4 \cdot \left(y \cdot {z}^{2}\right)} \]
      4. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \color{blue}{\left(y \cdot {z}^{2}\right) \cdot -4} \]
        2. lower-*.f64N/A

          \[\leadsto \color{blue}{\left(y \cdot {z}^{2}\right) \cdot -4} \]
        3. *-commutativeN/A

          \[\leadsto \color{blue}{\left({z}^{2} \cdot y\right)} \cdot -4 \]
        4. lower-*.f64N/A

          \[\leadsto \color{blue}{\left({z}^{2} \cdot y\right)} \cdot -4 \]
        5. unpow2N/A

          \[\leadsto \left(\color{blue}{\left(z \cdot z\right)} \cdot y\right) \cdot -4 \]
        6. lower-*.f64100.0

          \[\leadsto \left(\color{blue}{\left(z \cdot z\right)} \cdot y\right) \cdot -4 \]
      5. Applied rewrites100.0%

        \[\leadsto \color{blue}{\left(\left(z \cdot z\right) \cdot y\right) \cdot -4} \]
    7. Recombined 3 regimes into one program.
    8. Add Preprocessing

    Alternative 2: 59.9% accurate, 0.8× speedup?

    \[\begin{array}{l} z_m = \left|z\right| \\ \begin{array}{l} t_1 := \left(t \cdot y\right) \cdot 4\\ \mathbf{if}\;z\_m \leq 5.5 \cdot 10^{-263}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z\_m \leq 5.2 \cdot 10^{-208}:\\ \;\;\;\;x \cdot x\\ \mathbf{elif}\;z\_m \leq 1.25 \cdot 10^{+28}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\left(z\_m \cdot y\right) \cdot \left(-4 \cdot z\_m\right)\\ \end{array} \end{array} \]
    z_m = (fabs.f64 z)
    (FPCore (x y z_m t)
     :precision binary64
     (let* ((t_1 (* (* t y) 4.0)))
       (if (<= z_m 5.5e-263)
         t_1
         (if (<= z_m 5.2e-208)
           (* x x)
           (if (<= z_m 1.25e+28) t_1 (* (* z_m y) (* -4.0 z_m)))))))
    z_m = fabs(z);
    double code(double x, double y, double z_m, double t) {
    	double t_1 = (t * y) * 4.0;
    	double tmp;
    	if (z_m <= 5.5e-263) {
    		tmp = t_1;
    	} else if (z_m <= 5.2e-208) {
    		tmp = x * x;
    	} else if (z_m <= 1.25e+28) {
    		tmp = t_1;
    	} else {
    		tmp = (z_m * y) * (-4.0 * z_m);
    	}
    	return tmp;
    }
    
    z_m = abs(z)
    real(8) function code(x, y, z_m, t)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z_m
        real(8), intent (in) :: t
        real(8) :: t_1
        real(8) :: tmp
        t_1 = (t * y) * 4.0d0
        if (z_m <= 5.5d-263) then
            tmp = t_1
        else if (z_m <= 5.2d-208) then
            tmp = x * x
        else if (z_m <= 1.25d+28) then
            tmp = t_1
        else
            tmp = (z_m * y) * ((-4.0d0) * z_m)
        end if
        code = tmp
    end function
    
    z_m = Math.abs(z);
    public static double code(double x, double y, double z_m, double t) {
    	double t_1 = (t * y) * 4.0;
    	double tmp;
    	if (z_m <= 5.5e-263) {
    		tmp = t_1;
    	} else if (z_m <= 5.2e-208) {
    		tmp = x * x;
    	} else if (z_m <= 1.25e+28) {
    		tmp = t_1;
    	} else {
    		tmp = (z_m * y) * (-4.0 * z_m);
    	}
    	return tmp;
    }
    
    z_m = math.fabs(z)
    def code(x, y, z_m, t):
    	t_1 = (t * y) * 4.0
    	tmp = 0
    	if z_m <= 5.5e-263:
    		tmp = t_1
    	elif z_m <= 5.2e-208:
    		tmp = x * x
    	elif z_m <= 1.25e+28:
    		tmp = t_1
    	else:
    		tmp = (z_m * y) * (-4.0 * z_m)
    	return tmp
    
    z_m = abs(z)
    function code(x, y, z_m, t)
    	t_1 = Float64(Float64(t * y) * 4.0)
    	tmp = 0.0
    	if (z_m <= 5.5e-263)
    		tmp = t_1;
    	elseif (z_m <= 5.2e-208)
    		tmp = Float64(x * x);
    	elseif (z_m <= 1.25e+28)
    		tmp = t_1;
    	else
    		tmp = Float64(Float64(z_m * y) * Float64(-4.0 * z_m));
    	end
    	return tmp
    end
    
    z_m = abs(z);
    function tmp_2 = code(x, y, z_m, t)
    	t_1 = (t * y) * 4.0;
    	tmp = 0.0;
    	if (z_m <= 5.5e-263)
    		tmp = t_1;
    	elseif (z_m <= 5.2e-208)
    		tmp = x * x;
    	elseif (z_m <= 1.25e+28)
    		tmp = t_1;
    	else
    		tmp = (z_m * y) * (-4.0 * z_m);
    	end
    	tmp_2 = tmp;
    end
    
    z_m = N[Abs[z], $MachinePrecision]
    code[x_, y_, z$95$m_, t_] := Block[{t$95$1 = N[(N[(t * y), $MachinePrecision] * 4.0), $MachinePrecision]}, If[LessEqual[z$95$m, 5.5e-263], t$95$1, If[LessEqual[z$95$m, 5.2e-208], N[(x * x), $MachinePrecision], If[LessEqual[z$95$m, 1.25e+28], t$95$1, N[(N[(z$95$m * y), $MachinePrecision] * N[(-4.0 * z$95$m), $MachinePrecision]), $MachinePrecision]]]]]
    
    \begin{array}{l}
    z_m = \left|z\right|
    
    \\
    \begin{array}{l}
    t_1 := \left(t \cdot y\right) \cdot 4\\
    \mathbf{if}\;z\_m \leq 5.5 \cdot 10^{-263}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;z\_m \leq 5.2 \cdot 10^{-208}:\\
    \;\;\;\;x \cdot x\\
    
    \mathbf{elif}\;z\_m \leq 1.25 \cdot 10^{+28}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{else}:\\
    \;\;\;\;\left(z\_m \cdot y\right) \cdot \left(-4 \cdot z\_m\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if z < 5.49999999999999971e-263 or 5.20000000000000034e-208 < z < 1.24999999999999989e28

      1. Initial program 91.9%

        \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
      2. Add Preprocessing
      3. Taylor expanded in t around inf

        \[\leadsto \color{blue}{4 \cdot \left(t \cdot y\right)} \]
      4. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \color{blue}{\left(t \cdot y\right) \cdot 4} \]
        2. lower-*.f64N/A

          \[\leadsto \color{blue}{\left(t \cdot y\right) \cdot 4} \]
        3. lower-*.f6441.7

          \[\leadsto \color{blue}{\left(t \cdot y\right)} \cdot 4 \]
      5. Applied rewrites41.7%

        \[\leadsto \color{blue}{\left(t \cdot y\right) \cdot 4} \]

      if 5.49999999999999971e-263 < z < 5.20000000000000034e-208

      1. Initial program 100.0%

        \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
      2. Add Preprocessing
      3. Taylor expanded in z around inf

        \[\leadsto \color{blue}{-4 \cdot \left(y \cdot {z}^{2}\right)} \]
      4. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \color{blue}{\left(y \cdot {z}^{2}\right) \cdot -4} \]
        2. lower-*.f64N/A

          \[\leadsto \color{blue}{\left(y \cdot {z}^{2}\right) \cdot -4} \]
        3. *-commutativeN/A

          \[\leadsto \color{blue}{\left({z}^{2} \cdot y\right)} \cdot -4 \]
        4. lower-*.f64N/A

          \[\leadsto \color{blue}{\left({z}^{2} \cdot y\right)} \cdot -4 \]
        5. unpow2N/A

          \[\leadsto \left(\color{blue}{\left(z \cdot z\right)} \cdot y\right) \cdot -4 \]
        6. lower-*.f648.0

          \[\leadsto \left(\color{blue}{\left(z \cdot z\right)} \cdot y\right) \cdot -4 \]
      5. Applied rewrites8.0%

        \[\leadsto \color{blue}{\left(\left(z \cdot z\right) \cdot y\right) \cdot -4} \]
      6. Step-by-step derivation
        1. Applied rewrites8.0%

          \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{\left(-4 \cdot z\right)} \]
        2. Taylor expanded in x around inf

          \[\leadsto \color{blue}{{x}^{2}} \]
        3. Step-by-step derivation
          1. unpow2N/A

            \[\leadsto \color{blue}{x \cdot x} \]
          2. lower-*.f6471.8

            \[\leadsto \color{blue}{x \cdot x} \]
        4. Applied rewrites71.8%

          \[\leadsto \color{blue}{x \cdot x} \]

        if 1.24999999999999989e28 < z

        1. Initial program 71.9%

          \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
        2. Add Preprocessing
        3. Taylor expanded in z around inf

          \[\leadsto \color{blue}{-4 \cdot \left(y \cdot {z}^{2}\right)} \]
        4. Step-by-step derivation
          1. *-commutativeN/A

            \[\leadsto \color{blue}{\left(y \cdot {z}^{2}\right) \cdot -4} \]
          2. lower-*.f64N/A

            \[\leadsto \color{blue}{\left(y \cdot {z}^{2}\right) \cdot -4} \]
          3. *-commutativeN/A

            \[\leadsto \color{blue}{\left({z}^{2} \cdot y\right)} \cdot -4 \]
          4. lower-*.f64N/A

            \[\leadsto \color{blue}{\left({z}^{2} \cdot y\right)} \cdot -4 \]
          5. unpow2N/A

            \[\leadsto \left(\color{blue}{\left(z \cdot z\right)} \cdot y\right) \cdot -4 \]
          6. lower-*.f6468.7

            \[\leadsto \left(\color{blue}{\left(z \cdot z\right)} \cdot y\right) \cdot -4 \]
        5. Applied rewrites68.7%

          \[\leadsto \color{blue}{\left(\left(z \cdot z\right) \cdot y\right) \cdot -4} \]
        6. Step-by-step derivation
          1. Applied rewrites76.0%

            \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{\left(-4 \cdot z\right)} \]
        7. Recombined 3 regimes into one program.
        8. Add Preprocessing

        Alternative 3: 90.7% accurate, 0.8× speedup?

        \[\begin{array}{l} z_m = \left|z\right| \\ \begin{array}{l} \mathbf{if}\;z\_m \leq 1.25 \cdot 10^{+28}:\\ \;\;\;\;\mathsf{fma}\left(t \cdot 4, y, x \cdot x\right)\\ \mathbf{elif}\;z\_m \leq 2.1 \cdot 10^{+269}:\\ \;\;\;\;\mathsf{fma}\left(\left(y \cdot z\_m\right) \cdot z\_m, -4, x \cdot x\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(z\_m \cdot z\_m\right) \cdot y\right) \cdot -4\\ \end{array} \end{array} \]
        z_m = (fabs.f64 z)
        (FPCore (x y z_m t)
         :precision binary64
         (if (<= z_m 1.25e+28)
           (fma (* t 4.0) y (* x x))
           (if (<= z_m 2.1e+269)
             (fma (* (* y z_m) z_m) -4.0 (* x x))
             (* (* (* z_m z_m) y) -4.0))))
        z_m = fabs(z);
        double code(double x, double y, double z_m, double t) {
        	double tmp;
        	if (z_m <= 1.25e+28) {
        		tmp = fma((t * 4.0), y, (x * x));
        	} else if (z_m <= 2.1e+269) {
        		tmp = fma(((y * z_m) * z_m), -4.0, (x * x));
        	} else {
        		tmp = ((z_m * z_m) * y) * -4.0;
        	}
        	return tmp;
        }
        
        z_m = abs(z)
        function code(x, y, z_m, t)
        	tmp = 0.0
        	if (z_m <= 1.25e+28)
        		tmp = fma(Float64(t * 4.0), y, Float64(x * x));
        	elseif (z_m <= 2.1e+269)
        		tmp = fma(Float64(Float64(y * z_m) * z_m), -4.0, Float64(x * x));
        	else
        		tmp = Float64(Float64(Float64(z_m * z_m) * y) * -4.0);
        	end
        	return tmp
        end
        
        z_m = N[Abs[z], $MachinePrecision]
        code[x_, y_, z$95$m_, t_] := If[LessEqual[z$95$m, 1.25e+28], N[(N[(t * 4.0), $MachinePrecision] * y + N[(x * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z$95$m, 2.1e+269], N[(N[(N[(y * z$95$m), $MachinePrecision] * z$95$m), $MachinePrecision] * -4.0 + N[(x * x), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z$95$m * z$95$m), $MachinePrecision] * y), $MachinePrecision] * -4.0), $MachinePrecision]]]
        
        \begin{array}{l}
        z_m = \left|z\right|
        
        \\
        \begin{array}{l}
        \mathbf{if}\;z\_m \leq 1.25 \cdot 10^{+28}:\\
        \;\;\;\;\mathsf{fma}\left(t \cdot 4, y, x \cdot x\right)\\
        
        \mathbf{elif}\;z\_m \leq 2.1 \cdot 10^{+269}:\\
        \;\;\;\;\mathsf{fma}\left(\left(y \cdot z\_m\right) \cdot z\_m, -4, x \cdot x\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\left(\left(z\_m \cdot z\_m\right) \cdot y\right) \cdot -4\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if z < 1.24999999999999989e28

          1. Initial program 92.6%

            \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
          2. Add Preprocessing
          3. Taylor expanded in z around 0

            \[\leadsto \color{blue}{{x}^{2} - -4 \cdot \left(t \cdot y\right)} \]
          4. Step-by-step derivation
            1. metadata-evalN/A

              \[\leadsto {x}^{2} - \color{blue}{\left(\mathsf{neg}\left(4\right)\right)} \cdot \left(t \cdot y\right) \]
            2. fp-cancel-sign-sub-invN/A

              \[\leadsto \color{blue}{{x}^{2} + 4 \cdot \left(t \cdot y\right)} \]
            3. +-commutativeN/A

              \[\leadsto \color{blue}{4 \cdot \left(t \cdot y\right) + {x}^{2}} \]
            4. *-commutativeN/A

              \[\leadsto \color{blue}{\left(t \cdot y\right) \cdot 4} + {x}^{2} \]
            5. lower-fma.f64N/A

              \[\leadsto \color{blue}{\mathsf{fma}\left(t \cdot y, 4, {x}^{2}\right)} \]
            6. lower-*.f64N/A

              \[\leadsto \mathsf{fma}\left(\color{blue}{t \cdot y}, 4, {x}^{2}\right) \]
            7. unpow2N/A

              \[\leadsto \mathsf{fma}\left(t \cdot y, 4, \color{blue}{x \cdot x}\right) \]
            8. lower-*.f6474.9

              \[\leadsto \mathsf{fma}\left(t \cdot y, 4, \color{blue}{x \cdot x}\right) \]
          5. Applied rewrites74.9%

            \[\leadsto \color{blue}{\mathsf{fma}\left(t \cdot y, 4, x \cdot x\right)} \]
          6. Step-by-step derivation
            1. Applied rewrites75.4%

              \[\leadsto \mathsf{fma}\left(t \cdot 4, \color{blue}{y}, x \cdot x\right) \]

            if 1.24999999999999989e28 < z < 2.1e269

            1. Initial program 71.7%

              \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
            2. Add Preprocessing
            3. Taylor expanded in t around 0

              \[\leadsto \color{blue}{{x}^{2} - 4 \cdot \left(y \cdot {z}^{2}\right)} \]
            4. Step-by-step derivation
              1. fp-cancel-sub-sign-invN/A

                \[\leadsto \color{blue}{{x}^{2} + \left(\mathsf{neg}\left(4\right)\right) \cdot \left(y \cdot {z}^{2}\right)} \]
              2. metadata-evalN/A

                \[\leadsto {x}^{2} + \color{blue}{-4} \cdot \left(y \cdot {z}^{2}\right) \]
              3. +-commutativeN/A

                \[\leadsto \color{blue}{-4 \cdot \left(y \cdot {z}^{2}\right) + {x}^{2}} \]
              4. *-commutativeN/A

                \[\leadsto \color{blue}{\left(y \cdot {z}^{2}\right) \cdot -4} + {x}^{2} \]
              5. lower-fma.f64N/A

                \[\leadsto \color{blue}{\mathsf{fma}\left(y \cdot {z}^{2}, -4, {x}^{2}\right)} \]
              6. *-commutativeN/A

                \[\leadsto \mathsf{fma}\left(\color{blue}{{z}^{2} \cdot y}, -4, {x}^{2}\right) \]
              7. lower-*.f64N/A

                \[\leadsto \mathsf{fma}\left(\color{blue}{{z}^{2} \cdot y}, -4, {x}^{2}\right) \]
              8. unpow2N/A

                \[\leadsto \mathsf{fma}\left(\color{blue}{\left(z \cdot z\right)} \cdot y, -4, {x}^{2}\right) \]
              9. lower-*.f64N/A

                \[\leadsto \mathsf{fma}\left(\color{blue}{\left(z \cdot z\right)} \cdot y, -4, {x}^{2}\right) \]
              10. unpow2N/A

                \[\leadsto \mathsf{fma}\left(\left(z \cdot z\right) \cdot y, -4, \color{blue}{x \cdot x}\right) \]
              11. lower-*.f6467.3

                \[\leadsto \mathsf{fma}\left(\left(z \cdot z\right) \cdot y, -4, \color{blue}{x \cdot x}\right) \]
            5. Applied rewrites67.3%

              \[\leadsto \color{blue}{\mathsf{fma}\left(\left(z \cdot z\right) \cdot y, -4, x \cdot x\right)} \]
            6. Step-by-step derivation
              1. Applied rewrites88.7%

                \[\leadsto \mathsf{fma}\left(\left(y \cdot z\right) \cdot z, -4, x \cdot x\right) \]

              if 2.1e269 < z

              1. Initial program 72.7%

                \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
              2. Add Preprocessing
              3. Taylor expanded in z around inf

                \[\leadsto \color{blue}{-4 \cdot \left(y \cdot {z}^{2}\right)} \]
              4. Step-by-step derivation
                1. *-commutativeN/A

                  \[\leadsto \color{blue}{\left(y \cdot {z}^{2}\right) \cdot -4} \]
                2. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(y \cdot {z}^{2}\right) \cdot -4} \]
                3. *-commutativeN/A

                  \[\leadsto \color{blue}{\left({z}^{2} \cdot y\right)} \cdot -4 \]
                4. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left({z}^{2} \cdot y\right)} \cdot -4 \]
                5. unpow2N/A

                  \[\leadsto \left(\color{blue}{\left(z \cdot z\right)} \cdot y\right) \cdot -4 \]
                6. lower-*.f64100.0

                  \[\leadsto \left(\color{blue}{\left(z \cdot z\right)} \cdot y\right) \cdot -4 \]
              5. Applied rewrites100.0%

                \[\leadsto \color{blue}{\left(\left(z \cdot z\right) \cdot y\right) \cdot -4} \]
            7. Recombined 3 regimes into one program.
            8. Add Preprocessing

            Alternative 4: 86.0% accurate, 1.2× speedup?

            \[\begin{array}{l} z_m = \left|z\right| \\ \begin{array}{l} \mathbf{if}\;z\_m \leq 6.4 \cdot 10^{+88}:\\ \;\;\;\;\mathsf{fma}\left(t \cdot 4, y, x \cdot x\right)\\ \mathbf{else}:\\ \;\;\;\;\left(z\_m \cdot y\right) \cdot \left(-4 \cdot z\_m\right)\\ \end{array} \end{array} \]
            z_m = (fabs.f64 z)
            (FPCore (x y z_m t)
             :precision binary64
             (if (<= z_m 6.4e+88) (fma (* t 4.0) y (* x x)) (* (* z_m y) (* -4.0 z_m))))
            z_m = fabs(z);
            double code(double x, double y, double z_m, double t) {
            	double tmp;
            	if (z_m <= 6.4e+88) {
            		tmp = fma((t * 4.0), y, (x * x));
            	} else {
            		tmp = (z_m * y) * (-4.0 * z_m);
            	}
            	return tmp;
            }
            
            z_m = abs(z)
            function code(x, y, z_m, t)
            	tmp = 0.0
            	if (z_m <= 6.4e+88)
            		tmp = fma(Float64(t * 4.0), y, Float64(x * x));
            	else
            		tmp = Float64(Float64(z_m * y) * Float64(-4.0 * z_m));
            	end
            	return tmp
            end
            
            z_m = N[Abs[z], $MachinePrecision]
            code[x_, y_, z$95$m_, t_] := If[LessEqual[z$95$m, 6.4e+88], N[(N[(t * 4.0), $MachinePrecision] * y + N[(x * x), $MachinePrecision]), $MachinePrecision], N[(N[(z$95$m * y), $MachinePrecision] * N[(-4.0 * z$95$m), $MachinePrecision]), $MachinePrecision]]
            
            \begin{array}{l}
            z_m = \left|z\right|
            
            \\
            \begin{array}{l}
            \mathbf{if}\;z\_m \leq 6.4 \cdot 10^{+88}:\\
            \;\;\;\;\mathsf{fma}\left(t \cdot 4, y, x \cdot x\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;\left(z\_m \cdot y\right) \cdot \left(-4 \cdot z\_m\right)\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if z < 6.3999999999999997e88

              1. Initial program 92.6%

                \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
              2. Add Preprocessing
              3. Taylor expanded in z around 0

                \[\leadsto \color{blue}{{x}^{2} - -4 \cdot \left(t \cdot y\right)} \]
              4. Step-by-step derivation
                1. metadata-evalN/A

                  \[\leadsto {x}^{2} - \color{blue}{\left(\mathsf{neg}\left(4\right)\right)} \cdot \left(t \cdot y\right) \]
                2. fp-cancel-sign-sub-invN/A

                  \[\leadsto \color{blue}{{x}^{2} + 4 \cdot \left(t \cdot y\right)} \]
                3. +-commutativeN/A

                  \[\leadsto \color{blue}{4 \cdot \left(t \cdot y\right) + {x}^{2}} \]
                4. *-commutativeN/A

                  \[\leadsto \color{blue}{\left(t \cdot y\right) \cdot 4} + {x}^{2} \]
                5. lower-fma.f64N/A

                  \[\leadsto \color{blue}{\mathsf{fma}\left(t \cdot y, 4, {x}^{2}\right)} \]
                6. lower-*.f64N/A

                  \[\leadsto \mathsf{fma}\left(\color{blue}{t \cdot y}, 4, {x}^{2}\right) \]
                7. unpow2N/A

                  \[\leadsto \mathsf{fma}\left(t \cdot y, 4, \color{blue}{x \cdot x}\right) \]
                8. lower-*.f6473.6

                  \[\leadsto \mathsf{fma}\left(t \cdot y, 4, \color{blue}{x \cdot x}\right) \]
              5. Applied rewrites73.6%

                \[\leadsto \color{blue}{\mathsf{fma}\left(t \cdot y, 4, x \cdot x\right)} \]
              6. Step-by-step derivation
                1. Applied rewrites74.0%

                  \[\leadsto \mathsf{fma}\left(t \cdot 4, \color{blue}{y}, x \cdot x\right) \]

                if 6.3999999999999997e88 < z

                1. Initial program 66.5%

                  \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
                2. Add Preprocessing
                3. Taylor expanded in z around inf

                  \[\leadsto \color{blue}{-4 \cdot \left(y \cdot {z}^{2}\right)} \]
                4. Step-by-step derivation
                  1. *-commutativeN/A

                    \[\leadsto \color{blue}{\left(y \cdot {z}^{2}\right) \cdot -4} \]
                  2. lower-*.f64N/A

                    \[\leadsto \color{blue}{\left(y \cdot {z}^{2}\right) \cdot -4} \]
                  3. *-commutativeN/A

                    \[\leadsto \color{blue}{\left({z}^{2} \cdot y\right)} \cdot -4 \]
                  4. lower-*.f64N/A

                    \[\leadsto \color{blue}{\left({z}^{2} \cdot y\right)} \cdot -4 \]
                  5. unpow2N/A

                    \[\leadsto \left(\color{blue}{\left(z \cdot z\right)} \cdot y\right) \cdot -4 \]
                  6. lower-*.f6471.3

                    \[\leadsto \left(\color{blue}{\left(z \cdot z\right)} \cdot y\right) \cdot -4 \]
                5. Applied rewrites71.3%

                  \[\leadsto \color{blue}{\left(\left(z \cdot z\right) \cdot y\right) \cdot -4} \]
                6. Step-by-step derivation
                  1. Applied rewrites80.6%

                    \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{\left(-4 \cdot z\right)} \]
                7. Recombined 2 regimes into one program.
                8. Add Preprocessing

                Alternative 5: 45.1% accurate, 1.6× speedup?

                \[\begin{array}{l} z_m = \left|z\right| \\ \begin{array}{l} \mathbf{if}\;x \leq 9.5 \cdot 10^{+47}:\\ \;\;\;\;\left(t \cdot y\right) \cdot 4\\ \mathbf{else}:\\ \;\;\;\;x \cdot x\\ \end{array} \end{array} \]
                z_m = (fabs.f64 z)
                (FPCore (x y z_m t)
                 :precision binary64
                 (if (<= x 9.5e+47) (* (* t y) 4.0) (* x x)))
                z_m = fabs(z);
                double code(double x, double y, double z_m, double t) {
                	double tmp;
                	if (x <= 9.5e+47) {
                		tmp = (t * y) * 4.0;
                	} else {
                		tmp = x * x;
                	}
                	return tmp;
                }
                
                z_m = abs(z)
                real(8) function code(x, y, z_m, t)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    real(8), intent (in) :: z_m
                    real(8), intent (in) :: t
                    real(8) :: tmp
                    if (x <= 9.5d+47) then
                        tmp = (t * y) * 4.0d0
                    else
                        tmp = x * x
                    end if
                    code = tmp
                end function
                
                z_m = Math.abs(z);
                public static double code(double x, double y, double z_m, double t) {
                	double tmp;
                	if (x <= 9.5e+47) {
                		tmp = (t * y) * 4.0;
                	} else {
                		tmp = x * x;
                	}
                	return tmp;
                }
                
                z_m = math.fabs(z)
                def code(x, y, z_m, t):
                	tmp = 0
                	if x <= 9.5e+47:
                		tmp = (t * y) * 4.0
                	else:
                		tmp = x * x
                	return tmp
                
                z_m = abs(z)
                function code(x, y, z_m, t)
                	tmp = 0.0
                	if (x <= 9.5e+47)
                		tmp = Float64(Float64(t * y) * 4.0);
                	else
                		tmp = Float64(x * x);
                	end
                	return tmp
                end
                
                z_m = abs(z);
                function tmp_2 = code(x, y, z_m, t)
                	tmp = 0.0;
                	if (x <= 9.5e+47)
                		tmp = (t * y) * 4.0;
                	else
                		tmp = x * x;
                	end
                	tmp_2 = tmp;
                end
                
                z_m = N[Abs[z], $MachinePrecision]
                code[x_, y_, z$95$m_, t_] := If[LessEqual[x, 9.5e+47], N[(N[(t * y), $MachinePrecision] * 4.0), $MachinePrecision], N[(x * x), $MachinePrecision]]
                
                \begin{array}{l}
                z_m = \left|z\right|
                
                \\
                \begin{array}{l}
                \mathbf{if}\;x \leq 9.5 \cdot 10^{+47}:\\
                \;\;\;\;\left(t \cdot y\right) \cdot 4\\
                
                \mathbf{else}:\\
                \;\;\;\;x \cdot x\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if x < 9.50000000000000001e47

                  1. Initial program 90.1%

                    \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
                  2. Add Preprocessing
                  3. Taylor expanded in t around inf

                    \[\leadsto \color{blue}{4 \cdot \left(t \cdot y\right)} \]
                  4. Step-by-step derivation
                    1. *-commutativeN/A

                      \[\leadsto \color{blue}{\left(t \cdot y\right) \cdot 4} \]
                    2. lower-*.f64N/A

                      \[\leadsto \color{blue}{\left(t \cdot y\right) \cdot 4} \]
                    3. lower-*.f6437.4

                      \[\leadsto \color{blue}{\left(t \cdot y\right)} \cdot 4 \]
                  5. Applied rewrites37.4%

                    \[\leadsto \color{blue}{\left(t \cdot y\right) \cdot 4} \]

                  if 9.50000000000000001e47 < x

                  1. Initial program 81.9%

                    \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
                  2. Add Preprocessing
                  3. Taylor expanded in z around inf

                    \[\leadsto \color{blue}{-4 \cdot \left(y \cdot {z}^{2}\right)} \]
                  4. Step-by-step derivation
                    1. *-commutativeN/A

                      \[\leadsto \color{blue}{\left(y \cdot {z}^{2}\right) \cdot -4} \]
                    2. lower-*.f64N/A

                      \[\leadsto \color{blue}{\left(y \cdot {z}^{2}\right) \cdot -4} \]
                    3. *-commutativeN/A

                      \[\leadsto \color{blue}{\left({z}^{2} \cdot y\right)} \cdot -4 \]
                    4. lower-*.f64N/A

                      \[\leadsto \color{blue}{\left({z}^{2} \cdot y\right)} \cdot -4 \]
                    5. unpow2N/A

                      \[\leadsto \left(\color{blue}{\left(z \cdot z\right)} \cdot y\right) \cdot -4 \]
                    6. lower-*.f6424.9

                      \[\leadsto \left(\color{blue}{\left(z \cdot z\right)} \cdot y\right) \cdot -4 \]
                  5. Applied rewrites24.9%

                    \[\leadsto \color{blue}{\left(\left(z \cdot z\right) \cdot y\right) \cdot -4} \]
                  6. Step-by-step derivation
                    1. Applied rewrites23.4%

                      \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{\left(-4 \cdot z\right)} \]
                    2. Taylor expanded in x around inf

                      \[\leadsto \color{blue}{{x}^{2}} \]
                    3. Step-by-step derivation
                      1. unpow2N/A

                        \[\leadsto \color{blue}{x \cdot x} \]
                      2. lower-*.f6471.9

                        \[\leadsto \color{blue}{x \cdot x} \]
                    4. Applied rewrites71.9%

                      \[\leadsto \color{blue}{x \cdot x} \]
                  7. Recombined 2 regimes into one program.
                  8. Add Preprocessing

                  Alternative 6: 40.6% accurate, 4.5× speedup?

                  \[\begin{array}{l} z_m = \left|z\right| \\ x \cdot x \end{array} \]
                  z_m = (fabs.f64 z)
                  (FPCore (x y z_m t) :precision binary64 (* x x))
                  z_m = fabs(z);
                  double code(double x, double y, double z_m, double t) {
                  	return x * x;
                  }
                  
                  z_m = abs(z)
                  real(8) function code(x, y, z_m, t)
                      real(8), intent (in) :: x
                      real(8), intent (in) :: y
                      real(8), intent (in) :: z_m
                      real(8), intent (in) :: t
                      code = x * x
                  end function
                  
                  z_m = Math.abs(z);
                  public static double code(double x, double y, double z_m, double t) {
                  	return x * x;
                  }
                  
                  z_m = math.fabs(z)
                  def code(x, y, z_m, t):
                  	return x * x
                  
                  z_m = abs(z)
                  function code(x, y, z_m, t)
                  	return Float64(x * x)
                  end
                  
                  z_m = abs(z);
                  function tmp = code(x, y, z_m, t)
                  	tmp = x * x;
                  end
                  
                  z_m = N[Abs[z], $MachinePrecision]
                  code[x_, y_, z$95$m_, t_] := N[(x * x), $MachinePrecision]
                  
                  \begin{array}{l}
                  z_m = \left|z\right|
                  
                  \\
                  x \cdot x
                  \end{array}
                  
                  Derivation
                  1. Initial program 88.2%

                    \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
                  2. Add Preprocessing
                  3. Taylor expanded in z around inf

                    \[\leadsto \color{blue}{-4 \cdot \left(y \cdot {z}^{2}\right)} \]
                  4. Step-by-step derivation
                    1. *-commutativeN/A

                      \[\leadsto \color{blue}{\left(y \cdot {z}^{2}\right) \cdot -4} \]
                    2. lower-*.f64N/A

                      \[\leadsto \color{blue}{\left(y \cdot {z}^{2}\right) \cdot -4} \]
                    3. *-commutativeN/A

                      \[\leadsto \color{blue}{\left({z}^{2} \cdot y\right)} \cdot -4 \]
                    4. lower-*.f64N/A

                      \[\leadsto \color{blue}{\left({z}^{2} \cdot y\right)} \cdot -4 \]
                    5. unpow2N/A

                      \[\leadsto \left(\color{blue}{\left(z \cdot z\right)} \cdot y\right) \cdot -4 \]
                    6. lower-*.f6438.8

                      \[\leadsto \left(\color{blue}{\left(z \cdot z\right)} \cdot y\right) \cdot -4 \]
                  5. Applied rewrites38.8%

                    \[\leadsto \color{blue}{\left(\left(z \cdot z\right) \cdot y\right) \cdot -4} \]
                  6. Step-by-step derivation
                    1. Applied rewrites41.1%

                      \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{\left(-4 \cdot z\right)} \]
                    2. Taylor expanded in x around inf

                      \[\leadsto \color{blue}{{x}^{2}} \]
                    3. Step-by-step derivation
                      1. unpow2N/A

                        \[\leadsto \color{blue}{x \cdot x} \]
                      2. lower-*.f6437.9

                        \[\leadsto \color{blue}{x \cdot x} \]
                    4. Applied rewrites37.9%

                      \[\leadsto \color{blue}{x \cdot x} \]
                    5. Add Preprocessing

                    Developer Target 1: 90.7% accurate, 1.0× speedup?

                    \[\begin{array}{l} \\ x \cdot x - 4 \cdot \left(y \cdot \left(z \cdot z - t\right)\right) \end{array} \]
                    (FPCore (x y z t) :precision binary64 (- (* x x) (* 4.0 (* y (- (* z z) t)))))
                    double code(double x, double y, double z, double t) {
                    	return (x * x) - (4.0 * (y * ((z * z) - t)));
                    }
                    
                    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) - (4.0d0 * (y * ((z * z) - t)))
                    end function
                    
                    public static double code(double x, double y, double z, double t) {
                    	return (x * x) - (4.0 * (y * ((z * z) - t)));
                    }
                    
                    def code(x, y, z, t):
                    	return (x * x) - (4.0 * (y * ((z * z) - t)))
                    
                    function code(x, y, z, t)
                    	return Float64(Float64(x * x) - Float64(4.0 * Float64(y * Float64(Float64(z * z) - t))))
                    end
                    
                    function tmp = code(x, y, z, t)
                    	tmp = (x * x) - (4.0 * (y * ((z * z) - t)));
                    end
                    
                    code[x_, y_, z_, t_] := N[(N[(x * x), $MachinePrecision] - N[(4.0 * N[(y * N[(N[(z * z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                    
                    \begin{array}{l}
                    
                    \\
                    x \cdot x - 4 \cdot \left(y \cdot \left(z \cdot z - t\right)\right)
                    \end{array}
                    

                    Reproduce

                    ?
                    herbie shell --seed 2024339 
                    (FPCore (x y z t)
                      :name "Graphics.Rasterific.Shading:$sradialGradientWithFocusShader from Rasterific-0.6.1, B"
                      :precision binary64
                    
                      :alt
                      (! :herbie-platform default (- (* x x) (* 4 (* y (- (* z z) t)))))
                    
                      (- (* x x) (* (* y 4.0) (- (* z z) t))))