
(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 5e+195) (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 <= 5e+195) {
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 <= 5e+195) 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, 5e+195], 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 5 \cdot 10^{+195}:\\
\;\;\;\;\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 < 4.9999999999999998e195Initial program 92.0%
fma-neg94.7%
distribute-lft-neg-in94.7%
*-commutative94.7%
distribute-rgt-neg-in94.7%
metadata-eval94.7%
Simplified94.7%
if 4.9999999999999998e195 < x Initial program 72.7%
Taylor expanded in y around 0 72.7%
Simplified90.9%
--rgt-identity90.9%
Applied egg-rr90.9%
x_m = (fabs.f64 x)
(FPCore (x_m y z t)
:precision binary64
(let* ((t_1 (* (* z z) (* y -4.0))))
(if (<= x_m 2.1e-242)
t_1
(if (<= x_m 8e-160)
(* y (* t 4.0))
(if (<= x_m 3.4e+56) t_1 (* x_m x_m))))))x_m = fabs(x);
double code(double x_m, double y, double z, double t) {
double t_1 = (z * z) * (y * -4.0);
double tmp;
if (x_m <= 2.1e-242) {
tmp = t_1;
} else if (x_m <= 8e-160) {
tmp = y * (t * 4.0);
} else if (x_m <= 3.4e+56) {
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 = (z * z) * (y * (-4.0d0))
if (x_m <= 2.1d-242) then
tmp = t_1
else if (x_m <= 8d-160) then
tmp = y * (t * 4.0d0)
else if (x_m <= 3.4d+56) 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 = (z * z) * (y * -4.0);
double tmp;
if (x_m <= 2.1e-242) {
tmp = t_1;
} else if (x_m <= 8e-160) {
tmp = y * (t * 4.0);
} else if (x_m <= 3.4e+56) {
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 = (z * z) * (y * -4.0) tmp = 0 if x_m <= 2.1e-242: tmp = t_1 elif x_m <= 8e-160: tmp = y * (t * 4.0) elif x_m <= 3.4e+56: 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(Float64(z * z) * Float64(y * -4.0)) tmp = 0.0 if (x_m <= 2.1e-242) tmp = t_1; elseif (x_m <= 8e-160) tmp = Float64(y * Float64(t * 4.0)); elseif (x_m <= 3.4e+56) 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 = (z * z) * (y * -4.0); tmp = 0.0; if (x_m <= 2.1e-242) tmp = t_1; elseif (x_m <= 8e-160) tmp = y * (t * 4.0); elseif (x_m <= 3.4e+56) 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[(N[(z * z), $MachinePrecision] * N[(y * -4.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x$95$m, 2.1e-242], t$95$1, If[LessEqual[x$95$m, 8e-160], N[(y * N[(t * 4.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x$95$m, 3.4e+56], t$95$1, N[(x$95$m * x$95$m), $MachinePrecision]]]]]
\begin{array}{l}
x_m = \left|x\right|
\\
\begin{array}{l}
t_1 := \left(z \cdot z\right) \cdot \left(y \cdot -4\right)\\
\mathbf{if}\;x\_m \leq 2.1 \cdot 10^{-242}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x\_m \leq 8 \cdot 10^{-160}:\\
\;\;\;\;y \cdot \left(t \cdot 4\right)\\
\mathbf{elif}\;x\_m \leq 3.4 \cdot 10^{+56}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x\_m \cdot x\_m\\
\end{array}
\end{array}
if x < 2.10000000000000019e-242 or 7.9999999999999999e-160 < x < 3.40000000000000001e56Initial program 92.9%
Taylor expanded in z around 0 90.7%
Taylor expanded in x around 0 65.0%
Taylor expanded in t around 0 44.4%
associate-*r*44.4%
*-commutative44.4%
*-commutative44.4%
Simplified44.4%
unpow244.4%
Applied egg-rr44.4%
if 2.10000000000000019e-242 < x < 7.9999999999999999e-160Initial program 93.5%
fma-neg93.5%
distribute-lft-neg-in93.5%
*-commutative93.5%
distribute-rgt-neg-in93.5%
metadata-eval93.5%
Simplified93.5%
Taylor expanded in t around inf 73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in y around 0 73.8%
associate-*r*73.9%
Simplified73.9%
if 3.40000000000000001e56 < x Initial program 77.9%
Taylor expanded in y around 0 77.9%
Simplified76.2%
--rgt-identity76.2%
Applied egg-rr76.2%
Final simplification53.5%
x_m = (fabs.f64 x) (FPCore (x_m y z t) :precision binary64 (if (<= x_m 1.35e+154) (+ (* 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.35e+154) {
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.35d+154) 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.35e+154) {
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.35e+154: 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.35e+154) 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.35e+154) 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.35e+154], 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.35 \cdot 10^{+154}:\\
\;\;\;\;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.35000000000000003e154Initial program 93.6%
if 1.35000000000000003e154 < x Initial program 67.5%
Taylor expanded in y around 0 67.5%
Simplified82.5%
--rgt-identity82.5%
Applied egg-rr82.5%
Final simplification91.8%
x_m = (fabs.f64 x) (FPCore (x_m y z t) :precision binary64 (if (<= (* z z) 2e+176) (- (* 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 * z) <= 2e+176) {
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 * z) <= 2d+176) 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 * z) <= 2e+176) {
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 * z) <= 2e+176: 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 (Float64(z * z) <= 2e+176) 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 * z) <= 2e+176) 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[N[(z * z), $MachinePrecision], 2e+176], 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 \cdot z \leq 2 \cdot 10^{+176}:\\
\;\;\;\;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 (*.f64 z z) < 2e176Initial program 96.8%
Taylor expanded in z around 0 88.7%
*-commutative88.7%
*-commutative88.7%
associate-*l*88.7%
Simplified88.7%
if 2e176 < (*.f64 z z) Initial program 77.8%
Taylor expanded in z around 0 73.7%
Taylor expanded in x around 0 70.0%
Taylor expanded in t around 0 75.1%
associate-*r*75.1%
*-commutative75.1%
*-commutative75.1%
Simplified75.1%
unpow275.1%
Applied egg-rr75.1%
x_m = (fabs.f64 x) (FPCore (x_m y z t) :precision binary64 (if (<= (* x_m x_m) 1e-33) (* 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) <= 1e-33) {
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) <= 1d-33) 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) <= 1e-33) {
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) <= 1e-33: 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) <= 1e-33) 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) <= 1e-33) 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], 1e-33], 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 10^{-33}:\\
\;\;\;\;4 \cdot \left(t \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x\_m \cdot x\_m\\
\end{array}
\end{array}
if (*.f64 x x) < 1.0000000000000001e-33Initial program 96.4%
fma-neg96.4%
distribute-lft-neg-in96.4%
*-commutative96.4%
distribute-rgt-neg-in96.4%
metadata-eval96.4%
Simplified96.4%
Taylor expanded in t around inf 48.2%
*-commutative48.2%
Simplified48.2%
if 1.0000000000000001e-33 < (*.f64 x x) Initial program 84.4%
Taylor expanded in y around 0 84.4%
Simplified71.0%
--rgt-identity71.0%
Applied egg-rr71.0%
Final simplification61.3%
x_m = (fabs.f64 x) (FPCore (x_m y z t) :precision binary64 (if (<= x_m 2.3e-16) (* 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 <= 2.3e-16) {
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 <= 2.3d-16) 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 <= 2.3e-16) {
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 <= 2.3e-16: 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 <= 2.3e-16) 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 <= 2.3e-16) 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, 2.3e-16], 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 2.3 \cdot 10^{-16}:\\
\;\;\;\;y \cdot \left(t \cdot 4\right)\\
\mathbf{else}:\\
\;\;\;\;x\_m \cdot x\_m\\
\end{array}
\end{array}
if x < 2.2999999999999999e-16Initial program 92.2%
fma-neg93.4%
distribute-lft-neg-in93.4%
*-commutative93.4%
distribute-rgt-neg-in93.4%
metadata-eval93.4%
Simplified93.4%
Taylor expanded in t around inf 33.7%
*-commutative33.7%
Simplified33.7%
Taylor expanded in y around 0 33.7%
associate-*r*33.7%
Simplified33.7%
if 2.2999999999999999e-16 < x Initial program 83.3%
Taylor expanded in y around 0 83.3%
Simplified62.1%
--rgt-identity62.1%
Applied egg-rr62.1%
Final simplification42.3%
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 89.5%
Taylor expanded in y around 0 89.5%
Simplified47.0%
--rgt-identity47.0%
Applied egg-rr47.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 2024130
(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))))