
(FPCore (x y z t) :precision binary64 (/ (* x 2.0) (- (* y z) (* t z))))
double code(double x, double y, double z, double t) {
return (x * 2.0) / ((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 * 2.0d0) / ((y * z) - (t * z))
end function
public static double code(double x, double y, double z, double t) {
return (x * 2.0) / ((y * z) - (t * z));
}
def code(x, y, z, t): return (x * 2.0) / ((y * z) - (t * z))
function code(x, y, z, t) return Float64(Float64(x * 2.0) / Float64(Float64(y * z) - Float64(t * z))) end
function tmp = code(x, y, z, t) tmp = (x * 2.0) / ((y * z) - (t * z)); end
code[x_, y_, z_, t_] := N[(N[(x * 2.0), $MachinePrecision] / N[(N[(y * z), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot 2}{y \cdot z - t \cdot z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 10 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (/ (* x 2.0) (- (* y z) (* t z))))
double code(double x, double y, double z, double t) {
return (x * 2.0) / ((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 * 2.0d0) / ((y * z) - (t * z))
end function
public static double code(double x, double y, double z, double t) {
return (x * 2.0) / ((y * z) - (t * z));
}
def code(x, y, z, t): return (x * 2.0) / ((y * z) - (t * z))
function code(x, y, z, t) return Float64(Float64(x * 2.0) / Float64(Float64(y * z) - Float64(t * z))) end
function tmp = code(x, y, z, t) tmp = (x * 2.0) / ((y * z) - (t * z)); end
code[x_, y_, z_, t_] := N[(N[(x * 2.0), $MachinePrecision] / N[(N[(y * z), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot 2}{y \cdot z - t \cdot z}
\end{array}
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= (* x_m 2.0) 5e-30)
(/ (/ x_m z) (* (- y t) 0.5))
(/ 2.0 (* z (/ (- y t) 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 ((x_m * 2.0) <= 5e-30) {
tmp = (x_m / z) / ((y - t) * 0.5);
} else {
tmp = 2.0 / (z * ((y - t) / x_m));
}
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 * 2.0d0) <= 5d-30) then
tmp = (x_m / z) / ((y - t) * 0.5d0)
else
tmp = 2.0d0 / (z * ((y - t) / x_m))
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 * 2.0) <= 5e-30) {
tmp = (x_m / z) / ((y - t) * 0.5);
} else {
tmp = 2.0 / (z * ((y - t) / x_m));
}
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 * 2.0) <= 5e-30: tmp = (x_m / z) / ((y - t) * 0.5) else: tmp = 2.0 / (z * ((y - t) / 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 (Float64(x_m * 2.0) <= 5e-30) tmp = Float64(Float64(x_m / z) / Float64(Float64(y - t) * 0.5)); else tmp = Float64(2.0 / Float64(z * Float64(Float64(y - t) / x_m))); 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 * 2.0) <= 5e-30) tmp = (x_m / z) / ((y - t) * 0.5); else tmp = 2.0 / (z * ((y - t) / x_m)); 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[(x$95$m * 2.0), $MachinePrecision], 5e-30], N[(N[(x$95$m / z), $MachinePrecision] / N[(N[(y - t), $MachinePrecision] * 0.5), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(z * N[(N[(y - t), $MachinePrecision] / x$95$m), $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 \cdot 2 \leq 5 \cdot 10^{-30}:\\
\;\;\;\;\frac{\frac{x\_m}{z}}{\left(y - t\right) \cdot 0.5}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{z \cdot \frac{y - t}{x\_m}}\\
\end{array}
\end{array}
if (*.f64 x 2) < 4.99999999999999972e-30Initial program 91.6%
*-commutative91.6%
associate-*l/91.1%
*-commutative91.1%
distribute-rgt-out--92.8%
associate-/l/94.1%
Simplified94.1%
associate-*r/86.6%
associate-*l/90.8%
clear-num90.8%
un-div-inv90.8%
div-inv90.8%
metadata-eval90.8%
Applied egg-rr90.8%
if 4.99999999999999972e-30 < (*.f64 x 2) Initial program 86.8%
*-commutative86.8%
associate-*l/86.7%
*-commutative86.7%
distribute-rgt-out--86.9%
associate-/l/87.8%
Simplified87.8%
associate-/l/86.9%
associate-*r/87.0%
*-commutative87.0%
associate-/l*86.8%
*-commutative86.8%
Applied egg-rr86.8%
associate-/l*84.2%
associate-/r/98.4%
Applied egg-rr98.4%
Final simplification93.0%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (or (<= y -0.245) (not (<= y 3.6)))
(* x_m (/ (/ 2.0 y) z))
(* -2.0 (/ (/ x_m 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 ((y <= -0.245) || !(y <= 3.6)) {
tmp = x_m * ((2.0 / y) / z);
} else {
tmp = -2.0 * ((x_m / 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 ((y <= (-0.245d0)) .or. (.not. (y <= 3.6d0))) then
tmp = x_m * ((2.0d0 / y) / z)
else
tmp = (-2.0d0) * ((x_m / 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 ((y <= -0.245) || !(y <= 3.6)) {
tmp = x_m * ((2.0 / y) / z);
} else {
tmp = -2.0 * ((x_m / 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 (y <= -0.245) or not (y <= 3.6): tmp = x_m * ((2.0 / y) / z) else: tmp = -2.0 * ((x_m / 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 ((y <= -0.245) || !(y <= 3.6)) tmp = Float64(x_m * Float64(Float64(2.0 / y) / z)); else tmp = Float64(-2.0 * Float64(Float64(x_m / 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 ((y <= -0.245) || ~((y <= 3.6))) tmp = x_m * ((2.0 / y) / z); else tmp = -2.0 * ((x_m / 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[Or[LessEqual[y, -0.245], N[Not[LessEqual[y, 3.6]], $MachinePrecision]], N[(x$95$m * N[(N[(2.0 / y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(-2.0 * N[(N[(x$95$m / t), $MachinePrecision] / z), $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}\;y \leq -0.245 \lor \neg \left(y \leq 3.6\right):\\
\;\;\;\;x\_m \cdot \frac{\frac{2}{y}}{z}\\
\mathbf{else}:\\
\;\;\;\;-2 \cdot \frac{\frac{x\_m}{t}}{z}\\
\end{array}
\end{array}
if y < -0.245 or 3.60000000000000009 < y Initial program 91.3%
*-commutative91.3%
associate-*l/91.1%
*-commutative91.1%
distribute-rgt-out--92.7%
associate-/l/93.8%
Simplified93.8%
Taylor expanded in y around inf 78.8%
associate-/r*79.5%
Simplified79.5%
if -0.245 < y < 3.60000000000000009Initial program 89.0%
*-commutative89.0%
associate-*l/88.4%
*-commutative88.4%
distribute-rgt-out--89.3%
associate-/l/90.6%
Simplified90.6%
Taylor expanded in y around 0 76.0%
associate-/r*81.1%
Simplified81.1%
Final simplification80.2%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= y -0.028)
(* x_m (/ (/ 2.0 y) z))
(if (<= y 0.003) (* -2.0 (/ (/ x_m t) z)) (/ (* x_m 2.0) (* z y))))))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 (y <= -0.028) {
tmp = x_m * ((2.0 / y) / z);
} else if (y <= 0.003) {
tmp = -2.0 * ((x_m / t) / z);
} else {
tmp = (x_m * 2.0) / (z * y);
}
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 (y <= (-0.028d0)) then
tmp = x_m * ((2.0d0 / y) / z)
else if (y <= 0.003d0) then
tmp = (-2.0d0) * ((x_m / t) / z)
else
tmp = (x_m * 2.0d0) / (z * y)
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 (y <= -0.028) {
tmp = x_m * ((2.0 / y) / z);
} else if (y <= 0.003) {
tmp = -2.0 * ((x_m / t) / z);
} else {
tmp = (x_m * 2.0) / (z * y);
}
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 y <= -0.028: tmp = x_m * ((2.0 / y) / z) elif y <= 0.003: tmp = -2.0 * ((x_m / t) / z) else: tmp = (x_m * 2.0) / (z * y) 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 (y <= -0.028) tmp = Float64(x_m * Float64(Float64(2.0 / y) / z)); elseif (y <= 0.003) tmp = Float64(-2.0 * Float64(Float64(x_m / t) / z)); else tmp = Float64(Float64(x_m * 2.0) / Float64(z * y)); 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 (y <= -0.028) tmp = x_m * ((2.0 / y) / z); elseif (y <= 0.003) tmp = -2.0 * ((x_m / t) / z); else tmp = (x_m * 2.0) / (z * y); 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[y, -0.028], N[(x$95$m * N[(N[(2.0 / y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 0.003], N[(-2.0 * N[(N[(x$95$m / t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(x$95$m * 2.0), $MachinePrecision] / N[(z * y), $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}\;y \leq -0.028:\\
\;\;\;\;x\_m \cdot \frac{\frac{2}{y}}{z}\\
\mathbf{elif}\;y \leq 0.003:\\
\;\;\;\;-2 \cdot \frac{\frac{x\_m}{t}}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x\_m \cdot 2}{z \cdot y}\\
\end{array}
\end{array}
if y < -0.0280000000000000006Initial program 88.3%
*-commutative88.3%
associate-*l/88.2%
*-commutative88.2%
distribute-rgt-out--89.6%
associate-/l/91.5%
Simplified91.5%
Taylor expanded in y around inf 79.1%
associate-/r*80.3%
Simplified80.3%
if -0.0280000000000000006 < y < 0.0030000000000000001Initial program 89.0%
*-commutative89.0%
associate-*l/88.4%
*-commutative88.4%
distribute-rgt-out--89.3%
associate-/l/90.6%
Simplified90.6%
Taylor expanded in y around 0 76.0%
associate-/r*81.1%
Simplified81.1%
if 0.0030000000000000001 < y Initial program 94.8%
distribute-rgt-out--96.6%
Simplified96.6%
Taylor expanded in y around inf 78.6%
*-commutative78.6%
Simplified78.6%
Final simplification80.3%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= y -0.095)
(/ (/ x_m (* y 0.5)) z)
(if (<= y 0.0014) (* -2.0 (/ (/ x_m t) z)) (/ (* x_m 2.0) (* z y))))))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 (y <= -0.095) {
tmp = (x_m / (y * 0.5)) / z;
} else if (y <= 0.0014) {
tmp = -2.0 * ((x_m / t) / z);
} else {
tmp = (x_m * 2.0) / (z * y);
}
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 (y <= (-0.095d0)) then
tmp = (x_m / (y * 0.5d0)) / z
else if (y <= 0.0014d0) then
tmp = (-2.0d0) * ((x_m / t) / z)
else
tmp = (x_m * 2.0d0) / (z * y)
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 (y <= -0.095) {
tmp = (x_m / (y * 0.5)) / z;
} else if (y <= 0.0014) {
tmp = -2.0 * ((x_m / t) / z);
} else {
tmp = (x_m * 2.0) / (z * y);
}
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 y <= -0.095: tmp = (x_m / (y * 0.5)) / z elif y <= 0.0014: tmp = -2.0 * ((x_m / t) / z) else: tmp = (x_m * 2.0) / (z * y) 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 (y <= -0.095) tmp = Float64(Float64(x_m / Float64(y * 0.5)) / z); elseif (y <= 0.0014) tmp = Float64(-2.0 * Float64(Float64(x_m / t) / z)); else tmp = Float64(Float64(x_m * 2.0) / Float64(z * y)); 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 (y <= -0.095) tmp = (x_m / (y * 0.5)) / z; elseif (y <= 0.0014) tmp = -2.0 * ((x_m / t) / z); else tmp = (x_m * 2.0) / (z * y); 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[y, -0.095], N[(N[(x$95$m / N[(y * 0.5), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[y, 0.0014], N[(-2.0 * N[(N[(x$95$m / t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(x$95$m * 2.0), $MachinePrecision] / N[(z * y), $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}\;y \leq -0.095:\\
\;\;\;\;\frac{\frac{x\_m}{y \cdot 0.5}}{z}\\
\mathbf{elif}\;y \leq 0.0014:\\
\;\;\;\;-2 \cdot \frac{\frac{x\_m}{t}}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x\_m \cdot 2}{z \cdot y}\\
\end{array}
\end{array}
if y < -0.095000000000000001Initial program 88.3%
*-commutative88.3%
associate-*l/88.2%
*-commutative88.2%
distribute-rgt-out--89.6%
associate-/l/91.5%
Simplified91.5%
Taylor expanded in y around inf 79.1%
associate-/r*80.3%
Simplified80.3%
associate-*r/83.1%
clear-num83.1%
un-div-inv83.2%
div-inv83.2%
metadata-eval83.2%
Applied egg-rr83.2%
if -0.095000000000000001 < y < 0.00139999999999999999Initial program 89.0%
*-commutative89.0%
associate-*l/88.4%
*-commutative88.4%
distribute-rgt-out--89.3%
associate-/l/90.6%
Simplified90.6%
Taylor expanded in y around 0 76.0%
associate-/r*81.1%
Simplified81.1%
if 0.00139999999999999999 < y Initial program 94.8%
distribute-rgt-out--96.6%
Simplified96.6%
Taylor expanded in y around inf 78.6%
*-commutative78.6%
Simplified78.6%
Final simplification81.1%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= (* x_m 2.0) 1e+37)
(* (/ x_m z) (/ 2.0 (- y t)))
(* (/ x_m (- y t)) (/ 2.0 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 * 2.0) <= 1e+37) {
tmp = (x_m / z) * (2.0 / (y - t));
} else {
tmp = (x_m / (y - t)) * (2.0 / 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 * 2.0d0) <= 1d+37) then
tmp = (x_m / z) * (2.0d0 / (y - t))
else
tmp = (x_m / (y - t)) * (2.0d0 / 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 * 2.0) <= 1e+37) {
tmp = (x_m / z) * (2.0 / (y - t));
} else {
tmp = (x_m / (y - t)) * (2.0 / 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 * 2.0) <= 1e+37: tmp = (x_m / z) * (2.0 / (y - t)) else: tmp = (x_m / (y - t)) * (2.0 / 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(x_m * 2.0) <= 1e+37) tmp = Float64(Float64(x_m / z) * Float64(2.0 / Float64(y - t))); else tmp = Float64(Float64(x_m / Float64(y - t)) * Float64(2.0 / 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 * 2.0) <= 1e+37) tmp = (x_m / z) * (2.0 / (y - t)); else tmp = (x_m / (y - t)) * (2.0 / 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[(x$95$m * 2.0), $MachinePrecision], 1e+37], N[(N[(x$95$m / z), $MachinePrecision] * N[(2.0 / N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x$95$m / N[(y - t), $MachinePrecision]), $MachinePrecision] * N[(2.0 / z), $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 \cdot 2 \leq 10^{+37}:\\
\;\;\;\;\frac{x\_m}{z} \cdot \frac{2}{y - t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x\_m}{y - t} \cdot \frac{2}{z}\\
\end{array}
\end{array}
if (*.f64 x 2) < 9.99999999999999954e36Initial program 92.0%
distribute-rgt-out--93.6%
times-frac91.2%
Simplified91.2%
if 9.99999999999999954e36 < (*.f64 x 2) Initial program 84.9%
distribute-rgt-out--85.2%
Simplified85.2%
*-commutative85.2%
times-frac98.1%
Applied egg-rr98.1%
Final simplification92.9%
x_m = (fabs.f64 x)
x_s = (copysign.f64 1 x)
(FPCore (x_s x_m y z t)
:precision binary64
(*
x_s
(if (<= (* x_m 2.0) 5e-30)
(* (/ x_m z) (/ 2.0 (- y t)))
(/ 2.0 (* z (/ (- y t) 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 ((x_m * 2.0) <= 5e-30) {
tmp = (x_m / z) * (2.0 / (y - t));
} else {
tmp = 2.0 / (z * ((y - t) / x_m));
}
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 * 2.0d0) <= 5d-30) then
tmp = (x_m / z) * (2.0d0 / (y - t))
else
tmp = 2.0d0 / (z * ((y - t) / x_m))
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 * 2.0) <= 5e-30) {
tmp = (x_m / z) * (2.0 / (y - t));
} else {
tmp = 2.0 / (z * ((y - t) / x_m));
}
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 * 2.0) <= 5e-30: tmp = (x_m / z) * (2.0 / (y - t)) else: tmp = 2.0 / (z * ((y - t) / 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 (Float64(x_m * 2.0) <= 5e-30) tmp = Float64(Float64(x_m / z) * Float64(2.0 / Float64(y - t))); else tmp = Float64(2.0 / Float64(z * Float64(Float64(y - t) / x_m))); 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 * 2.0) <= 5e-30) tmp = (x_m / z) * (2.0 / (y - t)); else tmp = 2.0 / (z * ((y - t) / x_m)); 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[(x$95$m * 2.0), $MachinePrecision], 5e-30], N[(N[(x$95$m / z), $MachinePrecision] * N[(2.0 / N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 / N[(z * N[(N[(y - t), $MachinePrecision] / x$95$m), $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 \cdot 2 \leq 5 \cdot 10^{-30}:\\
\;\;\;\;\frac{x\_m}{z} \cdot \frac{2}{y - t}\\
\mathbf{else}:\\
\;\;\;\;\frac{2}{z \cdot \frac{y - t}{x\_m}}\\
\end{array}
\end{array}
if (*.f64 x 2) < 4.99999999999999972e-30Initial program 91.6%
distribute-rgt-out--93.3%
times-frac90.8%
Simplified90.8%
if 4.99999999999999972e-30 < (*.f64 x 2) Initial program 86.8%
*-commutative86.8%
associate-*l/86.7%
*-commutative86.7%
distribute-rgt-out--86.9%
associate-/l/87.8%
Simplified87.8%
associate-/l/86.9%
associate-*r/87.0%
*-commutative87.0%
associate-/l*86.8%
*-commutative86.8%
Applied egg-rr86.8%
associate-/l*84.2%
associate-/r/98.4%
Applied egg-rr98.4%
Final simplification92.9%
x_m = (fabs.f64 x) x_s = (copysign.f64 1 x) (FPCore (x_s x_m y z t) :precision binary64 (let* ((t_1 (/ 2.0 (- y t)))) (* x_s (if (<= z 1.46e-49) (* x_m (/ t_1 z)) (* (/ x_m 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 = 2.0 / (y - t);
double tmp;
if (z <= 1.46e-49) {
tmp = x_m * (t_1 / z);
} else {
tmp = (x_m / z) * 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 = 2.0d0 / (y - t)
if (z <= 1.46d-49) then
tmp = x_m * (t_1 / z)
else
tmp = (x_m / z) * 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 = 2.0 / (y - t);
double tmp;
if (z <= 1.46e-49) {
tmp = x_m * (t_1 / z);
} else {
tmp = (x_m / z) * 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 = 2.0 / (y - t) tmp = 0 if z <= 1.46e-49: tmp = x_m * (t_1 / z) else: tmp = (x_m / z) * 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(2.0 / Float64(y - t)) tmp = 0.0 if (z <= 1.46e-49) tmp = Float64(x_m * Float64(t_1 / z)); else tmp = Float64(Float64(x_m / z) * 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 = 2.0 / (y - t); tmp = 0.0; if (z <= 1.46e-49) tmp = x_m * (t_1 / z); else tmp = (x_m / z) * 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[(2.0 / N[(y - t), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[z, 1.46e-49], N[(x$95$m * N[(t$95$1 / z), $MachinePrecision]), $MachinePrecision], N[(N[(x$95$m / z), $MachinePrecision] * t$95$1), $MachinePrecision]]), $MachinePrecision]]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
\begin{array}{l}
t_1 := \frac{2}{y - t}\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq 1.46 \cdot 10^{-49}:\\
\;\;\;\;x\_m \cdot \frac{t\_1}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x\_m}{z} \cdot t\_1\\
\end{array}
\end{array}
\end{array}
if z < 1.46000000000000007e-49Initial program 92.6%
*-commutative92.6%
associate-*l/92.1%
*-commutative92.1%
distribute-rgt-out--93.2%
associate-/l/93.5%
Simplified93.5%
if 1.46000000000000007e-49 < z Initial program 83.3%
distribute-rgt-out--85.1%
times-frac98.2%
Simplified98.2%
Final simplification94.7%
x_m = (fabs.f64 x) x_s = (copysign.f64 1 x) (FPCore (x_s x_m y z t) :precision binary64 (* x_s (if (<= x_m 4e-51) (* x_m (/ -2.0 (* z t))) (* -2.0 (/ (/ x_m 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 <= 4e-51) {
tmp = x_m * (-2.0 / (z * t));
} else {
tmp = -2.0 * ((x_m / 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 <= 4d-51) then
tmp = x_m * ((-2.0d0) / (z * t))
else
tmp = (-2.0d0) * ((x_m / 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 <= 4e-51) {
tmp = x_m * (-2.0 / (z * t));
} else {
tmp = -2.0 * ((x_m / 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 <= 4e-51: tmp = x_m * (-2.0 / (z * t)) else: tmp = -2.0 * ((x_m / 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 <= 4e-51) tmp = Float64(x_m * Float64(-2.0 / Float64(z * t))); else tmp = Float64(-2.0 * Float64(Float64(x_m / 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 <= 4e-51) tmp = x_m * (-2.0 / (z * t)); else tmp = -2.0 * ((x_m / 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, 4e-51], N[(x$95$m * N[(-2.0 / N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-2.0 * N[(N[(x$95$m / t), $MachinePrecision] / z), $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 4 \cdot 10^{-51}:\\
\;\;\;\;x\_m \cdot \frac{-2}{z \cdot t}\\
\mathbf{else}:\\
\;\;\;\;-2 \cdot \frac{\frac{x\_m}{t}}{z}\\
\end{array}
\end{array}
if x < 4e-51Initial program 91.4%
*-commutative91.4%
associate-*l/91.0%
*-commutative91.0%
distribute-rgt-out--92.7%
associate-/l/94.0%
Simplified94.0%
Taylor expanded in y around 0 49.3%
*-commutative49.3%
Simplified49.3%
if 4e-51 < x Initial program 87.4%
*-commutative87.4%
associate-*l/87.3%
*-commutative87.3%
distribute-rgt-out--87.5%
associate-/l/88.4%
Simplified88.4%
Taylor expanded in y around 0 55.1%
associate-/r*61.7%
Simplified61.7%
Final simplification53.0%
x_m = (fabs.f64 x) x_s = (copysign.f64 1 x) (FPCore (x_s x_m y z t) :precision binary64 (* x_s (* x_m (/ (/ 2.0 (- y 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) {
return x_s * (x_m * ((2.0 / (y - t)) / z));
}
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 * ((2.0d0 / (y - t)) / z))
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 * ((2.0 / (y - t)) / z));
}
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 * ((2.0 / (y - t)) / z))
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 * Float64(Float64(2.0 / Float64(y - t)) / z))) 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 * ((2.0 / (y - t)) / z)); 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 * N[(N[(2.0 / N[(y - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $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 \frac{\frac{2}{y - t}}{z}\right)
\end{array}
Initial program 90.2%
*-commutative90.2%
associate-*l/89.9%
*-commutative89.9%
distribute-rgt-out--91.1%
associate-/l/92.3%
Simplified92.3%
Final simplification92.3%
x_m = (fabs.f64 x) x_s = (copysign.f64 1 x) (FPCore (x_s x_m y z t) :precision binary64 (* x_s (* -2.0 (/ (/ x_m 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) {
return x_s * (-2.0 * ((x_m / t) / z));
}
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 * ((-2.0d0) * ((x_m / t) / z))
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 * (-2.0 * ((x_m / t) / z));
}
x_m = math.fabs(x) x_s = math.copysign(1.0, x) def code(x_s, x_m, y, z, t): return x_s * (-2.0 * ((x_m / t) / z))
x_m = abs(x) x_s = copysign(1.0, x) function code(x_s, x_m, y, z, t) return Float64(x_s * Float64(-2.0 * Float64(Float64(x_m / t) / z))) 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 * (-2.0 * ((x_m / t) / z)); 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[(-2.0 * N[(N[(x$95$m / t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
x_s = \mathsf{copysign}\left(1, x\right)
\\
x\_s \cdot \left(-2 \cdot \frac{\frac{x\_m}{t}}{z}\right)
\end{array}
Initial program 90.2%
*-commutative90.2%
associate-*l/89.9%
*-commutative89.9%
distribute-rgt-out--91.1%
associate-/l/92.3%
Simplified92.3%
Taylor expanded in y around 0 51.3%
associate-/r*52.2%
Simplified52.2%
Final simplification52.2%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (/ x (* (- y t) z)) 2.0))
(t_2 (/ (* x 2.0) (- (* y z) (* t z)))))
(if (< t_2 -2.559141628295061e-13)
t_1
(if (< t_2 1.045027827330126e-269) (/ (* (/ x z) 2.0) (- y t)) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = (x / ((y - t) * z)) * 2.0;
double t_2 = (x * 2.0) / ((y * z) - (t * z));
double tmp;
if (t_2 < -2.559141628295061e-13) {
tmp = t_1;
} else if (t_2 < 1.045027827330126e-269) {
tmp = ((x / z) * 2.0) / (y - t);
} else {
tmp = t_1;
}
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x / ((y - t) * z)) * 2.0d0
t_2 = (x * 2.0d0) / ((y * z) - (t * z))
if (t_2 < (-2.559141628295061d-13)) then
tmp = t_1
else if (t_2 < 1.045027827330126d-269) then
tmp = ((x / z) * 2.0d0) / (y - t)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (x / ((y - t) * z)) * 2.0;
double t_2 = (x * 2.0) / ((y * z) - (t * z));
double tmp;
if (t_2 < -2.559141628295061e-13) {
tmp = t_1;
} else if (t_2 < 1.045027827330126e-269) {
tmp = ((x / z) * 2.0) / (y - t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (x / ((y - t) * z)) * 2.0 t_2 = (x * 2.0) / ((y * z) - (t * z)) tmp = 0 if t_2 < -2.559141628295061e-13: tmp = t_1 elif t_2 < 1.045027827330126e-269: tmp = ((x / z) * 2.0) / (y - t) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x / Float64(Float64(y - t) * z)) * 2.0) t_2 = Float64(Float64(x * 2.0) / Float64(Float64(y * z) - Float64(t * z))) tmp = 0.0 if (t_2 < -2.559141628295061e-13) tmp = t_1; elseif (t_2 < 1.045027827330126e-269) tmp = Float64(Float64(Float64(x / z) * 2.0) / Float64(y - t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x / ((y - t) * z)) * 2.0; t_2 = (x * 2.0) / ((y * z) - (t * z)); tmp = 0.0; if (t_2 < -2.559141628295061e-13) tmp = t_1; elseif (t_2 < 1.045027827330126e-269) tmp = ((x / z) * 2.0) / (y - t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x / N[(N[(y - t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] * 2.0), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * 2.0), $MachinePrecision] / N[(N[(y * z), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$2, -2.559141628295061e-13], t$95$1, If[Less[t$95$2, 1.045027827330126e-269], N[(N[(N[(x / z), $MachinePrecision] * 2.0), $MachinePrecision] / N[(y - t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\left(y - t\right) \cdot z} \cdot 2\\
t_2 := \frac{x \cdot 2}{y \cdot z - t \cdot z}\\
\mathbf{if}\;t\_2 < -2.559141628295061 \cdot 10^{-13}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 < 1.045027827330126 \cdot 10^{-269}:\\
\;\;\;\;\frac{\frac{x}{z} \cdot 2}{y - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024040
(FPCore (x y z t)
:name "Linear.Projection:infinitePerspective from linear-1.19.1.3, A"
:precision binary64
:herbie-target
(if (< (/ (* x 2.0) (- (* y z) (* t z))) -2.559141628295061e-13) (* (/ x (* (- y t) z)) 2.0) (if (< (/ (* x 2.0) (- (* y z) (* t z))) 1.045027827330126e-269) (/ (* (/ x z) 2.0) (- y t)) (* (/ x (* (- y t) z)) 2.0)))
(/ (* x 2.0) (- (* y z) (* t z))))