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

Percentage Accurate: 90.5% → 93.1%
Time: 12.2s
Alternatives: 9
Speedup: 0.4×

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 9 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.5% 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: 93.1% accurate, 0.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \cdot x \leq 10^{+279}:\\ \;\;\;\;x \cdot x - \left(z \cdot z - t\right) \cdot \left(y \cdot 4\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y \cdot 4, t, x \cdot x\right)\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= (* x x) 1e+279)
   (- (* x x) (* (- (* z z) t) (* y 4.0)))
   (fma (* y 4.0) t (* x x))))
double code(double x, double y, double z, double t) {
	double tmp;
	if ((x * x) <= 1e+279) {
		tmp = (x * x) - (((z * z) - t) * (y * 4.0));
	} else {
		tmp = fma((y * 4.0), t, (x * x));
	}
	return tmp;
}
function code(x, y, z, t)
	tmp = 0.0
	if (Float64(x * x) <= 1e+279)
		tmp = Float64(Float64(x * x) - Float64(Float64(Float64(z * z) - t) * Float64(y * 4.0)));
	else
		tmp = fma(Float64(y * 4.0), t, Float64(x * x));
	end
	return tmp
end
code[x_, y_, z_, t_] := If[LessEqual[N[(x * x), $MachinePrecision], 1e+279], N[(N[(x * x), $MachinePrecision] - N[(N[(N[(z * z), $MachinePrecision] - t), $MachinePrecision] * N[(y * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * 4.0), $MachinePrecision] * t + N[(x * x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \cdot x \leq 10^{+279}:\\
\;\;\;\;x \cdot x - \left(z \cdot z - t\right) \cdot \left(y \cdot 4\right)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot 4, t, x \cdot x\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (*.f64 x x) < 1.00000000000000006e279

    1. Initial program 94.6%

      \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
    2. Add Preprocessing

    if 1.00000000000000006e279 < (*.f64 x x)

    1. Initial program 74.2%

      \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub-inv74.2%

        \[\leadsto \color{blue}{x \cdot x + \left(-y \cdot 4\right) \cdot \left(z \cdot z - t\right)} \]
      2. distribute-lft-neg-out74.2%

        \[\leadsto x \cdot x + \color{blue}{\left(\left(-y\right) \cdot 4\right)} \cdot \left(z \cdot z - t\right) \]
      3. +-commutative74.2%

        \[\leadsto \color{blue}{\left(\left(-y\right) \cdot 4\right) \cdot \left(z \cdot z - t\right) + x \cdot x} \]
      4. distribute-lft-neg-out74.2%

        \[\leadsto \color{blue}{\left(-y \cdot 4\right)} \cdot \left(z \cdot z - t\right) + x \cdot x \]
      5. distribute-lft-neg-in74.2%

        \[\leadsto \color{blue}{\left(-\left(y \cdot 4\right) \cdot \left(z \cdot z - t\right)\right)} + x \cdot x \]
      6. distribute-rgt-neg-in74.2%

        \[\leadsto \color{blue}{\left(y \cdot 4\right) \cdot \left(-\left(z \cdot z - t\right)\right)} + x \cdot x \]
      7. fma-define75.8%

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

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

        \[\leadsto \mathsf{fma}\left(y \cdot 4, -\color{blue}{\left(\left(-t\right) + z \cdot z\right)}, x \cdot x\right) \]
      10. distribute-neg-in75.8%

        \[\leadsto \mathsf{fma}\left(y \cdot 4, \color{blue}{\left(-\left(-t\right)\right) + \left(-z \cdot z\right)}, x \cdot x\right) \]
      11. remove-double-neg75.8%

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

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(y \cdot 4, t - z \cdot z, x \cdot x\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in t around inf 88.7%

      \[\leadsto \mathsf{fma}\left(y \cdot 4, \color{blue}{t}, x \cdot x\right) \]
  3. Recombined 2 regimes into one program.
  4. Final simplification93.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \cdot x \leq 10^{+279}:\\ \;\;\;\;x \cdot x - \left(z \cdot z - t\right) \cdot \left(y \cdot 4\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y \cdot 4, t, x \cdot x\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 92.7% accurate, 0.1× speedup?

\[\begin{array}{l} \\ \mathsf{fma}\left(x, x, \left(z \cdot z - t\right) \cdot \left(y \cdot -4\right)\right) \end{array} \]
(FPCore (x y z t) :precision binary64 (fma x x (* (- (* z z) t) (* y -4.0))))
double code(double x, double y, double z, double t) {
	return fma(x, x, (((z * z) - t) * (y * -4.0)));
}
function code(x, y, z, t)
	return fma(x, x, Float64(Float64(Float64(z * z) - t) * Float64(y * -4.0)))
end
code[x_, y_, z_, t_] := N[(x * x + N[(N[(N[(z * z), $MachinePrecision] - t), $MachinePrecision] * N[(y * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\mathsf{fma}\left(x, x, \left(z \cdot z - t\right) \cdot \left(y \cdot -4\right)\right)
\end{array}
Derivation
  1. Initial program 89.6%

    \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
  2. Step-by-step derivation
    1. fma-neg92.4%

      \[\leadsto \color{blue}{\mathsf{fma}\left(x, x, -\left(y \cdot 4\right) \cdot \left(z \cdot z - t\right)\right)} \]
    2. distribute-lft-neg-in92.4%

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

      \[\leadsto \mathsf{fma}\left(x, x, \color{blue}{\left(z \cdot z - t\right) \cdot \left(-y \cdot 4\right)}\right) \]
    4. distribute-rgt-neg-in92.4%

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

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

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

Alternative 3: 93.5% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(z \cdot z - t\right) \cdot \left(y \cdot 4\right)\\ t_2 := x \cdot x - t\_1\\ \mathbf{if}\;t\_2 \leq \infty:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;x \cdot x + t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (* (- (* z z) t) (* y 4.0))) (t_2 (- (* x x) t_1)))
   (if (<= t_2 INFINITY) t_2 (+ (* x x) t_1))))
double code(double x, double y, double z, double t) {
	double t_1 = ((z * z) - t) * (y * 4.0);
	double t_2 = (x * x) - t_1;
	double tmp;
	if (t_2 <= ((double) INFINITY)) {
		tmp = t_2;
	} else {
		tmp = (x * x) + t_1;
	}
	return tmp;
}
public static double code(double x, double y, double z, double t) {
	double t_1 = ((z * z) - t) * (y * 4.0);
	double t_2 = (x * x) - t_1;
	double tmp;
	if (t_2 <= Double.POSITIVE_INFINITY) {
		tmp = t_2;
	} else {
		tmp = (x * x) + t_1;
	}
	return tmp;
}
def code(x, y, z, t):
	t_1 = ((z * z) - t) * (y * 4.0)
	t_2 = (x * x) - t_1
	tmp = 0
	if t_2 <= math.inf:
		tmp = t_2
	else:
		tmp = (x * x) + t_1
	return tmp
function code(x, y, z, t)
	t_1 = Float64(Float64(Float64(z * z) - t) * Float64(y * 4.0))
	t_2 = Float64(Float64(x * x) - t_1)
	tmp = 0.0
	if (t_2 <= Inf)
		tmp = t_2;
	else
		tmp = Float64(Float64(x * x) + t_1);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	t_1 = ((z * z) - t) * (y * 4.0);
	t_2 = (x * x) - t_1;
	tmp = 0.0;
	if (t_2 <= Inf)
		tmp = t_2;
	else
		tmp = (x * x) + t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(z * z), $MachinePrecision] - t), $MachinePrecision] * N[(y * 4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * x), $MachinePrecision] - t$95$1), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, N[(N[(x * x), $MachinePrecision] + t$95$1), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(z \cdot z - t\right) \cdot \left(y \cdot 4\right)\\
t_2 := x \cdot x - t\_1\\
\mathbf{if}\;t\_2 \leq \infty:\\
\;\;\;\;t\_2\\

\mathbf{else}:\\
\;\;\;\;x \cdot x + t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) (-.f64 (*.f64 z z) t))) < +inf.0

    1. Initial program 95.6%

      \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
    2. Add Preprocessing

    if +inf.0 < (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) (-.f64 (*.f64 z z) t)))

    1. Initial program 0.0%

      \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-sqr-sqrt0.0%

        \[\leadsto x \cdot x - \color{blue}{\left(\sqrt{y \cdot 4} \cdot \sqrt{y \cdot 4}\right)} \cdot \left(z \cdot z - t\right) \]
      2. sqrt-unprod0.0%

        \[\leadsto x \cdot x - \color{blue}{\sqrt{\left(y \cdot 4\right) \cdot \left(y \cdot 4\right)}} \cdot \left(z \cdot z - t\right) \]
      3. swap-sqr0.0%

        \[\leadsto x \cdot x - \sqrt{\color{blue}{\left(y \cdot y\right) \cdot \left(4 \cdot 4\right)}} \cdot \left(z \cdot z - t\right) \]
      4. metadata-eval0.0%

        \[\leadsto x \cdot x - \sqrt{\left(y \cdot y\right) \cdot \color{blue}{16}} \cdot \left(z \cdot z - t\right) \]
      5. metadata-eval0.0%

        \[\leadsto x \cdot x - \sqrt{\left(y \cdot y\right) \cdot \color{blue}{\left(-4 \cdot -4\right)}} \cdot \left(z \cdot z - t\right) \]
      6. swap-sqr0.0%

        \[\leadsto x \cdot x - \sqrt{\color{blue}{\left(y \cdot -4\right) \cdot \left(y \cdot -4\right)}} \cdot \left(z \cdot z - t\right) \]
      7. sqrt-unprod0.0%

        \[\leadsto x \cdot x - \color{blue}{\left(\sqrt{y \cdot -4} \cdot \sqrt{y \cdot -4}\right)} \cdot \left(z \cdot z - t\right) \]
      8. add-sqr-sqrt56.3%

        \[\leadsto x \cdot x - \color{blue}{\left(y \cdot -4\right)} \cdot \left(z \cdot z - t\right) \]
      9. metadata-eval56.3%

        \[\leadsto x \cdot x - \left(y \cdot \color{blue}{\left(-4\right)}\right) \cdot \left(z \cdot z - t\right) \]
      10. distribute-rgt-neg-in56.3%

        \[\leadsto x \cdot x - \color{blue}{\left(-y \cdot 4\right)} \cdot \left(z \cdot z - t\right) \]
    4. Applied egg-rr56.3%

      \[\leadsto x \cdot x - \color{blue}{\left(-y \cdot 4\right)} \cdot \left(z \cdot z - t\right) \]
  3. Recombined 2 regimes into one program.
  4. Final simplification93.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \cdot x - \left(z \cdot z - t\right) \cdot \left(y \cdot 4\right) \leq \infty:\\ \;\;\;\;x \cdot x - \left(z \cdot z - t\right) \cdot \left(y \cdot 4\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot x + \left(z \cdot z - t\right) \cdot \left(y \cdot 4\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 92.7% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot x - \left(z \cdot z - t\right) \cdot \left(y \cdot 4\right)\\ \mathbf{if}\;t\_1 \leq \infty:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;x \cdot x - y \cdot \left(t \cdot -4\right)\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (- (* x x) (* (- (* z z) t) (* y 4.0)))))
   (if (<= t_1 INFINITY) t_1 (- (* x x) (* y (* t -4.0))))))
double code(double x, double y, double z, double t) {
	double t_1 = (x * x) - (((z * z) - t) * (y * 4.0));
	double tmp;
	if (t_1 <= ((double) INFINITY)) {
		tmp = t_1;
	} else {
		tmp = (x * x) - (y * (t * -4.0));
	}
	return tmp;
}
public static double code(double x, double y, double z, double t) {
	double t_1 = (x * x) - (((z * z) - t) * (y * 4.0));
	double tmp;
	if (t_1 <= Double.POSITIVE_INFINITY) {
		tmp = t_1;
	} else {
		tmp = (x * x) - (y * (t * -4.0));
	}
	return tmp;
}
def code(x, y, z, t):
	t_1 = (x * x) - (((z * z) - t) * (y * 4.0))
	tmp = 0
	if t_1 <= math.inf:
		tmp = t_1
	else:
		tmp = (x * x) - (y * (t * -4.0))
	return tmp
function code(x, y, z, t)
	t_1 = Float64(Float64(x * x) - Float64(Float64(Float64(z * z) - t) * Float64(y * 4.0)))
	tmp = 0.0
	if (t_1 <= Inf)
		tmp = t_1;
	else
		tmp = Float64(Float64(x * x) - Float64(y * Float64(t * -4.0)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	t_1 = (x * x) - (((z * z) - t) * (y * 4.0));
	tmp = 0.0;
	if (t_1 <= Inf)
		tmp = t_1;
	else
		tmp = (x * x) - (y * (t * -4.0));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * x), $MachinePrecision] - N[(N[(N[(z * z), $MachinePrecision] - t), $MachinePrecision] * N[(y * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(x * x), $MachinePrecision] - N[(y * N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot x - \left(z \cdot z - t\right) \cdot \left(y \cdot 4\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;x \cdot x - y \cdot \left(t \cdot -4\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) (-.f64 (*.f64 z z) t))) < +inf.0

    1. Initial program 95.6%

      \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
    2. Add Preprocessing

    if +inf.0 < (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) (-.f64 (*.f64 z z) t)))

    1. Initial program 0.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 0 50.0%

      \[\leadsto x \cdot x - \color{blue}{-4 \cdot \left(t \cdot y\right)} \]
    4. Step-by-step derivation
      1. *-commutative50.0%

        \[\leadsto x \cdot x - \color{blue}{\left(t \cdot y\right) \cdot -4} \]
      2. *-commutative50.0%

        \[\leadsto x \cdot x - \color{blue}{\left(y \cdot t\right)} \cdot -4 \]
      3. associate-*l*50.0%

        \[\leadsto x \cdot x - \color{blue}{y \cdot \left(t \cdot -4\right)} \]
    5. Simplified50.0%

      \[\leadsto x \cdot x - \color{blue}{y \cdot \left(t \cdot -4\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification92.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \cdot x - \left(z \cdot z - t\right) \cdot \left(y \cdot 4\right) \leq \infty:\\ \;\;\;\;x \cdot x - \left(z \cdot z - t\right) \cdot \left(y \cdot 4\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot x - y \cdot \left(t \cdot -4\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 73.5% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq 1.56 \cdot 10^{+53}:\\ \;\;\;\;x \cdot x - y \cdot \left(t \cdot -4\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(\left(z \cdot z\right) \cdot -4\right)\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= z 1.56e+53) (- (* x x) (* y (* t -4.0))) (* y (* (* z z) -4.0))))
double code(double x, double y, double z, double t) {
	double tmp;
	if (z <= 1.56e+53) {
		tmp = (x * x) - (y * (t * -4.0));
	} else {
		tmp = y * ((z * z) * -4.0);
	}
	return tmp;
}
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
    real(8) :: tmp
    if (z <= 1.56d+53) then
        tmp = (x * x) - (y * (t * (-4.0d0)))
    else
        tmp = y * ((z * z) * (-4.0d0))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if (z <= 1.56e+53) {
		tmp = (x * x) - (y * (t * -4.0));
	} else {
		tmp = y * ((z * z) * -4.0);
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if z <= 1.56e+53:
		tmp = (x * x) - (y * (t * -4.0))
	else:
		tmp = y * ((z * z) * -4.0)
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (z <= 1.56e+53)
		tmp = Float64(Float64(x * x) - Float64(y * Float64(t * -4.0)));
	else
		tmp = Float64(y * Float64(Float64(z * z) * -4.0));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if (z <= 1.56e+53)
		tmp = (x * x) - (y * (t * -4.0));
	else
		tmp = y * ((z * z) * -4.0);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[z, 1.56e+53], N[(N[(x * x), $MachinePrecision] - N[(y * N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(z * z), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq 1.56 \cdot 10^{+53}:\\
\;\;\;\;x \cdot x - y \cdot \left(t \cdot -4\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < 1.56e53

    1. Initial program 93.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 0 77.6%

      \[\leadsto x \cdot x - \color{blue}{-4 \cdot \left(t \cdot y\right)} \]
    4. Step-by-step derivation
      1. *-commutative77.6%

        \[\leadsto x \cdot x - \color{blue}{\left(t \cdot y\right) \cdot -4} \]
      2. *-commutative77.6%

        \[\leadsto x \cdot x - \color{blue}{\left(y \cdot t\right)} \cdot -4 \]
      3. associate-*l*77.6%

        \[\leadsto x \cdot x - \color{blue}{y \cdot \left(t \cdot -4\right)} \]
    5. Simplified77.6%

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

    if 1.56e53 < z

    1. Initial program 76.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 67.5%

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

        \[\leadsto \color{blue}{\left(y \cdot {z}^{2}\right) \cdot -4} \]
      2. associate-*l*67.5%

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

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

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

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

Alternative 6: 44.1% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq 4800:\\ \;\;\;\;4 \cdot \left(t \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(\left(z \cdot z\right) \cdot -4\right)\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= z 4800.0) (* 4.0 (* t y)) (* y (* (* z z) -4.0))))
double code(double x, double y, double z, double t) {
	double tmp;
	if (z <= 4800.0) {
		tmp = 4.0 * (t * y);
	} else {
		tmp = y * ((z * z) * -4.0);
	}
	return tmp;
}
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
    real(8) :: tmp
    if (z <= 4800.0d0) then
        tmp = 4.0d0 * (t * y)
    else
        tmp = y * ((z * z) * (-4.0d0))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if (z <= 4800.0) {
		tmp = 4.0 * (t * y);
	} else {
		tmp = y * ((z * z) * -4.0);
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if z <= 4800.0:
		tmp = 4.0 * (t * y)
	else:
		tmp = y * ((z * z) * -4.0)
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (z <= 4800.0)
		tmp = Float64(4.0 * Float64(t * y));
	else
		tmp = Float64(y * Float64(Float64(z * z) * -4.0));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if (z <= 4800.0)
		tmp = 4.0 * (t * y);
	else
		tmp = y * ((z * z) * -4.0);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[z, 4800.0], N[(4.0 * N[(t * y), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(z * z), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq 4800:\\
\;\;\;\;4 \cdot \left(t \cdot y\right)\\

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


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

    1. Initial program 93.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 43.7%

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

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

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

    if 4800 < z

    1. Initial program 80.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 62.0%

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

        \[\leadsto \color{blue}{\left(y \cdot {z}^{2}\right) \cdot -4} \]
      2. associate-*l*62.0%

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

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

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

      \[\leadsto y \cdot \left(\color{blue}{\left(z \cdot z\right)} \cdot -4\right) \]
  3. Recombined 2 regimes into one program.
  4. Final simplification48.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq 4800:\\ \;\;\;\;4 \cdot \left(t \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(\left(z \cdot z\right) \cdot -4\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 31.5% accurate, 1.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq 7.6 \cdot 10^{+128}:\\ \;\;\;\;4 \cdot \left(t \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;-4 \cdot \left(t \cdot y\right)\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= z 7.6e+128) (* 4.0 (* t y)) (* -4.0 (* t y))))
double code(double x, double y, double z, double t) {
	double tmp;
	if (z <= 7.6e+128) {
		tmp = 4.0 * (t * y);
	} else {
		tmp = -4.0 * (t * y);
	}
	return tmp;
}
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
    real(8) :: tmp
    if (z <= 7.6d+128) then
        tmp = 4.0d0 * (t * y)
    else
        tmp = (-4.0d0) * (t * y)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if (z <= 7.6e+128) {
		tmp = 4.0 * (t * y);
	} else {
		tmp = -4.0 * (t * y);
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if z <= 7.6e+128:
		tmp = 4.0 * (t * y)
	else:
		tmp = -4.0 * (t * y)
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (z <= 7.6e+128)
		tmp = Float64(4.0 * Float64(t * y));
	else
		tmp = Float64(-4.0 * Float64(t * y));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if (z <= 7.6e+128)
		tmp = 4.0 * (t * y);
	else
		tmp = -4.0 * (t * y);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[z, 7.6e+128], N[(4.0 * N[(t * y), $MachinePrecision]), $MachinePrecision], N[(-4.0 * N[(t * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq 7.6 \cdot 10^{+128}:\\
\;\;\;\;4 \cdot \left(t \cdot y\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < 7.5999999999999998e128

    1. Initial program 94.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 inf 41.1%

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

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

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

    if 7.5999999999999998e128 < z

    1. Initial program 68.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. add-sqr-sqrt37.9%

        \[\leadsto x \cdot x - \color{blue}{\left(\sqrt{y \cdot 4} \cdot \sqrt{y \cdot 4}\right)} \cdot \left(z \cdot z - t\right) \]
      2. sqrt-unprod32.9%

        \[\leadsto x \cdot x - \color{blue}{\sqrt{\left(y \cdot 4\right) \cdot \left(y \cdot 4\right)}} \cdot \left(z \cdot z - t\right) \]
      3. swap-sqr32.9%

        \[\leadsto x \cdot x - \sqrt{\color{blue}{\left(y \cdot y\right) \cdot \left(4 \cdot 4\right)}} \cdot \left(z \cdot z - t\right) \]
      4. metadata-eval32.9%

        \[\leadsto x \cdot x - \sqrt{\left(y \cdot y\right) \cdot \color{blue}{16}} \cdot \left(z \cdot z - t\right) \]
      5. metadata-eval32.9%

        \[\leadsto x \cdot x - \sqrt{\left(y \cdot y\right) \cdot \color{blue}{\left(-4 \cdot -4\right)}} \cdot \left(z \cdot z - t\right) \]
      6. swap-sqr32.9%

        \[\leadsto x \cdot x - \sqrt{\color{blue}{\left(y \cdot -4\right) \cdot \left(y \cdot -4\right)}} \cdot \left(z \cdot z - t\right) \]
      7. sqrt-unprod0.0%

        \[\leadsto x \cdot x - \color{blue}{\left(\sqrt{y \cdot -4} \cdot \sqrt{y \cdot -4}\right)} \cdot \left(z \cdot z - t\right) \]
      8. add-sqr-sqrt16.5%

        \[\leadsto x \cdot x - \color{blue}{\left(y \cdot -4\right)} \cdot \left(z \cdot z - t\right) \]
      9. metadata-eval16.5%

        \[\leadsto x \cdot x - \left(y \cdot \color{blue}{\left(-4\right)}\right) \cdot \left(z \cdot z - t\right) \]
      10. distribute-rgt-neg-in16.5%

        \[\leadsto x \cdot x - \color{blue}{\left(-y \cdot 4\right)} \cdot \left(z \cdot z - t\right) \]
    4. Applied egg-rr16.5%

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

      \[\leadsto \color{blue}{-4 \cdot \left(t \cdot y\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification35.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq 7.6 \cdot 10^{+128}:\\ \;\;\;\;4 \cdot \left(t \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;-4 \cdot \left(t \cdot y\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 31.5% accurate, 2.6× speedup?

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

\\
t \cdot \left(y \cdot 4\right)
\end{array}
Derivation
  1. Initial program 89.6%

    \[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 34.5%

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

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

    \[\leadsto \color{blue}{4 \cdot \left(y \cdot t\right)} \]
  6. Step-by-step derivation
    1. add-cube-cbrt34.1%

      \[\leadsto \color{blue}{\left(\sqrt[3]{4 \cdot \left(y \cdot t\right)} \cdot \sqrt[3]{4 \cdot \left(y \cdot t\right)}\right) \cdot \sqrt[3]{4 \cdot \left(y \cdot t\right)}} \]
    2. pow334.0%

      \[\leadsto \color{blue}{{\left(\sqrt[3]{4 \cdot \left(y \cdot t\right)}\right)}^{3}} \]
    3. *-commutative34.0%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{\left(y \cdot t\right) \cdot 4}}\right)}^{3} \]
    4. associate-*l*34.0%

      \[\leadsto {\left(\sqrt[3]{\color{blue}{y \cdot \left(t \cdot 4\right)}}\right)}^{3} \]
  7. Applied egg-rr34.0%

    \[\leadsto \color{blue}{{\left(\sqrt[3]{y \cdot \left(t \cdot 4\right)}\right)}^{3}} \]
  8. Step-by-step derivation
    1. rem-cube-cbrt34.5%

      \[\leadsto \color{blue}{y \cdot \left(t \cdot 4\right)} \]
    2. rem-cube-cbrt34.1%

      \[\leadsto y \cdot \left(t \cdot \color{blue}{{\left(\sqrt[3]{4}\right)}^{3}}\right) \]
    3. *-commutative34.1%

      \[\leadsto y \cdot \color{blue}{\left({\left(\sqrt[3]{4}\right)}^{3} \cdot t\right)} \]
    4. associate-*r*34.4%

      \[\leadsto \color{blue}{\left(y \cdot {\left(\sqrt[3]{4}\right)}^{3}\right) \cdot t} \]
    5. rem-cube-cbrt34.9%

      \[\leadsto \left(y \cdot \color{blue}{4}\right) \cdot t \]
  9. Applied egg-rr34.9%

    \[\leadsto \color{blue}{\left(y \cdot 4\right) \cdot t} \]
  10. Final simplification34.9%

    \[\leadsto t \cdot \left(y \cdot 4\right) \]
  11. Add Preprocessing

Alternative 9: 6.0% accurate, 2.6× speedup?

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

\\
-4 \cdot \left(t \cdot y\right)
\end{array}
Derivation
  1. Initial program 89.6%

    \[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right) \]
  2. Add Preprocessing
  3. Step-by-step derivation
    1. add-sqr-sqrt44.2%

      \[\leadsto x \cdot x - \color{blue}{\left(\sqrt{y \cdot 4} \cdot \sqrt{y \cdot 4}\right)} \cdot \left(z \cdot z - t\right) \]
    2. sqrt-unprod51.4%

      \[\leadsto x \cdot x - \color{blue}{\sqrt{\left(y \cdot 4\right) \cdot \left(y \cdot 4\right)}} \cdot \left(z \cdot z - t\right) \]
    3. swap-sqr51.4%

      \[\leadsto x \cdot x - \sqrt{\color{blue}{\left(y \cdot y\right) \cdot \left(4 \cdot 4\right)}} \cdot \left(z \cdot z - t\right) \]
    4. metadata-eval51.4%

      \[\leadsto x \cdot x - \sqrt{\left(y \cdot y\right) \cdot \color{blue}{16}} \cdot \left(z \cdot z - t\right) \]
    5. metadata-eval51.4%

      \[\leadsto x \cdot x - \sqrt{\left(y \cdot y\right) \cdot \color{blue}{\left(-4 \cdot -4\right)}} \cdot \left(z \cdot z - t\right) \]
    6. swap-sqr51.4%

      \[\leadsto x \cdot x - \sqrt{\color{blue}{\left(y \cdot -4\right) \cdot \left(y \cdot -4\right)}} \cdot \left(z \cdot z - t\right) \]
    7. sqrt-unprod15.2%

      \[\leadsto x \cdot x - \color{blue}{\left(\sqrt{y \cdot -4} \cdot \sqrt{y \cdot -4}\right)} \cdot \left(z \cdot z - t\right) \]
    8. add-sqr-sqrt32.1%

      \[\leadsto x \cdot x - \color{blue}{\left(y \cdot -4\right)} \cdot \left(z \cdot z - t\right) \]
    9. metadata-eval32.1%

      \[\leadsto x \cdot x - \left(y \cdot \color{blue}{\left(-4\right)}\right) \cdot \left(z \cdot z - t\right) \]
    10. distribute-rgt-neg-in32.1%

      \[\leadsto x \cdot x - \color{blue}{\left(-y \cdot 4\right)} \cdot \left(z \cdot z - t\right) \]
  4. Applied egg-rr32.1%

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

    \[\leadsto \color{blue}{-4 \cdot \left(t \cdot y\right)} \]
  6. Add Preprocessing

Developer Target 1: 90.5% 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 2024114 
(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))))