
(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 2e+226) (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 <= 2e+226) {
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 <= 2e+226) 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, 2e+226], 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 \cdot 10^{+226}:\\
\;\;\;\;\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 < 1.99999999999999992e226Initial program 91.7%
fma-neg95.5%
distribute-lft-neg-in95.5%
*-commutative95.5%
distribute-rgt-neg-in95.5%
metadata-eval95.5%
Simplified95.5%
if 1.99999999999999992e226 < x Initial program 70.0%
Taylor expanded in y around 0 70.0%
Simplified95.0%
--rgt-identity95.0%
Applied egg-rr95.0%
x_m = (fabs.f64 x) (FPCore (x_m y z t) :precision binary64 (let* ((t_1 (+ (* x_m x_m) (* (* y 4.0) (- t (* z z)))))) (if (<= t_1 INFINITY) t_1 (fma x_m x_m (* y (* t 4.0))))))
x_m = fabs(x);
double code(double x_m, double y, double z, double t) {
double t_1 = (x_m * x_m) + ((y * 4.0) * (t - (z * z)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(x_m, x_m, (y * (t * 4.0)));
}
return tmp;
}
x_m = abs(x) function code(x_m, y, z, t) t_1 = Float64(Float64(x_m * x_m) + Float64(Float64(y * 4.0) * Float64(t - Float64(z * z)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = fma(x_m, x_m, Float64(y * Float64(t * 4.0))); end return tmp end
x_m = N[Abs[x], $MachinePrecision]
code[x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x$95$m * x$95$m), $MachinePrecision] + N[(N[(y * 4.0), $MachinePrecision] * N[(t - N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(x$95$m * x$95$m + N[(y * N[(t * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
x_m = \left|x\right|
\\
\begin{array}{l}
t_1 := x\_m \cdot x\_m + \left(y \cdot 4\right) \cdot \left(t - z \cdot z\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(x\_m, x\_m, y \cdot \left(t \cdot 4\right)\right)\\
\end{array}
\end{array}
if (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) (-.f64 (*.f64 z z) t))) < +inf.0Initial program 96.8%
if +inf.0 < (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) (-.f64 (*.f64 z z) t))) Initial program 0.0%
Taylor expanded in z around 0 38.9%
*-commutative38.9%
*-commutative38.9%
associate-*l*38.9%
Simplified38.9%
fma-neg50.0%
distribute-rgt-neg-in50.0%
*-commutative50.0%
distribute-lft-neg-in50.0%
metadata-eval50.0%
Applied egg-rr50.0%
Final simplification93.5%
x_m = (fabs.f64 x) (FPCore (x_m y z t) :precision binary64 (let* ((t_1 (+ (* x_m x_m) (* (* y 4.0) (- t (* z z)))))) (if (<= t_1 INFINITY) t_1 (* (* z z) (* y -4.0)))))
x_m = fabs(x);
double code(double x_m, double y, double z, double t) {
double t_1 = (x_m * x_m) + ((y * 4.0) * (t - (z * z)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (z * z) * (y * -4.0);
}
return tmp;
}
x_m = Math.abs(x);
public static double code(double x_m, double y, double z, double t) {
double t_1 = (x_m * x_m) + ((y * 4.0) * (t - (z * z)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (z * z) * (y * -4.0);
}
return tmp;
}
x_m = math.fabs(x) def code(x_m, y, z, t): t_1 = (x_m * x_m) + ((y * 4.0) * (t - (z * z))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (z * z) * (y * -4.0) return tmp
x_m = abs(x) function code(x_m, y, z, t) t_1 = Float64(Float64(x_m * x_m) + Float64(Float64(y * 4.0) * Float64(t - Float64(z * z)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; 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) t_1 = (x_m * x_m) + ((y * 4.0) * (t - (z * z))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; 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_] := Block[{t$95$1 = N[(N[(x$95$m * x$95$m), $MachinePrecision] + N[(N[(y * 4.0), $MachinePrecision] * N[(t - N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(z * z), $MachinePrecision] * N[(y * -4.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
x_m = \left|x\right|
\\
\begin{array}{l}
t_1 := x\_m \cdot x\_m + \left(y \cdot 4\right) \cdot \left(t - z \cdot z\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot z\right) \cdot \left(y \cdot -4\right)\\
\end{array}
\end{array}
if (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) (-.f64 (*.f64 z z) t))) < +inf.0Initial program 96.8%
if +inf.0 < (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) (-.f64 (*.f64 z z) t))) Initial program 0.0%
*-commutative0.0%
add-sqr-sqrt0.0%
sqrt-unprod0.0%
swap-sqr0.0%
metadata-eval0.0%
metadata-eval0.0%
swap-sqr0.0%
sqrt-unprod0.0%
add-sqr-sqrt44.4%
add-cube-cbrt44.4%
pow344.4%
Applied egg-rr0.0%
Taylor expanded in z around inf 44.6%
mul-1-neg44.6%
rem-cube-cbrt44.6%
*-commutative44.6%
associate-*l*44.6%
*-commutative44.6%
distribute-rgt-neg-in44.6%
distribute-rgt-neg-in44.6%
metadata-eval44.6%
Simplified44.6%
unpow244.6%
Applied egg-rr44.6%
Final simplification93.1%
x_m = (fabs.f64 x) (FPCore (x_m y z t) :precision binary64 (if (<= (* z z) 1.52e+254) (- (* 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) <= 1.52e+254) {
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) <= 1.52d+254) 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) <= 1.52e+254) {
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) <= 1.52e+254: 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) <= 1.52e+254) 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) <= 1.52e+254) 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], 1.52e+254], 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 1.52 \cdot 10^{+254}:\\
\;\;\;\;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) < 1.51999999999999996e254Initial program 97.0%
Taylor expanded in z around 0 83.7%
*-commutative83.7%
*-commutative83.7%
associate-*l*83.7%
Simplified83.7%
if 1.51999999999999996e254 < (*.f64 z z) Initial program 74.8%
*-commutative74.8%
add-sqr-sqrt36.3%
sqrt-unprod36.0%
swap-sqr36.0%
metadata-eval36.0%
metadata-eval36.0%
swap-sqr36.0%
sqrt-unprod1.2%
add-sqr-sqrt8.7%
add-cube-cbrt8.7%
pow38.7%
Applied egg-rr74.8%
Taylor expanded in z around inf 82.3%
mul-1-neg82.3%
rem-cube-cbrt82.3%
*-commutative82.3%
associate-*l*82.3%
*-commutative82.3%
distribute-rgt-neg-in82.3%
distribute-rgt-neg-in82.3%
metadata-eval82.3%
Simplified82.3%
unpow282.3%
Applied egg-rr82.3%
x_m = (fabs.f64 x) (FPCore (x_m y z t) :precision binary64 (if (<= (* z z) 3.9e-41) (* x_m x_m) (* (* 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) <= 3.9e-41) {
tmp = x_m * x_m;
} 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) <= 3.9d-41) then
tmp = x_m * x_m
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) <= 3.9e-41) {
tmp = x_m * x_m;
} 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) <= 3.9e-41: tmp = x_m * x_m 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) <= 3.9e-41) tmp = Float64(x_m * x_m); 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) <= 3.9e-41) tmp = x_m * x_m; 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], 3.9e-41], N[(x$95$m * x$95$m), $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 3.9 \cdot 10^{-41}:\\
\;\;\;\;x\_m \cdot x\_m\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot z\right) \cdot \left(y \cdot -4\right)\\
\end{array}
\end{array}
if (*.f64 z z) < 3.89999999999999991e-41Initial program 98.3%
Taylor expanded in y around 0 98.3%
Simplified59.3%
--rgt-identity59.3%
Applied egg-rr59.3%
if 3.89999999999999991e-41 < (*.f64 z z) Initial program 83.1%
*-commutative83.1%
add-sqr-sqrt40.5%
sqrt-unprod41.3%
swap-sqr41.3%
metadata-eval41.3%
metadata-eval41.3%
swap-sqr41.3%
sqrt-unprod7.0%
add-sqr-sqrt20.1%
add-cube-cbrt20.1%
pow320.1%
Applied egg-rr82.7%
Taylor expanded in z around inf 64.8%
mul-1-neg64.8%
rem-cube-cbrt65.0%
*-commutative65.0%
associate-*l*65.0%
*-commutative65.0%
distribute-rgt-neg-in65.0%
distribute-rgt-neg-in65.0%
metadata-eval65.0%
Simplified65.0%
unpow265.0%
Applied egg-rr65.0%
x_m = (fabs.f64 x) (FPCore (x_m y z t) :precision binary64 (if (<= x_m 2.8e+24) (* 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 <= 2.8e+24) {
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 <= 2.8d+24) 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 <= 2.8e+24) {
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 <= 2.8e+24: 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 (x_m <= 2.8e+24) 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 <= 2.8e+24) 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[x$95$m, 2.8e+24], 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 \leq 2.8 \cdot 10^{+24}:\\
\;\;\;\;4 \cdot \left(t \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x\_m \cdot x\_m\\
\end{array}
\end{array}
if x < 2.8000000000000002e24Initial program 92.8%
fma-neg95.0%
distribute-lft-neg-in95.0%
*-commutative95.0%
distribute-rgt-neg-in95.0%
metadata-eval95.0%
Simplified95.0%
Taylor expanded in t around inf 35.7%
*-commutative35.7%
Simplified35.7%
if 2.8000000000000002e24 < x Initial program 82.1%
Taylor expanded in y around 0 82.1%
Simplified70.5%
--rgt-identity70.5%
Applied egg-rr70.5%
Final simplification44.8%
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 90.0%
Taylor expanded in y around 0 90.0%
Simplified41.8%
--rgt-identity41.8%
Applied egg-rr41.8%
(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 2024144
(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))))