
(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 17 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}
(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}
Initial program 82.7%
associate-/l*98.0%
Simplified98.0%
clear-num97.9%
un-div-inv98.2%
Applied egg-rr98.2%
(FPCore (x y z t)
:precision binary64
(if (<= z -3.9e+25)
(- x (* x (/ y z)))
(if (<= z -3.3e-118)
(* x (/ y (- t z)))
(if (<= z -1.3e-227)
(/ (* x (- y z)) t)
(if (<= z 7.2e-53)
(/ x (/ t (- y z)))
(if (<= z 1.6e-16) (/ (* x (- z y)) z) (* x (/ z (- z t)))))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -3.9e+25) {
tmp = x - (x * (y / z));
} else if (z <= -3.3e-118) {
tmp = x * (y / (t - z));
} else if (z <= -1.3e-227) {
tmp = (x * (y - z)) / t;
} else if (z <= 7.2e-53) {
tmp = x / (t / (y - z));
} else if (z <= 1.6e-16) {
tmp = (x * (z - y)) / z;
} else {
tmp = x * (z / (z - t));
}
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) :: tmp
if (z <= (-3.9d+25)) then
tmp = x - (x * (y / z))
else if (z <= (-3.3d-118)) then
tmp = x * (y / (t - z))
else if (z <= (-1.3d-227)) then
tmp = (x * (y - z)) / t
else if (z <= 7.2d-53) then
tmp = x / (t / (y - z))
else if (z <= 1.6d-16) then
tmp = (x * (z - y)) / z
else
tmp = x * (z / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -3.9e+25) {
tmp = x - (x * (y / z));
} else if (z <= -3.3e-118) {
tmp = x * (y / (t - z));
} else if (z <= -1.3e-227) {
tmp = (x * (y - z)) / t;
} else if (z <= 7.2e-53) {
tmp = x / (t / (y - z));
} else if (z <= 1.6e-16) {
tmp = (x * (z - y)) / z;
} else {
tmp = x * (z / (z - t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -3.9e+25: tmp = x - (x * (y / z)) elif z <= -3.3e-118: tmp = x * (y / (t - z)) elif z <= -1.3e-227: tmp = (x * (y - z)) / t elif z <= 7.2e-53: tmp = x / (t / (y - z)) elif z <= 1.6e-16: tmp = (x * (z - y)) / z else: tmp = x * (z / (z - t)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -3.9e+25) tmp = Float64(x - Float64(x * Float64(y / z))); elseif (z <= -3.3e-118) tmp = Float64(x * Float64(y / Float64(t - z))); elseif (z <= -1.3e-227) tmp = Float64(Float64(x * Float64(y - z)) / t); elseif (z <= 7.2e-53) tmp = Float64(x / Float64(t / Float64(y - z))); elseif (z <= 1.6e-16) tmp = Float64(Float64(x * Float64(z - y)) / z); else tmp = Float64(x * Float64(z / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -3.9e+25) tmp = x - (x * (y / z)); elseif (z <= -3.3e-118) tmp = x * (y / (t - z)); elseif (z <= -1.3e-227) tmp = (x * (y - z)) / t; elseif (z <= 7.2e-53) tmp = x / (t / (y - z)); elseif (z <= 1.6e-16) tmp = (x * (z - y)) / z; else tmp = x * (z / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -3.9e+25], N[(x - N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.3e-118], N[(x * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.3e-227], N[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[z, 7.2e-53], N[(x / N[(t / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.6e-16], N[(N[(x * N[(z - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], N[(x * N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.9 \cdot 10^{+25}:\\
\;\;\;\;x - x \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq -3.3 \cdot 10^{-118}:\\
\;\;\;\;x \cdot \frac{y}{t - z}\\
\mathbf{elif}\;z \leq -1.3 \cdot 10^{-227}:\\
\;\;\;\;\frac{x \cdot \left(y - z\right)}{t}\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{-53}:\\
\;\;\;\;\frac{x}{\frac{t}{y - z}}\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{-16}:\\
\;\;\;\;\frac{x \cdot \left(z - y\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{z}{z - t}\\
\end{array}
\end{array}
if z < -3.9000000000000002e25Initial program 61.3%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in t around 0 50.8%
mul-1-neg50.8%
associate-/l*82.9%
distribute-rgt-neg-in82.9%
distribute-frac-neg82.9%
neg-sub082.9%
associate--r-82.9%
neg-sub082.9%
+-commutative82.9%
sub-neg82.9%
div-sub82.9%
*-inverses82.9%
Simplified82.9%
sub-neg82.9%
distribute-rgt-in82.9%
*-un-lft-identity82.9%
distribute-neg-frac282.9%
Applied egg-rr82.9%
if -3.9000000000000002e25 < z < -3.3e-118Initial program 93.0%
associate-/l*97.4%
Simplified97.4%
Taylor expanded in y around inf 70.1%
associate-/l*74.4%
Simplified74.4%
if -3.3e-118 < z < -1.30000000000000006e-227Initial program 99.8%
associate-/l*90.6%
Simplified90.6%
Taylor expanded in t around inf 94.8%
if -1.30000000000000006e-227 < z < 7.1999999999999998e-53Initial program 89.2%
associate-/l*98.2%
Simplified98.2%
clear-num98.1%
un-div-inv98.3%
Applied egg-rr98.3%
Taylor expanded in t around inf 90.5%
if 7.1999999999999998e-53 < z < 1.60000000000000011e-16Initial program 100.0%
remove-double-neg100.0%
distribute-lft-neg-out100.0%
distribute-neg-frac100.0%
distribute-neg-frac2100.0%
distribute-lft-neg-out100.0%
distribute-rgt-neg-in100.0%
sub-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
+-commutative100.0%
sub-neg100.0%
sub-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
+-commutative100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in t around 0 100.0%
if 1.60000000000000011e-16 < z Initial program 81.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around 0 71.2%
mul-1-neg71.2%
distribute-neg-frac271.2%
neg-sub071.2%
associate--r-71.2%
neg-sub071.2%
+-commutative71.2%
sub-neg71.2%
associate-/l*87.5%
Simplified87.5%
Final simplification86.2%
(FPCore (x y z t)
:precision binary64
(if (<= z -7.6e+25)
(* x (- 1.0 (/ y z)))
(if (<= z -1.3e-118)
(* x (/ y (- t z)))
(if (<= z -1.75e-236)
(/ (* x (- y z)) t)
(if (<= z 2.6e-54)
(/ x (/ t (- y z)))
(if (<= z 2.1e-17) (/ (* x (- z y)) z) (* x (/ z (- z t)))))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -7.6e+25) {
tmp = x * (1.0 - (y / z));
} else if (z <= -1.3e-118) {
tmp = x * (y / (t - z));
} else if (z <= -1.75e-236) {
tmp = (x * (y - z)) / t;
} else if (z <= 2.6e-54) {
tmp = x / (t / (y - z));
} else if (z <= 2.1e-17) {
tmp = (x * (z - y)) / z;
} else {
tmp = x * (z / (z - t));
}
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) :: tmp
if (z <= (-7.6d+25)) then
tmp = x * (1.0d0 - (y / z))
else if (z <= (-1.3d-118)) then
tmp = x * (y / (t - z))
else if (z <= (-1.75d-236)) then
tmp = (x * (y - z)) / t
else if (z <= 2.6d-54) then
tmp = x / (t / (y - z))
else if (z <= 2.1d-17) then
tmp = (x * (z - y)) / z
else
tmp = x * (z / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -7.6e+25) {
tmp = x * (1.0 - (y / z));
} else if (z <= -1.3e-118) {
tmp = x * (y / (t - z));
} else if (z <= -1.75e-236) {
tmp = (x * (y - z)) / t;
} else if (z <= 2.6e-54) {
tmp = x / (t / (y - z));
} else if (z <= 2.1e-17) {
tmp = (x * (z - y)) / z;
} else {
tmp = x * (z / (z - t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -7.6e+25: tmp = x * (1.0 - (y / z)) elif z <= -1.3e-118: tmp = x * (y / (t - z)) elif z <= -1.75e-236: tmp = (x * (y - z)) / t elif z <= 2.6e-54: tmp = x / (t / (y - z)) elif z <= 2.1e-17: tmp = (x * (z - y)) / z else: tmp = x * (z / (z - t)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -7.6e+25) tmp = Float64(x * Float64(1.0 - Float64(y / z))); elseif (z <= -1.3e-118) tmp = Float64(x * Float64(y / Float64(t - z))); elseif (z <= -1.75e-236) tmp = Float64(Float64(x * Float64(y - z)) / t); elseif (z <= 2.6e-54) tmp = Float64(x / Float64(t / Float64(y - z))); elseif (z <= 2.1e-17) tmp = Float64(Float64(x * Float64(z - y)) / z); else tmp = Float64(x * Float64(z / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -7.6e+25) tmp = x * (1.0 - (y / z)); elseif (z <= -1.3e-118) tmp = x * (y / (t - z)); elseif (z <= -1.75e-236) tmp = (x * (y - z)) / t; elseif (z <= 2.6e-54) tmp = x / (t / (y - z)); elseif (z <= 2.1e-17) tmp = (x * (z - y)) / z; else tmp = x * (z / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -7.6e+25], N[(x * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.3e-118], N[(x * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.75e-236], N[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[z, 2.6e-54], N[(x / N[(t / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.1e-17], N[(N[(x * N[(z - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], N[(x * N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.6 \cdot 10^{+25}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq -1.3 \cdot 10^{-118}:\\
\;\;\;\;x \cdot \frac{y}{t - z}\\
\mathbf{elif}\;z \leq -1.75 \cdot 10^{-236}:\\
\;\;\;\;\frac{x \cdot \left(y - z\right)}{t}\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-54}:\\
\;\;\;\;\frac{x}{\frac{t}{y - z}}\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-17}:\\
\;\;\;\;\frac{x \cdot \left(z - y\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{z}{z - t}\\
\end{array}
\end{array}
if z < -7.6000000000000001e25Initial program 61.3%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in t around 0 50.8%
mul-1-neg50.8%
associate-/l*82.9%
distribute-rgt-neg-in82.9%
distribute-frac-neg82.9%
neg-sub082.9%
associate--r-82.9%
neg-sub082.9%
+-commutative82.9%
sub-neg82.9%
div-sub82.9%
*-inverses82.9%
Simplified82.9%
if -7.6000000000000001e25 < z < -1.3e-118Initial program 93.0%
associate-/l*97.4%
Simplified97.4%
Taylor expanded in y around inf 70.1%
associate-/l*74.4%
Simplified74.4%
if -1.3e-118 < z < -1.74999999999999997e-236Initial program 99.8%
associate-/l*90.6%
Simplified90.6%
Taylor expanded in t around inf 94.8%
if -1.74999999999999997e-236 < z < 2.60000000000000002e-54Initial program 89.2%
associate-/l*98.2%
Simplified98.2%
clear-num98.1%
un-div-inv98.3%
Applied egg-rr98.3%
Taylor expanded in t around inf 90.5%
if 2.60000000000000002e-54 < z < 2.09999999999999992e-17Initial program 100.0%
remove-double-neg100.0%
distribute-lft-neg-out100.0%
distribute-neg-frac100.0%
distribute-neg-frac2100.0%
distribute-lft-neg-out100.0%
distribute-rgt-neg-in100.0%
sub-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
+-commutative100.0%
sub-neg100.0%
sub-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
+-commutative100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in t around 0 100.0%
if 2.09999999999999992e-17 < z Initial program 81.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around 0 71.2%
mul-1-neg71.2%
distribute-neg-frac271.2%
neg-sub071.2%
associate--r-71.2%
neg-sub071.2%
+-commutative71.2%
sub-neg71.2%
associate-/l*87.5%
Simplified87.5%
(FPCore (x y z t)
:precision binary64
(if (<= z -1.6e+26)
(* x (- 1.0 (/ y z)))
(if (<= z -1.45e-118)
(* x (/ y (- t z)))
(if (<= z -8.8e-235)
(/ (* x (- y z)) t)
(if (<= z 9e-56)
(/ x (/ t (- y z)))
(if (<= z 5e-18) (* (- z y) (/ x z)) (* x (/ z (- z t)))))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.6e+26) {
tmp = x * (1.0 - (y / z));
} else if (z <= -1.45e-118) {
tmp = x * (y / (t - z));
} else if (z <= -8.8e-235) {
tmp = (x * (y - z)) / t;
} else if (z <= 9e-56) {
tmp = x / (t / (y - z));
} else if (z <= 5e-18) {
tmp = (z - y) * (x / z);
} else {
tmp = x * (z / (z - t));
}
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) :: tmp
if (z <= (-1.6d+26)) then
tmp = x * (1.0d0 - (y / z))
else if (z <= (-1.45d-118)) then
tmp = x * (y / (t - z))
else if (z <= (-8.8d-235)) then
tmp = (x * (y - z)) / t
else if (z <= 9d-56) then
tmp = x / (t / (y - z))
else if (z <= 5d-18) then
tmp = (z - y) * (x / z)
else
tmp = x * (z / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.6e+26) {
tmp = x * (1.0 - (y / z));
} else if (z <= -1.45e-118) {
tmp = x * (y / (t - z));
} else if (z <= -8.8e-235) {
tmp = (x * (y - z)) / t;
} else if (z <= 9e-56) {
tmp = x / (t / (y - z));
} else if (z <= 5e-18) {
tmp = (z - y) * (x / z);
} else {
tmp = x * (z / (z - t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.6e+26: tmp = x * (1.0 - (y / z)) elif z <= -1.45e-118: tmp = x * (y / (t - z)) elif z <= -8.8e-235: tmp = (x * (y - z)) / t elif z <= 9e-56: tmp = x / (t / (y - z)) elif z <= 5e-18: tmp = (z - y) * (x / z) else: tmp = x * (z / (z - t)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.6e+26) tmp = Float64(x * Float64(1.0 - Float64(y / z))); elseif (z <= -1.45e-118) tmp = Float64(x * Float64(y / Float64(t - z))); elseif (z <= -8.8e-235) tmp = Float64(Float64(x * Float64(y - z)) / t); elseif (z <= 9e-56) tmp = Float64(x / Float64(t / Float64(y - z))); elseif (z <= 5e-18) tmp = Float64(Float64(z - y) * Float64(x / z)); else tmp = Float64(x * Float64(z / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -1.6e+26) tmp = x * (1.0 - (y / z)); elseif (z <= -1.45e-118) tmp = x * (y / (t - z)); elseif (z <= -8.8e-235) tmp = (x * (y - z)) / t; elseif (z <= 9e-56) tmp = x / (t / (y - z)); elseif (z <= 5e-18) tmp = (z - y) * (x / z); else tmp = x * (z / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.6e+26], N[(x * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.45e-118], N[(x * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -8.8e-235], N[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[z, 9e-56], N[(x / N[(t / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e-18], N[(N[(z - y), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision], N[(x * N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.6 \cdot 10^{+26}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq -1.45 \cdot 10^{-118}:\\
\;\;\;\;x \cdot \frac{y}{t - z}\\
\mathbf{elif}\;z \leq -8.8 \cdot 10^{-235}:\\
\;\;\;\;\frac{x \cdot \left(y - z\right)}{t}\\
\mathbf{elif}\;z \leq 9 \cdot 10^{-56}:\\
\;\;\;\;\frac{x}{\frac{t}{y - z}}\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-18}:\\
\;\;\;\;\left(z - y\right) \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{z}{z - t}\\
\end{array}
\end{array}
if z < -1.60000000000000014e26Initial program 61.3%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in t around 0 50.8%
mul-1-neg50.8%
associate-/l*82.9%
distribute-rgt-neg-in82.9%
distribute-frac-neg82.9%
neg-sub082.9%
associate--r-82.9%
neg-sub082.9%
+-commutative82.9%
sub-neg82.9%
div-sub82.9%
*-inverses82.9%
Simplified82.9%
if -1.60000000000000014e26 < z < -1.4499999999999999e-118Initial program 93.0%
associate-/l*97.4%
Simplified97.4%
Taylor expanded in y around inf 70.1%
associate-/l*74.4%
Simplified74.4%
if -1.4499999999999999e-118 < z < -8.79999999999999935e-235Initial program 99.8%
associate-/l*90.6%
Simplified90.6%
Taylor expanded in t around inf 94.8%
if -8.79999999999999935e-235 < z < 9.0000000000000001e-56Initial program 89.2%
associate-/l*98.2%
Simplified98.2%
clear-num98.1%
un-div-inv98.3%
Applied egg-rr98.3%
Taylor expanded in t around inf 90.5%
if 9.0000000000000001e-56 < z < 5.00000000000000036e-18Initial program 100.0%
remove-double-neg100.0%
distribute-lft-neg-out100.0%
distribute-neg-frac100.0%
distribute-neg-frac2100.0%
distribute-lft-neg-out100.0%
distribute-rgt-neg-in100.0%
sub-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
+-commutative100.0%
sub-neg100.0%
sub-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
+-commutative100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in t around 0 100.0%
*-commutative100.0%
associate-/l*90.0%
Applied egg-rr90.0%
if 5.00000000000000036e-18 < z Initial program 81.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around 0 71.2%
mul-1-neg71.2%
distribute-neg-frac271.2%
neg-sub071.2%
associate--r-71.2%
neg-sub071.2%
+-commutative71.2%
sub-neg71.2%
associate-/l*87.5%
Simplified87.5%
(FPCore (x y z t)
:precision binary64
(if (<= z -1.05e+23)
(* x (- 1.0 (/ y z)))
(if (<= z 6.2e-53)
(/ x (/ t (- y z)))
(if (<= z 2e-19) (* (- z y) (/ x z)) (* x (/ z (- z t)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.05e+23) {
tmp = x * (1.0 - (y / z));
} else if (z <= 6.2e-53) {
tmp = x / (t / (y - z));
} else if (z <= 2e-19) {
tmp = (z - y) * (x / z);
} else {
tmp = x * (z / (z - t));
}
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) :: tmp
if (z <= (-1.05d+23)) then
tmp = x * (1.0d0 - (y / z))
else if (z <= 6.2d-53) then
tmp = x / (t / (y - z))
else if (z <= 2d-19) then
tmp = (z - y) * (x / z)
else
tmp = x * (z / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.05e+23) {
tmp = x * (1.0 - (y / z));
} else if (z <= 6.2e-53) {
tmp = x / (t / (y - z));
} else if (z <= 2e-19) {
tmp = (z - y) * (x / z);
} else {
tmp = x * (z / (z - t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.05e+23: tmp = x * (1.0 - (y / z)) elif z <= 6.2e-53: tmp = x / (t / (y - z)) elif z <= 2e-19: tmp = (z - y) * (x / z) else: tmp = x * (z / (z - t)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.05e+23) tmp = Float64(x * Float64(1.0 - Float64(y / z))); elseif (z <= 6.2e-53) tmp = Float64(x / Float64(t / Float64(y - z))); elseif (z <= 2e-19) tmp = Float64(Float64(z - y) * Float64(x / z)); else tmp = Float64(x * Float64(z / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -1.05e+23) tmp = x * (1.0 - (y / z)); elseif (z <= 6.2e-53) tmp = x / (t / (y - z)); elseif (z <= 2e-19) tmp = (z - y) * (x / z); else tmp = x * (z / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.05e+23], N[(x * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e-53], N[(x / N[(t / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e-19], N[(N[(z - y), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision], N[(x * N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.05 \cdot 10^{+23}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-53}:\\
\;\;\;\;\frac{x}{\frac{t}{y - z}}\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-19}:\\
\;\;\;\;\left(z - y\right) \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{z}{z - t}\\
\end{array}
\end{array}
if z < -1.0500000000000001e23Initial program 61.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in t around 0 51.7%
mul-1-neg51.7%
associate-/l*83.2%
distribute-rgt-neg-in83.2%
distribute-frac-neg83.2%
neg-sub083.2%
associate--r-83.2%
neg-sub083.2%
+-commutative83.2%
sub-neg83.2%
div-sub83.2%
*-inverses83.2%
Simplified83.2%
if -1.0500000000000001e23 < z < 6.20000000000000031e-53Initial program 92.2%
associate-/l*96.6%
Simplified96.6%
clear-num96.5%
un-div-inv97.1%
Applied egg-rr97.1%
Taylor expanded in t around inf 82.4%
if 6.20000000000000031e-53 < z < 2e-19Initial program 100.0%
remove-double-neg100.0%
distribute-lft-neg-out100.0%
distribute-neg-frac100.0%
distribute-neg-frac2100.0%
distribute-lft-neg-out100.0%
distribute-rgt-neg-in100.0%
sub-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
+-commutative100.0%
sub-neg100.0%
sub-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
+-commutative100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in t around 0 100.0%
*-commutative100.0%
associate-/l*90.0%
Applied egg-rr90.0%
if 2e-19 < z Initial program 81.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around 0 71.2%
mul-1-neg71.2%
distribute-neg-frac271.2%
neg-sub071.2%
associate--r-71.2%
neg-sub071.2%
+-commutative71.2%
sub-neg71.2%
associate-/l*87.5%
Simplified87.5%
(FPCore (x y z t)
:precision binary64
(if (<= z -1.2e+23)
(* x (- 1.0 (/ y z)))
(if (<= z 3.8e-82)
(* x (/ (- y z) t))
(if (<= z 3.1e-16) (* (- z y) (/ x z)) (* x (/ z (- z t)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.2e+23) {
tmp = x * (1.0 - (y / z));
} else if (z <= 3.8e-82) {
tmp = x * ((y - z) / t);
} else if (z <= 3.1e-16) {
tmp = (z - y) * (x / z);
} else {
tmp = x * (z / (z - t));
}
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) :: tmp
if (z <= (-1.2d+23)) then
tmp = x * (1.0d0 - (y / z))
else if (z <= 3.8d-82) then
tmp = x * ((y - z) / t)
else if (z <= 3.1d-16) then
tmp = (z - y) * (x / z)
else
tmp = x * (z / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.2e+23) {
tmp = x * (1.0 - (y / z));
} else if (z <= 3.8e-82) {
tmp = x * ((y - z) / t);
} else if (z <= 3.1e-16) {
tmp = (z - y) * (x / z);
} else {
tmp = x * (z / (z - t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.2e+23: tmp = x * (1.0 - (y / z)) elif z <= 3.8e-82: tmp = x * ((y - z) / t) elif z <= 3.1e-16: tmp = (z - y) * (x / z) else: tmp = x * (z / (z - t)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.2e+23) tmp = Float64(x * Float64(1.0 - Float64(y / z))); elseif (z <= 3.8e-82) tmp = Float64(x * Float64(Float64(y - z) / t)); elseif (z <= 3.1e-16) tmp = Float64(Float64(z - y) * Float64(x / z)); else tmp = Float64(x * Float64(z / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -1.2e+23) tmp = x * (1.0 - (y / z)); elseif (z <= 3.8e-82) tmp = x * ((y - z) / t); elseif (z <= 3.1e-16) tmp = (z - y) * (x / z); else tmp = x * (z / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.2e+23], N[(x * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e-82], N[(x * N[(N[(y - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.1e-16], N[(N[(z - y), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision], N[(x * N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{+23}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{-82}:\\
\;\;\;\;x \cdot \frac{y - z}{t}\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{-16}:\\
\;\;\;\;\left(z - y\right) \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{z}{z - t}\\
\end{array}
\end{array}
if z < -1.2e23Initial program 61.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in t around 0 51.7%
mul-1-neg51.7%
associate-/l*83.2%
distribute-rgt-neg-in83.2%
distribute-frac-neg83.2%
neg-sub083.2%
associate--r-83.2%
neg-sub083.2%
+-commutative83.2%
sub-neg83.2%
div-sub83.2%
*-inverses83.2%
Simplified83.2%
if -1.2e23 < z < 3.8000000000000002e-82Initial program 92.7%
associate-/l*96.5%
Simplified96.5%
Taylor expanded in t around inf 78.2%
associate-/l*82.7%
Simplified82.7%
if 3.8000000000000002e-82 < z < 3.1000000000000001e-16Initial program 93.1%
remove-double-neg93.1%
distribute-lft-neg-out93.1%
distribute-neg-frac93.1%
distribute-neg-frac293.1%
distribute-lft-neg-out93.1%
distribute-rgt-neg-in93.1%
sub-neg93.1%
distribute-neg-in93.1%
remove-double-neg93.1%
+-commutative93.1%
sub-neg93.1%
sub-neg93.1%
distribute-neg-in93.1%
remove-double-neg93.1%
+-commutative93.1%
sub-neg93.1%
Simplified93.1%
Taylor expanded in t around 0 86.0%
*-commutative86.0%
associate-/l*79.6%
Applied egg-rr79.6%
if 3.1000000000000001e-16 < z Initial program 81.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around 0 71.2%
mul-1-neg71.2%
distribute-neg-frac271.2%
neg-sub071.2%
associate--r-71.2%
neg-sub071.2%
+-commutative71.2%
sub-neg71.2%
associate-/l*87.5%
Simplified87.5%
(FPCore (x y z t)
:precision binary64
(if (<= z -2.55e+23)
(* x (- 1.0 (/ y z)))
(if (<= z 7.8e-53)
(* x (/ (- y z) t))
(if (<= z 9.5e-21) (/ (* x (- y)) z) (* x (/ z (- z t)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.55e+23) {
tmp = x * (1.0 - (y / z));
} else if (z <= 7.8e-53) {
tmp = x * ((y - z) / t);
} else if (z <= 9.5e-21) {
tmp = (x * -y) / z;
} else {
tmp = x * (z / (z - t));
}
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) :: tmp
if (z <= (-2.55d+23)) then
tmp = x * (1.0d0 - (y / z))
else if (z <= 7.8d-53) then
tmp = x * ((y - z) / t)
else if (z <= 9.5d-21) then
tmp = (x * -y) / z
else
tmp = x * (z / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.55e+23) {
tmp = x * (1.0 - (y / z));
} else if (z <= 7.8e-53) {
tmp = x * ((y - z) / t);
} else if (z <= 9.5e-21) {
tmp = (x * -y) / z;
} else {
tmp = x * (z / (z - t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -2.55e+23: tmp = x * (1.0 - (y / z)) elif z <= 7.8e-53: tmp = x * ((y - z) / t) elif z <= 9.5e-21: tmp = (x * -y) / z else: tmp = x * (z / (z - t)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -2.55e+23) tmp = Float64(x * Float64(1.0 - Float64(y / z))); elseif (z <= 7.8e-53) tmp = Float64(x * Float64(Float64(y - z) / t)); elseif (z <= 9.5e-21) tmp = Float64(Float64(x * Float64(-y)) / z); else tmp = Float64(x * Float64(z / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -2.55e+23) tmp = x * (1.0 - (y / z)); elseif (z <= 7.8e-53) tmp = x * ((y - z) / t); elseif (z <= 9.5e-21) tmp = (x * -y) / z; else tmp = x * (z / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -2.55e+23], N[(x * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.8e-53], N[(x * N[(N[(y - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e-21], N[(N[(x * (-y)), $MachinePrecision] / z), $MachinePrecision], N[(x * N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.55 \cdot 10^{+23}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq 7.8 \cdot 10^{-53}:\\
\;\;\;\;x \cdot \frac{y - z}{t}\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{-21}:\\
\;\;\;\;\frac{x \cdot \left(-y\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{z}{z - t}\\
\end{array}
\end{array}
if z < -2.5500000000000001e23Initial program 61.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in t around 0 51.7%
mul-1-neg51.7%
associate-/l*83.2%
distribute-rgt-neg-in83.2%
distribute-frac-neg83.2%
neg-sub083.2%
associate--r-83.2%
neg-sub083.2%
+-commutative83.2%
sub-neg83.2%
div-sub83.2%
*-inverses83.2%
Simplified83.2%
if -2.5500000000000001e23 < z < 7.8000000000000004e-53Initial program 92.2%
associate-/l*96.6%
Simplified96.6%
Taylor expanded in t around inf 76.7%
associate-/l*81.8%
Simplified81.8%
if 7.8000000000000004e-53 < z < 9.4999999999999994e-21Initial program 100.0%
associate-/l*90.0%
Simplified90.0%
Taylor expanded in t around 0 100.0%
mul-1-neg100.0%
associate-/l*80.4%
distribute-rgt-neg-in80.4%
distribute-frac-neg80.4%
neg-sub080.4%
associate--r-80.4%
neg-sub080.4%
+-commutative80.4%
sub-neg80.4%
div-sub80.4%
*-inverses80.4%
Simplified80.4%
Taylor expanded in y around inf 89.2%
associate-*r/89.2%
associate-*r*89.2%
neg-mul-189.2%
Simplified89.2%
if 9.4999999999999994e-21 < z Initial program 81.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around 0 71.2%
mul-1-neg71.2%
distribute-neg-frac271.2%
neg-sub071.2%
associate--r-71.2%
neg-sub071.2%
+-commutative71.2%
sub-neg71.2%
associate-/l*87.5%
Simplified87.5%
Final simplification83.9%
(FPCore (x y z t) :precision binary64 (if (<= z -4.8e+24) x (if (<= z 6.2e-53) (/ x (/ t y)) (if (<= z 1.08e-16) (/ (* x (- y)) z) x))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -4.8e+24) {
tmp = x;
} else if (z <= 6.2e-53) {
tmp = x / (t / y);
} else if (z <= 1.08e-16) {
tmp = (x * -y) / z;
} else {
tmp = x;
}
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) :: tmp
if (z <= (-4.8d+24)) then
tmp = x
else if (z <= 6.2d-53) then
tmp = x / (t / y)
else if (z <= 1.08d-16) then
tmp = (x * -y) / z
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -4.8e+24) {
tmp = x;
} else if (z <= 6.2e-53) {
tmp = x / (t / y);
} else if (z <= 1.08e-16) {
tmp = (x * -y) / z;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -4.8e+24: tmp = x elif z <= 6.2e-53: tmp = x / (t / y) elif z <= 1.08e-16: tmp = (x * -y) / z else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -4.8e+24) tmp = x; elseif (z <= 6.2e-53) tmp = Float64(x / Float64(t / y)); elseif (z <= 1.08e-16) tmp = Float64(Float64(x * Float64(-y)) / z); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -4.8e+24) tmp = x; elseif (z <= 6.2e-53) tmp = x / (t / y); elseif (z <= 1.08e-16) tmp = (x * -y) / z; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -4.8e+24], x, If[LessEqual[z, 6.2e-53], N[(x / N[(t / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.08e-16], N[(N[(x * (-y)), $MachinePrecision] / z), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.8 \cdot 10^{+24}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-53}:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\mathbf{elif}\;z \leq 1.08 \cdot 10^{-16}:\\
\;\;\;\;\frac{x \cdot \left(-y\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -4.8000000000000001e24 or 1.08e-16 < z Initial program 72.4%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 67.6%
if -4.8000000000000001e24 < z < 6.20000000000000031e-53Initial program 92.2%
associate-/l*96.6%
Simplified96.6%
clear-num96.5%
un-div-inv97.1%
Applied egg-rr97.1%
Taylor expanded in z around 0 70.2%
if 6.20000000000000031e-53 < z < 1.08e-16Initial program 100.0%
associate-/l*90.0%
Simplified90.0%
Taylor expanded in t around 0 100.0%
mul-1-neg100.0%
associate-/l*80.4%
distribute-rgt-neg-in80.4%
distribute-frac-neg80.4%
neg-sub080.4%
associate--r-80.4%
neg-sub080.4%
+-commutative80.4%
sub-neg80.4%
div-sub80.4%
*-inverses80.4%
Simplified80.4%
Taylor expanded in y around inf 89.2%
associate-*r/89.2%
associate-*r*89.2%
neg-mul-189.2%
Simplified89.2%
Final simplification69.6%
(FPCore (x y z t) :precision binary64 (if (<= z -7e+24) x (if (<= z 2.2e-53) (/ x (/ t y)) (if (<= z 3.1e-16) (* y (/ (- x) z)) x))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -7e+24) {
tmp = x;
} else if (z <= 2.2e-53) {
tmp = x / (t / y);
} else if (z <= 3.1e-16) {
tmp = y * (-x / z);
} else {
tmp = x;
}
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) :: tmp
if (z <= (-7d+24)) then
tmp = x
else if (z <= 2.2d-53) then
tmp = x / (t / y)
else if (z <= 3.1d-16) then
tmp = y * (-x / z)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -7e+24) {
tmp = x;
} else if (z <= 2.2e-53) {
tmp = x / (t / y);
} else if (z <= 3.1e-16) {
tmp = y * (-x / z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -7e+24: tmp = x elif z <= 2.2e-53: tmp = x / (t / y) elif z <= 3.1e-16: tmp = y * (-x / z) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -7e+24) tmp = x; elseif (z <= 2.2e-53) tmp = Float64(x / Float64(t / y)); elseif (z <= 3.1e-16) tmp = Float64(y * Float64(Float64(-x) / z)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -7e+24) tmp = x; elseif (z <= 2.2e-53) tmp = x / (t / y); elseif (z <= 3.1e-16) tmp = y * (-x / z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -7e+24], x, If[LessEqual[z, 2.2e-53], N[(x / N[(t / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.1e-16], N[(y * N[((-x) / z), $MachinePrecision]), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+24}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{-53}:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{-16}:\\
\;\;\;\;y \cdot \frac{-x}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -7.0000000000000004e24 or 3.1000000000000001e-16 < z Initial program 72.4%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 67.6%
if -7.0000000000000004e24 < z < 2.20000000000000018e-53Initial program 92.2%
associate-/l*96.6%
Simplified96.6%
clear-num96.5%
un-div-inv97.1%
Applied egg-rr97.1%
Taylor expanded in z around 0 70.2%
if 2.20000000000000018e-53 < z < 3.1000000000000001e-16Initial program 100.0%
associate-/l*90.0%
Simplified90.0%
Taylor expanded in t around 0 100.0%
mul-1-neg100.0%
associate-/l*80.4%
distribute-rgt-neg-in80.4%
distribute-frac-neg80.4%
neg-sub080.4%
associate--r-80.4%
neg-sub080.4%
+-commutative80.4%
sub-neg80.4%
div-sub80.4%
*-inverses80.4%
Simplified80.4%
Taylor expanded in y around inf 89.2%
mul-1-neg89.2%
distribute-frac-neg289.2%
associate-*r/79.2%
Simplified79.2%
Taylor expanded in x around 0 89.2%
associate-*r/89.2%
neg-mul-189.2%
distribute-rgt-neg-in89.2%
associate-*l/88.8%
Simplified88.8%
Final simplification69.6%
(FPCore (x y z t) :precision binary64 (if (<= z -2.5e+24) x (if (<= z 7e-53) (/ x (/ t y)) (if (<= z 4.5e-19) (* x (/ y (- z))) x))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.5e+24) {
tmp = x;
} else if (z <= 7e-53) {
tmp = x / (t / y);
} else if (z <= 4.5e-19) {
tmp = x * (y / -z);
} else {
tmp = x;
}
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) :: tmp
if (z <= (-2.5d+24)) then
tmp = x
else if (z <= 7d-53) then
tmp = x / (t / y)
else if (z <= 4.5d-19) then
tmp = x * (y / -z)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.5e+24) {
tmp = x;
} else if (z <= 7e-53) {
tmp = x / (t / y);
} else if (z <= 4.5e-19) {
tmp = x * (y / -z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -2.5e+24: tmp = x elif z <= 7e-53: tmp = x / (t / y) elif z <= 4.5e-19: tmp = x * (y / -z) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -2.5e+24) tmp = x; elseif (z <= 7e-53) tmp = Float64(x / Float64(t / y)); elseif (z <= 4.5e-19) tmp = Float64(x * Float64(y / Float64(-z))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -2.5e+24) tmp = x; elseif (z <= 7e-53) tmp = x / (t / y); elseif (z <= 4.5e-19) tmp = x * (y / -z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -2.5e+24], x, If[LessEqual[z, 7e-53], N[(x / N[(t / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e-19], N[(x * N[(y / (-z)), $MachinePrecision]), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.5 \cdot 10^{+24}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 7 \cdot 10^{-53}:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{-19}:\\
\;\;\;\;x \cdot \frac{y}{-z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -2.50000000000000023e24 or 4.50000000000000013e-19 < z Initial program 72.4%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 67.6%
if -2.50000000000000023e24 < z < 6.99999999999999987e-53Initial program 92.2%
associate-/l*96.6%
Simplified96.6%
clear-num96.5%
un-div-inv97.1%
Applied egg-rr97.1%
Taylor expanded in z around 0 70.2%
if 6.99999999999999987e-53 < z < 4.50000000000000013e-19Initial program 100.0%
associate-/l*90.0%
Simplified90.0%
Taylor expanded in t around 0 100.0%
mul-1-neg100.0%
associate-/l*80.4%
distribute-rgt-neg-in80.4%
distribute-frac-neg80.4%
neg-sub080.4%
associate--r-80.4%
neg-sub080.4%
+-commutative80.4%
sub-neg80.4%
div-sub80.4%
*-inverses80.4%
Simplified80.4%
Taylor expanded in y around inf 89.2%
mul-1-neg89.2%
distribute-frac-neg289.2%
associate-*r/79.2%
Simplified79.2%
(FPCore (x y z t) :precision binary64 (if (or (<= z -2.8e+25) (not (<= z 2.1e-79))) (* x (- 1.0 (/ y z))) (* x (/ y (- t z)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -2.8e+25) || !(z <= 2.1e-79)) {
tmp = x * (1.0 - (y / z));
} else {
tmp = x * (y / (t - z));
}
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) :: tmp
if ((z <= (-2.8d+25)) .or. (.not. (z <= 2.1d-79))) then
tmp = x * (1.0d0 - (y / z))
else
tmp = x * (y / (t - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -2.8e+25) || !(z <= 2.1e-79)) {
tmp = x * (1.0 - (y / z));
} else {
tmp = x * (y / (t - z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -2.8e+25) or not (z <= 2.1e-79): tmp = x * (1.0 - (y / z)) else: tmp = x * (y / (t - z)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -2.8e+25) || !(z <= 2.1e-79)) tmp = Float64(x * Float64(1.0 - Float64(y / z))); else tmp = Float64(x * Float64(y / Float64(t - z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -2.8e+25) || ~((z <= 2.1e-79))) tmp = x * (1.0 - (y / z)); else tmp = x * (y / (t - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -2.8e+25], N[Not[LessEqual[z, 2.1e-79]], $MachinePrecision]], N[(x * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.8 \cdot 10^{+25} \lor \neg \left(z \leq 2.1 \cdot 10^{-79}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y}{t - z}\\
\end{array}
\end{array}
if z < -2.8000000000000002e25 or 2.0999999999999999e-79 < z Initial program 74.3%
associate-/l*99.2%
Simplified99.2%
Taylor expanded in t around 0 62.4%
mul-1-neg62.4%
associate-/l*81.1%
distribute-rgt-neg-in81.1%
distribute-frac-neg81.1%
neg-sub081.1%
associate--r-81.1%
neg-sub081.1%
+-commutative81.1%
sub-neg81.1%
div-sub81.1%
*-inverses81.1%
Simplified81.1%
if -2.8000000000000002e25 < z < 2.0999999999999999e-79Initial program 92.8%
associate-/l*96.5%
Simplified96.5%
Taylor expanded in y around inf 76.8%
associate-/l*80.6%
Simplified80.6%
Final simplification80.9%
(FPCore (x y z t) :precision binary64 (if (or (<= z -1.05e+23) (not (<= z 2.9e-81))) (* x (- 1.0 (/ y z))) (/ x (/ t y))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.05e+23) || !(z <= 2.9e-81)) {
tmp = x * (1.0 - (y / z));
} else {
tmp = x / (t / y);
}
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) :: tmp
if ((z <= (-1.05d+23)) .or. (.not. (z <= 2.9d-81))) then
tmp = x * (1.0d0 - (y / z))
else
tmp = x / (t / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.05e+23) || !(z <= 2.9e-81)) {
tmp = x * (1.0 - (y / z));
} else {
tmp = x / (t / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -1.05e+23) or not (z <= 2.9e-81): tmp = x * (1.0 - (y / z)) else: tmp = x / (t / y) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -1.05e+23) || !(z <= 2.9e-81)) tmp = Float64(x * Float64(1.0 - Float64(y / z))); else tmp = Float64(x / Float64(t / y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -1.05e+23) || ~((z <= 2.9e-81))) tmp = x * (1.0 - (y / z)); else tmp = x / (t / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.05e+23], N[Not[LessEqual[z, 2.9e-81]], $MachinePrecision]], N[(x * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(t / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.05 \cdot 10^{+23} \lor \neg \left(z \leq 2.9 \cdot 10^{-81}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\end{array}
\end{array}
if z < -1.0500000000000001e23 or 2.89999999999999989e-81 < z Initial program 74.4%
associate-/l*99.2%
Simplified99.2%
Taylor expanded in t around 0 62.7%
mul-1-neg62.7%
associate-/l*81.2%
distribute-rgt-neg-in81.2%
distribute-frac-neg81.2%
neg-sub081.2%
associate--r-81.2%
neg-sub081.2%
+-commutative81.2%
sub-neg81.2%
div-sub81.2%
*-inverses81.2%
Simplified81.2%
if -1.0500000000000001e23 < z < 2.89999999999999989e-81Initial program 92.7%
associate-/l*96.5%
Simplified96.5%
clear-num96.4%
un-div-inv97.0%
Applied egg-rr97.0%
Taylor expanded in z around 0 71.4%
Final simplification76.8%
(FPCore (x y z t) :precision binary64 (if (<= z -2.75e+25) (* x (- 1.0 (/ y z))) (if (<= z 1.5e-16) (* x (/ y (- t z))) (* x (/ z (- z t))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.75e+25) {
tmp = x * (1.0 - (y / z));
} else if (z <= 1.5e-16) {
tmp = x * (y / (t - z));
} else {
tmp = x * (z / (z - t));
}
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) :: tmp
if (z <= (-2.75d+25)) then
tmp = x * (1.0d0 - (y / z))
else if (z <= 1.5d-16) then
tmp = x * (y / (t - z))
else
tmp = x * (z / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.75e+25) {
tmp = x * (1.0 - (y / z));
} else if (z <= 1.5e-16) {
tmp = x * (y / (t - z));
} else {
tmp = x * (z / (z - t));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -2.75e+25: tmp = x * (1.0 - (y / z)) elif z <= 1.5e-16: tmp = x * (y / (t - z)) else: tmp = x * (z / (z - t)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -2.75e+25) tmp = Float64(x * Float64(1.0 - Float64(y / z))); elseif (z <= 1.5e-16) tmp = Float64(x * Float64(y / Float64(t - z))); else tmp = Float64(x * Float64(z / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -2.75e+25) tmp = x * (1.0 - (y / z)); elseif (z <= 1.5e-16) tmp = x * (y / (t - z)); else tmp = x * (z / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -2.75e+25], N[(x * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.5e-16], N[(x * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.75 \cdot 10^{+25}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{-16}:\\
\;\;\;\;x \cdot \frac{y}{t - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{z}{z - t}\\
\end{array}
\end{array}
if z < -2.75000000000000009e25Initial program 61.3%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in t around 0 50.8%
mul-1-neg50.8%
associate-/l*82.9%
distribute-rgt-neg-in82.9%
distribute-frac-neg82.9%
neg-sub082.9%
associate--r-82.9%
neg-sub082.9%
+-commutative82.9%
sub-neg82.9%
div-sub82.9%
*-inverses82.9%
Simplified82.9%
if -2.75000000000000009e25 < z < 1.49999999999999997e-16Initial program 92.8%
associate-/l*96.2%
Simplified96.2%
Taylor expanded in y around inf 76.0%
associate-/l*79.4%
Simplified79.4%
if 1.49999999999999997e-16 < z Initial program 81.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around 0 71.2%
mul-1-neg71.2%
distribute-neg-frac271.2%
neg-sub071.2%
associate--r-71.2%
neg-sub071.2%
+-commutative71.2%
sub-neg71.2%
associate-/l*87.5%
Simplified87.5%
(FPCore (x y z t) :precision binary64 (if (<= z -4.8e+24) x (if (<= z 4e-12) (/ x (/ t y)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -4.8e+24) {
tmp = x;
} else if (z <= 4e-12) {
tmp = x / (t / y);
} else {
tmp = x;
}
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) :: tmp
if (z <= (-4.8d+24)) then
tmp = x
else if (z <= 4d-12) then
tmp = x / (t / y)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -4.8e+24) {
tmp = x;
} else if (z <= 4e-12) {
tmp = x / (t / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -4.8e+24: tmp = x elif z <= 4e-12: tmp = x / (t / y) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -4.8e+24) tmp = x; elseif (z <= 4e-12) tmp = Float64(x / Float64(t / y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -4.8e+24) tmp = x; elseif (z <= 4e-12) tmp = x / (t / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -4.8e+24], x, If[LessEqual[z, 4e-12], N[(x / N[(t / y), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.8 \cdot 10^{+24}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-12}:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -4.8000000000000001e24 or 3.99999999999999992e-12 < z Initial program 71.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 68.6%
if -4.8000000000000001e24 < z < 3.99999999999999992e-12Initial program 92.8%
associate-/l*96.2%
Simplified96.2%
clear-num96.1%
un-div-inv96.7%
Applied egg-rr96.7%
Taylor expanded in z around 0 66.1%
(FPCore (x y z t) :precision binary64 (if (<= z -4.3e+23) x (if (<= z 2.55e-12) (* x (/ y t)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -4.3e+23) {
tmp = x;
} else if (z <= 2.55e-12) {
tmp = x * (y / t);
} else {
tmp = x;
}
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) :: tmp
if (z <= (-4.3d+23)) then
tmp = x
else if (z <= 2.55d-12) then
tmp = x * (y / t)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -4.3e+23) {
tmp = x;
} else if (z <= 2.55e-12) {
tmp = x * (y / t);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -4.3e+23: tmp = x elif z <= 2.55e-12: tmp = x * (y / t) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -4.3e+23) tmp = x; elseif (z <= 2.55e-12) tmp = Float64(x * Float64(y / t)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -4.3e+23) tmp = x; elseif (z <= 2.55e-12) tmp = x * (y / t); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -4.3e+23], x, If[LessEqual[z, 2.55e-12], N[(x * N[(y / t), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.3 \cdot 10^{+23}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 2.55 \cdot 10^{-12}:\\
\;\;\;\;x \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -4.2999999999999999e23 or 2.54999999999999984e-12 < z Initial program 71.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 68.6%
if -4.2999999999999999e23 < z < 2.54999999999999984e-12Initial program 92.8%
associate-/l*96.2%
Simplified96.2%
Taylor expanded in z around 0 60.8%
associate-/l*65.5%
Simplified65.5%
(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(x * Float64(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[(x * N[(N[(y - z), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \frac{y - z}{t - z}
\end{array}
Initial program 82.7%
associate-/l*98.0%
Simplified98.0%
(FPCore (x y z t) :precision binary64 x)
double code(double x, double y, double z, double t) {
return x;
}
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
end function
public static double code(double x, double y, double z, double t) {
return x;
}
def code(x, y, z, t): return x
function code(x, y, z, t) return x end
function tmp = code(x, y, z, t) tmp = x; end
code[x_, y_, z_, t_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 82.7%
associate-/l*98.0%
Simplified98.0%
Taylor expanded in z around inf 37.6%
(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 2024087
(FPCore (x y z t)
:name "Graphics.Rendering.Chart.Plot.AreaSpots:renderAreaSpots4D from Chart-1.5.3"
:precision binary64
:alt
(/ x (/ (- t z) (- y z)))
(/ (* x (- y z)) (- t z)))