
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + ((y - z) * ((t - x) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * ((t - x) / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + ((y - z) * ((t - x) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * ((t - x) / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (- t x) (- a z))) (t_2 (+ x (* (- y z) t_1))))
(if (<= t_2 -2e-294)
(fma (/ (- y z) (- a z)) (- t x) x)
(if (<= t_2 0.0) (+ t (* x (/ (- y a) z))) (fma (- y z) t_1 x)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (t - x) / (a - z);
double t_2 = x + ((y - z) * t_1);
double tmp;
if (t_2 <= -2e-294) {
tmp = fma(((y - z) / (a - z)), (t - x), x);
} else if (t_2 <= 0.0) {
tmp = t + (x * ((y - a) / z));
} else {
tmp = fma((y - z), t_1, x);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(t - x) / Float64(a - z)) t_2 = Float64(x + Float64(Float64(y - z) * t_1)) tmp = 0.0 if (t_2 <= -2e-294) tmp = fma(Float64(Float64(y - z) / Float64(a - z)), Float64(t - x), x); elseif (t_2 <= 0.0) tmp = Float64(t + Float64(x * Float64(Float64(y - a) / z))); else tmp = fma(Float64(y - z), t_1, x); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e-294], N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[t$95$2, 0.0], N[(t + N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y - z), $MachinePrecision] * t$95$1 + x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - x}{a - z}\\
t_2 := x + \left(y - z\right) \cdot t_1\\
\mathbf{if}\;t_2 \leq -2 \cdot 10^{-294}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)\\
\mathbf{elif}\;t_2 \leq 0:\\
\;\;\;\;t + x \cdot \frac{y - a}{z}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y - z, t_1, x\right)\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -2.00000000000000003e-294Initial program 90.2%
Taylor expanded in x around 0 74.7%
+-commutative74.7%
distribute-rgt-in74.7%
*-lft-identity74.7%
mul-1-neg74.7%
distribute-neg-frac74.7%
associate-*l/71.7%
neg-mul-171.7%
associate-*r*71.7%
*-commutative71.7%
associate-*r/71.7%
+-commutative71.7%
associate-+l+69.8%
Simplified94.4%
if -2.00000000000000003e-294 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.3%
Taylor expanded in z around inf 90.9%
associate--l+90.9%
distribute-lft-out--90.9%
div-sub90.9%
mul-1-neg90.9%
unsub-neg90.9%
distribute-rgt-out--90.9%
associate-/l*95.4%
Simplified95.4%
Taylor expanded in t around 0 90.9%
mul-1-neg90.9%
associate-*r/95.5%
*-commutative95.5%
distribute-rgt-neg-in95.5%
Simplified95.5%
if 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 95.2%
+-commutative95.2%
fma-def95.2%
Simplified95.2%
Final simplification94.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (- t x) (- a z))) (t_2 (+ x (* (- y z) t_1))))
(if (or (<= t_2 -2e-196) (not (<= t_2 0.0)))
(fma (- y z) t_1 x)
(- t (/ (- t x) (/ z (- y a)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (t - x) / (a - z);
double t_2 = x + ((y - z) * t_1);
double tmp;
if ((t_2 <= -2e-196) || !(t_2 <= 0.0)) {
tmp = fma((y - z), t_1, x);
} else {
tmp = t - ((t - x) / (z / (y - a)));
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(t - x) / Float64(a - z)) t_2 = Float64(x + Float64(Float64(y - z) * t_1)) tmp = 0.0 if ((t_2 <= -2e-196) || !(t_2 <= 0.0)) tmp = fma(Float64(y - z), t_1, x); else tmp = Float64(t - Float64(Float64(t - x) / Float64(z / Float64(y - a)))); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$2, -2e-196], N[Not[LessEqual[t$95$2, 0.0]], $MachinePrecision]], N[(N[(y - z), $MachinePrecision] * t$95$1 + x), $MachinePrecision], N[(t - N[(N[(t - x), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - x}{a - z}\\
t_2 := x + \left(y - z\right) \cdot t_1\\
\mathbf{if}\;t_2 \leq -2 \cdot 10^{-196} \lor \neg \left(t_2 \leq 0\right):\\
\;\;\;\;\mathsf{fma}\left(y - z, t_1, x\right)\\
\mathbf{else}:\\
\;\;\;\;t - \frac{t - x}{\frac{z}{y - a}}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -2.0000000000000001e-196 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 93.5%
+-commutative93.5%
fma-def93.6%
Simplified93.6%
if -2.0000000000000001e-196 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 7.6%
Taylor expanded in z around inf 89.5%
associate--l+89.5%
distribute-lft-out--89.5%
div-sub89.5%
mul-1-neg89.5%
unsub-neg89.5%
distribute-rgt-out--89.4%
associate-/l*93.7%
Simplified93.7%
Final simplification93.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -2e-196) (not (<= t_1 0.0)))
t_1
(- t (/ (- t x) (/ z (- y a)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if ((t_1 <= -2e-196) || !(t_1 <= 0.0)) {
tmp = t_1;
} else {
tmp = t - ((t - x) / (z / (y - a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
if ((t_1 <= (-2d-196)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = t_1
else
tmp = t - ((t - x) / (z / (y - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if ((t_1 <= -2e-196) || !(t_1 <= 0.0)) {
tmp = t_1;
} else {
tmp = t - ((t - x) / (z / (y - a)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if (t_1 <= -2e-196) or not (t_1 <= 0.0): tmp = t_1 else: tmp = t - ((t - x) / (z / (y - a))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if ((t_1 <= -2e-196) || !(t_1 <= 0.0)) tmp = t_1; else tmp = Float64(t - Float64(Float64(t - x) / Float64(z / Float64(y - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * ((t - x) / (a - z))); tmp = 0.0; if ((t_1 <= -2e-196) || ~((t_1 <= 0.0))) tmp = t_1; else tmp = t - ((t - x) / (z / (y - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -2e-196], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], t$95$1, N[(t - N[(N[(t - x), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t_1 \leq -2 \cdot 10^{-196} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t - \frac{t - x}{\frac{z}{y - a}}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -2.0000000000000001e-196 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 93.5%
if -2.0000000000000001e-196 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 7.6%
Taylor expanded in z around inf 89.5%
associate--l+89.5%
distribute-lft-out--89.5%
div-sub89.5%
mul-1-neg89.5%
unsub-neg89.5%
distribute-rgt-out--89.4%
associate-/l*93.7%
Simplified93.7%
Final simplification93.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* x (/ y z)))))
(if (<= z -9.6e+83)
t_1
(if (<= z -2.05e+21)
(- x (/ x (/ a y)))
(if (<= z -250000000000.0)
(- t (* y (/ t z)))
(if (<= z -62.0)
(/ t (/ (- a z) y))
(if (<= z -0.72)
(/ (- t) (+ (/ a z) -1.0))
(if (or (<= z -8e-73) (not (<= z 1.3e-9)))
t_1
(+ x (* t (/ y a)))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + (x * (y / z));
double tmp;
if (z <= -9.6e+83) {
tmp = t_1;
} else if (z <= -2.05e+21) {
tmp = x - (x / (a / y));
} else if (z <= -250000000000.0) {
tmp = t - (y * (t / z));
} else if (z <= -62.0) {
tmp = t / ((a - z) / y);
} else if (z <= -0.72) {
tmp = -t / ((a / z) + -1.0);
} else if ((z <= -8e-73) || !(z <= 1.3e-9)) {
tmp = t_1;
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t + (x * (y / z))
if (z <= (-9.6d+83)) then
tmp = t_1
else if (z <= (-2.05d+21)) then
tmp = x - (x / (a / y))
else if (z <= (-250000000000.0d0)) then
tmp = t - (y * (t / z))
else if (z <= (-62.0d0)) then
tmp = t / ((a - z) / y)
else if (z <= (-0.72d0)) then
tmp = -t / ((a / z) + (-1.0d0))
else if ((z <= (-8d-73)) .or. (.not. (z <= 1.3d-9))) then
tmp = t_1
else
tmp = x + (t * (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t + (x * (y / z));
double tmp;
if (z <= -9.6e+83) {
tmp = t_1;
} else if (z <= -2.05e+21) {
tmp = x - (x / (a / y));
} else if (z <= -250000000000.0) {
tmp = t - (y * (t / z));
} else if (z <= -62.0) {
tmp = t / ((a - z) / y);
} else if (z <= -0.72) {
tmp = -t / ((a / z) + -1.0);
} else if ((z <= -8e-73) || !(z <= 1.3e-9)) {
tmp = t_1;
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + (x * (y / z)) tmp = 0 if z <= -9.6e+83: tmp = t_1 elif z <= -2.05e+21: tmp = x - (x / (a / y)) elif z <= -250000000000.0: tmp = t - (y * (t / z)) elif z <= -62.0: tmp = t / ((a - z) / y) elif z <= -0.72: tmp = -t / ((a / z) + -1.0) elif (z <= -8e-73) or not (z <= 1.3e-9): tmp = t_1 else: tmp = x + (t * (y / a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(x * Float64(y / z))) tmp = 0.0 if (z <= -9.6e+83) tmp = t_1; elseif (z <= -2.05e+21) tmp = Float64(x - Float64(x / Float64(a / y))); elseif (z <= -250000000000.0) tmp = Float64(t - Float64(y * Float64(t / z))); elseif (z <= -62.0) tmp = Float64(t / Float64(Float64(a - z) / y)); elseif (z <= -0.72) tmp = Float64(Float64(-t) / Float64(Float64(a / z) + -1.0)); elseif ((z <= -8e-73) || !(z <= 1.3e-9)) tmp = t_1; else tmp = Float64(x + Float64(t * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + (x * (y / z)); tmp = 0.0; if (z <= -9.6e+83) tmp = t_1; elseif (z <= -2.05e+21) tmp = x - (x / (a / y)); elseif (z <= -250000000000.0) tmp = t - (y * (t / z)); elseif (z <= -62.0) tmp = t / ((a - z) / y); elseif (z <= -0.72) tmp = -t / ((a / z) + -1.0); elseif ((z <= -8e-73) || ~((z <= 1.3e-9))) tmp = t_1; else tmp = x + (t * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9.6e+83], t$95$1, If[LessEqual[z, -2.05e+21], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -250000000000.0], N[(t - N[(y * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -62.0], N[(t / N[(N[(a - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -0.72], N[((-t) / N[(N[(a / z), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -8e-73], N[Not[LessEqual[z, 1.3e-9]], $MachinePrecision]], t$95$1, N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + x \cdot \frac{y}{z}\\
\mathbf{if}\;z \leq -9.6 \cdot 10^{+83}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.05 \cdot 10^{+21}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq -250000000000:\\
\;\;\;\;t - y \cdot \frac{t}{z}\\
\mathbf{elif}\;z \leq -62:\\
\;\;\;\;\frac{t}{\frac{a - z}{y}}\\
\mathbf{elif}\;z \leq -0.72:\\
\;\;\;\;\frac{-t}{\frac{a}{z} + -1}\\
\mathbf{elif}\;z \leq -8 \cdot 10^{-73} \lor \neg \left(z \leq 1.3 \cdot 10^{-9}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -9.59999999999999965e83 or -0.71999999999999997 < z < -7.99999999999999998e-73 or 1.3000000000000001e-9 < z Initial program 63.6%
Taylor expanded in z around inf 67.3%
associate--l+67.3%
distribute-lft-out--67.3%
div-sub67.3%
mul-1-neg67.3%
unsub-neg67.3%
distribute-rgt-out--67.5%
associate-/l*81.5%
Simplified81.5%
Taylor expanded in y around inf 71.5%
Taylor expanded in t around 0 58.4%
associate-*r/64.0%
neg-mul-164.0%
distribute-rgt-neg-in64.0%
distribute-neg-frac64.0%
Simplified64.0%
if -9.59999999999999965e83 < z < -2.05e21Initial program 90.1%
Taylor expanded in z around 0 62.7%
associate-/l*71.7%
Simplified71.7%
Taylor expanded in t around 0 52.8%
mul-1-neg52.8%
unsub-neg52.8%
associate-/l*61.8%
Simplified61.8%
if -2.05e21 < z < -2.5e11Initial program 77.9%
Taylor expanded in z around inf 50.5%
associate--l+50.5%
distribute-lft-out--50.5%
div-sub50.5%
mul-1-neg50.5%
unsub-neg50.5%
distribute-rgt-out--50.5%
associate-/l*75.5%
Simplified75.5%
Taylor expanded in y around inf 70.3%
Taylor expanded in t around inf 45.3%
associate-*l/70.3%
*-commutative70.3%
Simplified70.3%
if -2.5e11 < z < -62Initial program 99.0%
Taylor expanded in x around 0 68.6%
Taylor expanded in y around inf 68.6%
associate-/l*100.0%
Simplified100.0%
if -62 < z < -0.71999999999999997Initial program 99.2%
Taylor expanded in x around 0 100.0%
Taylor expanded in y around 0 100.0%
mul-1-neg100.0%
associate-/l*100.0%
div-sub100.0%
sub-neg100.0%
*-inverses100.0%
metadata-eval100.0%
Simplified100.0%
if -7.99999999999999998e-73 < z < 1.3000000000000001e-9Initial program 94.5%
Taylor expanded in z around 0 74.1%
associate-/l*77.2%
Simplified77.2%
Taylor expanded in t around inf 66.3%
associate-*r/70.7%
Simplified70.7%
Final simplification67.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ y (- a z)))))
(if (<= z -6.5e+106)
t
(if (<= z -8e+19)
x
(if (<= z -0.00155)
t_1
(if (<= z -4.5e-193)
x
(if (<= z 6.3e-178)
t_1
(if (<= z 1.25e-36) x (if (<= z 2.5e-13) (/ t (/ a y)) t)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / (a - z));
double tmp;
if (z <= -6.5e+106) {
tmp = t;
} else if (z <= -8e+19) {
tmp = x;
} else if (z <= -0.00155) {
tmp = t_1;
} else if (z <= -4.5e-193) {
tmp = x;
} else if (z <= 6.3e-178) {
tmp = t_1;
} else if (z <= 1.25e-36) {
tmp = x;
} else if (z <= 2.5e-13) {
tmp = t / (a / y);
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * (y / (a - z))
if (z <= (-6.5d+106)) then
tmp = t
else if (z <= (-8d+19)) then
tmp = x
else if (z <= (-0.00155d0)) then
tmp = t_1
else if (z <= (-4.5d-193)) then
tmp = x
else if (z <= 6.3d-178) then
tmp = t_1
else if (z <= 1.25d-36) then
tmp = x
else if (z <= 2.5d-13) then
tmp = t / (a / y)
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / (a - z));
double tmp;
if (z <= -6.5e+106) {
tmp = t;
} else if (z <= -8e+19) {
tmp = x;
} else if (z <= -0.00155) {
tmp = t_1;
} else if (z <= -4.5e-193) {
tmp = x;
} else if (z <= 6.3e-178) {
tmp = t_1;
} else if (z <= 1.25e-36) {
tmp = x;
} else if (z <= 2.5e-13) {
tmp = t / (a / y);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (y / (a - z)) tmp = 0 if z <= -6.5e+106: tmp = t elif z <= -8e+19: tmp = x elif z <= -0.00155: tmp = t_1 elif z <= -4.5e-193: tmp = x elif z <= 6.3e-178: tmp = t_1 elif z <= 1.25e-36: tmp = x elif z <= 2.5e-13: tmp = t / (a / y) else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(y / Float64(a - z))) tmp = 0.0 if (z <= -6.5e+106) tmp = t; elseif (z <= -8e+19) tmp = x; elseif (z <= -0.00155) tmp = t_1; elseif (z <= -4.5e-193) tmp = x; elseif (z <= 6.3e-178) tmp = t_1; elseif (z <= 1.25e-36) tmp = x; elseif (z <= 2.5e-13) tmp = Float64(t / Float64(a / y)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (y / (a - z)); tmp = 0.0; if (z <= -6.5e+106) tmp = t; elseif (z <= -8e+19) tmp = x; elseif (z <= -0.00155) tmp = t_1; elseif (z <= -4.5e-193) tmp = x; elseif (z <= 6.3e-178) tmp = t_1; elseif (z <= 1.25e-36) tmp = x; elseif (z <= 2.5e-13) tmp = t / (a / y); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.5e+106], t, If[LessEqual[z, -8e+19], x, If[LessEqual[z, -0.00155], t$95$1, If[LessEqual[z, -4.5e-193], x, If[LessEqual[z, 6.3e-178], t$95$1, If[LessEqual[z, 1.25e-36], x, If[LessEqual[z, 2.5e-13], N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision], t]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y}{a - z}\\
\mathbf{if}\;z \leq -6.5 \cdot 10^{+106}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -8 \cdot 10^{+19}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -0.00155:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -4.5 \cdot 10^{-193}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 6.3 \cdot 10^{-178}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-36}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{-13}:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -6.5000000000000003e106 or 2.49999999999999995e-13 < z Initial program 64.6%
Taylor expanded in z around inf 51.6%
if -6.5000000000000003e106 < z < -8e19 or -0.00154999999999999995 < z < -4.4999999999999999e-193 or 6.3e-178 < z < 1.25000000000000001e-36Initial program 83.8%
Taylor expanded in a around inf 39.2%
if -8e19 < z < -0.00154999999999999995 or -4.4999999999999999e-193 < z < 6.3e-178Initial program 94.8%
Taylor expanded in x around 0 58.4%
Taylor expanded in y around inf 50.0%
expm1-log1p-u17.5%
expm1-udef12.8%
associate-/l*16.9%
Applied egg-rr16.9%
expm1-def20.1%
expm1-log1p52.8%
associate-/l*50.0%
associate-*r/52.7%
Simplified52.7%
if 1.25000000000000001e-36 < z < 2.49999999999999995e-13Initial program 99.5%
Taylor expanded in x around 0 67.9%
Taylor expanded in a around inf 68.6%
associate-/l*99.5%
Simplified99.5%
Taylor expanded in y around inf 99.5%
Final simplification49.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (/ (- t x) (/ z (- y a))))))
(if (<= z -8.8e+83)
t_1
(if (<= z -6e+22)
(+ x (* (- t x) (/ y a)))
(if (or (<= z -1.2e-73) (not (<= z 6.6e-19)))
t_1
(+ x (/ y (/ a (- t x)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((t - x) / (z / (y - a)));
double tmp;
if (z <= -8.8e+83) {
tmp = t_1;
} else if (z <= -6e+22) {
tmp = x + ((t - x) * (y / a));
} else if ((z <= -1.2e-73) || !(z <= 6.6e-19)) {
tmp = t_1;
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t - ((t - x) / (z / (y - a)))
if (z <= (-8.8d+83)) then
tmp = t_1
else if (z <= (-6d+22)) then
tmp = x + ((t - x) * (y / a))
else if ((z <= (-1.2d-73)) .or. (.not. (z <= 6.6d-19))) then
tmp = t_1
else
tmp = x + (y / (a / (t - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((t - x) / (z / (y - a)));
double tmp;
if (z <= -8.8e+83) {
tmp = t_1;
} else if (z <= -6e+22) {
tmp = x + ((t - x) * (y / a));
} else if ((z <= -1.2e-73) || !(z <= 6.6e-19)) {
tmp = t_1;
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - ((t - x) / (z / (y - a))) tmp = 0 if z <= -8.8e+83: tmp = t_1 elif z <= -6e+22: tmp = x + ((t - x) * (y / a)) elif (z <= -1.2e-73) or not (z <= 6.6e-19): tmp = t_1 else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(t - x) / Float64(z / Float64(y - a)))) tmp = 0.0 if (z <= -8.8e+83) tmp = t_1; elseif (z <= -6e+22) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif ((z <= -1.2e-73) || !(z <= 6.6e-19)) tmp = t_1; else tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - ((t - x) / (z / (y - a))); tmp = 0.0; if (z <= -8.8e+83) tmp = t_1; elseif (z <= -6e+22) tmp = x + ((t - x) * (y / a)); elseif ((z <= -1.2e-73) || ~((z <= 6.6e-19))) tmp = t_1; else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(t - x), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.8e+83], t$95$1, If[LessEqual[z, -6e+22], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -1.2e-73], N[Not[LessEqual[z, 6.6e-19]], $MachinePrecision]], t$95$1, N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{t - x}{\frac{z}{y - a}}\\
\mathbf{if}\;z \leq -8.8 \cdot 10^{+83}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -6 \cdot 10^{+22}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq -1.2 \cdot 10^{-73} \lor \neg \left(z \leq 6.6 \cdot 10^{-19}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -8.79999999999999995e83 or -6e22 < z < -1.20000000000000003e-73 or 6.5999999999999995e-19 < z Initial program 65.2%
Taylor expanded in z around inf 66.7%
associate--l+66.7%
distribute-lft-out--66.7%
div-sub66.7%
mul-1-neg66.7%
unsub-neg66.7%
distribute-rgt-out--66.8%
associate-/l*80.3%
Simplified80.3%
if -8.79999999999999995e83 < z < -6e22Initial program 99.8%
Taylor expanded in z around 0 68.9%
associate-/l*78.9%
associate-/r/78.9%
Simplified78.9%
if -1.20000000000000003e-73 < z < 6.5999999999999995e-19Initial program 94.4%
Taylor expanded in z around 0 74.5%
associate-/l*77.8%
Simplified77.8%
Final simplification79.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) a))))
(if (<= z -2.1e+72)
t
(if (<= z -2.6e-19)
t_1
(if (<= z -1e-38)
(/ (- a) (/ z x))
(if (<= z -1.55e-192) x (if (<= z 22.0) t_1 t)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / a);
double tmp;
if (z <= -2.1e+72) {
tmp = t;
} else if (z <= -2.6e-19) {
tmp = t_1;
} else if (z <= -1e-38) {
tmp = -a / (z / x);
} else if (z <= -1.55e-192) {
tmp = x;
} else if (z <= 22.0) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((y - z) / a)
if (z <= (-2.1d+72)) then
tmp = t
else if (z <= (-2.6d-19)) then
tmp = t_1
else if (z <= (-1d-38)) then
tmp = -a / (z / x)
else if (z <= (-1.55d-192)) then
tmp = x
else if (z <= 22.0d0) then
tmp = t_1
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / a);
double tmp;
if (z <= -2.1e+72) {
tmp = t;
} else if (z <= -2.6e-19) {
tmp = t_1;
} else if (z <= -1e-38) {
tmp = -a / (z / x);
} else if (z <= -1.55e-192) {
tmp = x;
} else if (z <= 22.0) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / a) tmp = 0 if z <= -2.1e+72: tmp = t elif z <= -2.6e-19: tmp = t_1 elif z <= -1e-38: tmp = -a / (z / x) elif z <= -1.55e-192: tmp = x elif z <= 22.0: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / a)) tmp = 0.0 if (z <= -2.1e+72) tmp = t; elseif (z <= -2.6e-19) tmp = t_1; elseif (z <= -1e-38) tmp = Float64(Float64(-a) / Float64(z / x)); elseif (z <= -1.55e-192) tmp = x; elseif (z <= 22.0) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / a); tmp = 0.0; if (z <= -2.1e+72) tmp = t; elseif (z <= -2.6e-19) tmp = t_1; elseif (z <= -1e-38) tmp = -a / (z / x); elseif (z <= -1.55e-192) tmp = x; elseif (z <= 22.0) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.1e+72], t, If[LessEqual[z, -2.6e-19], t$95$1, If[LessEqual[z, -1e-38], N[((-a) / N[(z / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.55e-192], x, If[LessEqual[z, 22.0], t$95$1, t]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a}\\
\mathbf{if}\;z \leq -2.1 \cdot 10^{+72}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{-19}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1 \cdot 10^{-38}:\\
\;\;\;\;\frac{-a}{\frac{z}{x}}\\
\mathbf{elif}\;z \leq -1.55 \cdot 10^{-192}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 22:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -2.1000000000000001e72 or 22 < z Initial program 65.5%
Taylor expanded in z around inf 51.1%
if -2.1000000000000001e72 < z < -2.60000000000000013e-19 or -1.55e-192 < z < 22Initial program 92.0%
Taylor expanded in x around 0 52.1%
Taylor expanded in a around inf 45.7%
associate-/l*48.0%
Simplified48.0%
Taylor expanded in t around 0 45.7%
associate-*r/48.0%
Simplified48.0%
if -2.60000000000000013e-19 < z < -9.9999999999999996e-39Initial program 3.1%
Taylor expanded in y around 0 3.1%
mul-1-neg3.1%
unsub-neg3.1%
associate-/l*4.5%
associate-/r/3.1%
Simplified3.1%
Taylor expanded in t around 0 3.1%
sub-neg3.1%
mul-1-neg3.1%
remove-double-neg3.1%
associate-/l*3.1%
div-sub3.1%
sub-neg3.1%
*-inverses3.1%
metadata-eval3.1%
Simplified3.1%
Taylor expanded in a around 0 3.1%
neg-mul-13.1%
associate-+r+76.2%
neg-mul-176.2%
mul-1-neg76.2%
unsub-neg76.2%
distribute-rgt1-in76.2%
metadata-eval76.2%
mul0-lft76.2%
neg-sub076.2%
associate-/l*76.2%
distribute-neg-frac76.2%
Simplified76.2%
if -9.9999999999999996e-39 < z < -1.55e-192Initial program 88.3%
Taylor expanded in a around inf 49.7%
Final simplification50.1%
(FPCore (x y z t a)
:precision binary64
(if (<= z -8.8e+83)
(+ t (* x (/ y z)))
(if (<= z -1e+16)
(+ x (* (- t x) (/ y a)))
(if (or (<= z -2.2e-73) (not (<= z 1.65e-18)))
(- t (/ (* y (- t x)) z))
(+ x (/ y (/ a (- t x))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8.8e+83) {
tmp = t + (x * (y / z));
} else if (z <= -1e+16) {
tmp = x + ((t - x) * (y / a));
} else if ((z <= -2.2e-73) || !(z <= 1.65e-18)) {
tmp = t - ((y * (t - x)) / z);
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-8.8d+83)) then
tmp = t + (x * (y / z))
else if (z <= (-1d+16)) then
tmp = x + ((t - x) * (y / a))
else if ((z <= (-2.2d-73)) .or. (.not. (z <= 1.65d-18))) then
tmp = t - ((y * (t - x)) / z)
else
tmp = x + (y / (a / (t - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8.8e+83) {
tmp = t + (x * (y / z));
} else if (z <= -1e+16) {
tmp = x + ((t - x) * (y / a));
} else if ((z <= -2.2e-73) || !(z <= 1.65e-18)) {
tmp = t - ((y * (t - x)) / z);
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -8.8e+83: tmp = t + (x * (y / z)) elif z <= -1e+16: tmp = x + ((t - x) * (y / a)) elif (z <= -2.2e-73) or not (z <= 1.65e-18): tmp = t - ((y * (t - x)) / z) else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -8.8e+83) tmp = Float64(t + Float64(x * Float64(y / z))); elseif (z <= -1e+16) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif ((z <= -2.2e-73) || !(z <= 1.65e-18)) tmp = Float64(t - Float64(Float64(y * Float64(t - x)) / z)); else tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -8.8e+83) tmp = t + (x * (y / z)); elseif (z <= -1e+16) tmp = x + ((t - x) * (y / a)); elseif ((z <= -2.2e-73) || ~((z <= 1.65e-18))) tmp = t - ((y * (t - x)) / z); else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -8.8e+83], N[(t + N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1e+16], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -2.2e-73], N[Not[LessEqual[z, 1.65e-18]], $MachinePrecision]], N[(t - N[(N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.8 \cdot 10^{+83}:\\
\;\;\;\;t + x \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq -1 \cdot 10^{+16}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq -2.2 \cdot 10^{-73} \lor \neg \left(z \leq 1.65 \cdot 10^{-18}\right):\\
\;\;\;\;t - \frac{y \cdot \left(t - x\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -8.79999999999999995e83Initial program 68.3%
Taylor expanded in z around inf 63.6%
associate--l+63.6%
distribute-lft-out--63.6%
div-sub63.6%
mul-1-neg63.6%
unsub-neg63.6%
distribute-rgt-out--63.7%
associate-/l*82.6%
Simplified82.6%
Taylor expanded in y around inf 76.9%
Taylor expanded in t around 0 64.1%
associate-*r/72.4%
neg-mul-172.4%
distribute-rgt-neg-in72.4%
distribute-neg-frac72.4%
Simplified72.4%
if -8.79999999999999995e83 < z < -1e16Initial program 91.6%
Taylor expanded in z around 0 53.5%
associate-/l*61.0%
associate-/r/61.0%
Simplified61.0%
if -1e16 < z < -2.2e-73 or 1.6500000000000001e-18 < z Initial program 63.2%
Taylor expanded in z around inf 69.7%
associate--l+69.7%
distribute-lft-out--69.7%
div-sub69.7%
mul-1-neg69.7%
unsub-neg69.7%
distribute-rgt-out--69.8%
associate-/l*79.3%
Simplified79.3%
Taylor expanded in y around inf 67.4%
Taylor expanded in z around 0 61.1%
if -2.2e-73 < z < 1.6500000000000001e-18Initial program 94.4%
Taylor expanded in z around 0 74.5%
associate-/l*77.8%
Simplified77.8%
Final simplification70.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (/ (- t x) (/ z y)))))
(if (<= z -8.8e+83)
t_1
(if (<= z -4.9e+20)
(+ x (* (- t x) (/ y a)))
(if (or (<= z -1.32e-73) (not (<= z 7e-16)))
t_1
(+ x (/ y (/ a (- t x)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((t - x) / (z / y));
double tmp;
if (z <= -8.8e+83) {
tmp = t_1;
} else if (z <= -4.9e+20) {
tmp = x + ((t - x) * (y / a));
} else if ((z <= -1.32e-73) || !(z <= 7e-16)) {
tmp = t_1;
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t - ((t - x) / (z / y))
if (z <= (-8.8d+83)) then
tmp = t_1
else if (z <= (-4.9d+20)) then
tmp = x + ((t - x) * (y / a))
else if ((z <= (-1.32d-73)) .or. (.not. (z <= 7d-16))) then
tmp = t_1
else
tmp = x + (y / (a / (t - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((t - x) / (z / y));
double tmp;
if (z <= -8.8e+83) {
tmp = t_1;
} else if (z <= -4.9e+20) {
tmp = x + ((t - x) * (y / a));
} else if ((z <= -1.32e-73) || !(z <= 7e-16)) {
tmp = t_1;
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - ((t - x) / (z / y)) tmp = 0 if z <= -8.8e+83: tmp = t_1 elif z <= -4.9e+20: tmp = x + ((t - x) * (y / a)) elif (z <= -1.32e-73) or not (z <= 7e-16): tmp = t_1 else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(t - x) / Float64(z / y))) tmp = 0.0 if (z <= -8.8e+83) tmp = t_1; elseif (z <= -4.9e+20) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif ((z <= -1.32e-73) || !(z <= 7e-16)) tmp = t_1; else tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - ((t - x) / (z / y)); tmp = 0.0; if (z <= -8.8e+83) tmp = t_1; elseif (z <= -4.9e+20) tmp = x + ((t - x) * (y / a)); elseif ((z <= -1.32e-73) || ~((z <= 7e-16))) tmp = t_1; else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(t - x), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.8e+83], t$95$1, If[LessEqual[z, -4.9e+20], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -1.32e-73], N[Not[LessEqual[z, 7e-16]], $MachinePrecision]], t$95$1, N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{t - x}{\frac{z}{y}}\\
\mathbf{if}\;z \leq -8.8 \cdot 10^{+83}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -4.9 \cdot 10^{+20}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq -1.32 \cdot 10^{-73} \lor \neg \left(z \leq 7 \cdot 10^{-16}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -8.79999999999999995e83 or -4.9e20 < z < -1.31999999999999998e-73 or 7.00000000000000035e-16 < z Initial program 65.7%
Taylor expanded in z around inf 66.4%
associate--l+66.4%
distribute-lft-out--66.4%
div-sub66.4%
mul-1-neg66.4%
unsub-neg66.4%
distribute-rgt-out--66.5%
associate-/l*80.2%
Simplified80.2%
Taylor expanded in y around inf 70.8%
if -8.79999999999999995e83 < z < -4.9e20Initial program 90.1%
Taylor expanded in z around 0 62.7%
associate-/l*71.7%
associate-/r/71.7%
Simplified71.7%
if -1.31999999999999998e-73 < z < 7.00000000000000035e-16Initial program 94.4%
Taylor expanded in z around 0 74.5%
associate-/l*77.8%
Simplified77.8%
Final simplification73.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* x (/ (- y a) z)))))
(if (<= z -4.8e+69)
t_1
(if (<= z -8e-17)
(/ t (/ (- a z) (- y z)))
(if (or (<= z -7.8e-76) (not (<= z 4.2e-18)))
t_1
(+ x (/ y (/ a (- t x)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + (x * ((y - a) / z));
double tmp;
if (z <= -4.8e+69) {
tmp = t_1;
} else if (z <= -8e-17) {
tmp = t / ((a - z) / (y - z));
} else if ((z <= -7.8e-76) || !(z <= 4.2e-18)) {
tmp = t_1;
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t + (x * ((y - a) / z))
if (z <= (-4.8d+69)) then
tmp = t_1
else if (z <= (-8d-17)) then
tmp = t / ((a - z) / (y - z))
else if ((z <= (-7.8d-76)) .or. (.not. (z <= 4.2d-18))) then
tmp = t_1
else
tmp = x + (y / (a / (t - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t + (x * ((y - a) / z));
double tmp;
if (z <= -4.8e+69) {
tmp = t_1;
} else if (z <= -8e-17) {
tmp = t / ((a - z) / (y - z));
} else if ((z <= -7.8e-76) || !(z <= 4.2e-18)) {
tmp = t_1;
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + (x * ((y - a) / z)) tmp = 0 if z <= -4.8e+69: tmp = t_1 elif z <= -8e-17: tmp = t / ((a - z) / (y - z)) elif (z <= -7.8e-76) or not (z <= 4.2e-18): tmp = t_1 else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(x * Float64(Float64(y - a) / z))) tmp = 0.0 if (z <= -4.8e+69) tmp = t_1; elseif (z <= -8e-17) tmp = Float64(t / Float64(Float64(a - z) / Float64(y - z))); elseif ((z <= -7.8e-76) || !(z <= 4.2e-18)) tmp = t_1; else tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + (x * ((y - a) / z)); tmp = 0.0; if (z <= -4.8e+69) tmp = t_1; elseif (z <= -8e-17) tmp = t / ((a - z) / (y - z)); elseif ((z <= -7.8e-76) || ~((z <= 4.2e-18))) tmp = t_1; else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.8e+69], t$95$1, If[LessEqual[z, -8e-17], N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -7.8e-76], N[Not[LessEqual[z, 4.2e-18]], $MachinePrecision]], t$95$1, N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + x \cdot \frac{y - a}{z}\\
\mathbf{if}\;z \leq -4.8 \cdot 10^{+69}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -8 \cdot 10^{-17}:\\
\;\;\;\;\frac{t}{\frac{a - z}{y - z}}\\
\mathbf{elif}\;z \leq -7.8 \cdot 10^{-76} \lor \neg \left(z \leq 4.2 \cdot 10^{-18}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -4.8000000000000003e69 or -8.00000000000000057e-17 < z < -7.8000000000000005e-76 or 4.19999999999999999e-18 < z Initial program 64.3%
Taylor expanded in z around inf 66.6%
associate--l+66.6%
distribute-lft-out--66.6%
div-sub66.6%
mul-1-neg66.6%
unsub-neg66.6%
distribute-rgt-out--66.8%
associate-/l*80.5%
Simplified80.5%
Taylor expanded in t around 0 66.0%
mul-1-neg66.0%
associate-*r/72.8%
*-commutative72.8%
distribute-rgt-neg-in72.8%
Simplified72.8%
if -4.8000000000000003e69 < z < -8.00000000000000057e-17Initial program 89.4%
Taylor expanded in x around 0 66.9%
associate-/l*71.8%
Simplified71.8%
if -7.8000000000000005e-76 < z < 4.19999999999999999e-18Initial program 94.4%
Taylor expanded in z around 0 74.5%
associate-/l*77.8%
Simplified77.8%
Final simplification74.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- t x) (/ y a)))) (t_2 (+ t (* x (/ y z)))))
(if (<= z -8.8e+83)
t_2
(if (<= z -7.4e+17)
t_1
(if (<= z -2.5e-74)
(* (- t x) (/ y (- a z)))
(if (<= z 1.2e-15) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * (y / a));
double t_2 = t + (x * (y / z));
double tmp;
if (z <= -8.8e+83) {
tmp = t_2;
} else if (z <= -7.4e+17) {
tmp = t_1;
} else if (z <= -2.5e-74) {
tmp = (t - x) * (y / (a - z));
} else if (z <= 1.2e-15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + ((t - x) * (y / a))
t_2 = t + (x * (y / z))
if (z <= (-8.8d+83)) then
tmp = t_2
else if (z <= (-7.4d+17)) then
tmp = t_1
else if (z <= (-2.5d-74)) then
tmp = (t - x) * (y / (a - z))
else if (z <= 1.2d-15) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * (y / a));
double t_2 = t + (x * (y / z));
double tmp;
if (z <= -8.8e+83) {
tmp = t_2;
} else if (z <= -7.4e+17) {
tmp = t_1;
} else if (z <= -2.5e-74) {
tmp = (t - x) * (y / (a - z));
} else if (z <= 1.2e-15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((t - x) * (y / a)) t_2 = t + (x * (y / z)) tmp = 0 if z <= -8.8e+83: tmp = t_2 elif z <= -7.4e+17: tmp = t_1 elif z <= -2.5e-74: tmp = (t - x) * (y / (a - z)) elif z <= 1.2e-15: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(t - x) * Float64(y / a))) t_2 = Float64(t + Float64(x * Float64(y / z))) tmp = 0.0 if (z <= -8.8e+83) tmp = t_2; elseif (z <= -7.4e+17) tmp = t_1; elseif (z <= -2.5e-74) tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z))); elseif (z <= 1.2e-15) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((t - x) * (y / a)); t_2 = t + (x * (y / z)); tmp = 0.0; if (z <= -8.8e+83) tmp = t_2; elseif (z <= -7.4e+17) tmp = t_1; elseif (z <= -2.5e-74) tmp = (t - x) * (y / (a - z)); elseif (z <= 1.2e-15) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t + N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.8e+83], t$95$2, If[LessEqual[z, -7.4e+17], t$95$1, If[LessEqual[z, -2.5e-74], N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.2e-15], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(t - x\right) \cdot \frac{y}{a}\\
t_2 := t + x \cdot \frac{y}{z}\\
\mathbf{if}\;z \leq -8.8 \cdot 10^{+83}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -7.4 \cdot 10^{+17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.5 \cdot 10^{-74}:\\
\;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{-15}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -8.79999999999999995e83 or 1.19999999999999997e-15 < z Initial program 65.5%
Taylor expanded in z around inf 65.8%
associate--l+65.8%
distribute-lft-out--65.8%
div-sub65.8%
mul-1-neg65.8%
unsub-neg65.8%
distribute-rgt-out--66.0%
associate-/l*81.3%
Simplified81.3%
Taylor expanded in y around inf 72.6%
Taylor expanded in t around 0 59.2%
associate-*r/65.2%
neg-mul-165.2%
distribute-rgt-neg-in65.2%
distribute-neg-frac65.2%
Simplified65.2%
if -8.79999999999999995e83 < z < -7.4e17 or -2.49999999999999999e-74 < z < 1.19999999999999997e-15Initial program 94.0%
Taylor expanded in z around 0 72.9%
associate-/l*76.6%
associate-/r/76.3%
Simplified76.3%
if -7.4e17 < z < -2.49999999999999999e-74Initial program 64.9%
Taylor expanded in y around inf 51.5%
div-sub51.5%
associate-*r/47.3%
associate-/l*51.7%
associate-/r/51.7%
Simplified51.7%
Final simplification68.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* x (/ y z)))))
(if (<= z -9.6e+83)
t_1
(if (<= z -4.4e+17)
(+ x (* (- t x) (/ y a)))
(if (<= z -3.1e-73)
(* (- t x) (/ y (- a z)))
(if (<= z 1.22e-15) (+ x (/ y (/ a (- t x)))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + (x * (y / z));
double tmp;
if (z <= -9.6e+83) {
tmp = t_1;
} else if (z <= -4.4e+17) {
tmp = x + ((t - x) * (y / a));
} else if (z <= -3.1e-73) {
tmp = (t - x) * (y / (a - z));
} else if (z <= 1.22e-15) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t + (x * (y / z))
if (z <= (-9.6d+83)) then
tmp = t_1
else if (z <= (-4.4d+17)) then
tmp = x + ((t - x) * (y / a))
else if (z <= (-3.1d-73)) then
tmp = (t - x) * (y / (a - z))
else if (z <= 1.22d-15) then
tmp = x + (y / (a / (t - x)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t + (x * (y / z));
double tmp;
if (z <= -9.6e+83) {
tmp = t_1;
} else if (z <= -4.4e+17) {
tmp = x + ((t - x) * (y / a));
} else if (z <= -3.1e-73) {
tmp = (t - x) * (y / (a - z));
} else if (z <= 1.22e-15) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + (x * (y / z)) tmp = 0 if z <= -9.6e+83: tmp = t_1 elif z <= -4.4e+17: tmp = x + ((t - x) * (y / a)) elif z <= -3.1e-73: tmp = (t - x) * (y / (a - z)) elif z <= 1.22e-15: tmp = x + (y / (a / (t - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(x * Float64(y / z))) tmp = 0.0 if (z <= -9.6e+83) tmp = t_1; elseif (z <= -4.4e+17) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (z <= -3.1e-73) tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z))); elseif (z <= 1.22e-15) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + (x * (y / z)); tmp = 0.0; if (z <= -9.6e+83) tmp = t_1; elseif (z <= -4.4e+17) tmp = x + ((t - x) * (y / a)); elseif (z <= -3.1e-73) tmp = (t - x) * (y / (a - z)); elseif (z <= 1.22e-15) tmp = x + (y / (a / (t - x))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9.6e+83], t$95$1, If[LessEqual[z, -4.4e+17], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.1e-73], N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.22e-15], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + x \cdot \frac{y}{z}\\
\mathbf{if}\;z \leq -9.6 \cdot 10^{+83}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -4.4 \cdot 10^{+17}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq -3.1 \cdot 10^{-73}:\\
\;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
\mathbf{elif}\;z \leq 1.22 \cdot 10^{-15}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -9.59999999999999965e83 or 1.21999999999999991e-15 < z Initial program 65.5%
Taylor expanded in z around inf 65.8%
associate--l+65.8%
distribute-lft-out--65.8%
div-sub65.8%
mul-1-neg65.8%
unsub-neg65.8%
distribute-rgt-out--66.0%
associate-/l*81.3%
Simplified81.3%
Taylor expanded in y around inf 72.6%
Taylor expanded in t around 0 59.2%
associate-*r/65.2%
neg-mul-165.2%
distribute-rgt-neg-in65.2%
distribute-neg-frac65.2%
Simplified65.2%
if -9.59999999999999965e83 < z < -4.4e17Initial program 90.8%
Taylor expanded in z around 0 58.1%
associate-/l*66.3%
associate-/r/66.3%
Simplified66.3%
if -4.4e17 < z < -3.09999999999999969e-73Initial program 64.9%
Taylor expanded in y around inf 51.5%
div-sub51.5%
associate-*r/47.3%
associate-/l*51.7%
associate-/r/51.7%
Simplified51.7%
if -3.09999999999999969e-73 < z < 1.21999999999999991e-15Initial program 94.4%
Taylor expanded in z around 0 74.5%
associate-/l*77.8%
Simplified77.8%
Final simplification69.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ t a))))
(if (<= z -2.5e+106)
t
(if (<= z -2e-193)
x
(if (<= z 9.2e-179)
t_1
(if (<= z 7.5e-37) x (if (<= z 4.2e-10) t_1 t)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (t / a);
double tmp;
if (z <= -2.5e+106) {
tmp = t;
} else if (z <= -2e-193) {
tmp = x;
} else if (z <= 9.2e-179) {
tmp = t_1;
} else if (z <= 7.5e-37) {
tmp = x;
} else if (z <= 4.2e-10) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * (t / a)
if (z <= (-2.5d+106)) then
tmp = t
else if (z <= (-2d-193)) then
tmp = x
else if (z <= 9.2d-179) then
tmp = t_1
else if (z <= 7.5d-37) then
tmp = x
else if (z <= 4.2d-10) then
tmp = t_1
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * (t / a);
double tmp;
if (z <= -2.5e+106) {
tmp = t;
} else if (z <= -2e-193) {
tmp = x;
} else if (z <= 9.2e-179) {
tmp = t_1;
} else if (z <= 7.5e-37) {
tmp = x;
} else if (z <= 4.2e-10) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (t / a) tmp = 0 if z <= -2.5e+106: tmp = t elif z <= -2e-193: tmp = x elif z <= 9.2e-179: tmp = t_1 elif z <= 7.5e-37: tmp = x elif z <= 4.2e-10: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(t / a)) tmp = 0.0 if (z <= -2.5e+106) tmp = t; elseif (z <= -2e-193) tmp = x; elseif (z <= 9.2e-179) tmp = t_1; elseif (z <= 7.5e-37) tmp = x; elseif (z <= 4.2e-10) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (t / a); tmp = 0.0; if (z <= -2.5e+106) tmp = t; elseif (z <= -2e-193) tmp = x; elseif (z <= 9.2e-179) tmp = t_1; elseif (z <= 7.5e-37) tmp = x; elseif (z <= 4.2e-10) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.5e+106], t, If[LessEqual[z, -2e-193], x, If[LessEqual[z, 9.2e-179], t$95$1, If[LessEqual[z, 7.5e-37], x, If[LessEqual[z, 4.2e-10], t$95$1, t]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{t}{a}\\
\mathbf{if}\;z \leq -2.5 \cdot 10^{+106}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -2 \cdot 10^{-193}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{-179}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{-37}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{-10}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -2.4999999999999999e106 or 4.2e-10 < z Initial program 64.6%
Taylor expanded in z around inf 51.6%
if -2.4999999999999999e106 < z < -2.0000000000000001e-193 or 9.1999999999999995e-179 < z < 7.5000000000000004e-37Initial program 84.8%
Taylor expanded in a around inf 34.6%
if -2.0000000000000001e-193 < z < 9.1999999999999995e-179 or 7.5000000000000004e-37 < z < 4.2e-10Initial program 96.1%
Taylor expanded in x around 0 56.4%
Taylor expanded in a around inf 54.5%
associate-/l*57.6%
Simplified57.6%
Taylor expanded in y around inf 52.5%
associate-*l/54.3%
*-commutative54.3%
Simplified54.3%
Final simplification46.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ t (/ a y))))
(if (<= z -1.1e+106)
t
(if (<= z -3.2e-193)
x
(if (<= z 3e-176)
t_1
(if (<= z 1.82e-37) x (if (<= z 1.5e-12) t_1 t)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t / (a / y);
double tmp;
if (z <= -1.1e+106) {
tmp = t;
} else if (z <= -3.2e-193) {
tmp = x;
} else if (z <= 3e-176) {
tmp = t_1;
} else if (z <= 1.82e-37) {
tmp = x;
} else if (z <= 1.5e-12) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t / (a / y)
if (z <= (-1.1d+106)) then
tmp = t
else if (z <= (-3.2d-193)) then
tmp = x
else if (z <= 3d-176) then
tmp = t_1
else if (z <= 1.82d-37) then
tmp = x
else if (z <= 1.5d-12) then
tmp = t_1
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t / (a / y);
double tmp;
if (z <= -1.1e+106) {
tmp = t;
} else if (z <= -3.2e-193) {
tmp = x;
} else if (z <= 3e-176) {
tmp = t_1;
} else if (z <= 1.82e-37) {
tmp = x;
} else if (z <= 1.5e-12) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t / (a / y) tmp = 0 if z <= -1.1e+106: tmp = t elif z <= -3.2e-193: tmp = x elif z <= 3e-176: tmp = t_1 elif z <= 1.82e-37: tmp = x elif z <= 1.5e-12: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(t / Float64(a / y)) tmp = 0.0 if (z <= -1.1e+106) tmp = t; elseif (z <= -3.2e-193) tmp = x; elseif (z <= 3e-176) tmp = t_1; elseif (z <= 1.82e-37) tmp = x; elseif (z <= 1.5e-12) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t / (a / y); tmp = 0.0; if (z <= -1.1e+106) tmp = t; elseif (z <= -3.2e-193) tmp = x; elseif (z <= 3e-176) tmp = t_1; elseif (z <= 1.82e-37) tmp = x; elseif (z <= 1.5e-12) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.1e+106], t, If[LessEqual[z, -3.2e-193], x, If[LessEqual[z, 3e-176], t$95$1, If[LessEqual[z, 1.82e-37], x, If[LessEqual[z, 1.5e-12], t$95$1, t]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{\frac{a}{y}}\\
\mathbf{if}\;z \leq -1.1 \cdot 10^{+106}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -3.2 \cdot 10^{-193}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-176}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.82 \cdot 10^{-37}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{-12}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.09999999999999996e106 or 1.5000000000000001e-12 < z Initial program 64.6%
Taylor expanded in z around inf 51.6%
if -1.09999999999999996e106 < z < -3.20000000000000006e-193 or 3e-176 < z < 1.82000000000000002e-37Initial program 84.6%
Taylor expanded in a around inf 34.9%
if -3.20000000000000006e-193 < z < 3e-176 or 1.82000000000000002e-37 < z < 1.5000000000000001e-12Initial program 96.2%
Taylor expanded in x around 0 55.4%
Taylor expanded in a around inf 53.6%
associate-/l*58.4%
Simplified58.4%
Taylor expanded in y around inf 56.4%
Final simplification47.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* y (/ t z)))))
(if (<= z -4.3e+107)
t_1
(if (<= z -2e+20)
(- x (/ x (/ a y)))
(if (or (<= z -12.0) (not (<= z 2.4e-10))) t_1 (+ x (* t (/ y a))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - (y * (t / z));
double tmp;
if (z <= -4.3e+107) {
tmp = t_1;
} else if (z <= -2e+20) {
tmp = x - (x / (a / y));
} else if ((z <= -12.0) || !(z <= 2.4e-10)) {
tmp = t_1;
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t - (y * (t / z))
if (z <= (-4.3d+107)) then
tmp = t_1
else if (z <= (-2d+20)) then
tmp = x - (x / (a / y))
else if ((z <= (-12.0d0)) .or. (.not. (z <= 2.4d-10))) then
tmp = t_1
else
tmp = x + (t * (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t - (y * (t / z));
double tmp;
if (z <= -4.3e+107) {
tmp = t_1;
} else if (z <= -2e+20) {
tmp = x - (x / (a / y));
} else if ((z <= -12.0) || !(z <= 2.4e-10)) {
tmp = t_1;
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - (y * (t / z)) tmp = 0 if z <= -4.3e+107: tmp = t_1 elif z <= -2e+20: tmp = x - (x / (a / y)) elif (z <= -12.0) or not (z <= 2.4e-10): tmp = t_1 else: tmp = x + (t * (y / a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(y * Float64(t / z))) tmp = 0.0 if (z <= -4.3e+107) tmp = t_1; elseif (z <= -2e+20) tmp = Float64(x - Float64(x / Float64(a / y))); elseif ((z <= -12.0) || !(z <= 2.4e-10)) tmp = t_1; else tmp = Float64(x + Float64(t * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - (y * (t / z)); tmp = 0.0; if (z <= -4.3e+107) tmp = t_1; elseif (z <= -2e+20) tmp = x - (x / (a / y)); elseif ((z <= -12.0) || ~((z <= 2.4e-10))) tmp = t_1; else tmp = x + (t * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(y * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.3e+107], t$95$1, If[LessEqual[z, -2e+20], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -12.0], N[Not[LessEqual[z, 2.4e-10]], $MachinePrecision]], t$95$1, N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - y \cdot \frac{t}{z}\\
\mathbf{if}\;z \leq -4.3 \cdot 10^{+107}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2 \cdot 10^{+20}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq -12 \lor \neg \left(z \leq 2.4 \cdot 10^{-10}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -4.3e107 or -2e20 < z < -12 or 2.4e-10 < z Initial program 66.1%
Taylor expanded in z around inf 66.3%
associate--l+66.3%
distribute-lft-out--66.3%
div-sub66.3%
mul-1-neg66.3%
unsub-neg66.3%
distribute-rgt-out--66.4%
associate-/l*81.6%
Simplified81.6%
Taylor expanded in y around inf 72.9%
Taylor expanded in t around inf 52.4%
associate-*l/59.2%
*-commutative59.2%
Simplified59.2%
if -4.3e107 < z < -2e20Initial program 85.9%
Taylor expanded in z around 0 52.8%
associate-/l*59.4%
Simplified59.4%
Taylor expanded in t around 0 45.8%
mul-1-neg45.8%
unsub-neg45.8%
associate-/l*52.4%
Simplified52.4%
if -12 < z < 2.4e-10Initial program 89.3%
Taylor expanded in z around 0 68.2%
associate-/l*71.0%
Simplified71.0%
Taylor expanded in t around inf 60.7%
associate-*r/65.4%
Simplified65.4%
Final simplification61.6%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.5e+106)
(/ (- t) (+ (/ a z) -1.0))
(if (<= z -1.2e+19)
(- x (/ x (/ a y)))
(if (or (<= z -7.6) (not (<= z 5.8e-7)))
(- t (* y (/ t z)))
(+ x (* t (/ y a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.5e+106) {
tmp = -t / ((a / z) + -1.0);
} else if (z <= -1.2e+19) {
tmp = x - (x / (a / y));
} else if ((z <= -7.6) || !(z <= 5.8e-7)) {
tmp = t - (y * (t / z));
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.5d+106)) then
tmp = -t / ((a / z) + (-1.0d0))
else if (z <= (-1.2d+19)) then
tmp = x - (x / (a / y))
else if ((z <= (-7.6d0)) .or. (.not. (z <= 5.8d-7))) then
tmp = t - (y * (t / z))
else
tmp = x + (t * (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.5e+106) {
tmp = -t / ((a / z) + -1.0);
} else if (z <= -1.2e+19) {
tmp = x - (x / (a / y));
} else if ((z <= -7.6) || !(z <= 5.8e-7)) {
tmp = t - (y * (t / z));
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.5e+106: tmp = -t / ((a / z) + -1.0) elif z <= -1.2e+19: tmp = x - (x / (a / y)) elif (z <= -7.6) or not (z <= 5.8e-7): tmp = t - (y * (t / z)) else: tmp = x + (t * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.5e+106) tmp = Float64(Float64(-t) / Float64(Float64(a / z) + -1.0)); elseif (z <= -1.2e+19) tmp = Float64(x - Float64(x / Float64(a / y))); elseif ((z <= -7.6) || !(z <= 5.8e-7)) tmp = Float64(t - Float64(y * Float64(t / z))); else tmp = Float64(x + Float64(t * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.5e+106) tmp = -t / ((a / z) + -1.0); elseif (z <= -1.2e+19) tmp = x - (x / (a / y)); elseif ((z <= -7.6) || ~((z <= 5.8e-7))) tmp = t - (y * (t / z)); else tmp = x + (t * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.5e+106], N[((-t) / N[(N[(a / z), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.2e+19], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -7.6], N[Not[LessEqual[z, 5.8e-7]], $MachinePrecision]], N[(t - N[(y * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.5 \cdot 10^{+106}:\\
\;\;\;\;\frac{-t}{\frac{a}{z} + -1}\\
\mathbf{elif}\;z \leq -1.2 \cdot 10^{+19}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq -7.6 \lor \neg \left(z \leq 5.8 \cdot 10^{-7}\right):\\
\;\;\;\;t - y \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -2.4999999999999999e106Initial program 67.7%
Taylor expanded in x around 0 32.8%
Taylor expanded in y around 0 31.0%
mul-1-neg31.0%
associate-/l*64.8%
div-sub64.8%
sub-neg64.8%
*-inverses64.8%
metadata-eval64.8%
Simplified64.8%
if -2.4999999999999999e106 < z < -1.2e19Initial program 85.9%
Taylor expanded in z around 0 52.8%
associate-/l*59.4%
Simplified59.4%
Taylor expanded in t around 0 45.8%
mul-1-neg45.8%
unsub-neg45.8%
associate-/l*52.4%
Simplified52.4%
if -1.2e19 < z < -7.5999999999999996 or 5.7999999999999995e-7 < z Initial program 65.0%
Taylor expanded in z around inf 67.6%
associate--l+67.6%
distribute-lft-out--67.6%
div-sub67.6%
mul-1-neg67.6%
unsub-neg67.6%
distribute-rgt-out--67.7%
associate-/l*80.5%
Simplified80.5%
Taylor expanded in y around inf 70.0%
Taylor expanded in t around inf 50.7%
associate-*l/55.7%
*-commutative55.7%
Simplified55.7%
if -7.5999999999999996 < z < 5.7999999999999995e-7Initial program 89.3%
Taylor expanded in z around 0 68.2%
associate-/l*71.0%
Simplified71.0%
Taylor expanded in t around inf 60.7%
associate-*r/65.4%
Simplified65.4%
Final simplification61.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* x (/ y z)))))
(if (<= z -8.8e+83)
t_1
(if (<= z -3.5e+16)
(- x (/ x (/ a y)))
(if (<= z -4.8e-74)
(* (- t x) (/ y (- a z)))
(if (<= z 2.8e-9) (+ x (* t (/ y a))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + (x * (y / z));
double tmp;
if (z <= -8.8e+83) {
tmp = t_1;
} else if (z <= -3.5e+16) {
tmp = x - (x / (a / y));
} else if (z <= -4.8e-74) {
tmp = (t - x) * (y / (a - z));
} else if (z <= 2.8e-9) {
tmp = x + (t * (y / a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t + (x * (y / z))
if (z <= (-8.8d+83)) then
tmp = t_1
else if (z <= (-3.5d+16)) then
tmp = x - (x / (a / y))
else if (z <= (-4.8d-74)) then
tmp = (t - x) * (y / (a - z))
else if (z <= 2.8d-9) then
tmp = x + (t * (y / a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t + (x * (y / z));
double tmp;
if (z <= -8.8e+83) {
tmp = t_1;
} else if (z <= -3.5e+16) {
tmp = x - (x / (a / y));
} else if (z <= -4.8e-74) {
tmp = (t - x) * (y / (a - z));
} else if (z <= 2.8e-9) {
tmp = x + (t * (y / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + (x * (y / z)) tmp = 0 if z <= -8.8e+83: tmp = t_1 elif z <= -3.5e+16: tmp = x - (x / (a / y)) elif z <= -4.8e-74: tmp = (t - x) * (y / (a - z)) elif z <= 2.8e-9: tmp = x + (t * (y / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(x * Float64(y / z))) tmp = 0.0 if (z <= -8.8e+83) tmp = t_1; elseif (z <= -3.5e+16) tmp = Float64(x - Float64(x / Float64(a / y))); elseif (z <= -4.8e-74) tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z))); elseif (z <= 2.8e-9) tmp = Float64(x + Float64(t * Float64(y / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + (x * (y / z)); tmp = 0.0; if (z <= -8.8e+83) tmp = t_1; elseif (z <= -3.5e+16) tmp = x - (x / (a / y)); elseif (z <= -4.8e-74) tmp = (t - x) * (y / (a - z)); elseif (z <= 2.8e-9) tmp = x + (t * (y / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.8e+83], t$95$1, If[LessEqual[z, -3.5e+16], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.8e-74], N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e-9], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + x \cdot \frac{y}{z}\\
\mathbf{if}\;z \leq -8.8 \cdot 10^{+83}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -3.5 \cdot 10^{+16}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq -4.8 \cdot 10^{-74}:\\
\;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-9}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -8.79999999999999995e83 or 2.79999999999999984e-9 < z Initial program 65.0%
Taylor expanded in z around inf 66.1%
associate--l+66.1%
distribute-lft-out--66.1%
div-sub66.1%
mul-1-neg66.1%
unsub-neg66.1%
distribute-rgt-out--66.2%
associate-/l*81.8%
Simplified81.8%
Taylor expanded in y around inf 73.0%
Taylor expanded in t around 0 59.3%
associate-*r/65.4%
neg-mul-165.4%
distribute-rgt-neg-in65.4%
distribute-neg-frac65.4%
Simplified65.4%
if -8.79999999999999995e83 < z < -3.5e16Initial program 91.6%
Taylor expanded in z around 0 53.5%
associate-/l*61.0%
Simplified61.0%
Taylor expanded in t around 0 45.3%
mul-1-neg45.3%
unsub-neg45.3%
associate-/l*52.7%
Simplified52.7%
if -3.5e16 < z < -4.7999999999999998e-74Initial program 63.2%
Taylor expanded in y around inf 53.8%
div-sub53.8%
associate-*r/49.4%
associate-/l*54.0%
associate-/r/54.1%
Simplified54.1%
if -4.7999999999999998e-74 < z < 2.79999999999999984e-9Initial program 94.5%
Taylor expanded in z around 0 74.1%
associate-/l*77.2%
Simplified77.2%
Taylor expanded in t around inf 66.3%
associate-*r/70.7%
Simplified70.7%
Final simplification66.0%
(FPCore (x y z t a)
:precision binary64
(if (<= a -9e+208)
(- x (* (- t x) (/ z a)))
(if (<= a -2.4e-53)
(/ t (/ (- a z) (- y z)))
(if (<= a 1.65e+24)
(- t (/ (- t x) (/ z y)))
(+ x (* (- t x) (/ y a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9e+208) {
tmp = x - ((t - x) * (z / a));
} else if (a <= -2.4e-53) {
tmp = t / ((a - z) / (y - z));
} else if (a <= 1.65e+24) {
tmp = t - ((t - x) / (z / y));
} else {
tmp = x + ((t - x) * (y / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-9d+208)) then
tmp = x - ((t - x) * (z / a))
else if (a <= (-2.4d-53)) then
tmp = t / ((a - z) / (y - z))
else if (a <= 1.65d+24) then
tmp = t - ((t - x) / (z / y))
else
tmp = x + ((t - x) * (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9e+208) {
tmp = x - ((t - x) * (z / a));
} else if (a <= -2.4e-53) {
tmp = t / ((a - z) / (y - z));
} else if (a <= 1.65e+24) {
tmp = t - ((t - x) / (z / y));
} else {
tmp = x + ((t - x) * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -9e+208: tmp = x - ((t - x) * (z / a)) elif a <= -2.4e-53: tmp = t / ((a - z) / (y - z)) elif a <= 1.65e+24: tmp = t - ((t - x) / (z / y)) else: tmp = x + ((t - x) * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -9e+208) tmp = Float64(x - Float64(Float64(t - x) * Float64(z / a))); elseif (a <= -2.4e-53) tmp = Float64(t / Float64(Float64(a - z) / Float64(y - z))); elseif (a <= 1.65e+24) tmp = Float64(t - Float64(Float64(t - x) / Float64(z / y))); else tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -9e+208) tmp = x - ((t - x) * (z / a)); elseif (a <= -2.4e-53) tmp = t / ((a - z) / (y - z)); elseif (a <= 1.65e+24) tmp = t - ((t - x) / (z / y)); else tmp = x + ((t - x) * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -9e+208], N[(x - N[(N[(t - x), $MachinePrecision] * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.4e-53], N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.65e+24], N[(t - N[(N[(t - x), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9 \cdot 10^{+208}:\\
\;\;\;\;x - \left(t - x\right) \cdot \frac{z}{a}\\
\mathbf{elif}\;a \leq -2.4 \cdot 10^{-53}:\\
\;\;\;\;\frac{t}{\frac{a - z}{y - z}}\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{+24}:\\
\;\;\;\;t - \frac{t - x}{\frac{z}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\end{array}
\end{array}
if a < -9.00000000000000029e208Initial program 99.9%
Taylor expanded in y around 0 75.3%
mul-1-neg75.3%
unsub-neg75.3%
associate-/l*88.7%
associate-/r/88.8%
Simplified88.8%
Taylor expanded in z around 0 77.4%
if -9.00000000000000029e208 < a < -2.40000000000000007e-53Initial program 83.9%
Taylor expanded in x around 0 49.6%
associate-/l*62.7%
Simplified62.7%
if -2.40000000000000007e-53 < a < 1.6499999999999999e24Initial program 67.2%
Taylor expanded in z around inf 77.8%
associate--l+77.8%
distribute-lft-out--77.8%
div-sub78.6%
mul-1-neg78.6%
unsub-neg78.6%
distribute-rgt-out--78.6%
associate-/l*84.7%
Simplified84.7%
Taylor expanded in y around inf 76.2%
if 1.6499999999999999e24 < a Initial program 88.6%
Taylor expanded in z around 0 55.3%
associate-/l*66.2%
associate-/r/68.2%
Simplified68.2%
Final simplification71.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -11.5) (not (<= z 3.7e-13))) (- t (* y (/ t z))) (+ x (* t (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -11.5) || !(z <= 3.7e-13)) {
tmp = t - (y * (t / z));
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-11.5d0)) .or. (.not. (z <= 3.7d-13))) then
tmp = t - (y * (t / z))
else
tmp = x + (t * (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -11.5) || !(z <= 3.7e-13)) {
tmp = t - (y * (t / z));
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -11.5) or not (z <= 3.7e-13): tmp = t - (y * (t / z)) else: tmp = x + (t * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -11.5) || !(z <= 3.7e-13)) tmp = Float64(t - Float64(y * Float64(t / z))); else tmp = Float64(x + Float64(t * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -11.5) || ~((z <= 3.7e-13))) tmp = t - (y * (t / z)); else tmp = x + (t * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -11.5], N[Not[LessEqual[z, 3.7e-13]], $MachinePrecision]], N[(t - N[(y * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -11.5 \lor \neg \left(z \leq 3.7 \cdot 10^{-13}\right):\\
\;\;\;\;t - y \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -11.5 or 3.69999999999999989e-13 < z Initial program 68.1%
Taylor expanded in z around inf 63.4%
associate--l+63.4%
distribute-lft-out--63.4%
div-sub63.4%
mul-1-neg63.4%
unsub-neg63.4%
distribute-rgt-out--63.5%
associate-/l*77.9%
Simplified77.9%
Taylor expanded in y around inf 69.5%
Taylor expanded in t around inf 49.6%
associate-*l/55.7%
*-commutative55.7%
Simplified55.7%
if -11.5 < z < 3.69999999999999989e-13Initial program 89.3%
Taylor expanded in z around 0 68.2%
associate-/l*71.0%
Simplified71.0%
Taylor expanded in t around inf 60.7%
associate-*r/65.4%
Simplified65.4%
Final simplification60.1%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.5e+106) t (if (<= z 3.6e-6) (+ x (* t (/ y a))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.5e+106) {
tmp = t;
} else if (z <= 3.6e-6) {
tmp = x + (t * (y / a));
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.5d+106)) then
tmp = t
else if (z <= 3.6d-6) then
tmp = x + (t * (y / a))
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.5e+106) {
tmp = t;
} else if (z <= 3.6e-6) {
tmp = x + (t * (y / a));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.5e+106: tmp = t elif z <= 3.6e-6: tmp = x + (t * (y / a)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.5e+106) tmp = t; elseif (z <= 3.6e-6) tmp = Float64(x + Float64(t * Float64(y / a))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.5e+106) tmp = t; elseif (z <= 3.6e-6) tmp = x + (t * (y / a)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.5e+106], t, If[LessEqual[z, 3.6e-6], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.5 \cdot 10^{+106}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{-6}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -2.4999999999999999e106 or 3.59999999999999984e-6 < z Initial program 64.6%
Taylor expanded in z around inf 51.6%
if -2.4999999999999999e106 < z < 3.59999999999999984e-6Initial program 88.9%
Taylor expanded in z around 0 63.6%
associate-/l*67.3%
Simplified67.3%
Taylor expanded in t around inf 57.4%
associate-*r/61.3%
Simplified61.3%
Final simplification56.8%
(FPCore (x y z t a) :precision binary64 (if (<= z -4.3e+107) t (if (<= z 6.2e-23) x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.3e+107) {
tmp = t;
} else if (z <= 6.2e-23) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-4.3d+107)) then
tmp = t
else if (z <= 6.2d-23) then
tmp = x
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.3e+107) {
tmp = t;
} else if (z <= 6.2e-23) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -4.3e+107: tmp = t elif z <= 6.2e-23: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.3e+107) tmp = t; elseif (z <= 6.2e-23) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -4.3e+107) tmp = t; elseif (z <= 6.2e-23) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.3e+107], t, If[LessEqual[z, 6.2e-23], x, t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.3 \cdot 10^{+107}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-23}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -4.3e107 or 6.1999999999999998e-23 < z Initial program 65.7%
Taylor expanded in z around inf 50.0%
if -4.3e107 < z < 6.1999999999999998e-23Initial program 88.6%
Taylor expanded in a around inf 31.1%
Final simplification40.1%
(FPCore (x y z t a) :precision binary64 0.0)
double code(double x, double y, double z, double t, double a) {
return 0.0;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = 0.0d0
end function
public static double code(double x, double y, double z, double t, double a) {
return 0.0;
}
def code(x, y, z, t, a): return 0.0
function code(x, y, z, t, a) return 0.0 end
function tmp = code(x, y, z, t, a) tmp = 0.0; end
code[x_, y_, z_, t_, a_] := 0.0
\begin{array}{l}
\\
0
\end{array}
Initial program 77.7%
Taylor expanded in y around 0 35.4%
mul-1-neg35.4%
unsub-neg35.4%
associate-/l*47.5%
associate-/r/46.4%
Simplified46.4%
Taylor expanded in t around 0 20.1%
sub-neg20.1%
mul-1-neg20.1%
remove-double-neg20.1%
associate-/l*22.1%
div-sub22.1%
sub-neg22.1%
*-inverses22.1%
metadata-eval22.1%
Simplified22.1%
Taylor expanded in a around 0 2.8%
distribute-rgt1-in2.8%
metadata-eval2.8%
mul0-lft2.8%
Simplified2.8%
Final simplification2.8%
(FPCore (x y z t a) :precision binary64 t)
double code(double x, double y, double z, double t, double a) {
return t;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = t
end function
public static double code(double x, double y, double z, double t, double a) {
return t;
}
def code(x, y, z, t, a): return t
function code(x, y, z, t, a) return t end
function tmp = code(x, y, z, t, a) tmp = t; end
code[x_, y_, z_, t_, a_] := t
\begin{array}{l}
\\
t
\end{array}
Initial program 77.7%
Taylor expanded in z around inf 27.9%
Final simplification27.9%
herbie shell --seed 2024010
(FPCore (x y z t a)
:name "Numeric.Signal:interpolate from hsignal-0.2.7.1"
:precision binary64
(+ x (* (- y z) (/ (- t x) (- a z)))))