
(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:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(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}
x_m = (fabs.f64 x) (FPCore (x_m y z t) :precision binary64 (if (<= x_m 2.6e+196) (fma x_m x_m (* (- (* z z) t) (* y -4.0))) (* x_m x_m)))
x_m = fabs(x);
double code(double x_m, double y, double z, double t) {
double tmp;
if (x_m <= 2.6e+196) {
tmp = fma(x_m, x_m, (((z * z) - t) * (y * -4.0)));
} else {
tmp = x_m * x_m;
}
return tmp;
}
x_m = abs(x) function code(x_m, y, z, t) tmp = 0.0 if (x_m <= 2.6e+196) tmp = fma(x_m, x_m, Float64(Float64(Float64(z * z) - t) * Float64(y * -4.0))); else tmp = Float64(x_m * x_m); end return tmp end
x_m = N[Abs[x], $MachinePrecision] code[x$95$m_, y_, z_, t_] := If[LessEqual[x$95$m, 2.6e+196], N[(x$95$m * x$95$m + N[(N[(N[(z * z), $MachinePrecision] - t), $MachinePrecision] * N[(y * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x$95$m * x$95$m), $MachinePrecision]]
\begin{array}{l}
x_m = \left|x\right|
\\
\begin{array}{l}
\mathbf{if}\;x\_m \leq 2.6 \cdot 10^{+196}:\\
\;\;\;\;\mathsf{fma}\left(x\_m, x\_m, \left(z \cdot z - t\right) \cdot \left(y \cdot -4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x\_m \cdot x\_m\\
\end{array}
\end{array}
if x < 2.60000000000000012e196Initial program 92.5%
fmm-def95.1%
distribute-lft-neg-in95.1%
*-commutative95.1%
distribute-rgt-neg-in95.1%
metadata-eval95.1%
Simplified95.1%
if 2.60000000000000012e196 < x Initial program 80.0%
Taylor expanded in y around 0 80.0%
Simplified100.0%
--rgt-identity100.0%
Applied egg-rr100.0%
x_m = (fabs.f64 x)
(FPCore (x_m y z t)
:precision binary64
(let* ((t_1 (* 4.0 (* t y))))
(if (<= x_m 3.2e-221)
t_1
(if (<= x_m 4.2e-50)
(* (* z z) (* y -4.0))
(if (<= x_m 1.95e+17) t_1 (* x_m x_m))))))x_m = fabs(x);
double code(double x_m, double y, double z, double t) {
double t_1 = 4.0 * (t * y);
double tmp;
if (x_m <= 3.2e-221) {
tmp = t_1;
} else if (x_m <= 4.2e-50) {
tmp = (z * z) * (y * -4.0);
} else if (x_m <= 1.95e+17) {
tmp = t_1;
} else {
tmp = x_m * x_m;
}
return tmp;
}
x_m = abs(x)
real(8) function code(x_m, y, z, t)
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = 4.0d0 * (t * y)
if (x_m <= 3.2d-221) then
tmp = t_1
else if (x_m <= 4.2d-50) then
tmp = (z * z) * (y * (-4.0d0))
else if (x_m <= 1.95d+17) then
tmp = t_1
else
tmp = x_m * x_m
end if
code = tmp
end function
x_m = Math.abs(x);
public static double code(double x_m, double y, double z, double t) {
double t_1 = 4.0 * (t * y);
double tmp;
if (x_m <= 3.2e-221) {
tmp = t_1;
} else if (x_m <= 4.2e-50) {
tmp = (z * z) * (y * -4.0);
} else if (x_m <= 1.95e+17) {
tmp = t_1;
} else {
tmp = x_m * x_m;
}
return tmp;
}
x_m = math.fabs(x) def code(x_m, y, z, t): t_1 = 4.0 * (t * y) tmp = 0 if x_m <= 3.2e-221: tmp = t_1 elif x_m <= 4.2e-50: tmp = (z * z) * (y * -4.0) elif x_m <= 1.95e+17: tmp = t_1 else: tmp = x_m * x_m return tmp
x_m = abs(x) function code(x_m, y, z, t) t_1 = Float64(4.0 * Float64(t * y)) tmp = 0.0 if (x_m <= 3.2e-221) tmp = t_1; elseif (x_m <= 4.2e-50) tmp = Float64(Float64(z * z) * Float64(y * -4.0)); elseif (x_m <= 1.95e+17) tmp = t_1; else tmp = Float64(x_m * x_m); end return tmp end
x_m = abs(x); function tmp_2 = code(x_m, y, z, t) t_1 = 4.0 * (t * y); tmp = 0.0; if (x_m <= 3.2e-221) tmp = t_1; elseif (x_m <= 4.2e-50) tmp = (z * z) * (y * -4.0); elseif (x_m <= 1.95e+17) tmp = t_1; else tmp = x_m * x_m; end tmp_2 = tmp; end
x_m = N[Abs[x], $MachinePrecision]
code[x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(4.0 * N[(t * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x$95$m, 3.2e-221], t$95$1, If[LessEqual[x$95$m, 4.2e-50], N[(N[(z * z), $MachinePrecision] * N[(y * -4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x$95$m, 1.95e+17], t$95$1, N[(x$95$m * x$95$m), $MachinePrecision]]]]]
\begin{array}{l}
x_m = \left|x\right|
\\
\begin{array}{l}
t_1 := 4 \cdot \left(t \cdot y\right)\\
\mathbf{if}\;x\_m \leq 3.2 \cdot 10^{-221}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x\_m \leq 4.2 \cdot 10^{-50}:\\
\;\;\;\;\left(z \cdot z\right) \cdot \left(y \cdot -4\right)\\
\mathbf{elif}\;x\_m \leq 1.95 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x\_m \cdot x\_m\\
\end{array}
\end{array}
if x < 3.20000000000000015e-221 or 4.2000000000000002e-50 < x < 1.95e17Initial program 93.1%
fmm-def95.6%
distribute-lft-neg-in95.6%
*-commutative95.6%
distribute-rgt-neg-in95.6%
metadata-eval95.6%
Simplified95.6%
Taylor expanded in t around inf 36.4%
*-commutative36.4%
Simplified36.4%
if 3.20000000000000015e-221 < x < 4.2000000000000002e-50Initial program 91.7%
add-cube-cbrt90.8%
pow390.6%
Applied egg-rr90.6%
Taylor expanded in z around inf 53.2%
rem-cube-cbrt53.4%
associate-*r*53.4%
*-commutative53.4%
associate-*r*53.4%
metadata-eval53.4%
associate-*r*53.4%
*-commutative53.4%
*-commutative53.4%
Simplified53.4%
unpow253.4%
Applied egg-rr53.4%
if 1.95e17 < x Initial program 86.8%
Taylor expanded in y around 0 86.8%
Simplified72.5%
--rgt-identity72.5%
Applied egg-rr72.5%
Final simplification48.0%
x_m = (fabs.f64 x) (FPCore (x_m y z t) :precision binary64 (if (<= x_m 1.6e+148) (+ (* x_m x_m) (* (* y 4.0) (- t (* z z)))) (* x_m x_m)))
x_m = fabs(x);
double code(double x_m, double y, double z, double t) {
double tmp;
if (x_m <= 1.6e+148) {
tmp = (x_m * x_m) + ((y * 4.0) * (t - (z * z)));
} else {
tmp = x_m * x_m;
}
return tmp;
}
x_m = abs(x)
real(8) function code(x_m, y, z, t)
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x_m <= 1.6d+148) then
tmp = (x_m * x_m) + ((y * 4.0d0) * (t - (z * z)))
else
tmp = x_m * x_m
end if
code = tmp
end function
x_m = Math.abs(x);
public static double code(double x_m, double y, double z, double t) {
double tmp;
if (x_m <= 1.6e+148) {
tmp = (x_m * x_m) + ((y * 4.0) * (t - (z * z)));
} else {
tmp = x_m * x_m;
}
return tmp;
}
x_m = math.fabs(x) def code(x_m, y, z, t): tmp = 0 if x_m <= 1.6e+148: tmp = (x_m * x_m) + ((y * 4.0) * (t - (z * z))) else: tmp = x_m * x_m return tmp
x_m = abs(x) function code(x_m, y, z, t) tmp = 0.0 if (x_m <= 1.6e+148) tmp = Float64(Float64(x_m * x_m) + Float64(Float64(y * 4.0) * Float64(t - Float64(z * z)))); else tmp = Float64(x_m * x_m); end return tmp end
x_m = abs(x); function tmp_2 = code(x_m, y, z, t) tmp = 0.0; if (x_m <= 1.6e+148) tmp = (x_m * x_m) + ((y * 4.0) * (t - (z * z))); else tmp = x_m * x_m; end tmp_2 = tmp; end
x_m = N[Abs[x], $MachinePrecision] code[x$95$m_, y_, z_, t_] := If[LessEqual[x$95$m, 1.6e+148], N[(N[(x$95$m * x$95$m), $MachinePrecision] + N[(N[(y * 4.0), $MachinePrecision] * N[(t - N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x$95$m * x$95$m), $MachinePrecision]]
\begin{array}{l}
x_m = \left|x\right|
\\
\begin{array}{l}
\mathbf{if}\;x\_m \leq 1.6 \cdot 10^{+148}:\\
\;\;\;\;x\_m \cdot x\_m + \left(y \cdot 4\right) \cdot \left(t - z \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x\_m \cdot x\_m\\
\end{array}
\end{array}
if x < 1.6e148Initial program 93.0%
if 1.6e148 < x Initial program 80.6%
Taylor expanded in y around 0 80.6%
Simplified94.4%
--rgt-identity94.4%
Applied egg-rr94.4%
Final simplification93.2%
x_m = (fabs.f64 x) (FPCore (x_m y z t) :precision binary64 (if (<= z 6e+93) (- (* x_m x_m) (* y (* t -4.0))) (* (* z z) (* y -4.0))))
x_m = fabs(x);
double code(double x_m, double y, double z, double t) {
double tmp;
if (z <= 6e+93) {
tmp = (x_m * x_m) - (y * (t * -4.0));
} else {
tmp = (z * z) * (y * -4.0);
}
return tmp;
}
x_m = abs(x)
real(8) function code(x_m, y, z, t)
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (z <= 6d+93) then
tmp = (x_m * x_m) - (y * (t * (-4.0d0)))
else
tmp = (z * z) * (y * (-4.0d0))
end if
code = tmp
end function
x_m = Math.abs(x);
public static double code(double x_m, double y, double z, double t) {
double tmp;
if (z <= 6e+93) {
tmp = (x_m * x_m) - (y * (t * -4.0));
} else {
tmp = (z * z) * (y * -4.0);
}
return tmp;
}
x_m = math.fabs(x) def code(x_m, y, z, t): tmp = 0 if z <= 6e+93: tmp = (x_m * x_m) - (y * (t * -4.0)) else: tmp = (z * z) * (y * -4.0) return tmp
x_m = abs(x) function code(x_m, y, z, t) tmp = 0.0 if (z <= 6e+93) tmp = Float64(Float64(x_m * x_m) - Float64(y * Float64(t * -4.0))); else tmp = Float64(Float64(z * z) * Float64(y * -4.0)); end return tmp end
x_m = abs(x); function tmp_2 = code(x_m, y, z, t) tmp = 0.0; if (z <= 6e+93) tmp = (x_m * x_m) - (y * (t * -4.0)); else tmp = (z * z) * (y * -4.0); end tmp_2 = tmp; end
x_m = N[Abs[x], $MachinePrecision] code[x$95$m_, y_, z_, t_] := If[LessEqual[z, 6e+93], N[(N[(x$95$m * x$95$m), $MachinePrecision] - N[(y * N[(t * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * z), $MachinePrecision] * N[(y * -4.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
x_m = \left|x\right|
\\
\begin{array}{l}
\mathbf{if}\;z \leq 6 \cdot 10^{+93}:\\
\;\;\;\;x\_m \cdot x\_m - y \cdot \left(t \cdot -4\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot z\right) \cdot \left(y \cdot -4\right)\\
\end{array}
\end{array}
if z < 5.99999999999999957e93Initial program 92.4%
Taylor expanded in z around 0 74.5%
*-commutative74.5%
*-commutative74.5%
associate-*l*74.5%
Simplified74.5%
if 5.99999999999999957e93 < z Initial program 84.3%
add-cube-cbrt84.0%
pow384.1%
Applied egg-rr84.1%
Taylor expanded in z around inf 84.1%
rem-cube-cbrt84.4%
associate-*r*84.4%
*-commutative84.4%
associate-*r*84.4%
metadata-eval84.4%
associate-*r*84.4%
*-commutative84.4%
*-commutative84.4%
Simplified84.4%
unpow284.4%
Applied egg-rr84.4%
x_m = (fabs.f64 x) (FPCore (x_m y z t) :precision binary64 (if (<= (* x_m x_m) 1.22e+42) (* 4.0 (* t y)) (* x_m x_m)))
x_m = fabs(x);
double code(double x_m, double y, double z, double t) {
double tmp;
if ((x_m * x_m) <= 1.22e+42) {
tmp = 4.0 * (t * y);
} else {
tmp = x_m * x_m;
}
return tmp;
}
x_m = abs(x)
real(8) function code(x_m, y, z, t)
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((x_m * x_m) <= 1.22d+42) then
tmp = 4.0d0 * (t * y)
else
tmp = x_m * x_m
end if
code = tmp
end function
x_m = Math.abs(x);
public static double code(double x_m, double y, double z, double t) {
double tmp;
if ((x_m * x_m) <= 1.22e+42) {
tmp = 4.0 * (t * y);
} else {
tmp = x_m * x_m;
}
return tmp;
}
x_m = math.fabs(x) def code(x_m, y, z, t): tmp = 0 if (x_m * x_m) <= 1.22e+42: tmp = 4.0 * (t * y) else: tmp = x_m * x_m return tmp
x_m = abs(x) function code(x_m, y, z, t) tmp = 0.0 if (Float64(x_m * x_m) <= 1.22e+42) tmp = Float64(4.0 * Float64(t * y)); else tmp = Float64(x_m * x_m); end return tmp end
x_m = abs(x); function tmp_2 = code(x_m, y, z, t) tmp = 0.0; if ((x_m * x_m) <= 1.22e+42) tmp = 4.0 * (t * y); else tmp = x_m * x_m; end tmp_2 = tmp; end
x_m = N[Abs[x], $MachinePrecision] code[x$95$m_, y_, z_, t_] := If[LessEqual[N[(x$95$m * x$95$m), $MachinePrecision], 1.22e+42], N[(4.0 * N[(t * y), $MachinePrecision]), $MachinePrecision], N[(x$95$m * x$95$m), $MachinePrecision]]
\begin{array}{l}
x_m = \left|x\right|
\\
\begin{array}{l}
\mathbf{if}\;x\_m \cdot x\_m \leq 1.22 \cdot 10^{+42}:\\
\;\;\;\;4 \cdot \left(t \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x\_m \cdot x\_m\\
\end{array}
\end{array}
if (*.f64 x x) < 1.22e42Initial program 95.6%
fmm-def95.6%
distribute-lft-neg-in95.6%
*-commutative95.6%
distribute-rgt-neg-in95.6%
metadata-eval95.6%
Simplified95.6%
Taylor expanded in t around inf 48.9%
*-commutative48.9%
Simplified48.9%
if 1.22e42 < (*.f64 x x) Initial program 86.9%
Taylor expanded in y around 0 86.9%
Simplified75.7%
--rgt-identity75.7%
Applied egg-rr75.7%
Final simplification62.3%
x_m = (fabs.f64 x) (FPCore (x_m y z t) :precision binary64 (if (<= x_m 1.8e+22) (* y (* t 4.0)) (* x_m x_m)))
x_m = fabs(x);
double code(double x_m, double y, double z, double t) {
double tmp;
if (x_m <= 1.8e+22) {
tmp = y * (t * 4.0);
} else {
tmp = x_m * x_m;
}
return tmp;
}
x_m = abs(x)
real(8) function code(x_m, y, z, t)
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x_m <= 1.8d+22) then
tmp = y * (t * 4.0d0)
else
tmp = x_m * x_m
end if
code = tmp
end function
x_m = Math.abs(x);
public static double code(double x_m, double y, double z, double t) {
double tmp;
if (x_m <= 1.8e+22) {
tmp = y * (t * 4.0);
} else {
tmp = x_m * x_m;
}
return tmp;
}
x_m = math.fabs(x) def code(x_m, y, z, t): tmp = 0 if x_m <= 1.8e+22: tmp = y * (t * 4.0) else: tmp = x_m * x_m return tmp
x_m = abs(x) function code(x_m, y, z, t) tmp = 0.0 if (x_m <= 1.8e+22) tmp = Float64(y * Float64(t * 4.0)); else tmp = Float64(x_m * x_m); end return tmp end
x_m = abs(x); function tmp_2 = code(x_m, y, z, t) tmp = 0.0; if (x_m <= 1.8e+22) tmp = y * (t * 4.0); else tmp = x_m * x_m; end tmp_2 = tmp; end
x_m = N[Abs[x], $MachinePrecision] code[x$95$m_, y_, z_, t_] := If[LessEqual[x$95$m, 1.8e+22], N[(y * N[(t * 4.0), $MachinePrecision]), $MachinePrecision], N[(x$95$m * x$95$m), $MachinePrecision]]
\begin{array}{l}
x_m = \left|x\right|
\\
\begin{array}{l}
\mathbf{if}\;x\_m \leq 1.8 \cdot 10^{+22}:\\
\;\;\;\;y \cdot \left(t \cdot 4\right)\\
\mathbf{else}:\\
\;\;\;\;x\_m \cdot x\_m\\
\end{array}
\end{array}
if x < 1.8e22Initial program 92.8%
add-cube-cbrt92.1%
pow392.1%
Applied egg-rr92.1%
Taylor expanded in t around inf 36.1%
rem-cube-cbrt36.6%
*-commutative36.6%
associate-*r*36.6%
Simplified36.6%
if 1.8e22 < x Initial program 86.8%
Taylor expanded in y around 0 86.8%
Simplified72.5%
--rgt-identity72.5%
Applied egg-rr72.5%
Final simplification46.0%
x_m = (fabs.f64 x) (FPCore (x_m y z t) :precision binary64 (* x_m x_m))
x_m = fabs(x);
double code(double x_m, double y, double z, double t) {
return x_m * x_m;
}
x_m = abs(x)
real(8) function code(x_m, y, z, t)
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x_m * x_m
end function
x_m = Math.abs(x);
public static double code(double x_m, double y, double z, double t) {
return x_m * x_m;
}
x_m = math.fabs(x) def code(x_m, y, z, t): return x_m * x_m
x_m = abs(x) function code(x_m, y, z, t) return Float64(x_m * x_m) end
x_m = abs(x); function tmp = code(x_m, y, z, t) tmp = x_m * x_m; end
x_m = N[Abs[x], $MachinePrecision] code[x$95$m_, y_, z_, t_] := N[(x$95$m * x$95$m), $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
x\_m \cdot x\_m
\end{array}
Initial program 91.2%
Taylor expanded in y around 0 91.2%
Simplified43.0%
--rgt-identity43.0%
Applied egg-rr43.0%
(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}
herbie shell --seed 2024150
(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))))