
(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 19 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
(let* ((t_1 (/ (* x (- y z)) (- t z))))
(if (or (<= t_1 -5e+119) (not (<= t_1 1e+275)))
(/ (- y z) (/ (- t z) x))
t_1)))
double code(double x, double y, double z, double t) {
double t_1 = (x * (y - z)) / (t - z);
double tmp;
if ((t_1 <= -5e+119) || !(t_1 <= 1e+275)) {
tmp = (y - z) / ((t - z) / x);
} 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) :: tmp
t_1 = (x * (y - z)) / (t - z)
if ((t_1 <= (-5d+119)) .or. (.not. (t_1 <= 1d+275))) then
tmp = (y - z) / ((t - z) / x)
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 - z)) / (t - z);
double tmp;
if ((t_1 <= -5e+119) || !(t_1 <= 1e+275)) {
tmp = (y - z) / ((t - z) / x);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (x * (y - z)) / (t - z) tmp = 0 if (t_1 <= -5e+119) or not (t_1 <= 1e+275): tmp = (y - z) / ((t - z) / x) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x * Float64(y - z)) / Float64(t - z)) tmp = 0.0 if ((t_1 <= -5e+119) || !(t_1 <= 1e+275)) tmp = Float64(Float64(y - z) / Float64(Float64(t - z) / x)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x * (y - z)) / (t - z); tmp = 0.0; if ((t_1 <= -5e+119) || ~((t_1 <= 1e+275))) tmp = (y - z) / ((t - z) / x); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e+119], N[Not[LessEqual[t$95$1, 1e+275]], $MachinePrecision]], N[(N[(y - z), $MachinePrecision] / N[(N[(t - z), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], t$95$1]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \left(y - z\right)}{t - z}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{+119} \lor \neg \left(t_1 \leq 10^{+275}\right):\\
\;\;\;\;\frac{y - z}{\frac{t - z}{x}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 x (-.f64 y z)) (-.f64 t z)) < -4.9999999999999999e119 or 9.9999999999999996e274 < (/.f64 (*.f64 x (-.f64 y z)) (-.f64 t z)) Initial program 50.8%
associate-*l/99.8%
Simplified99.8%
*-commutative99.8%
clear-num99.7%
un-div-inv99.8%
Applied egg-rr99.8%
if -4.9999999999999999e119 < (/.f64 (*.f64 x (-.f64 y z)) (-.f64 t z)) < 9.9999999999999996e274Initial program 98.4%
Final simplification98.8%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (* x (- y z)) (- t z))))
(if (or (<= t_1 -5e+289) (not (<= t_1 1e+275)))
(* (- y z) (/ x (- t z)))
t_1)))
double code(double x, double y, double z, double t) {
double t_1 = (x * (y - z)) / (t - z);
double tmp;
if ((t_1 <= -5e+289) || !(t_1 <= 1e+275)) {
tmp = (y - z) * (x / (t - z));
} 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) :: tmp
t_1 = (x * (y - z)) / (t - z)
if ((t_1 <= (-5d+289)) .or. (.not. (t_1 <= 1d+275))) then
tmp = (y - z) * (x / (t - z))
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 - z)) / (t - z);
double tmp;
if ((t_1 <= -5e+289) || !(t_1 <= 1e+275)) {
tmp = (y - z) * (x / (t - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (x * (y - z)) / (t - z) tmp = 0 if (t_1 <= -5e+289) or not (t_1 <= 1e+275): tmp = (y - z) * (x / (t - z)) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x * Float64(y - z)) / Float64(t - z)) tmp = 0.0 if ((t_1 <= -5e+289) || !(t_1 <= 1e+275)) tmp = Float64(Float64(y - z) * Float64(x / Float64(t - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x * (y - z)) / (t - z); tmp = 0.0; if ((t_1 <= -5e+289) || ~((t_1 <= 1e+275))) tmp = (y - z) * (x / (t - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e+289], N[Not[LessEqual[t$95$1, 1e+275]], $MachinePrecision]], N[(N[(y - z), $MachinePrecision] * N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \left(y - z\right)}{t - z}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{+289} \lor \neg \left(t_1 \leq 10^{+275}\right):\\
\;\;\;\;\left(y - z\right) \cdot \frac{x}{t - z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 x (-.f64 y z)) (-.f64 t z)) < -5.00000000000000031e289 or 9.9999999999999996e274 < (/.f64 (*.f64 x (-.f64 y z)) (-.f64 t z)) Initial program 42.5%
associate-*l/99.8%
Simplified99.8%
if -5.00000000000000031e289 < (/.f64 (*.f64 x (-.f64 y z)) (-.f64 t z)) < 9.9999999999999996e274Initial program 98.5%
Final simplification98.8%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ (- x) (/ z y))))
(if (<= z -1.2e+102)
x
(if (<= z -115000000.0)
t_1
(if (<= z -9.2e-16)
x
(if (<= z 1.08e-131)
(/ y (/ t x))
(if (<= z 5e-61) t_1 (if (<= z 2.6e-32) (/ x (/ t y)) x))))))))
double code(double x, double y, double z, double t) {
double t_1 = -x / (z / y);
double tmp;
if (z <= -1.2e+102) {
tmp = x;
} else if (z <= -115000000.0) {
tmp = t_1;
} else if (z <= -9.2e-16) {
tmp = x;
} else if (z <= 1.08e-131) {
tmp = y / (t / x);
} else if (z <= 5e-61) {
tmp = t_1;
} else if (z <= 2.6e-32) {
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) :: t_1
real(8) :: tmp
t_1 = -x / (z / y)
if (z <= (-1.2d+102)) then
tmp = x
else if (z <= (-115000000.0d0)) then
tmp = t_1
else if (z <= (-9.2d-16)) then
tmp = x
else if (z <= 1.08d-131) then
tmp = y / (t / x)
else if (z <= 5d-61) then
tmp = t_1
else if (z <= 2.6d-32) 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 t_1 = -x / (z / y);
double tmp;
if (z <= -1.2e+102) {
tmp = x;
} else if (z <= -115000000.0) {
tmp = t_1;
} else if (z <= -9.2e-16) {
tmp = x;
} else if (z <= 1.08e-131) {
tmp = y / (t / x);
} else if (z <= 5e-61) {
tmp = t_1;
} else if (z <= 2.6e-32) {
tmp = x / (t / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): t_1 = -x / (z / y) tmp = 0 if z <= -1.2e+102: tmp = x elif z <= -115000000.0: tmp = t_1 elif z <= -9.2e-16: tmp = x elif z <= 1.08e-131: tmp = y / (t / x) elif z <= 5e-61: tmp = t_1 elif z <= 2.6e-32: tmp = x / (t / y) else: tmp = x return tmp
function code(x, y, z, t) t_1 = Float64(Float64(-x) / Float64(z / y)) tmp = 0.0 if (z <= -1.2e+102) tmp = x; elseif (z <= -115000000.0) tmp = t_1; elseif (z <= -9.2e-16) tmp = x; elseif (z <= 1.08e-131) tmp = Float64(y / Float64(t / x)); elseif (z <= 5e-61) tmp = t_1; elseif (z <= 2.6e-32) tmp = Float64(x / Float64(t / y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = -x / (z / y); tmp = 0.0; if (z <= -1.2e+102) tmp = x; elseif (z <= -115000000.0) tmp = t_1; elseif (z <= -9.2e-16) tmp = x; elseif (z <= 1.08e-131) tmp = y / (t / x); elseif (z <= 5e-61) tmp = t_1; elseif (z <= 2.6e-32) tmp = x / (t / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[((-x) / N[(z / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.2e+102], x, If[LessEqual[z, -115000000.0], t$95$1, If[LessEqual[z, -9.2e-16], x, If[LessEqual[z, 1.08e-131], N[(y / N[(t / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e-61], t$95$1, If[LessEqual[z, 2.6e-32], N[(x / N[(t / y), $MachinePrecision]), $MachinePrecision], x]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{-x}{\frac{z}{y}}\\
\mathbf{if}\;z \leq -1.2 \cdot 10^{+102}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -115000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -9.2 \cdot 10^{-16}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.08 \cdot 10^{-131}:\\
\;\;\;\;\frac{y}{\frac{t}{x}}\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-61}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-32}:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.19999999999999997e102 or -1.15e8 < z < -9.1999999999999996e-16 or 2.5999999999999997e-32 < z Initial program 70.4%
associate-*l/72.5%
Simplified72.5%
Taylor expanded in z around inf 71.0%
if -1.19999999999999997e102 < z < -1.15e8 or 1.07999999999999996e-131 < z < 4.9999999999999999e-61Initial program 92.0%
associate-*l/89.6%
Simplified89.6%
Taylor expanded in y around inf 58.0%
*-commutative58.0%
associate-/l*60.2%
associate-/r/60.9%
Simplified60.9%
Taylor expanded in t around 0 49.8%
mul-1-neg49.8%
associate-/l*50.2%
Simplified50.2%
if -9.1999999999999996e-16 < z < 1.07999999999999996e-131Initial program 95.6%
associate-*l/96.1%
Simplified96.1%
Taylor expanded in z around 0 77.0%
associate-/l*77.7%
associate-/r/77.7%
Simplified77.7%
*-commutative77.7%
clear-num77.7%
un-div-inv77.8%
Applied egg-rr77.8%
if 4.9999999999999999e-61 < z < 2.5999999999999997e-32Initial program 99.7%
associate-*l/81.1%
Simplified81.1%
Taylor expanded in z around 0 99.7%
associate-/l*99.7%
Simplified99.7%
Final simplification71.4%
(FPCore (x y z t)
:precision binary64
(if (<= z -1.2e+102)
x
(if (<= z -1.4e+74)
(* x (/ (- z) t))
(if (<= z -3e+38)
x
(if (<= z 1.08e-131)
(/ y (/ t x))
(if (<= z 6.6e-58)
(/ (- x) (/ z y))
(if (<= z 2e-32) (/ x (/ t y)) x)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.2e+102) {
tmp = x;
} else if (z <= -1.4e+74) {
tmp = x * (-z / t);
} else if (z <= -3e+38) {
tmp = x;
} else if (z <= 1.08e-131) {
tmp = y / (t / x);
} else if (z <= 6.6e-58) {
tmp = -x / (z / y);
} else if (z <= 2e-32) {
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 <= (-1.2d+102)) then
tmp = x
else if (z <= (-1.4d+74)) then
tmp = x * (-z / t)
else if (z <= (-3d+38)) then
tmp = x
else if (z <= 1.08d-131) then
tmp = y / (t / x)
else if (z <= 6.6d-58) then
tmp = -x / (z / y)
else if (z <= 2d-32) 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 <= -1.2e+102) {
tmp = x;
} else if (z <= -1.4e+74) {
tmp = x * (-z / t);
} else if (z <= -3e+38) {
tmp = x;
} else if (z <= 1.08e-131) {
tmp = y / (t / x);
} else if (z <= 6.6e-58) {
tmp = -x / (z / y);
} else if (z <= 2e-32) {
tmp = x / (t / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.2e+102: tmp = x elif z <= -1.4e+74: tmp = x * (-z / t) elif z <= -3e+38: tmp = x elif z <= 1.08e-131: tmp = y / (t / x) elif z <= 6.6e-58: tmp = -x / (z / y) elif z <= 2e-32: tmp = x / (t / y) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.2e+102) tmp = x; elseif (z <= -1.4e+74) tmp = Float64(x * Float64(Float64(-z) / t)); elseif (z <= -3e+38) tmp = x; elseif (z <= 1.08e-131) tmp = Float64(y / Float64(t / x)); elseif (z <= 6.6e-58) tmp = Float64(Float64(-x) / Float64(z / y)); elseif (z <= 2e-32) 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 <= -1.2e+102) tmp = x; elseif (z <= -1.4e+74) tmp = x * (-z / t); elseif (z <= -3e+38) tmp = x; elseif (z <= 1.08e-131) tmp = y / (t / x); elseif (z <= 6.6e-58) tmp = -x / (z / y); elseif (z <= 2e-32) tmp = x / (t / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.2e+102], x, If[LessEqual[z, -1.4e+74], N[(x * N[((-z) / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3e+38], x, If[LessEqual[z, 1.08e-131], N[(y / N[(t / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.6e-58], N[((-x) / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e-32], N[(x / N[(t / y), $MachinePrecision]), $MachinePrecision], x]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{+102}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{+74}:\\
\;\;\;\;x \cdot \frac{-z}{t}\\
\mathbf{elif}\;z \leq -3 \cdot 10^{+38}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.08 \cdot 10^{-131}:\\
\;\;\;\;\frac{y}{\frac{t}{x}}\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{-58}:\\
\;\;\;\;\frac{-x}{\frac{z}{y}}\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-32}:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.19999999999999997e102 or -1.40000000000000001e74 < z < -3.0000000000000001e38 or 2.00000000000000011e-32 < z Initial program 71.2%
associate-*l/72.4%
Simplified72.4%
Taylor expanded in z around inf 70.1%
if -1.19999999999999997e102 < z < -1.40000000000000001e74Initial program 81.0%
associate-*l/91.0%
Simplified91.0%
Taylor expanded in t around inf 41.5%
associate-/l*51.2%
associate-/r/42.3%
Simplified42.3%
Taylor expanded in y around 0 61.6%
mul-1-neg61.6%
associate-*r/61.5%
distribute-rgt-neg-in61.5%
Simplified61.5%
if -3.0000000000000001e38 < z < 1.07999999999999996e-131Initial program 95.9%
associate-*l/96.3%
Simplified96.3%
Taylor expanded in z around 0 74.2%
associate-/l*74.8%
associate-/r/74.8%
Simplified74.8%
*-commutative74.8%
clear-num74.8%
un-div-inv74.9%
Applied egg-rr74.9%
if 1.07999999999999996e-131 < z < 6.60000000000000052e-58Initial program 94.1%
associate-*l/88.3%
Simplified88.3%
Taylor expanded in y around inf 60.4%
*-commutative60.4%
associate-/l*58.8%
associate-/r/60.6%
Simplified60.6%
Taylor expanded in t around 0 54.5%
mul-1-neg54.5%
associate-/l*54.9%
Simplified54.9%
if 6.60000000000000052e-58 < z < 2.00000000000000011e-32Initial program 99.7%
associate-*l/81.1%
Simplified81.1%
Taylor expanded in z around 0 99.7%
associate-/l*99.7%
Simplified99.7%
Final simplification71.5%
(FPCore (x y z t)
:precision binary64
(if (<= z -1.3e+104)
x
(if (<= z -6e+73)
(/ x (/ (- t) z))
(if (<= z -7.6e+37)
x
(if (<= z 1.08e-131)
(/ y (/ t x))
(if (<= z 1.2e-60)
(/ (- x) (/ z y))
(if (<= z 1.06e-32) (/ x (/ t y)) x)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.3e+104) {
tmp = x;
} else if (z <= -6e+73) {
tmp = x / (-t / z);
} else if (z <= -7.6e+37) {
tmp = x;
} else if (z <= 1.08e-131) {
tmp = y / (t / x);
} else if (z <= 1.2e-60) {
tmp = -x / (z / y);
} else if (z <= 1.06e-32) {
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 <= (-1.3d+104)) then
tmp = x
else if (z <= (-6d+73)) then
tmp = x / (-t / z)
else if (z <= (-7.6d+37)) then
tmp = x
else if (z <= 1.08d-131) then
tmp = y / (t / x)
else if (z <= 1.2d-60) then
tmp = -x / (z / y)
else if (z <= 1.06d-32) 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 <= -1.3e+104) {
tmp = x;
} else if (z <= -6e+73) {
tmp = x / (-t / z);
} else if (z <= -7.6e+37) {
tmp = x;
} else if (z <= 1.08e-131) {
tmp = y / (t / x);
} else if (z <= 1.2e-60) {
tmp = -x / (z / y);
} else if (z <= 1.06e-32) {
tmp = x / (t / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.3e+104: tmp = x elif z <= -6e+73: tmp = x / (-t / z) elif z <= -7.6e+37: tmp = x elif z <= 1.08e-131: tmp = y / (t / x) elif z <= 1.2e-60: tmp = -x / (z / y) elif z <= 1.06e-32: tmp = x / (t / y) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.3e+104) tmp = x; elseif (z <= -6e+73) tmp = Float64(x / Float64(Float64(-t) / z)); elseif (z <= -7.6e+37) tmp = x; elseif (z <= 1.08e-131) tmp = Float64(y / Float64(t / x)); elseif (z <= 1.2e-60) tmp = Float64(Float64(-x) / Float64(z / y)); elseif (z <= 1.06e-32) 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 <= -1.3e+104) tmp = x; elseif (z <= -6e+73) tmp = x / (-t / z); elseif (z <= -7.6e+37) tmp = x; elseif (z <= 1.08e-131) tmp = y / (t / x); elseif (z <= 1.2e-60) tmp = -x / (z / y); elseif (z <= 1.06e-32) tmp = x / (t / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.3e+104], x, If[LessEqual[z, -6e+73], N[(x / N[((-t) / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -7.6e+37], x, If[LessEqual[z, 1.08e-131], N[(y / N[(t / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.2e-60], N[((-x) / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.06e-32], N[(x / N[(t / y), $MachinePrecision]), $MachinePrecision], x]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{+104}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -6 \cdot 10^{+73}:\\
\;\;\;\;\frac{x}{\frac{-t}{z}}\\
\mathbf{elif}\;z \leq -7.6 \cdot 10^{+37}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.08 \cdot 10^{-131}:\\
\;\;\;\;\frac{y}{\frac{t}{x}}\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{-60}:\\
\;\;\;\;\frac{-x}{\frac{z}{y}}\\
\mathbf{elif}\;z \leq 1.06 \cdot 10^{-32}:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.3e104 or -6.00000000000000021e73 < z < -7.59999999999999979e37 or 1.05999999999999994e-32 < z Initial program 71.2%
associate-*l/72.4%
Simplified72.4%
Taylor expanded in z around inf 70.1%
if -1.3e104 < z < -6.00000000000000021e73Initial program 81.0%
associate-*l/91.0%
Simplified91.0%
Taylor expanded in y around 0 32.3%
associate-*r/32.3%
mul-1-neg32.3%
distribute-rgt-neg-out32.3%
associate-/l*25.8%
Simplified25.8%
Taylor expanded in t around inf 61.6%
associate-*r/61.6%
neg-mul-161.6%
Simplified61.6%
if -7.59999999999999979e37 < z < 1.07999999999999996e-131Initial program 95.9%
associate-*l/96.3%
Simplified96.3%
Taylor expanded in z around 0 74.2%
associate-/l*74.8%
associate-/r/74.8%
Simplified74.8%
*-commutative74.8%
clear-num74.8%
un-div-inv74.9%
Applied egg-rr74.9%
if 1.07999999999999996e-131 < z < 1.20000000000000005e-60Initial program 94.1%
associate-*l/88.3%
Simplified88.3%
Taylor expanded in y around inf 60.4%
*-commutative60.4%
associate-/l*58.8%
associate-/r/60.6%
Simplified60.6%
Taylor expanded in t around 0 54.5%
mul-1-neg54.5%
associate-/l*54.9%
Simplified54.9%
if 1.20000000000000005e-60 < z < 1.05999999999999994e-32Initial program 99.7%
associate-*l/81.1%
Simplified81.1%
Taylor expanded in z around 0 99.7%
associate-/l*99.7%
Simplified99.7%
Final simplification71.5%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* y (/ x (- t z)))))
(if (<= z -1.25e+102)
x
(if (<= z -1.12e+17)
t_1
(if (<= z 1.5e-161)
(* (- y z) (/ x t))
(if (<= z 0.0039) t_1 (if (<= z 1.2e+15) (* x (/ (- z) t)) x)))))))
double code(double x, double y, double z, double t) {
double t_1 = y * (x / (t - z));
double tmp;
if (z <= -1.25e+102) {
tmp = x;
} else if (z <= -1.12e+17) {
tmp = t_1;
} else if (z <= 1.5e-161) {
tmp = (y - z) * (x / t);
} else if (z <= 0.0039) {
tmp = t_1;
} else if (z <= 1.2e+15) {
tmp = x * (-z / 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) :: t_1
real(8) :: tmp
t_1 = y * (x / (t - z))
if (z <= (-1.25d+102)) then
tmp = x
else if (z <= (-1.12d+17)) then
tmp = t_1
else if (z <= 1.5d-161) then
tmp = (y - z) * (x / t)
else if (z <= 0.0039d0) then
tmp = t_1
else if (z <= 1.2d+15) then
tmp = x * (-z / t)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = y * (x / (t - z));
double tmp;
if (z <= -1.25e+102) {
tmp = x;
} else if (z <= -1.12e+17) {
tmp = t_1;
} else if (z <= 1.5e-161) {
tmp = (y - z) * (x / t);
} else if (z <= 0.0039) {
tmp = t_1;
} else if (z <= 1.2e+15) {
tmp = x * (-z / t);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): t_1 = y * (x / (t - z)) tmp = 0 if z <= -1.25e+102: tmp = x elif z <= -1.12e+17: tmp = t_1 elif z <= 1.5e-161: tmp = (y - z) * (x / t) elif z <= 0.0039: tmp = t_1 elif z <= 1.2e+15: tmp = x * (-z / t) else: tmp = x return tmp
function code(x, y, z, t) t_1 = Float64(y * Float64(x / Float64(t - z))) tmp = 0.0 if (z <= -1.25e+102) tmp = x; elseif (z <= -1.12e+17) tmp = t_1; elseif (z <= 1.5e-161) tmp = Float64(Float64(y - z) * Float64(x / t)); elseif (z <= 0.0039) tmp = t_1; elseif (z <= 1.2e+15) tmp = Float64(x * Float64(Float64(-z) / t)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = y * (x / (t - z)); tmp = 0.0; if (z <= -1.25e+102) tmp = x; elseif (z <= -1.12e+17) tmp = t_1; elseif (z <= 1.5e-161) tmp = (y - z) * (x / t); elseif (z <= 0.0039) tmp = t_1; elseif (z <= 1.2e+15) tmp = x * (-z / t); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y * N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.25e+102], x, If[LessEqual[z, -1.12e+17], t$95$1, If[LessEqual[z, 1.5e-161], N[(N[(y - z), $MachinePrecision] * N[(x / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.0039], t$95$1, If[LessEqual[z, 1.2e+15], N[(x * N[((-z) / t), $MachinePrecision]), $MachinePrecision], x]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{x}{t - z}\\
\mathbf{if}\;z \leq -1.25 \cdot 10^{+102}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -1.12 \cdot 10^{+17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{-161}:\\
\;\;\;\;\left(y - z\right) \cdot \frac{x}{t}\\
\mathbf{elif}\;z \leq 0.0039:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{+15}:\\
\;\;\;\;x \cdot \frac{-z}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.25e102 or 1.2e15 < z Initial program 67.8%
associate-*l/70.1%
Simplified70.1%
Taylor expanded in z around inf 73.2%
if -1.25e102 < z < -1.12e17 or 1.49999999999999994e-161 < z < 0.0038999999999999998Initial program 94.1%
associate-*l/90.4%
Simplified90.4%
Taylor expanded in y around inf 67.1%
associate-*l/66.8%
*-commutative66.8%
Simplified66.8%
if -1.12e17 < z < 1.49999999999999994e-161Initial program 95.6%
associate-*l/96.0%
Simplified96.0%
Taylor expanded in t around inf 84.9%
associate-/l*83.5%
associate-/r/85.3%
Simplified85.3%
if 0.0038999999999999998 < z < 1.2e15Initial program 99.5%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in t around inf 99.5%
associate-/l*99.5%
associate-/r/100.0%
Simplified100.0%
Taylor expanded in y around 0 99.5%
mul-1-neg99.5%
associate-*r/100.0%
distribute-rgt-neg-in100.0%
Simplified100.0%
Final simplification77.1%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* x (/ y (- t z)))))
(if (<= z -1.55e+108)
x
(if (<= z -5e-103)
t_1
(if (<= z 1.4e-161) (* (- y z) (/ x t)) (if (<= z 1.42e-8) t_1 x))))))
double code(double x, double y, double z, double t) {
double t_1 = x * (y / (t - z));
double tmp;
if (z <= -1.55e+108) {
tmp = x;
} else if (z <= -5e-103) {
tmp = t_1;
} else if (z <= 1.4e-161) {
tmp = (y - z) * (x / t);
} else if (z <= 1.42e-8) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x * (y / (t - z))
if (z <= (-1.55d+108)) then
tmp = x
else if (z <= (-5d-103)) then
tmp = t_1
else if (z <= 1.4d-161) then
tmp = (y - z) * (x / t)
else if (z <= 1.42d-8) then
tmp = t_1
else
tmp = x
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));
double tmp;
if (z <= -1.55e+108) {
tmp = x;
} else if (z <= -5e-103) {
tmp = t_1;
} else if (z <= 1.4e-161) {
tmp = (y - z) * (x / t);
} else if (z <= 1.42e-8) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): t_1 = x * (y / (t - z)) tmp = 0 if z <= -1.55e+108: tmp = x elif z <= -5e-103: tmp = t_1 elif z <= 1.4e-161: tmp = (y - z) * (x / t) elif z <= 1.42e-8: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t) t_1 = Float64(x * Float64(y / Float64(t - z))) tmp = 0.0 if (z <= -1.55e+108) tmp = x; elseif (z <= -5e-103) tmp = t_1; elseif (z <= 1.4e-161) tmp = Float64(Float64(y - z) * Float64(x / t)); elseif (z <= 1.42e-8) tmp = t_1; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x * (y / (t - z)); tmp = 0.0; if (z <= -1.55e+108) tmp = x; elseif (z <= -5e-103) tmp = t_1; elseif (z <= 1.4e-161) tmp = (y - z) * (x / t); elseif (z <= 1.42e-8) tmp = t_1; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.55e+108], x, If[LessEqual[z, -5e-103], t$95$1, If[LessEqual[z, 1.4e-161], N[(N[(y - z), $MachinePrecision] * N[(x / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.42e-8], t$95$1, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{y}{t - z}\\
\mathbf{if}\;z \leq -1.55 \cdot 10^{+108}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -5 \cdot 10^{-103}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{-161}:\\
\;\;\;\;\left(y - z\right) \cdot \frac{x}{t}\\
\mathbf{elif}\;z \leq 1.42 \cdot 10^{-8}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.5500000000000001e108 or 1.41999999999999998e-8 < z Initial program 69.0%
associate-*l/71.2%
Simplified71.2%
Taylor expanded in z around inf 71.5%
if -1.5500000000000001e108 < z < -4.99999999999999966e-103 or 1.39999999999999996e-161 < z < 1.41999999999999998e-8Initial program 95.9%
associate-*l/92.2%
Simplified92.2%
Taylor expanded in y around inf 66.2%
*-commutative66.2%
associate-/l*64.8%
associate-/r/67.7%
Simplified67.7%
if -4.99999999999999966e-103 < z < 1.39999999999999996e-161Initial program 94.2%
associate-*l/95.9%
Simplified95.9%
Taylor expanded in t around inf 91.1%
associate-/l*89.3%
associate-/r/92.9%
Simplified92.9%
Final simplification76.8%
(FPCore (x y z t)
:precision binary64
(if (<= z -6.8e-17)
(- x (/ x (/ z y)))
(if (<= z 6e-249)
(/ (- y z) (/ t x))
(if (<= z 1.55e-10) (* (/ 1.0 (- t z)) (* x y)) (/ x (- 1.0 (/ t z)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -6.8e-17) {
tmp = x - (x / (z / y));
} else if (z <= 6e-249) {
tmp = (y - z) / (t / x);
} else if (z <= 1.55e-10) {
tmp = (1.0 / (t - z)) * (x * y);
} else {
tmp = x / (1.0 - (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 <= (-6.8d-17)) then
tmp = x - (x / (z / y))
else if (z <= 6d-249) then
tmp = (y - z) / (t / x)
else if (z <= 1.55d-10) then
tmp = (1.0d0 / (t - z)) * (x * y)
else
tmp = x / (1.0d0 - (t / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -6.8e-17) {
tmp = x - (x / (z / y));
} else if (z <= 6e-249) {
tmp = (y - z) / (t / x);
} else if (z <= 1.55e-10) {
tmp = (1.0 / (t - z)) * (x * y);
} else {
tmp = x / (1.0 - (t / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -6.8e-17: tmp = x - (x / (z / y)) elif z <= 6e-249: tmp = (y - z) / (t / x) elif z <= 1.55e-10: tmp = (1.0 / (t - z)) * (x * y) else: tmp = x / (1.0 - (t / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -6.8e-17) tmp = Float64(x - Float64(x / Float64(z / y))); elseif (z <= 6e-249) tmp = Float64(Float64(y - z) / Float64(t / x)); elseif (z <= 1.55e-10) tmp = Float64(Float64(1.0 / Float64(t - z)) * Float64(x * y)); else tmp = Float64(x / Float64(1.0 - Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -6.8e-17) tmp = x - (x / (z / y)); elseif (z <= 6e-249) tmp = (y - z) / (t / x); elseif (z <= 1.55e-10) tmp = (1.0 / (t - z)) * (x * y); else tmp = x / (1.0 - (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -6.8e-17], N[(x - N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6e-249], N[(N[(y - z), $MachinePrecision] / N[(t / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.55e-10], N[(N[(1.0 / N[(t - z), $MachinePrecision]), $MachinePrecision] * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(x / N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.8 \cdot 10^{-17}:\\
\;\;\;\;x - \frac{x}{\frac{z}{y}}\\
\mathbf{elif}\;z \leq 6 \cdot 10^{-249}:\\
\;\;\;\;\frac{y - z}{\frac{t}{x}}\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{-10}:\\
\;\;\;\;\frac{1}{t - z} \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 - \frac{t}{z}}\\
\end{array}
\end{array}
if z < -6.7999999999999996e-17Initial program 80.9%
associate-*l/73.0%
Simplified73.0%
*-commutative73.0%
clear-num70.5%
un-div-inv70.6%
Applied egg-rr70.6%
Taylor expanded in t around 0 55.9%
neg-mul-155.9%
distribute-neg-frac55.9%
Simplified55.9%
Taylor expanded in y around 0 70.7%
mul-1-neg70.7%
associate-/l*79.4%
Simplified79.4%
if -6.7999999999999996e-17 < z < 6.00000000000000008e-249Initial program 94.8%
associate-*l/96.0%
Simplified96.0%
*-commutative96.0%
clear-num96.0%
un-div-inv96.0%
Applied egg-rr96.0%
Taylor expanded in t around inf 88.2%
if 6.00000000000000008e-249 < z < 1.55000000000000008e-10Initial program 97.0%
clear-num96.8%
associate-/r/96.8%
Applied egg-rr96.8%
Taylor expanded in y around inf 79.4%
if 1.55000000000000008e-10 < z Initial program 65.3%
associate-*l/76.8%
Simplified76.8%
Taylor expanded in y around 0 59.2%
associate-*r/59.2%
mul-1-neg59.2%
distribute-rgt-neg-out59.2%
associate-/l*90.9%
Simplified90.9%
Taylor expanded in t around 0 90.9%
mul-1-neg90.9%
unsub-neg90.9%
Simplified90.9%
Final simplification84.9%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- x (* y (/ x z)))))
(if (<= z -7.8e-16)
t_1
(if (<= z 1.5e-160)
(* (- y z) (/ x t))
(if (<= z 2.35e-32) (* x (/ y (- t z))) t_1)))))
double code(double x, double y, double z, double t) {
double t_1 = x - (y * (x / z));
double tmp;
if (z <= -7.8e-16) {
tmp = t_1;
} else if (z <= 1.5e-160) {
tmp = (y - z) * (x / t);
} else if (z <= 2.35e-32) {
tmp = x * (y / (t - z));
} 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) :: tmp
t_1 = x - (y * (x / z))
if (z <= (-7.8d-16)) then
tmp = t_1
else if (z <= 1.5d-160) then
tmp = (y - z) * (x / t)
else if (z <= 2.35d-32) then
tmp = x * (y / (t - z))
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 * (x / z));
double tmp;
if (z <= -7.8e-16) {
tmp = t_1;
} else if (z <= 1.5e-160) {
tmp = (y - z) * (x / t);
} else if (z <= 2.35e-32) {
tmp = x * (y / (t - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = x - (y * (x / z)) tmp = 0 if z <= -7.8e-16: tmp = t_1 elif z <= 1.5e-160: tmp = (y - z) * (x / t) elif z <= 2.35e-32: tmp = x * (y / (t - z)) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(x - Float64(y * Float64(x / z))) tmp = 0.0 if (z <= -7.8e-16) tmp = t_1; elseif (z <= 1.5e-160) tmp = Float64(Float64(y - z) * Float64(x / t)); elseif (z <= 2.35e-32) tmp = Float64(x * Float64(y / Float64(t - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x - (y * (x / z)); tmp = 0.0; if (z <= -7.8e-16) tmp = t_1; elseif (z <= 1.5e-160) tmp = (y - z) * (x / t); elseif (z <= 2.35e-32) tmp = x * (y / (t - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x - N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.8e-16], t$95$1, If[LessEqual[z, 1.5e-160], N[(N[(y - z), $MachinePrecision] * N[(x / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.35e-32], N[(x * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - y \cdot \frac{x}{z}\\
\mathbf{if}\;z \leq -7.8 \cdot 10^{-16}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{-160}:\\
\;\;\;\;\left(y - z\right) \cdot \frac{x}{t}\\
\mathbf{elif}\;z \leq 2.35 \cdot 10^{-32}:\\
\;\;\;\;x \cdot \frac{y}{t - z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -7.79999999999999954e-16 or 2.3500000000000001e-32 < z Initial program 73.4%
associate-*l/75.3%
Simplified75.3%
*-commutative75.3%
clear-num73.2%
un-div-inv73.3%
Applied egg-rr73.3%
Taylor expanded in t around 0 58.9%
neg-mul-158.9%
distribute-neg-frac58.9%
Simplified58.9%
Taylor expanded in y around 0 70.0%
mul-1-neg70.0%
unsub-neg70.0%
*-commutative70.0%
associate-*r/77.9%
Simplified77.9%
if -7.79999999999999954e-16 < z < 1.49999999999999998e-160Initial program 95.4%
associate-*l/95.9%
Simplified95.9%
Taylor expanded in t around inf 87.0%
associate-/l*85.6%
associate-/r/87.4%
Simplified87.4%
if 1.49999999999999998e-160 < z < 2.3500000000000001e-32Initial program 96.3%
associate-*l/89.4%
Simplified89.4%
Taylor expanded in y around inf 76.3%
*-commutative76.3%
associate-/l*72.1%
associate-/r/76.5%
Simplified76.5%
Final simplification81.4%
(FPCore (x y z t)
:precision binary64
(if (<= z -2.2e-16)
(- x (* y (/ x z)))
(if (<= z 1.4e-159)
(* (- y z) (/ x t))
(if (<= z 2.8e-12) (* x (/ y (- t z))) (/ x (- 1.0 (/ t z)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.2e-16) {
tmp = x - (y * (x / z));
} else if (z <= 1.4e-159) {
tmp = (y - z) * (x / t);
} else if (z <= 2.8e-12) {
tmp = x * (y / (t - z));
} else {
tmp = x / (1.0 - (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.2d-16)) then
tmp = x - (y * (x / z))
else if (z <= 1.4d-159) then
tmp = (y - z) * (x / t)
else if (z <= 2.8d-12) then
tmp = x * (y / (t - z))
else
tmp = x / (1.0d0 - (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.2e-16) {
tmp = x - (y * (x / z));
} else if (z <= 1.4e-159) {
tmp = (y - z) * (x / t);
} else if (z <= 2.8e-12) {
tmp = x * (y / (t - z));
} else {
tmp = x / (1.0 - (t / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -2.2e-16: tmp = x - (y * (x / z)) elif z <= 1.4e-159: tmp = (y - z) * (x / t) elif z <= 2.8e-12: tmp = x * (y / (t - z)) else: tmp = x / (1.0 - (t / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -2.2e-16) tmp = Float64(x - Float64(y * Float64(x / z))); elseif (z <= 1.4e-159) tmp = Float64(Float64(y - z) * Float64(x / t)); elseif (z <= 2.8e-12) tmp = Float64(x * Float64(y / Float64(t - z))); else tmp = Float64(x / Float64(1.0 - Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -2.2e-16) tmp = x - (y * (x / z)); elseif (z <= 1.4e-159) tmp = (y - z) * (x / t); elseif (z <= 2.8e-12) tmp = x * (y / (t - z)); else tmp = x / (1.0 - (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -2.2e-16], N[(x - N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.4e-159], N[(N[(y - z), $MachinePrecision] * N[(x / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e-12], N[(x * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.2 \cdot 10^{-16}:\\
\;\;\;\;x - y \cdot \frac{x}{z}\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{-159}:\\
\;\;\;\;\left(y - z\right) \cdot \frac{x}{t}\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-12}:\\
\;\;\;\;x \cdot \frac{y}{t - z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 - \frac{t}{z}}\\
\end{array}
\end{array}
if z < -2.2e-16Initial program 80.9%
associate-*l/73.0%
Simplified73.0%
*-commutative73.0%
clear-num70.5%
un-div-inv70.6%
Applied egg-rr70.6%
Taylor expanded in t around 0 55.9%
neg-mul-155.9%
distribute-neg-frac55.9%
Simplified55.9%
Taylor expanded in y around 0 70.7%
mul-1-neg70.7%
unsub-neg70.7%
*-commutative70.7%
associate-*r/74.9%
Simplified74.9%
if -2.2e-16 < z < 1.4000000000000001e-159Initial program 95.4%
associate-*l/95.9%
Simplified95.9%
Taylor expanded in t around inf 87.0%
associate-/l*85.6%
associate-/r/87.4%
Simplified87.4%
if 1.4000000000000001e-159 < z < 2.8000000000000002e-12Initial program 96.6%
associate-*l/90.2%
Simplified90.2%
Taylor expanded in y around inf 74.7%
*-commutative74.7%
associate-/l*70.7%
associate-/r/74.8%
Simplified74.8%
if 2.8000000000000002e-12 < z Initial program 65.3%
associate-*l/76.8%
Simplified76.8%
Taylor expanded in y around 0 59.2%
associate-*r/59.2%
mul-1-neg59.2%
distribute-rgt-neg-out59.2%
associate-/l*90.9%
Simplified90.9%
Taylor expanded in t around 0 90.9%
mul-1-neg90.9%
unsub-neg90.9%
Simplified90.9%
Final simplification83.7%
(FPCore (x y z t)
:precision binary64
(if (<= z -2.5e-16)
(- x (* y (/ x z)))
(if (<= z 1.25e-203)
(/ (* x (- y z)) t)
(if (<= z 5.6e-8) (* x (/ y (- t z))) (/ x (- 1.0 (/ t z)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.5e-16) {
tmp = x - (y * (x / z));
} else if (z <= 1.25e-203) {
tmp = (x * (y - z)) / t;
} else if (z <= 5.6e-8) {
tmp = x * (y / (t - z));
} else {
tmp = x / (1.0 - (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.5d-16)) then
tmp = x - (y * (x / z))
else if (z <= 1.25d-203) then
tmp = (x * (y - z)) / t
else if (z <= 5.6d-8) then
tmp = x * (y / (t - z))
else
tmp = x / (1.0d0 - (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.5e-16) {
tmp = x - (y * (x / z));
} else if (z <= 1.25e-203) {
tmp = (x * (y - z)) / t;
} else if (z <= 5.6e-8) {
tmp = x * (y / (t - z));
} else {
tmp = x / (1.0 - (t / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -2.5e-16: tmp = x - (y * (x / z)) elif z <= 1.25e-203: tmp = (x * (y - z)) / t elif z <= 5.6e-8: tmp = x * (y / (t - z)) else: tmp = x / (1.0 - (t / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -2.5e-16) tmp = Float64(x - Float64(y * Float64(x / z))); elseif (z <= 1.25e-203) tmp = Float64(Float64(x * Float64(y - z)) / t); elseif (z <= 5.6e-8) tmp = Float64(x * Float64(y / Float64(t - z))); else tmp = Float64(x / Float64(1.0 - Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -2.5e-16) tmp = x - (y * (x / z)); elseif (z <= 1.25e-203) tmp = (x * (y - z)) / t; elseif (z <= 5.6e-8) tmp = x * (y / (t - z)); else tmp = x / (1.0 - (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -2.5e-16], N[(x - N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.25e-203], N[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[z, 5.6e-8], N[(x * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.5 \cdot 10^{-16}:\\
\;\;\;\;x - y \cdot \frac{x}{z}\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-203}:\\
\;\;\;\;\frac{x \cdot \left(y - z\right)}{t}\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{-8}:\\
\;\;\;\;x \cdot \frac{y}{t - z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 - \frac{t}{z}}\\
\end{array}
\end{array}
if z < -2.5000000000000002e-16Initial program 80.9%
associate-*l/73.0%
Simplified73.0%
*-commutative73.0%
clear-num70.5%
un-div-inv70.6%
Applied egg-rr70.6%
Taylor expanded in t around 0 55.9%
neg-mul-155.9%
distribute-neg-frac55.9%
Simplified55.9%
Taylor expanded in y around 0 70.7%
mul-1-neg70.7%
unsub-neg70.7%
*-commutative70.7%
associate-*r/74.9%
Simplified74.9%
if -2.5000000000000002e-16 < z < 1.25e-203Initial program 95.4%
associate-*l/95.3%
Simplified95.3%
Taylor expanded in t around inf 87.9%
if 1.25e-203 < z < 5.5999999999999999e-8Initial program 96.3%
associate-*l/93.0%
Simplified93.0%
Taylor expanded in y around inf 76.2%
*-commutative76.2%
associate-/l*74.5%
associate-/r/77.5%
Simplified77.5%
if 5.5999999999999999e-8 < z Initial program 65.3%
associate-*l/76.8%
Simplified76.8%
Taylor expanded in y around 0 59.2%
associate-*r/59.2%
mul-1-neg59.2%
distribute-rgt-neg-out59.2%
associate-/l*90.9%
Simplified90.9%
Taylor expanded in t around 0 90.9%
mul-1-neg90.9%
unsub-neg90.9%
Simplified90.9%
Final simplification83.8%
(FPCore (x y z t)
:precision binary64
(if (<= z -4.8e-17)
(- x (* y (/ x z)))
(if (<= z 5.6e-158)
(/ (- y z) (/ t x))
(if (<= z 2.05e-10) (* x (/ y (- t z))) (/ x (- 1.0 (/ t z)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -4.8e-17) {
tmp = x - (y * (x / z));
} else if (z <= 5.6e-158) {
tmp = (y - z) / (t / x);
} else if (z <= 2.05e-10) {
tmp = x * (y / (t - z));
} else {
tmp = x / (1.0 - (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 <= (-4.8d-17)) then
tmp = x - (y * (x / z))
else if (z <= 5.6d-158) then
tmp = (y - z) / (t / x)
else if (z <= 2.05d-10) then
tmp = x * (y / (t - z))
else
tmp = x / (1.0d0 - (t / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -4.8e-17) {
tmp = x - (y * (x / z));
} else if (z <= 5.6e-158) {
tmp = (y - z) / (t / x);
} else if (z <= 2.05e-10) {
tmp = x * (y / (t - z));
} else {
tmp = x / (1.0 - (t / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -4.8e-17: tmp = x - (y * (x / z)) elif z <= 5.6e-158: tmp = (y - z) / (t / x) elif z <= 2.05e-10: tmp = x * (y / (t - z)) else: tmp = x / (1.0 - (t / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -4.8e-17) tmp = Float64(x - Float64(y * Float64(x / z))); elseif (z <= 5.6e-158) tmp = Float64(Float64(y - z) / Float64(t / x)); elseif (z <= 2.05e-10) tmp = Float64(x * Float64(y / Float64(t - z))); else tmp = Float64(x / Float64(1.0 - Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -4.8e-17) tmp = x - (y * (x / z)); elseif (z <= 5.6e-158) tmp = (y - z) / (t / x); elseif (z <= 2.05e-10) tmp = x * (y / (t - z)); else tmp = x / (1.0 - (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -4.8e-17], N[(x - N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.6e-158], N[(N[(y - z), $MachinePrecision] / N[(t / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.05e-10], N[(x * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.8 \cdot 10^{-17}:\\
\;\;\;\;x - y \cdot \frac{x}{z}\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{-158}:\\
\;\;\;\;\frac{y - z}{\frac{t}{x}}\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{-10}:\\
\;\;\;\;x \cdot \frac{y}{t - z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 - \frac{t}{z}}\\
\end{array}
\end{array}
if z < -4.79999999999999973e-17Initial program 80.9%
associate-*l/73.0%
Simplified73.0%
*-commutative73.0%
clear-num70.5%
un-div-inv70.6%
Applied egg-rr70.6%
Taylor expanded in t around 0 55.9%
neg-mul-155.9%
distribute-neg-frac55.9%
Simplified55.9%
Taylor expanded in y around 0 70.7%
mul-1-neg70.7%
unsub-neg70.7%
*-commutative70.7%
associate-*r/74.9%
Simplified74.9%
if -4.79999999999999973e-17 < z < 5.60000000000000004e-158Initial program 95.4%
associate-*l/95.9%
Simplified95.9%
*-commutative95.9%
clear-num95.9%
un-div-inv95.9%
Applied egg-rr95.9%
Taylor expanded in t around inf 87.5%
if 5.60000000000000004e-158 < z < 2.0499999999999999e-10Initial program 96.6%
associate-*l/90.2%
Simplified90.2%
Taylor expanded in y around inf 74.7%
*-commutative74.7%
associate-/l*70.7%
associate-/r/74.8%
Simplified74.8%
if 2.0499999999999999e-10 < z Initial program 65.3%
associate-*l/76.8%
Simplified76.8%
Taylor expanded in y around 0 59.2%
associate-*r/59.2%
mul-1-neg59.2%
distribute-rgt-neg-out59.2%
associate-/l*90.9%
Simplified90.9%
Taylor expanded in t around 0 90.9%
mul-1-neg90.9%
unsub-neg90.9%
Simplified90.9%
Final simplification83.8%
(FPCore (x y z t)
:precision binary64
(if (<= z -4.3e-16)
(- x (/ x (/ z y)))
(if (<= z 2.15e-159)
(/ (- y z) (/ t x))
(if (<= z 4.25e-10) (* x (/ y (- t z))) (/ x (- 1.0 (/ t z)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -4.3e-16) {
tmp = x - (x / (z / y));
} else if (z <= 2.15e-159) {
tmp = (y - z) / (t / x);
} else if (z <= 4.25e-10) {
tmp = x * (y / (t - z));
} else {
tmp = x / (1.0 - (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 <= (-4.3d-16)) then
tmp = x - (x / (z / y))
else if (z <= 2.15d-159) then
tmp = (y - z) / (t / x)
else if (z <= 4.25d-10) then
tmp = x * (y / (t - z))
else
tmp = x / (1.0d0 - (t / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -4.3e-16) {
tmp = x - (x / (z / y));
} else if (z <= 2.15e-159) {
tmp = (y - z) / (t / x);
} else if (z <= 4.25e-10) {
tmp = x * (y / (t - z));
} else {
tmp = x / (1.0 - (t / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -4.3e-16: tmp = x - (x / (z / y)) elif z <= 2.15e-159: tmp = (y - z) / (t / x) elif z <= 4.25e-10: tmp = x * (y / (t - z)) else: tmp = x / (1.0 - (t / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -4.3e-16) tmp = Float64(x - Float64(x / Float64(z / y))); elseif (z <= 2.15e-159) tmp = Float64(Float64(y - z) / Float64(t / x)); elseif (z <= 4.25e-10) tmp = Float64(x * Float64(y / Float64(t - z))); else tmp = Float64(x / Float64(1.0 - Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -4.3e-16) tmp = x - (x / (z / y)); elseif (z <= 2.15e-159) tmp = (y - z) / (t / x); elseif (z <= 4.25e-10) tmp = x * (y / (t - z)); else tmp = x / (1.0 - (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -4.3e-16], N[(x - N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.15e-159], N[(N[(y - z), $MachinePrecision] / N[(t / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.25e-10], N[(x * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.3 \cdot 10^{-16}:\\
\;\;\;\;x - \frac{x}{\frac{z}{y}}\\
\mathbf{elif}\;z \leq 2.15 \cdot 10^{-159}:\\
\;\;\;\;\frac{y - z}{\frac{t}{x}}\\
\mathbf{elif}\;z \leq 4.25 \cdot 10^{-10}:\\
\;\;\;\;x \cdot \frac{y}{t - z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 - \frac{t}{z}}\\
\end{array}
\end{array}
if z < -4.2999999999999999e-16Initial program 80.9%
associate-*l/73.0%
Simplified73.0%
*-commutative73.0%
clear-num70.5%
un-div-inv70.6%
Applied egg-rr70.6%
Taylor expanded in t around 0 55.9%
neg-mul-155.9%
distribute-neg-frac55.9%
Simplified55.9%
Taylor expanded in y around 0 70.7%
mul-1-neg70.7%
associate-/l*79.4%
Simplified79.4%
if -4.2999999999999999e-16 < z < 2.15e-159Initial program 95.4%
associate-*l/95.9%
Simplified95.9%
*-commutative95.9%
clear-num95.9%
un-div-inv95.9%
Applied egg-rr95.9%
Taylor expanded in t around inf 87.5%
if 2.15e-159 < z < 4.2499999999999998e-10Initial program 96.6%
associate-*l/90.2%
Simplified90.2%
Taylor expanded in y around inf 74.7%
*-commutative74.7%
associate-/l*70.7%
associate-/r/74.8%
Simplified74.8%
if 4.2499999999999998e-10 < z Initial program 65.3%
associate-*l/76.8%
Simplified76.8%
Taylor expanded in y around 0 59.2%
associate-*r/59.2%
mul-1-neg59.2%
distribute-rgt-neg-out59.2%
associate-/l*90.9%
Simplified90.9%
Taylor expanded in t around 0 90.9%
mul-1-neg90.9%
unsub-neg90.9%
Simplified90.9%
Final simplification84.9%
(FPCore (x y z t) :precision binary64 (if (<= z -1.2e+148) (- x (/ x (/ z y))) (if (<= z 9.5e+175) (* (- y z) (/ x (- t z))) (/ x (- 1.0 (/ t z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.2e+148) {
tmp = x - (x / (z / y));
} else if (z <= 9.5e+175) {
tmp = (y - z) * (x / (t - z));
} else {
tmp = x / (1.0 - (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 <= (-1.2d+148)) then
tmp = x - (x / (z / y))
else if (z <= 9.5d+175) then
tmp = (y - z) * (x / (t - z))
else
tmp = x / (1.0d0 - (t / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.2e+148) {
tmp = x - (x / (z / y));
} else if (z <= 9.5e+175) {
tmp = (y - z) * (x / (t - z));
} else {
tmp = x / (1.0 - (t / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.2e+148: tmp = x - (x / (z / y)) elif z <= 9.5e+175: tmp = (y - z) * (x / (t - z)) else: tmp = x / (1.0 - (t / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.2e+148) tmp = Float64(x - Float64(x / Float64(z / y))); elseif (z <= 9.5e+175) tmp = Float64(Float64(y - z) * Float64(x / Float64(t - z))); else tmp = Float64(x / Float64(1.0 - Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -1.2e+148) tmp = x - (x / (z / y)); elseif (z <= 9.5e+175) tmp = (y - z) * (x / (t - z)); else tmp = x / (1.0 - (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.2e+148], N[(x - N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e+175], N[(N[(y - z), $MachinePrecision] * N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{+148}:\\
\;\;\;\;x - \frac{x}{\frac{z}{y}}\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{+175}:\\
\;\;\;\;\left(y - z\right) \cdot \frac{x}{t - z}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{1 - \frac{t}{z}}\\
\end{array}
\end{array}
if z < -1.19999999999999997e148Initial program 71.4%
associate-*l/53.2%
Simplified53.2%
*-commutative53.2%
clear-num48.5%
un-div-inv48.6%
Applied egg-rr48.6%
Taylor expanded in t around 0 45.5%
neg-mul-145.5%
distribute-neg-frac45.5%
Simplified45.5%
Taylor expanded in y around 0 77.0%
mul-1-neg77.0%
associate-/l*91.0%
Simplified91.0%
if -1.19999999999999997e148 < z < 9.5000000000000006e175Initial program 91.8%
associate-*l/93.0%
Simplified93.0%
if 9.5000000000000006e175 < z Initial program 52.7%
associate-*l/67.3%
Simplified67.3%
Taylor expanded in y around 0 52.7%
associate-*r/52.7%
mul-1-neg52.7%
distribute-rgt-neg-out52.7%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in t around 0 99.8%
mul-1-neg99.8%
unsub-neg99.8%
Simplified99.8%
Final simplification93.6%
(FPCore (x y z t) :precision binary64 (if (<= z -1.4e+105) x (if (<= z 9.5e-33) (* y (/ x (- t z))) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.4e+105) {
tmp = x;
} else if (z <= 9.5e-33) {
tmp = y * (x / (t - 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 <= (-1.4d+105)) then
tmp = x
else if (z <= 9.5d-33) then
tmp = y * (x / (t - 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 <= -1.4e+105) {
tmp = x;
} else if (z <= 9.5e-33) {
tmp = y * (x / (t - z));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.4e+105: tmp = x elif z <= 9.5e-33: tmp = y * (x / (t - z)) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.4e+105) tmp = x; elseif (z <= 9.5e-33) tmp = Float64(y * Float64(x / Float64(t - z))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -1.4e+105) tmp = x; elseif (z <= 9.5e-33) tmp = y * (x / (t - z)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.4e+105], x, If[LessEqual[z, 9.5e-33], N[(y * N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{+105}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{-33}:\\
\;\;\;\;y \cdot \frac{x}{t - z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.4000000000000001e105 or 9.50000000000000019e-33 < z Initial program 69.8%
associate-*l/71.1%
Simplified71.1%
Taylor expanded in z around inf 70.6%
if -1.4000000000000001e105 < z < 9.50000000000000019e-33Initial program 94.9%
associate-*l/94.7%
Simplified94.7%
Taylor expanded in y around inf 75.1%
associate-*l/76.1%
*-commutative76.1%
Simplified76.1%
Final simplification73.7%
(FPCore (x y z t) :precision binary64 (if (<= z -2.1e-17) x (if (<= z 3.7e-122) (* x (/ z t)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2.1e-17) {
tmp = x;
} else if (z <= 3.7e-122) {
tmp = x * (z / 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 <= (-2.1d-17)) then
tmp = x
else if (z <= 3.7d-122) then
tmp = x * (z / 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 <= -2.1e-17) {
tmp = x;
} else if (z <= 3.7e-122) {
tmp = x * (z / t);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -2.1e-17: tmp = x elif z <= 3.7e-122: tmp = x * (z / t) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -2.1e-17) tmp = x; elseif (z <= 3.7e-122) tmp = Float64(x * Float64(z / t)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -2.1e-17) tmp = x; elseif (z <= 3.7e-122) tmp = x * (z / t); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -2.1e-17], x, If[LessEqual[z, 3.7e-122], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.1 \cdot 10^{-17}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 3.7 \cdot 10^{-122}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -2.09999999999999992e-17 or 3.6999999999999997e-122 < z Initial program 76.2%
associate-*l/76.5%
Simplified76.5%
Taylor expanded in z around inf 57.7%
if -2.09999999999999992e-17 < z < 3.6999999999999997e-122Initial program 95.7%
associate-*l/96.1%
Simplified96.1%
Taylor expanded in y around 0 32.1%
associate-*r/32.1%
mul-1-neg32.1%
distribute-rgt-neg-out32.1%
associate-/l*29.5%
Simplified29.5%
Taylor expanded in t around inf 24.9%
associate-*r/24.9%
neg-mul-124.9%
Simplified24.9%
div-inv24.9%
clear-num24.9%
add-sqr-sqrt14.7%
sqrt-unprod26.2%
sqr-neg26.2%
sqrt-unprod10.7%
add-sqr-sqrt20.8%
Applied egg-rr20.8%
Final simplification42.4%
(FPCore (x y z t) :precision binary64 (if (<= z -6.4e+94) x (if (<= z 4.1e-39) (* y (/ x t)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -6.4e+94) {
tmp = x;
} else if (z <= 4.1e-39) {
tmp = y * (x / 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 <= (-6.4d+94)) then
tmp = x
else if (z <= 4.1d-39) then
tmp = y * (x / 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 <= -6.4e+94) {
tmp = x;
} else if (z <= 4.1e-39) {
tmp = y * (x / t);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -6.4e+94: tmp = x elif z <= 4.1e-39: tmp = y * (x / t) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -6.4e+94) tmp = x; elseif (z <= 4.1e-39) tmp = Float64(y * Float64(x / t)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -6.4e+94) tmp = x; elseif (z <= 4.1e-39) tmp = y * (x / t); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -6.4e+94], x, If[LessEqual[z, 4.1e-39], N[(y * N[(x / t), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.4 \cdot 10^{+94}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 4.1 \cdot 10^{-39}:\\
\;\;\;\;y \cdot \frac{x}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -6.40000000000000028e94 or 4.1e-39 < z Initial program 70.1%
associate-*l/72.1%
Simplified72.1%
Taylor expanded in z around inf 68.4%
if -6.40000000000000028e94 < z < 4.1e-39Initial program 95.5%
associate-*l/94.5%
Simplified94.5%
Taylor expanded in z around 0 65.9%
associate-/l*67.1%
associate-/r/67.0%
Simplified67.0%
Final simplification67.6%
(FPCore (x y z t) :precision binary64 (if (<= z -6.4e+94) x (if (<= z 1.85e-32) (/ x (/ t y)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -6.4e+94) {
tmp = x;
} else if (z <= 1.85e-32) {
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 <= (-6.4d+94)) then
tmp = x
else if (z <= 1.85d-32) 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 <= -6.4e+94) {
tmp = x;
} else if (z <= 1.85e-32) {
tmp = x / (t / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -6.4e+94: tmp = x elif z <= 1.85e-32: tmp = x / (t / y) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -6.4e+94) tmp = x; elseif (z <= 1.85e-32) 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 <= -6.4e+94) tmp = x; elseif (z <= 1.85e-32) tmp = x / (t / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -6.4e+94], x, If[LessEqual[z, 1.85e-32], N[(x / N[(t / y), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.4 \cdot 10^{+94}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{-32}:\\
\;\;\;\;\frac{x}{\frac{t}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -6.40000000000000028e94 or 1.85e-32 < z Initial program 69.8%
associate-*l/72.7%
Simplified72.7%
Taylor expanded in z around inf 68.9%
if -6.40000000000000028e94 < z < 1.85e-32Initial program 95.5%
associate-*l/93.9%
Simplified93.9%
Taylor expanded in z around 0 66.1%
associate-/l*67.3%
Simplified67.3%
Final simplification68.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 84.3%
associate-*l/84.6%
Simplified84.6%
Taylor expanded in z around inf 37.4%
Final simplification37.4%
(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 2023271
(FPCore (x y z t)
:name "Graphics.Rendering.Chart.Plot.AreaSpots:renderAreaSpots4D from Chart-1.5.3"
:precision binary64
:herbie-target
(/ x (/ (- t z) (- y z)))
(/ (* x (- y z)) (- t z)))