
(FPCore (x y z t) :precision binary64 (/ (* x (- y z)) (- t z)))
double code(double x, double y, double z, double t) {
return (x * (y - z)) / (t - z);
}
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 * (y - z)) / (t - z)
end function
public static double code(double x, double y, double z, double t) {
return (x * (y - z)) / (t - z);
}
def code(x, y, z, t): return (x * (y - z)) / (t - z)
function code(x, y, z, t) return Float64(Float64(x * Float64(y - z)) / Float64(t - z)) end
function tmp = code(x, y, z, t) tmp = (x * (y - z)) / (t - z); end
code[x_, y_, z_, t_] := N[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot \left(y - z\right)}{t - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 11 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (/ (* x (- y z)) (- t z)))
double code(double x, double y, double z, double t) {
return (x * (y - z)) / (t - z);
}
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 * (y - z)) / (t - z)
end function
public static double code(double x, double y, double z, double t) {
return (x * (y - z)) / (t - z);
}
def code(x, y, z, t): return (x * (y - z)) / (t - z)
function code(x, y, z, t) return Float64(Float64(x * Float64(y - z)) / Float64(t - z)) end
function tmp = code(x, y, z, t) tmp = (x * (y - z)) / (t - z); end
code[x_, y_, z_, t_] := N[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot \left(y - z\right)}{t - z}
\end{array}
x\_m = (fabs.f64 x)
x\_s = (copysign.f64 #s(literal 1 binary64) x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= x_m 2e+32)
(/ (fma (- z) x_m (* x_m y)) (- t z))
(* x_m (/ (- y z) (- t z))))))x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (x_m <= 2e+32) {
tmp = fma(-z, x_m, (x_m * y)) / (t - z);
} else {
tmp = x_m * ((y - z) / (t - z));
}
return x_s * tmp;
}
x\_m = abs(x) x\_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (x_m <= 2e+32) tmp = Float64(fma(Float64(-z), x_m, Float64(x_m * y)) / Float64(t - z)); else tmp = Float64(x_m * Float64(Float64(y - z) / Float64(t - z))); end return Float64(x_s * tmp) end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[x$95$m, 2e+32], N[(N[((-z) * x$95$m + N[(x$95$m * y), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], N[(x$95$m * N[(N[(y - z), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;x\_m \leq 2 \cdot 10^{+32}:\\
\;\;\;\;\frac{\mathsf{fma}\left(-z, x\_m, x\_m \cdot y\right)}{t - z}\\
\mathbf{else}:\\
\;\;\;\;x\_m \cdot \frac{y - z}{t - z}\\
\end{array}
\end{array}
if x < 2.00000000000000011e32Initial program 91.8%
lift-*.f64N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6491.7
Applied rewrites91.7%
if 2.00000000000000011e32 < x Initial program 66.1%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6498.3
Applied rewrites98.3%
Final simplification93.2%
x\_m = (fabs.f64 x)
x\_s = (copysign.f64 #s(literal 1 binary64) x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= (/ (* x_m (- y z)) (- t z)) -5e-28)
(* (- y z) (/ x_m (- t z)))
(* x_m (/ (- y z) (- t z))))))x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (((x_m * (y - z)) / (t - z)) <= -5e-28) {
tmp = (y - z) * (x_m / (t - z));
} else {
tmp = x_m * ((y - z) / (t - z));
}
return x_s * tmp;
}
x\_m = abs(x)
x\_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
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 * (y - z)) / (t - z)) <= (-5d-28)) then
tmp = (y - z) * (x_m / (t - z))
else
tmp = x_m * ((y - z) / (t - z))
end if
code = x_s * tmp
end function
x\_m = Math.abs(x);
x\_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (((x_m * (y - z)) / (t - z)) <= -5e-28) {
tmp = (y - z) * (x_m / (t - z));
} else {
tmp = x_m * ((y - z) / (t - z));
}
return x_s * tmp;
}
x\_m = math.fabs(x) x\_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): tmp = 0 if ((x_m * (y - z)) / (t - z)) <= -5e-28: tmp = (y - z) * (x_m / (t - z)) else: tmp = x_m * ((y - z) / (t - z)) return x_s * tmp
x\_m = abs(x) x\_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (Float64(Float64(x_m * Float64(y - z)) / Float64(t - z)) <= -5e-28) tmp = Float64(Float64(y - z) * Float64(x_m / Float64(t - z))); else tmp = Float64(x_m * Float64(Float64(y - z) / Float64(t - z))); end return Float64(x_s * tmp) end
x\_m = abs(x); x\_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) tmp = 0.0; if (((x_m * (y - z)) / (t - z)) <= -5e-28) tmp = (y - z) * (x_m / (t - z)); else tmp = x_m * ((y - z) / (t - z)); end tmp_2 = x_s * tmp; end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[N[(N[(x$95$m * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], -5e-28], N[(N[(y - z), $MachinePrecision] * N[(x$95$m / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x$95$m * N[(N[(y - z), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;\frac{x\_m \cdot \left(y - z\right)}{t - z} \leq -5 \cdot 10^{-28}:\\
\;\;\;\;\left(y - z\right) \cdot \frac{x\_m}{t - z}\\
\mathbf{else}:\\
\;\;\;\;x\_m \cdot \frac{y - z}{t - z}\\
\end{array}
\end{array}
if (/.f64 (*.f64 x (-.f64 y z)) (-.f64 t z)) < -5.0000000000000002e-28Initial program 76.7%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6496.3
Applied rewrites96.3%
if -5.0000000000000002e-28 < (/.f64 (*.f64 x (-.f64 y z)) (-.f64 t z)) Initial program 90.2%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6495.6
Applied rewrites95.6%
Final simplification95.8%
x\_m = (fabs.f64 x)
x\_s = (copysign.f64 #s(literal 1 binary64) x)
(FPCore (x_s x_m y z t)
:precision binary64
(let* ((t_1 (* x_m (/ z (- z t)))))
(*
x_s
(if (<= z -3.6e+122)
t_1
(if (<= z 1.5e+146) (* (- y z) (/ x_m (- t z))) t_1)))))x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double t_1 = x_m * (z / (z - t));
double tmp;
if (z <= -3.6e+122) {
tmp = t_1;
} else if (z <= 1.5e+146) {
tmp = (y - z) * (x_m / (t - z));
} else {
tmp = t_1;
}
return x_s * tmp;
}
x\_m = abs(x)
x\_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
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 = x_m * (z / (z - t))
if (z <= (-3.6d+122)) then
tmp = t_1
else if (z <= 1.5d+146) then
tmp = (y - z) * (x_m / (t - z))
else
tmp = t_1
end if
code = x_s * tmp
end function
x\_m = Math.abs(x);
x\_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double t_1 = x_m * (z / (z - t));
double tmp;
if (z <= -3.6e+122) {
tmp = t_1;
} else if (z <= 1.5e+146) {
tmp = (y - z) * (x_m / (t - z));
} else {
tmp = t_1;
}
return x_s * tmp;
}
x\_m = math.fabs(x) x\_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): t_1 = x_m * (z / (z - t)) tmp = 0 if z <= -3.6e+122: tmp = t_1 elif z <= 1.5e+146: tmp = (y - z) * (x_m / (t - z)) else: tmp = t_1 return x_s * tmp
x\_m = abs(x) x\_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) t_1 = Float64(x_m * Float64(z / Float64(z - t))) tmp = 0.0 if (z <= -3.6e+122) tmp = t_1; elseif (z <= 1.5e+146) tmp = Float64(Float64(y - z) * Float64(x_m / Float64(t - z))); else tmp = t_1; end return Float64(x_s * tmp) end
x\_m = abs(x); x\_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) t_1 = x_m * (z / (z - t)); tmp = 0.0; if (z <= -3.6e+122) tmp = t_1; elseif (z <= 1.5e+146) tmp = (y - z) * (x_m / (t - z)); else tmp = t_1; end tmp_2 = x_s * tmp; end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(x$95$m * N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[z, -3.6e+122], t$95$1, If[LessEqual[z, 1.5e+146], N[(N[(y - z), $MachinePrecision] * N[(x$95$m / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]), $MachinePrecision]]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)
\\
\begin{array}{l}
t_1 := x\_m \cdot \frac{z}{z - t}\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -3.6 \cdot 10^{+122}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{+146}:\\
\;\;\;\;\left(y - z\right) \cdot \frac{x\_m}{t - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
\end{array}
if z < -3.6000000000000003e122 or 1.50000000000000001e146 < z Initial program 72.3%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f644.3
Applied rewrites4.3%
Taylor expanded in y around 0
mul-1-negN/A
distribute-neg-frac2N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f6490.4
Applied rewrites90.4%
if -3.6000000000000003e122 < z < 1.50000000000000001e146Initial program 90.6%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6493.9
Applied rewrites93.9%
Final simplification93.0%
x\_m = (fabs.f64 x)
x\_s = (copysign.f64 #s(literal 1 binary64) x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= z -6.8e-33)
(* x_m (/ z (- z t)))
(if (<= z 1.28e-70) (/ (* x_m y) (- t z)) (fma (/ y (- z)) x_m x_m)))))x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (z <= -6.8e-33) {
tmp = x_m * (z / (z - t));
} else if (z <= 1.28e-70) {
tmp = (x_m * y) / (t - z);
} else {
tmp = fma((y / -z), x_m, x_m);
}
return x_s * tmp;
}
x\_m = abs(x) x\_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (z <= -6.8e-33) tmp = Float64(x_m * Float64(z / Float64(z - t))); elseif (z <= 1.28e-70) tmp = Float64(Float64(x_m * y) / Float64(t - z)); else tmp = fma(Float64(y / Float64(-z)), x_m, x_m); end return Float64(x_s * tmp) end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[z, -6.8e-33], N[(x$95$m * N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.28e-70], N[(N[(x$95$m * y), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], N[(N[(y / (-z)), $MachinePrecision] * x$95$m + x$95$m), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -6.8 \cdot 10^{-33}:\\
\;\;\;\;x\_m \cdot \frac{z}{z - t}\\
\mathbf{elif}\;z \leq 1.28 \cdot 10^{-70}:\\
\;\;\;\;\frac{x\_m \cdot y}{t - z}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{-z}, x\_m, x\_m\right)\\
\end{array}
\end{array}
if z < -6.8000000000000001e-33Initial program 77.4%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f6413.5
Applied rewrites13.5%
Taylor expanded in y around 0
mul-1-negN/A
distribute-neg-frac2N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f6478.1
Applied rewrites78.1%
if -6.8000000000000001e-33 < z < 1.28e-70Initial program 94.9%
Taylor expanded in y around inf
lower-*.f6486.8
Applied rewrites86.8%
if 1.28e-70 < z Initial program 80.4%
Taylor expanded in t around 0
mul-1-negN/A
neg-sub0N/A
associate-/l*N/A
div-subN/A
sub-negN/A
*-inversesN/A
metadata-evalN/A
distribute-rgt-inN/A
*-commutativeN/A
associate-/l*N/A
mul-1-negN/A
unsub-negN/A
associate-+l-N/A
neg-sub0N/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f6472.7
Applied rewrites72.7%
Applied rewrites74.6%
Final simplification80.8%
x\_m = (fabs.f64 x)
x\_s = (copysign.f64 #s(literal 1 binary64) x)
(FPCore (x_s x_m y z t)
:precision binary64
(let* ((t_1 (* x_m (/ y (- t z)))))
(*
x_s
(if (<= y -1.2e+36) t_1 (if (<= y 2e+46) (* x_m (/ z (- z t))) t_1)))))x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double t_1 = x_m * (y / (t - z));
double tmp;
if (y <= -1.2e+36) {
tmp = t_1;
} else if (y <= 2e+46) {
tmp = x_m * (z / (z - t));
} else {
tmp = t_1;
}
return x_s * tmp;
}
x\_m = abs(x)
x\_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
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 = x_m * (y / (t - z))
if (y <= (-1.2d+36)) then
tmp = t_1
else if (y <= 2d+46) then
tmp = x_m * (z / (z - t))
else
tmp = t_1
end if
code = x_s * tmp
end function
x\_m = Math.abs(x);
x\_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double t_1 = x_m * (y / (t - z));
double tmp;
if (y <= -1.2e+36) {
tmp = t_1;
} else if (y <= 2e+46) {
tmp = x_m * (z / (z - t));
} else {
tmp = t_1;
}
return x_s * tmp;
}
x\_m = math.fabs(x) x\_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): t_1 = x_m * (y / (t - z)) tmp = 0 if y <= -1.2e+36: tmp = t_1 elif y <= 2e+46: tmp = x_m * (z / (z - t)) else: tmp = t_1 return x_s * tmp
x\_m = abs(x) x\_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) t_1 = Float64(x_m * Float64(y / Float64(t - z))) tmp = 0.0 if (y <= -1.2e+36) tmp = t_1; elseif (y <= 2e+46) tmp = Float64(x_m * Float64(z / Float64(z - t))); else tmp = t_1; end return Float64(x_s * tmp) end
x\_m = abs(x); x\_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) t_1 = x_m * (y / (t - z)); tmp = 0.0; if (y <= -1.2e+36) tmp = t_1; elseif (y <= 2e+46) tmp = x_m * (z / (z - t)); else tmp = t_1; end tmp_2 = x_s * tmp; end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(x$95$m * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[y, -1.2e+36], t$95$1, If[LessEqual[y, 2e+46], N[(x$95$m * N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]), $MachinePrecision]]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)
\\
\begin{array}{l}
t_1 := x\_m \cdot \frac{y}{t - z}\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;y \leq -1.2 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+46}:\\
\;\;\;\;x\_m \cdot \frac{z}{z - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
\end{array}
if y < -1.19999999999999996e36 or 2e46 < y Initial program 83.6%
Taylor expanded in y around inf
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f6479.4
Applied rewrites79.4%
if -1.19999999999999996e36 < y < 2e46Initial program 87.7%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f6428.5
Applied rewrites28.5%
Taylor expanded in y around 0
mul-1-negN/A
distribute-neg-frac2N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f6480.6
Applied rewrites80.6%
x\_m = (fabs.f64 x)
x\_s = (copysign.f64 #s(literal 1 binary64) x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= z -1.05e+95)
(fma x_m (/ t z) x_m)
(if (<= z 1.75e-53) (* x_m (/ y (- t z))) (* x_m 1.0)))))x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (z <= -1.05e+95) {
tmp = fma(x_m, (t / z), x_m);
} else if (z <= 1.75e-53) {
tmp = x_m * (y / (t - z));
} else {
tmp = x_m * 1.0;
}
return x_s * tmp;
}
x\_m = abs(x) x\_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (z <= -1.05e+95) tmp = fma(x_m, Float64(t / z), x_m); elseif (z <= 1.75e-53) tmp = Float64(x_m * Float64(y / Float64(t - z))); else tmp = Float64(x_m * 1.0); end return Float64(x_s * tmp) end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[z, -1.05e+95], N[(x$95$m * N[(t / z), $MachinePrecision] + x$95$m), $MachinePrecision], If[LessEqual[z, 1.75e-53], N[(x$95$m * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x$95$m * 1.0), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -1.05 \cdot 10^{+95}:\\
\;\;\;\;\mathsf{fma}\left(x\_m, \frac{t}{z}, x\_m\right)\\
\mathbf{elif}\;z \leq 1.75 \cdot 10^{-53}:\\
\;\;\;\;x\_m \cdot \frac{y}{t - z}\\
\mathbf{else}:\\
\;\;\;\;x\_m \cdot 1\\
\end{array}
\end{array}
if z < -1.05e95Initial program 69.3%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f643.9
Applied rewrites3.9%
Taylor expanded in y around 0
mul-1-negN/A
distribute-neg-frac2N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f6489.3
Applied rewrites89.3%
Taylor expanded in z around inf
Applied rewrites75.6%
if -1.05e95 < z < 1.74999999999999997e-53Initial program 92.8%
Taylor expanded in y around inf
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f6475.0
Applied rewrites75.0%
if 1.74999999999999997e-53 < z Initial program 80.9%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f6416.2
Applied rewrites16.2%
Taylor expanded in y around 0
mul-1-negN/A
distribute-neg-frac2N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f6474.5
Applied rewrites74.5%
Taylor expanded in z around inf
Applied rewrites60.5%
x\_m = (fabs.f64 x)
x\_s = (copysign.f64 #s(literal 1 binary64) x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= z -3.3e+51)
(fma x_m (/ t z) x_m)
(if (<= z 6.6e-54) (* x_m (/ y t)) (* x_m 1.0)))))x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (z <= -3.3e+51) {
tmp = fma(x_m, (t / z), x_m);
} else if (z <= 6.6e-54) {
tmp = x_m * (y / t);
} else {
tmp = x_m * 1.0;
}
return x_s * tmp;
}
x\_m = abs(x) x\_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (z <= -3.3e+51) tmp = fma(x_m, Float64(t / z), x_m); elseif (z <= 6.6e-54) tmp = Float64(x_m * Float64(y / t)); else tmp = Float64(x_m * 1.0); end return Float64(x_s * tmp) end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[z, -3.3e+51], N[(x$95$m * N[(t / z), $MachinePrecision] + x$95$m), $MachinePrecision], If[LessEqual[z, 6.6e-54], N[(x$95$m * N[(y / t), $MachinePrecision]), $MachinePrecision], N[(x$95$m * 1.0), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -3.3 \cdot 10^{+51}:\\
\;\;\;\;\mathsf{fma}\left(x\_m, \frac{t}{z}, x\_m\right)\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{-54}:\\
\;\;\;\;x\_m \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;x\_m \cdot 1\\
\end{array}
\end{array}
if z < -3.2999999999999997e51Initial program 73.2%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f648.0
Applied rewrites8.0%
Taylor expanded in y around 0
mul-1-negN/A
distribute-neg-frac2N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f6483.0
Applied rewrites83.0%
Taylor expanded in z around inf
Applied rewrites67.7%
if -3.2999999999999997e51 < z < 6.59999999999999986e-54Initial program 93.0%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f6462.8
Applied rewrites62.8%
Applied rewrites65.8%
if 6.59999999999999986e-54 < z Initial program 80.9%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f6416.2
Applied rewrites16.2%
Taylor expanded in y around 0
mul-1-negN/A
distribute-neg-frac2N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f6474.5
Applied rewrites74.5%
Taylor expanded in z around inf
Applied rewrites60.5%
Final simplification64.6%
x\_m = (fabs.f64 x)
x\_s = (copysign.f64 #s(literal 1 binary64) x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= z -3.1e+51)
(* x_m 1.0)
(if (<= z 6.6e-54) (* x_m (/ y t)) (* x_m 1.0)))))x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (z <= -3.1e+51) {
tmp = x_m * 1.0;
} else if (z <= 6.6e-54) {
tmp = x_m * (y / t);
} else {
tmp = x_m * 1.0;
}
return x_s * tmp;
}
x\_m = abs(x)
x\_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
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 <= (-3.1d+51)) then
tmp = x_m * 1.0d0
else if (z <= 6.6d-54) then
tmp = x_m * (y / t)
else
tmp = x_m * 1.0d0
end if
code = x_s * tmp
end function
x\_m = Math.abs(x);
x\_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (z <= -3.1e+51) {
tmp = x_m * 1.0;
} else if (z <= 6.6e-54) {
tmp = x_m * (y / t);
} else {
tmp = x_m * 1.0;
}
return x_s * tmp;
}
x\_m = math.fabs(x) x\_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): tmp = 0 if z <= -3.1e+51: tmp = x_m * 1.0 elif z <= 6.6e-54: tmp = x_m * (y / t) else: tmp = x_m * 1.0 return x_s * tmp
x\_m = abs(x) x\_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (z <= -3.1e+51) tmp = Float64(x_m * 1.0); elseif (z <= 6.6e-54) tmp = Float64(x_m * Float64(y / t)); else tmp = Float64(x_m * 1.0); end return Float64(x_s * tmp) end
x\_m = abs(x); x\_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) tmp = 0.0; if (z <= -3.1e+51) tmp = x_m * 1.0; elseif (z <= 6.6e-54) tmp = x_m * (y / t); else tmp = x_m * 1.0; end tmp_2 = x_s * tmp; end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[z, -3.1e+51], N[(x$95$m * 1.0), $MachinePrecision], If[LessEqual[z, 6.6e-54], N[(x$95$m * N[(y / t), $MachinePrecision]), $MachinePrecision], N[(x$95$m * 1.0), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -3.1 \cdot 10^{+51}:\\
\;\;\;\;x\_m \cdot 1\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{-54}:\\
\;\;\;\;x\_m \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;x\_m \cdot 1\\
\end{array}
\end{array}
if z < -3.10000000000000011e51 or 6.59999999999999986e-54 < z Initial program 78.0%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f6413.1
Applied rewrites13.1%
Taylor expanded in y around 0
mul-1-negN/A
distribute-neg-frac2N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f6477.8
Applied rewrites77.8%
Taylor expanded in z around inf
Applied rewrites63.2%
if -3.10000000000000011e51 < z < 6.59999999999999986e-54Initial program 93.0%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f6462.8
Applied rewrites62.8%
Applied rewrites65.8%
Final simplification64.6%
x\_m = (fabs.f64 x)
x\_s = (copysign.f64 #s(literal 1 binary64) x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= z -3.1e+51)
(* x_m 1.0)
(if (<= z 6.6e-54) (* y (/ x_m t)) (* x_m 1.0)))))x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (z <= -3.1e+51) {
tmp = x_m * 1.0;
} else if (z <= 6.6e-54) {
tmp = y * (x_m / t);
} else {
tmp = x_m * 1.0;
}
return x_s * tmp;
}
x\_m = abs(x)
x\_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
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 <= (-3.1d+51)) then
tmp = x_m * 1.0d0
else if (z <= 6.6d-54) then
tmp = y * (x_m / t)
else
tmp = x_m * 1.0d0
end if
code = x_s * tmp
end function
x\_m = Math.abs(x);
x\_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (z <= -3.1e+51) {
tmp = x_m * 1.0;
} else if (z <= 6.6e-54) {
tmp = y * (x_m / t);
} else {
tmp = x_m * 1.0;
}
return x_s * tmp;
}
x\_m = math.fabs(x) x\_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): tmp = 0 if z <= -3.1e+51: tmp = x_m * 1.0 elif z <= 6.6e-54: tmp = y * (x_m / t) else: tmp = x_m * 1.0 return x_s * tmp
x\_m = abs(x) x\_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (z <= -3.1e+51) tmp = Float64(x_m * 1.0); elseif (z <= 6.6e-54) tmp = Float64(y * Float64(x_m / t)); else tmp = Float64(x_m * 1.0); end return Float64(x_s * tmp) end
x\_m = abs(x); x\_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) tmp = 0.0; if (z <= -3.1e+51) tmp = x_m * 1.0; elseif (z <= 6.6e-54) tmp = y * (x_m / t); else tmp = x_m * 1.0; end tmp_2 = x_s * tmp; end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[z, -3.1e+51], N[(x$95$m * 1.0), $MachinePrecision], If[LessEqual[z, 6.6e-54], N[(y * N[(x$95$m / t), $MachinePrecision]), $MachinePrecision], N[(x$95$m * 1.0), $MachinePrecision]]]), $MachinePrecision]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -3.1 \cdot 10^{+51}:\\
\;\;\;\;x\_m \cdot 1\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{-54}:\\
\;\;\;\;y \cdot \frac{x\_m}{t}\\
\mathbf{else}:\\
\;\;\;\;x\_m \cdot 1\\
\end{array}
\end{array}
if z < -3.10000000000000011e51 or 6.59999999999999986e-54 < z Initial program 78.0%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f6413.1
Applied rewrites13.1%
Taylor expanded in y around 0
mul-1-negN/A
distribute-neg-frac2N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f6477.8
Applied rewrites77.8%
Taylor expanded in z around inf
Applied rewrites63.2%
if -3.10000000000000011e51 < z < 6.59999999999999986e-54Initial program 93.0%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f6462.8
Applied rewrites62.8%
Applied rewrites65.2%
x\_m = (fabs.f64 x) x\_s = (copysign.f64 #s(literal 1 binary64) x) (FPCore (x_s x_m y z t) :precision binary64 (* x_s (if (<= x_m 2e+32) (/ (* x_m (- y z)) (- t z)) (* x_m (/ (- y z) (- t z))))))
x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (x_m <= 2e+32) {
tmp = (x_m * (y - z)) / (t - z);
} else {
tmp = x_m * ((y - z) / (t - z));
}
return x_s * tmp;
}
x\_m = abs(x)
x\_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
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 <= 2d+32) then
tmp = (x_m * (y - z)) / (t - z)
else
tmp = x_m * ((y - z) / (t - z))
end if
code = x_s * tmp
end function
x\_m = Math.abs(x);
x\_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
double tmp;
if (x_m <= 2e+32) {
tmp = (x_m * (y - z)) / (t - z);
} else {
tmp = x_m * ((y - z) / (t - z));
}
return x_s * tmp;
}
x\_m = math.fabs(x) x\_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): tmp = 0 if x_m <= 2e+32: tmp = (x_m * (y - z)) / (t - z) else: tmp = x_m * ((y - z) / (t - z)) return x_s * tmp
x\_m = abs(x) x\_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) tmp = 0.0 if (x_m <= 2e+32) tmp = Float64(Float64(x_m * Float64(y - z)) / Float64(t - z)); else tmp = Float64(x_m * Float64(Float64(y - z) / Float64(t - z))); end return Float64(x_s * tmp) end
x\_m = abs(x); x\_s = sign(x) * abs(1.0); function tmp_2 = code(x_s, x_m, y, z, t) tmp = 0.0; if (x_m <= 2e+32) tmp = (x_m * (y - z)) / (t - z); else tmp = x_m * ((y - z) / (t - z)); end tmp_2 = x_s * tmp; end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[x$95$m, 2e+32], N[(N[(x$95$m * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], N[(x$95$m * N[(N[(y - z), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;x\_m \leq 2 \cdot 10^{+32}:\\
\;\;\;\;\frac{x\_m \cdot \left(y - z\right)}{t - z}\\
\mathbf{else}:\\
\;\;\;\;x\_m \cdot \frac{y - z}{t - z}\\
\end{array}
\end{array}
if x < 2.00000000000000011e32Initial program 91.8%
if 2.00000000000000011e32 < x Initial program 66.1%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6498.3
Applied rewrites98.3%
Final simplification93.2%
x\_m = (fabs.f64 x) x\_s = (copysign.f64 #s(literal 1 binary64) x) (FPCore (x_s x_m y z t) :precision binary64 (* x_s (* x_m 1.0)))
x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
return x_s * (x_m * 1.0);
}
x\_m = abs(x)
x\_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
real(8), intent (in) :: x_s
real(8), intent (in) :: x_m
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x_s * (x_m * 1.0d0)
end function
x\_m = Math.abs(x);
x\_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
return x_s * (x_m * 1.0);
}
x\_m = math.fabs(x) x\_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): return x_s * (x_m * 1.0)
x\_m = abs(x) x\_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) return Float64(x_s * Float64(x_m * 1.0)) end
x\_m = abs(x); x\_s = sign(x) * abs(1.0); function tmp = code(x_s, x_m, y, z, t) tmp = x_s * (x_m * 1.0); end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * N[(x$95$m * 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \left(x\_m \cdot 1\right)
\end{array}
Initial program 86.0%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f6439.5
Applied rewrites39.5%
Taylor expanded in y around 0
mul-1-negN/A
distribute-neg-frac2N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f6453.0
Applied rewrites53.0%
Taylor expanded in z around inf
Applied rewrites34.5%
(FPCore (x y z t) :precision binary64 (/ x (/ (- t z) (- y z))))
double code(double x, double y, double z, double t) {
return x / ((t - z) / (y - z));
}
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 / ((t - z) / (y - z))
end function
public static double code(double x, double y, double z, double t) {
return x / ((t - z) / (y - z));
}
def code(x, y, z, t): return x / ((t - z) / (y - z))
function code(x, y, z, t) return Float64(x / Float64(Float64(t - z) / Float64(y - z))) end
function tmp = code(x, y, z, t) tmp = x / ((t - z) / (y - z)); end
code[x_, y_, z_, t_] := N[(x / N[(N[(t - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\frac{t - z}{y - z}}
\end{array}
herbie shell --seed 2024221
(FPCore (x y z t)
:name "Graphics.Rendering.Chart.Plot.AreaSpots:renderAreaSpots4D from Chart-1.5.3"
:precision binary64
:alt
(! :herbie-platform default (/ x (/ (- t z) (- y z))))
(/ (* x (- y z)) (- t z)))