
(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(Float64(y - z) * 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[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{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(Float64(y - z) * 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[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ z (- y a))) (t_2 (+ t (* (/ a (/ z (- t x))) (/ (- a y) z)))))
(if (<= z -4.5e+114)
(- t_2 (pow (/ t_1 (- t x)) -1.0))
(if (<= z 2.9e+140)
(fma (/ (- y z) (- a z)) (- t x) x)
(+ t_2 (/ (- x t) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = z / (y - a);
double t_2 = t + ((a / (z / (t - x))) * ((a - y) / z));
double tmp;
if (z <= -4.5e+114) {
tmp = t_2 - pow((t_1 / (t - x)), -1.0);
} else if (z <= 2.9e+140) {
tmp = fma(((y - z) / (a - z)), (t - x), x);
} else {
tmp = t_2 + ((x - t) / t_1);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(z / Float64(y - a)) t_2 = Float64(t + Float64(Float64(a / Float64(z / Float64(t - x))) * Float64(Float64(a - y) / z))) tmp = 0.0 if (z <= -4.5e+114) tmp = Float64(t_2 - (Float64(t_1 / Float64(t - x)) ^ -1.0)); elseif (z <= 2.9e+140) tmp = fma(Float64(Float64(y - z) / Float64(a - z)), Float64(t - x), x); else tmp = Float64(t_2 + Float64(Float64(x - t) / t_1)); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t + N[(N[(a / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.5e+114], N[(t$95$2 - N[Power[N[(t$95$1 / N[(t - x), $MachinePrecision]), $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.9e+140], N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], N[(t$95$2 + N[(N[(x - t), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z}{y - a}\\
t_2 := t + \frac{a}{\frac{z}{t - x}} \cdot \frac{a - y}{z}\\
\mathbf{if}\;z \leq -4.5 \cdot 10^{+114}:\\
\;\;\;\;t_2 - {\left(\frac{t_1}{t - x}\right)}^{-1}\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{+140}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)\\
\mathbf{else}:\\
\;\;\;\;t_2 + \frac{x - t}{t_1}\\
\end{array}
\end{array}
if z < -4.5000000000000001e114Initial program 33.5%
associate-*l/65.8%
Simplified65.8%
Taylor expanded in z around -inf 44.6%
associate-+r+44.6%
mul-1-neg44.6%
distribute-rgt-out--44.6%
unsub-neg44.6%
Simplified81.8%
clear-num81.8%
inv-pow81.8%
Applied egg-rr81.8%
if -4.5000000000000001e114 < z < 2.8999999999999999e140Initial program 84.6%
+-commutative84.6%
associate-*l/90.0%
fma-def90.0%
Simplified90.0%
if 2.8999999999999999e140 < z Initial program 31.2%
associate-*l/68.1%
Simplified68.1%
Taylor expanded in z around -inf 53.6%
associate-+r+53.6%
mul-1-neg53.6%
distribute-rgt-out--53.6%
unsub-neg53.6%
Simplified96.3%
Final simplification89.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.4e+117) (not (<= z 1.5e+140))) (+ (+ t (* (/ a (/ z (- t x))) (/ (- a y) z))) (/ (- x t) (/ z (- y a)))) (fma (/ (- y z) (- a z)) (- t x) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.4e+117) || !(z <= 1.5e+140)) {
tmp = (t + ((a / (z / (t - x))) * ((a - y) / z))) + ((x - t) / (z / (y - a)));
} else {
tmp = fma(((y - z) / (a - z)), (t - x), x);
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.4e+117) || !(z <= 1.5e+140)) tmp = Float64(Float64(t + Float64(Float64(a / Float64(z / Float64(t - x))) * Float64(Float64(a - y) / z))) + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = fma(Float64(Float64(y - z) / Float64(a - z)), Float64(t - x), x); end return tmp end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.4e+117], N[Not[LessEqual[z, 1.5e+140]], $MachinePrecision]], N[(N[(t + N[(N[(a / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{+117} \lor \neg \left(z \leq 1.5 \cdot 10^{+140}\right):\\
\;\;\;\;\left(t + \frac{a}{\frac{z}{t - x}} \cdot \frac{a - y}{z}\right) + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)\\
\end{array}
\end{array}
if z < -1.39999999999999999e117 or 1.49999999999999998e140 < z Initial program 32.5%
associate-*l/66.8%
Simplified66.8%
Taylor expanded in z around -inf 48.6%
associate-+r+48.6%
mul-1-neg48.6%
distribute-rgt-out--48.6%
unsub-neg48.6%
Simplified88.1%
if -1.39999999999999999e117 < z < 1.49999999999999998e140Initial program 84.6%
+-commutative84.6%
associate-*l/90.0%
fma-def90.0%
Simplified90.0%
Final simplification89.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.05e+117) (not (<= z 1.55e+140))) (+ (+ t (* (/ a (/ z (- t x))) (/ (- a y) z))) (/ (- x t) (/ z (- y a)))) (+ x (* (- t x) (* (- y z) (/ 1.0 (- a z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.05e+117) || !(z <= 1.55e+140)) {
tmp = (t + ((a / (z / (t - x))) * ((a - y) / z))) + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((t - x) * ((y - z) * (1.0 / (a - z))));
}
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.05d+117)) .or. (.not. (z <= 1.55d+140))) then
tmp = (t + ((a / (z / (t - x))) * ((a - y) / z))) + ((x - t) / (z / (y - a)))
else
tmp = x + ((t - x) * ((y - z) * (1.0d0 / (a - z))))
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.05e+117) || !(z <= 1.55e+140)) {
tmp = (t + ((a / (z / (t - x))) * ((a - y) / z))) + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((t - x) * ((y - z) * (1.0 / (a - z))));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.05e+117) or not (z <= 1.55e+140): tmp = (t + ((a / (z / (t - x))) * ((a - y) / z))) + ((x - t) / (z / (y - a))) else: tmp = x + ((t - x) * ((y - z) * (1.0 / (a - z)))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.05e+117) || !(z <= 1.55e+140)) tmp = Float64(Float64(t + Float64(Float64(a / Float64(z / Float64(t - x))) * Float64(Float64(a - y) / z))) + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) * Float64(1.0 / Float64(a - z))))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.05e+117) || ~((z <= 1.55e+140))) tmp = (t + ((a / (z / (t - x))) * ((a - y) / z))) + ((x - t) / (z / (y - a))); else tmp = x + ((t - x) * ((y - z) * (1.0 / (a - z)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.05e+117], N[Not[LessEqual[z, 1.55e+140]], $MachinePrecision]], N[(N[(t + N[(N[(a / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] * N[(1.0 / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.05 \cdot 10^{+117} \lor \neg \left(z \leq 1.55 \cdot 10^{+140}\right):\\
\;\;\;\;\left(t + \frac{a}{\frac{z}{t - x}} \cdot \frac{a - y}{z}\right) + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(t - x\right) \cdot \left(\left(y - z\right) \cdot \frac{1}{a - z}\right)\\
\end{array}
\end{array}
if z < -2.05e117 or 1.55e140 < z Initial program 32.5%
associate-*l/66.8%
Simplified66.8%
Taylor expanded in z around -inf 48.6%
associate-+r+48.6%
mul-1-neg48.6%
distribute-rgt-out--48.6%
unsub-neg48.6%
Simplified88.1%
if -2.05e117 < z < 1.55e140Initial program 84.6%
associate-*l/90.0%
Simplified90.0%
clear-num89.9%
associate-/r/90.0%
Applied egg-rr90.0%
Final simplification89.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= z -1.35e+88)
t
(if (<= z -3.05e-170)
t_1
(if (<= z -4.6e-239)
(/ (* t y) a)
(if (<= z -1.3e-297)
t_1
(if (<= z 4.9e-297)
(/ t (/ a y))
(if (or (<= z 1.7e-7) (and (not (<= z 3e+51)) (<= z 5.5e+141)))
t_1
t))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -1.35e+88) {
tmp = t;
} else if (z <= -3.05e-170) {
tmp = t_1;
} else if (z <= -4.6e-239) {
tmp = (t * y) / a;
} else if (z <= -1.3e-297) {
tmp = t_1;
} else if (z <= 4.9e-297) {
tmp = t / (a / y);
} else if ((z <= 1.7e-7) || (!(z <= 3e+51) && (z <= 5.5e+141))) {
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 = x * (1.0d0 - (y / a))
if (z <= (-1.35d+88)) then
tmp = t
else if (z <= (-3.05d-170)) then
tmp = t_1
else if (z <= (-4.6d-239)) then
tmp = (t * y) / a
else if (z <= (-1.3d-297)) then
tmp = t_1
else if (z <= 4.9d-297) then
tmp = t / (a / y)
else if ((z <= 1.7d-7) .or. (.not. (z <= 3d+51)) .and. (z <= 5.5d+141)) 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 = x * (1.0 - (y / a));
double tmp;
if (z <= -1.35e+88) {
tmp = t;
} else if (z <= -3.05e-170) {
tmp = t_1;
} else if (z <= -4.6e-239) {
tmp = (t * y) / a;
} else if (z <= -1.3e-297) {
tmp = t_1;
} else if (z <= 4.9e-297) {
tmp = t / (a / y);
} else if ((z <= 1.7e-7) || (!(z <= 3e+51) && (z <= 5.5e+141))) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if z <= -1.35e+88: tmp = t elif z <= -3.05e-170: tmp = t_1 elif z <= -4.6e-239: tmp = (t * y) / a elif z <= -1.3e-297: tmp = t_1 elif z <= 4.9e-297: tmp = t / (a / y) elif (z <= 1.7e-7) or (not (z <= 3e+51) and (z <= 5.5e+141)): tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (z <= -1.35e+88) tmp = t; elseif (z <= -3.05e-170) tmp = t_1; elseif (z <= -4.6e-239) tmp = Float64(Float64(t * y) / a); elseif (z <= -1.3e-297) tmp = t_1; elseif (z <= 4.9e-297) tmp = Float64(t / Float64(a / y)); elseif ((z <= 1.7e-7) || (!(z <= 3e+51) && (z <= 5.5e+141))) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (z <= -1.35e+88) tmp = t; elseif (z <= -3.05e-170) tmp = t_1; elseif (z <= -4.6e-239) tmp = (t * y) / a; elseif (z <= -1.3e-297) tmp = t_1; elseif (z <= 4.9e-297) tmp = t / (a / y); elseif ((z <= 1.7e-7) || (~((z <= 3e+51)) && (z <= 5.5e+141))) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.35e+88], t, If[LessEqual[z, -3.05e-170], t$95$1, If[LessEqual[z, -4.6e-239], N[(N[(t * y), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[z, -1.3e-297], t$95$1, If[LessEqual[z, 4.9e-297], N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, 1.7e-7], And[N[Not[LessEqual[z, 3e+51]], $MachinePrecision], LessEqual[z, 5.5e+141]]], t$95$1, t]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;z \leq -1.35 \cdot 10^{+88}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -3.05 \cdot 10^{-170}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -4.6 \cdot 10^{-239}:\\
\;\;\;\;\frac{t \cdot y}{a}\\
\mathbf{elif}\;z \leq -1.3 \cdot 10^{-297}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 4.9 \cdot 10^{-297}:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-7} \lor \neg \left(z \leq 3 \cdot 10^{+51}\right) \land z \leq 5.5 \cdot 10^{+141}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.35000000000000008e88 or 1.69999999999999987e-7 < z < 3e51 or 5.49999999999999967e141 < z Initial program 39.2%
associate-*l/69.0%
Simplified69.0%
Taylor expanded in z around inf 53.2%
if -1.35000000000000008e88 < z < -3.05e-170 or -4.5999999999999998e-239 < z < -1.3e-297 or 4.89999999999999997e-297 < z < 1.69999999999999987e-7 or 3e51 < z < 5.49999999999999967e141Initial program 88.5%
associate-*l/92.9%
Simplified92.9%
Taylor expanded in z around 0 71.3%
Taylor expanded in x around inf 54.7%
mul-1-neg54.7%
unsub-neg54.7%
Simplified54.7%
if -3.05e-170 < z < -4.5999999999999998e-239Initial program 84.0%
associate-*l/77.2%
Simplified77.2%
Taylor expanded in x around 0 55.9%
Taylor expanded in z around 0 48.4%
if -1.3e-297 < z < 4.89999999999999997e-297Initial program 80.9%
associate-*l/99.7%
Simplified99.7%
Taylor expanded in x around 0 80.9%
Taylor expanded in z around 0 80.9%
associate-/l*100.0%
Simplified100.0%
Final simplification54.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (/ y (/ z (- t x)))))
(t_2 (- x (/ (- x t) (/ a (- y z)))))
(t_3 (+ x (* (- t x) (/ y a)))))
(if (<= a -7.6e+14)
t_2
(if (<= a -92000.0)
t_1
(if (<= a -1.2e-56)
t_3
(if (<= a 5.1e-18)
t_1
(if (<= a 110.0)
t_3
(if (<= a 3.1e+125) (* t (/ (- y z) (- a z))) t_2))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - (y / (z / (t - x)));
double t_2 = x - ((x - t) / (a / (y - z)));
double t_3 = x + ((t - x) * (y / a));
double tmp;
if (a <= -7.6e+14) {
tmp = t_2;
} else if (a <= -92000.0) {
tmp = t_1;
} else if (a <= -1.2e-56) {
tmp = t_3;
} else if (a <= 5.1e-18) {
tmp = t_1;
} else if (a <= 110.0) {
tmp = t_3;
} else if (a <= 3.1e+125) {
tmp = t * ((y - z) / (a - z));
} 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) :: t_3
real(8) :: tmp
t_1 = t - (y / (z / (t - x)))
t_2 = x - ((x - t) / (a / (y - z)))
t_3 = x + ((t - x) * (y / a))
if (a <= (-7.6d+14)) then
tmp = t_2
else if (a <= (-92000.0d0)) then
tmp = t_1
else if (a <= (-1.2d-56)) then
tmp = t_3
else if (a <= 5.1d-18) then
tmp = t_1
else if (a <= 110.0d0) then
tmp = t_3
else if (a <= 3.1d+125) then
tmp = t * ((y - z) / (a - z))
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 = t - (y / (z / (t - x)));
double t_2 = x - ((x - t) / (a / (y - z)));
double t_3 = x + ((t - x) * (y / a));
double tmp;
if (a <= -7.6e+14) {
tmp = t_2;
} else if (a <= -92000.0) {
tmp = t_1;
} else if (a <= -1.2e-56) {
tmp = t_3;
} else if (a <= 5.1e-18) {
tmp = t_1;
} else if (a <= 110.0) {
tmp = t_3;
} else if (a <= 3.1e+125) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - (y / (z / (t - x))) t_2 = x - ((x - t) / (a / (y - z))) t_3 = x + ((t - x) * (y / a)) tmp = 0 if a <= -7.6e+14: tmp = t_2 elif a <= -92000.0: tmp = t_1 elif a <= -1.2e-56: tmp = t_3 elif a <= 5.1e-18: tmp = t_1 elif a <= 110.0: tmp = t_3 elif a <= 3.1e+125: tmp = t * ((y - z) / (a - z)) else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(y / Float64(z / Float64(t - x)))) t_2 = Float64(x - Float64(Float64(x - t) / Float64(a / Float64(y - z)))) t_3 = Float64(x + Float64(Float64(t - x) * Float64(y / a))) tmp = 0.0 if (a <= -7.6e+14) tmp = t_2; elseif (a <= -92000.0) tmp = t_1; elseif (a <= -1.2e-56) tmp = t_3; elseif (a <= 5.1e-18) tmp = t_1; elseif (a <= 110.0) tmp = t_3; elseif (a <= 3.1e+125) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - (y / (z / (t - x))); t_2 = x - ((x - t) / (a / (y - z))); t_3 = x + ((t - x) * (y / a)); tmp = 0.0; if (a <= -7.6e+14) tmp = t_2; elseif (a <= -92000.0) tmp = t_1; elseif (a <= -1.2e-56) tmp = t_3; elseif (a <= 5.1e-18) tmp = t_1; elseif (a <= 110.0) tmp = t_3; elseif (a <= 3.1e+125) tmp = t * ((y - z) / (a - z)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(y / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(N[(x - t), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.6e+14], t$95$2, If[LessEqual[a, -92000.0], t$95$1, If[LessEqual[a, -1.2e-56], t$95$3, If[LessEqual[a, 5.1e-18], t$95$1, If[LessEqual[a, 110.0], t$95$3, If[LessEqual[a, 3.1e+125], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{y}{\frac{z}{t - x}}\\
t_2 := x - \frac{x - t}{\frac{a}{y - z}}\\
t_3 := x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{if}\;a \leq -7.6 \cdot 10^{+14}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -92000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.2 \cdot 10^{-56}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 5.1 \cdot 10^{-18}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 110:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{+125}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -7.6e14 or 3.1e125 < a Initial program 73.4%
associate-*l/93.0%
Simplified93.0%
Taylor expanded in a around inf 67.7%
associate-/l*82.4%
Simplified82.4%
if -7.6e14 < a < -92000 or -1.2e-56 < a < 5.09999999999999983e-18Initial program 69.8%
associate-*l/75.9%
Simplified75.9%
Taylor expanded in z around -inf 62.1%
associate-+r+62.1%
mul-1-neg62.1%
distribute-rgt-out--62.1%
unsub-neg62.1%
Simplified69.2%
Taylor expanded in a around 0 76.9%
associate-/l*77.4%
Simplified77.4%
if -92000 < a < -1.2e-56 or 5.09999999999999983e-18 < a < 110Initial program 87.5%
associate-*l/87.8%
Simplified87.8%
Taylor expanded in z around 0 76.1%
if 110 < a < 3.1e125Initial program 62.6%
associate-*l/82.7%
Simplified82.7%
Taylor expanded in x around 0 39.1%
associate-*r/62.5%
Simplified62.5%
Final simplification77.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (/ (- x t) (/ z (- y a)))))
(t_2 (- x (/ (- x t) (/ a (- y z))))))
(if (<= a -9e+14)
t_2
(if (<= a 3.6e-16)
t_1
(if (<= a 95.0)
(+ x (* (- t x) (/ y a)))
(if (<= a 3.1e+125) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((x - t) / (z / (y - a)));
double t_2 = x - ((x - t) / (a / (y - z)));
double tmp;
if (a <= -9e+14) {
tmp = t_2;
} else if (a <= 3.6e-16) {
tmp = t_1;
} else if (a <= 95.0) {
tmp = x + ((t - x) * (y / a));
} else if (a <= 3.1e+125) {
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 = t + ((x - t) / (z / (y - a)))
t_2 = x - ((x - t) / (a / (y - z)))
if (a <= (-9d+14)) then
tmp = t_2
else if (a <= 3.6d-16) then
tmp = t_1
else if (a <= 95.0d0) then
tmp = x + ((t - x) * (y / a))
else if (a <= 3.1d+125) 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 = t + ((x - t) / (z / (y - a)));
double t_2 = x - ((x - t) / (a / (y - z)));
double tmp;
if (a <= -9e+14) {
tmp = t_2;
} else if (a <= 3.6e-16) {
tmp = t_1;
} else if (a <= 95.0) {
tmp = x + ((t - x) * (y / a));
} else if (a <= 3.1e+125) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((x - t) / (z / (y - a))) t_2 = x - ((x - t) / (a / (y - z))) tmp = 0 if a <= -9e+14: tmp = t_2 elif a <= 3.6e-16: tmp = t_1 elif a <= 95.0: tmp = x + ((t - x) * (y / a)) elif a <= 3.1e+125: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))) t_2 = Float64(x - Float64(Float64(x - t) / Float64(a / Float64(y - z)))) tmp = 0.0 if (a <= -9e+14) tmp = t_2; elseif (a <= 3.6e-16) tmp = t_1; elseif (a <= 95.0) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (a <= 3.1e+125) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((x - t) / (z / (y - a))); t_2 = x - ((x - t) / (a / (y - z))); tmp = 0.0; if (a <= -9e+14) tmp = t_2; elseif (a <= 3.6e-16) tmp = t_1; elseif (a <= 95.0) tmp = x + ((t - x) * (y / a)); elseif (a <= 3.1e+125) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(N[(x - t), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9e+14], t$95$2, If[LessEqual[a, 3.6e-16], t$95$1, If[LessEqual[a, 95.0], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.1e+125], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{x - t}{\frac{z}{y - a}}\\
t_2 := x - \frac{x - t}{\frac{a}{y - z}}\\
\mathbf{if}\;a \leq -9 \cdot 10^{+14}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 3.6 \cdot 10^{-16}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 95:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{+125}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -9e14 or 3.1e125 < a Initial program 73.4%
associate-*l/93.0%
Simplified93.0%
Taylor expanded in a around inf 67.7%
associate-/l*82.4%
Simplified82.4%
if -9e14 < a < 3.59999999999999983e-16 or 95 < a < 3.1e125Initial program 69.4%
associate-*l/77.6%
Simplified77.6%
Taylor expanded in z around inf 70.7%
associate--l+70.7%
associate-*r/70.7%
associate-*r/70.7%
div-sub72.1%
distribute-lft-out--72.1%
mul-1-neg72.1%
distribute-neg-frac72.1%
distribute-rgt-out--72.1%
unsub-neg72.1%
associate-/l*78.9%
Simplified78.9%
if 3.59999999999999983e-16 < a < 95Initial program 100.0%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in z around 0 100.0%
Final simplification80.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (/ (- x t) (/ z (- y a))))))
(if (<= a -8.2e+14)
(- x (* (- t x) (* (- y z) (/ -1.0 a))))
(if (<= a 6.6e-18)
t_1
(if (<= a 16.0)
(+ x (* (- t x) (/ y a)))
(if (<= a 3.1e+125) t_1 (- x (/ (- x t) (/ a (- y z))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((x - t) / (z / (y - a)));
double tmp;
if (a <= -8.2e+14) {
tmp = x - ((t - x) * ((y - z) * (-1.0 / a)));
} else if (a <= 6.6e-18) {
tmp = t_1;
} else if (a <= 16.0) {
tmp = x + ((t - x) * (y / a));
} else if (a <= 3.1e+125) {
tmp = t_1;
} else {
tmp = x - ((x - t) / (a / (y - z)));
}
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 - t) / (z / (y - a)))
if (a <= (-8.2d+14)) then
tmp = x - ((t - x) * ((y - z) * ((-1.0d0) / a)))
else if (a <= 6.6d-18) then
tmp = t_1
else if (a <= 16.0d0) then
tmp = x + ((t - x) * (y / a))
else if (a <= 3.1d+125) then
tmp = t_1
else
tmp = x - ((x - t) / (a / (y - z)))
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 - t) / (z / (y - a)));
double tmp;
if (a <= -8.2e+14) {
tmp = x - ((t - x) * ((y - z) * (-1.0 / a)));
} else if (a <= 6.6e-18) {
tmp = t_1;
} else if (a <= 16.0) {
tmp = x + ((t - x) * (y / a));
} else if (a <= 3.1e+125) {
tmp = t_1;
} else {
tmp = x - ((x - t) / (a / (y - z)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((x - t) / (z / (y - a))) tmp = 0 if a <= -8.2e+14: tmp = x - ((t - x) * ((y - z) * (-1.0 / a))) elif a <= 6.6e-18: tmp = t_1 elif a <= 16.0: tmp = x + ((t - x) * (y / a)) elif a <= 3.1e+125: tmp = t_1 else: tmp = x - ((x - t) / (a / (y - z))) return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))) tmp = 0.0 if (a <= -8.2e+14) tmp = Float64(x - Float64(Float64(t - x) * Float64(Float64(y - z) * Float64(-1.0 / a)))); elseif (a <= 6.6e-18) tmp = t_1; elseif (a <= 16.0) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (a <= 3.1e+125) tmp = t_1; else tmp = Float64(x - Float64(Float64(x - t) / Float64(a / Float64(y - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((x - t) / (z / (y - a))); tmp = 0.0; if (a <= -8.2e+14) tmp = x - ((t - x) * ((y - z) * (-1.0 / a))); elseif (a <= 6.6e-18) tmp = t_1; elseif (a <= 16.0) tmp = x + ((t - x) * (y / a)); elseif (a <= 3.1e+125) tmp = t_1; else tmp = x - ((x - t) / (a / (y - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.2e+14], N[(x - N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] * N[(-1.0 / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.6e-18], t$95$1, If[LessEqual[a, 16.0], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.1e+125], t$95$1, N[(x - N[(N[(x - t), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{if}\;a \leq -8.2 \cdot 10^{+14}:\\
\;\;\;\;x - \left(t - x\right) \cdot \left(\left(y - z\right) \cdot \frac{-1}{a}\right)\\
\mathbf{elif}\;a \leq 6.6 \cdot 10^{-18}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 16:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{+125}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x - t}{\frac{a}{y - z}}\\
\end{array}
\end{array}
if a < -8.2e14Initial program 72.3%
associate-*l/90.7%
Simplified90.7%
clear-num90.5%
associate-/r/90.6%
Applied egg-rr90.6%
Taylor expanded in a around inf 79.5%
if -8.2e14 < a < 6.6000000000000003e-18 or 16 < a < 3.1e125Initial program 69.4%
associate-*l/77.6%
Simplified77.6%
Taylor expanded in z around inf 70.7%
associate--l+70.7%
associate-*r/70.7%
associate-*r/70.7%
div-sub72.1%
distribute-lft-out--72.1%
mul-1-neg72.1%
distribute-neg-frac72.1%
distribute-rgt-out--72.1%
unsub-neg72.1%
associate-/l*78.9%
Simplified78.9%
if 6.6000000000000003e-18 < a < 16Initial program 100.0%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in z around 0 100.0%
if 3.1e125 < a Initial program 74.7%
associate-*l/95.9%
Simplified95.9%
Taylor expanded in a around inf 67.9%
associate-/l*86.2%
Simplified86.2%
Final simplification80.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.4e+115) (not (<= z 6.2e+140))) (+ t (/ (- x t) (/ z (- y a)))) (+ x (* (- t x) (* (- y z) (/ 1.0 (- a z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.4e+115) || !(z <= 6.2e+140)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((t - x) * ((y - z) * (1.0 / (a - z))));
}
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 <= (-1.4d+115)) .or. (.not. (z <= 6.2d+140))) then
tmp = t + ((x - t) / (z / (y - a)))
else
tmp = x + ((t - x) * ((y - z) * (1.0d0 / (a - z))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.4e+115) || !(z <= 6.2e+140)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((t - x) * ((y - z) * (1.0 / (a - z))));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.4e+115) or not (z <= 6.2e+140): tmp = t + ((x - t) / (z / (y - a))) else: tmp = x + ((t - x) * ((y - z) * (1.0 / (a - z)))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.4e+115) || !(z <= 6.2e+140)) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) * Float64(1.0 / Float64(a - z))))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.4e+115) || ~((z <= 6.2e+140))) tmp = t + ((x - t) / (z / (y - a))); else tmp = x + ((t - x) * ((y - z) * (1.0 / (a - z)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.4e+115], N[Not[LessEqual[z, 6.2e+140]], $MachinePrecision]], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] * N[(1.0 / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{+115} \lor \neg \left(z \leq 6.2 \cdot 10^{+140}\right):\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(t - x\right) \cdot \left(\left(y - z\right) \cdot \frac{1}{a - z}\right)\\
\end{array}
\end{array}
if z < -1.4e115 or 6.2000000000000001e140 < z Initial program 32.5%
associate-*l/66.8%
Simplified66.8%
Taylor expanded in z around inf 62.3%
associate--l+62.3%
associate-*r/62.3%
associate-*r/62.3%
div-sub62.3%
distribute-lft-out--62.3%
mul-1-neg62.3%
distribute-neg-frac62.3%
distribute-rgt-out--62.3%
unsub-neg62.3%
associate-/l*87.5%
Simplified87.5%
if -1.4e115 < z < 6.2000000000000001e140Initial program 84.6%
associate-*l/90.0%
Simplified90.0%
clear-num89.9%
associate-/r/90.0%
Applied egg-rr90.0%
Final simplification89.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= t -8.2e-144)
t_1
(if (<= t 8.2e-235)
(- x (/ x (/ a y)))
(if (<= t 1.15e-181)
(/ (- x) (/ (- a z) y))
(if (<= t 5e-69) (- x (/ (* x y) a)) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (t <= -8.2e-144) {
tmp = t_1;
} else if (t <= 8.2e-235) {
tmp = x - (x / (a / y));
} else if (t <= 1.15e-181) {
tmp = -x / ((a - z) / y);
} else if (t <= 5e-69) {
tmp = x - ((x * 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 * ((y - z) / (a - z))
if (t <= (-8.2d-144)) then
tmp = t_1
else if (t <= 8.2d-235) then
tmp = x - (x / (a / y))
else if (t <= 1.15d-181) then
tmp = -x / ((a - z) / y)
else if (t <= 5d-69) then
tmp = x - ((x * 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 * ((y - z) / (a - z));
double tmp;
if (t <= -8.2e-144) {
tmp = t_1;
} else if (t <= 8.2e-235) {
tmp = x - (x / (a / y));
} else if (t <= 1.15e-181) {
tmp = -x / ((a - z) / y);
} else if (t <= 5e-69) {
tmp = x - ((x * y) / a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if t <= -8.2e-144: tmp = t_1 elif t <= 8.2e-235: tmp = x - (x / (a / y)) elif t <= 1.15e-181: tmp = -x / ((a - z) / y) elif t <= 5e-69: tmp = x - ((x * y) / a) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (t <= -8.2e-144) tmp = t_1; elseif (t <= 8.2e-235) tmp = Float64(x - Float64(x / Float64(a / y))); elseif (t <= 1.15e-181) tmp = Float64(Float64(-x) / Float64(Float64(a - z) / y)); elseif (t <= 5e-69) tmp = Float64(x - Float64(Float64(x * y) / a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (t <= -8.2e-144) tmp = t_1; elseif (t <= 8.2e-235) tmp = x - (x / (a / y)); elseif (t <= 1.15e-181) tmp = -x / ((a - z) / y); elseif (t <= 5e-69) tmp = x - ((x * y) / a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.2e-144], t$95$1, If[LessEqual[t, 8.2e-235], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.15e-181], N[((-x) / N[(N[(a - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5e-69], N[(x - N[(N[(x * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;t \leq -8.2 \cdot 10^{-144}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{-235}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-181}:\\
\;\;\;\;\frac{-x}{\frac{a - z}{y}}\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-69}:\\
\;\;\;\;x - \frac{x \cdot y}{a}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -8.2e-144 or 5.00000000000000033e-69 < t Initial program 72.3%
associate-*l/91.0%
Simplified91.0%
Taylor expanded in x around 0 50.7%
associate-*r/64.8%
Simplified64.8%
if -8.2e-144 < t < 8.19999999999999993e-235Initial program 71.8%
associate-*l/72.3%
Simplified72.3%
Taylor expanded in z around 0 59.2%
Taylor expanded in t around 0 57.6%
mul-1-neg57.6%
unsub-neg57.6%
associate-/l*59.1%
Simplified59.1%
if 8.19999999999999993e-235 < t < 1.14999999999999995e-181Initial program 67.4%
associate-*l/67.6%
Simplified67.6%
Taylor expanded in y around -inf 70.2%
Taylor expanded in t around 0 70.2%
mul-1-neg70.2%
associate-/l*70.7%
distribute-neg-frac70.7%
Simplified70.7%
if 1.14999999999999995e-181 < t < 5.00000000000000033e-69Initial program 67.3%
associate-*l/58.3%
Simplified58.3%
Taylor expanded in z around 0 41.9%
Taylor expanded in t around 0 40.3%
associate-*r/40.3%
*-commutative40.3%
associate-*r*40.3%
neg-mul-140.3%
Simplified40.3%
Final simplification62.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.85e+117) (not (<= z 7.4e+170))) (+ t (/ (- x t) (/ z (- y a)))) (- x (* (- t x) (/ (- z y) (- a z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.85e+117) || !(z <= 7.4e+170)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x - ((t - x) * ((z - y) / (a - z)));
}
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.85d+117)) .or. (.not. (z <= 7.4d+170))) then
tmp = t + ((x - t) / (z / (y - a)))
else
tmp = x - ((t - x) * ((z - y) / (a - z)))
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.85e+117) || !(z <= 7.4e+170)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x - ((t - x) * ((z - y) / (a - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.85e+117) or not (z <= 7.4e+170): tmp = t + ((x - t) / (z / (y - a))) else: tmp = x - ((t - x) * ((z - y) / (a - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.85e+117) || !(z <= 7.4e+170)) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = Float64(x - Float64(Float64(t - x) * Float64(Float64(z - y) / Float64(a - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.85e+117) || ~((z <= 7.4e+170))) tmp = t + ((x - t) / (z / (y - a))); else tmp = x - ((t - x) * ((z - y) / (a - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.85e+117], N[Not[LessEqual[z, 7.4e+170]], $MachinePrecision]], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(t - x), $MachinePrecision] * N[(N[(z - y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.85 \cdot 10^{+117} \lor \neg \left(z \leq 7.4 \cdot 10^{+170}\right):\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;x - \left(t - x\right) \cdot \frac{z - y}{a - z}\\
\end{array}
\end{array}
if z < -2.85000000000000012e117 or 7.39999999999999975e170 < z Initial program 32.3%
associate-*l/66.3%
Simplified66.3%
Taylor expanded in z around inf 61.5%
associate--l+61.5%
associate-*r/61.5%
associate-*r/61.5%
div-sub61.5%
distribute-lft-out--61.5%
mul-1-neg61.5%
distribute-neg-frac61.5%
distribute-rgt-out--61.5%
unsub-neg61.5%
associate-/l*88.8%
Simplified88.8%
if -2.85000000000000012e117 < z < 7.39999999999999975e170Initial program 83.3%
associate-*l/89.6%
Simplified89.6%
Final simplification89.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- t x) (- a z)))))
(if (<= y -2.4e-75)
t_1
(if (<= y 6.8e-82)
(* t (/ (- y z) (- a z)))
(if (<= y 8e+74) (* x (+ (/ z (- a z)) 1.0)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((t - x) / (a - z));
double tmp;
if (y <= -2.4e-75) {
tmp = t_1;
} else if (y <= 6.8e-82) {
tmp = t * ((y - z) / (a - z));
} else if (y <= 8e+74) {
tmp = x * ((z / (a - z)) + 1.0);
} 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 = y * ((t - x) / (a - z))
if (y <= (-2.4d-75)) then
tmp = t_1
else if (y <= 6.8d-82) then
tmp = t * ((y - z) / (a - z))
else if (y <= 8d+74) then
tmp = x * ((z / (a - z)) + 1.0d0)
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 = y * ((t - x) / (a - z));
double tmp;
if (y <= -2.4e-75) {
tmp = t_1;
} else if (y <= 6.8e-82) {
tmp = t * ((y - z) / (a - z));
} else if (y <= 8e+74) {
tmp = x * ((z / (a - z)) + 1.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((t - x) / (a - z)) tmp = 0 if y <= -2.4e-75: tmp = t_1 elif y <= 6.8e-82: tmp = t * ((y - z) / (a - z)) elif y <= 8e+74: tmp = x * ((z / (a - z)) + 1.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(t - x) / Float64(a - z))) tmp = 0.0 if (y <= -2.4e-75) tmp = t_1; elseif (y <= 6.8e-82) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (y <= 8e+74) tmp = Float64(x * Float64(Float64(z / Float64(a - z)) + 1.0)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((t - x) / (a - z)); tmp = 0.0; if (y <= -2.4e-75) tmp = t_1; elseif (y <= 6.8e-82) tmp = t * ((y - z) / (a - z)); elseif (y <= 8e+74) tmp = x * ((z / (a - z)) + 1.0); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.4e-75], t$95$1, If[LessEqual[y, 6.8e-82], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8e+74], N[(x * N[(N[(z / N[(a - z), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;y \leq -2.4 \cdot 10^{-75}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{-82}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;y \leq 8 \cdot 10^{+74}:\\
\;\;\;\;x \cdot \left(\frac{z}{a - z} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -2.40000000000000019e-75 or 7.99999999999999961e74 < y Initial program 77.9%
associate-*l/90.3%
Simplified90.3%
Taylor expanded in y around inf 73.7%
div-sub76.1%
Simplified76.1%
if -2.40000000000000019e-75 < y < 6.7999999999999995e-82Initial program 67.0%
associate-*l/75.9%
Simplified75.9%
Taylor expanded in x around 0 37.6%
associate-*r/48.4%
Simplified48.4%
if 6.7999999999999995e-82 < y < 7.99999999999999961e74Initial program 59.0%
associate-*l/84.8%
Simplified84.8%
Taylor expanded in y around 0 53.2%
mul-1-neg53.2%
associate-*r/69.2%
unsub-neg69.2%
Simplified69.2%
Taylor expanded in x around -inf 55.8%
Final simplification63.2%
(FPCore (x y z t a)
:precision binary64
(if (<= y -1.2e-75)
(* (- t x) (/ y (- a z)))
(if (<= y 1.85e-81)
(* t (/ (- y z) (- a z)))
(if (<= y 6e+74) (* x (+ (/ z (- a z)) 1.0)) (* y (/ (- t x) (- a z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -1.2e-75) {
tmp = (t - x) * (y / (a - z));
} else if (y <= 1.85e-81) {
tmp = t * ((y - z) / (a - z));
} else if (y <= 6e+74) {
tmp = x * ((z / (a - z)) + 1.0);
} else {
tmp = y * ((t - x) / (a - z));
}
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 (y <= (-1.2d-75)) then
tmp = (t - x) * (y / (a - z))
else if (y <= 1.85d-81) then
tmp = t * ((y - z) / (a - z))
else if (y <= 6d+74) then
tmp = x * ((z / (a - z)) + 1.0d0)
else
tmp = y * ((t - x) / (a - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -1.2e-75) {
tmp = (t - x) * (y / (a - z));
} else if (y <= 1.85e-81) {
tmp = t * ((y - z) / (a - z));
} else if (y <= 6e+74) {
tmp = x * ((z / (a - z)) + 1.0);
} else {
tmp = y * ((t - x) / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -1.2e-75: tmp = (t - x) * (y / (a - z)) elif y <= 1.85e-81: tmp = t * ((y - z) / (a - z)) elif y <= 6e+74: tmp = x * ((z / (a - z)) + 1.0) else: tmp = y * ((t - x) / (a - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -1.2e-75) tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z))); elseif (y <= 1.85e-81) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (y <= 6e+74) tmp = Float64(x * Float64(Float64(z / Float64(a - z)) + 1.0)); else tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -1.2e-75) tmp = (t - x) * (y / (a - z)); elseif (y <= 1.85e-81) tmp = t * ((y - z) / (a - z)); elseif (y <= 6e+74) tmp = x * ((z / (a - z)) + 1.0); else tmp = y * ((t - x) / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -1.2e-75], N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.85e-81], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6e+74], N[(x * N[(N[(z / N[(a - z), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.2 \cdot 10^{-75}:\\
\;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
\mathbf{elif}\;y \leq 1.85 \cdot 10^{-81}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;y \leq 6 \cdot 10^{+74}:\\
\;\;\;\;x \cdot \left(\frac{z}{a - z} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\end{array}
\end{array}
if y < -1.2000000000000001e-75Initial program 80.7%
associate-*l/91.7%
Simplified91.7%
clear-num91.5%
associate-/r/91.5%
Applied egg-rr91.5%
+-commutative91.5%
associate-*l*80.6%
fma-def80.7%
Applied egg-rr80.7%
Taylor expanded in y around inf 71.0%
div-sub72.4%
associate-*r/67.7%
associate-*l/72.4%
*-commutative72.4%
Simplified72.4%
if -1.2000000000000001e-75 < y < 1.84999999999999993e-81Initial program 67.0%
associate-*l/75.9%
Simplified75.9%
Taylor expanded in x around 0 37.6%
associate-*r/48.4%
Simplified48.4%
if 1.84999999999999993e-81 < y < 6e74Initial program 59.0%
associate-*l/84.8%
Simplified84.8%
Taylor expanded in y around 0 53.2%
mul-1-neg53.2%
associate-*r/69.2%
unsub-neg69.2%
Simplified69.2%
Taylor expanded in x around -inf 55.8%
if 6e74 < y Initial program 73.9%
associate-*l/88.3%
Simplified88.3%
Taylor expanded in y around inf 77.6%
div-sub81.3%
Simplified81.3%
Final simplification63.2%
(FPCore (x y z t a)
:precision binary64
(if (<= a -3e-65)
x
(if (<= a -6.8e-184)
(* y (- (/ t z)))
(if (<= a 1.2e-113)
t
(if (<= a 7e-56) (* y (/ t a)) (if (<= a 6e+125) t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3e-65) {
tmp = x;
} else if (a <= -6.8e-184) {
tmp = y * -(t / z);
} else if (a <= 1.2e-113) {
tmp = t;
} else if (a <= 7e-56) {
tmp = y * (t / a);
} else if (a <= 6e+125) {
tmp = t;
} else {
tmp = 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 (a <= (-3d-65)) then
tmp = x
else if (a <= (-6.8d-184)) then
tmp = y * -(t / z)
else if (a <= 1.2d-113) then
tmp = t
else if (a <= 7d-56) then
tmp = y * (t / a)
else if (a <= 6d+125) then
tmp = t
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3e-65) {
tmp = x;
} else if (a <= -6.8e-184) {
tmp = y * -(t / z);
} else if (a <= 1.2e-113) {
tmp = t;
} else if (a <= 7e-56) {
tmp = y * (t / a);
} else if (a <= 6e+125) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3e-65: tmp = x elif a <= -6.8e-184: tmp = y * -(t / z) elif a <= 1.2e-113: tmp = t elif a <= 7e-56: tmp = y * (t / a) elif a <= 6e+125: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3e-65) tmp = x; elseif (a <= -6.8e-184) tmp = Float64(y * Float64(-Float64(t / z))); elseif (a <= 1.2e-113) tmp = t; elseif (a <= 7e-56) tmp = Float64(y * Float64(t / a)); elseif (a <= 6e+125) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3e-65) tmp = x; elseif (a <= -6.8e-184) tmp = y * -(t / z); elseif (a <= 1.2e-113) tmp = t; elseif (a <= 7e-56) tmp = y * (t / a); elseif (a <= 6e+125) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3e-65], x, If[LessEqual[a, -6.8e-184], N[(y * (-N[(t / z), $MachinePrecision])), $MachinePrecision], If[LessEqual[a, 1.2e-113], t, If[LessEqual[a, 7e-56], N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6e+125], t, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3 \cdot 10^{-65}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -6.8 \cdot 10^{-184}:\\
\;\;\;\;y \cdot \left(-\frac{t}{z}\right)\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{-113}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 7 \cdot 10^{-56}:\\
\;\;\;\;y \cdot \frac{t}{a}\\
\mathbf{elif}\;a \leq 6 \cdot 10^{+125}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -2.99999999999999998e-65 or 6.0000000000000003e125 < a Initial program 70.9%
associate-*l/90.5%
Simplified90.5%
Taylor expanded in a around inf 42.9%
if -2.99999999999999998e-65 < a < -6.80000000000000008e-184Initial program 90.7%
associate-*l/85.7%
Simplified85.7%
Taylor expanded in x around 0 72.8%
Taylor expanded in a around 0 62.6%
mul-1-neg62.6%
associate-/l*52.5%
distribute-neg-frac52.5%
Simplified52.5%
Taylor expanded in z around 0 62.6%
mul-1-neg62.6%
unsub-neg62.6%
associate-/l*52.5%
Simplified52.5%
Taylor expanded in z around 0 57.3%
mul-1-neg57.3%
associate-*l/52.0%
*-commutative52.0%
distribute-rgt-neg-in52.0%
distribute-neg-frac52.0%
Simplified52.0%
if -6.80000000000000008e-184 < a < 1.20000000000000006e-113 or 6.9999999999999996e-56 < a < 6.0000000000000003e125Initial program 67.3%
associate-*l/76.2%
Simplified76.2%
Taylor expanded in z around inf 40.6%
if 1.20000000000000006e-113 < a < 6.9999999999999996e-56Initial program 91.2%
associate-*l/90.2%
Simplified90.2%
Taylor expanded in x around 0 81.5%
Taylor expanded in z around 0 60.7%
associate-/l*51.4%
Simplified51.4%
associate-/r/61.2%
Applied egg-rr61.2%
Final simplification43.3%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.42e-65)
x
(if (<= a -2.3e-180)
(/ (- (* t y)) z)
(if (<= a 9.8e-114)
t
(if (<= a 5.9e-58) (* y (/ t a)) (if (<= a 6.2e+125) t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.42e-65) {
tmp = x;
} else if (a <= -2.3e-180) {
tmp = -(t * y) / z;
} else if (a <= 9.8e-114) {
tmp = t;
} else if (a <= 5.9e-58) {
tmp = y * (t / a);
} else if (a <= 6.2e+125) {
tmp = t;
} else {
tmp = 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 (a <= (-1.42d-65)) then
tmp = x
else if (a <= (-2.3d-180)) then
tmp = -(t * y) / z
else if (a <= 9.8d-114) then
tmp = t
else if (a <= 5.9d-58) then
tmp = y * (t / a)
else if (a <= 6.2d+125) then
tmp = t
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.42e-65) {
tmp = x;
} else if (a <= -2.3e-180) {
tmp = -(t * y) / z;
} else if (a <= 9.8e-114) {
tmp = t;
} else if (a <= 5.9e-58) {
tmp = y * (t / a);
} else if (a <= 6.2e+125) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.42e-65: tmp = x elif a <= -2.3e-180: tmp = -(t * y) / z elif a <= 9.8e-114: tmp = t elif a <= 5.9e-58: tmp = y * (t / a) elif a <= 6.2e+125: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.42e-65) tmp = x; elseif (a <= -2.3e-180) tmp = Float64(Float64(-Float64(t * y)) / z); elseif (a <= 9.8e-114) tmp = t; elseif (a <= 5.9e-58) tmp = Float64(y * Float64(t / a)); elseif (a <= 6.2e+125) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.42e-65) tmp = x; elseif (a <= -2.3e-180) tmp = -(t * y) / z; elseif (a <= 9.8e-114) tmp = t; elseif (a <= 5.9e-58) tmp = y * (t / a); elseif (a <= 6.2e+125) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.42e-65], x, If[LessEqual[a, -2.3e-180], N[((-N[(t * y), $MachinePrecision]) / z), $MachinePrecision], If[LessEqual[a, 9.8e-114], t, If[LessEqual[a, 5.9e-58], N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.2e+125], t, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.42 \cdot 10^{-65}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -2.3 \cdot 10^{-180}:\\
\;\;\;\;\frac{-t \cdot y}{z}\\
\mathbf{elif}\;a \leq 9.8 \cdot 10^{-114}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 5.9 \cdot 10^{-58}:\\
\;\;\;\;y \cdot \frac{t}{a}\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{+125}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.41999999999999993e-65 or 6.2e125 < a Initial program 70.9%
associate-*l/90.5%
Simplified90.5%
Taylor expanded in a around inf 42.9%
if -1.41999999999999993e-65 < a < -2.29999999999999996e-180Initial program 90.3%
associate-*l/84.9%
Simplified84.9%
Taylor expanded in x around 0 76.8%
Taylor expanded in a around 0 66.1%
mul-1-neg66.1%
associate-/l*55.3%
distribute-neg-frac55.3%
Simplified55.3%
Taylor expanded in z around 0 60.3%
associate-*r/60.3%
mul-1-neg60.3%
distribute-rgt-neg-in60.3%
Simplified60.3%
if -2.29999999999999996e-180 < a < 9.7999999999999994e-114 or 5.9e-58 < a < 6.2e125Initial program 67.5%
associate-*l/76.4%
Simplified76.4%
Taylor expanded in z around inf 40.3%
if 9.7999999999999994e-114 < a < 5.9e-58Initial program 91.2%
associate-*l/90.2%
Simplified90.2%
Taylor expanded in x around 0 81.5%
Taylor expanded in z around 0 60.7%
associate-/l*51.4%
Simplified51.4%
associate-/r/61.2%
Applied egg-rr61.2%
Final simplification43.7%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* t (/ y (- a z))))) (if (<= y -1.6e-97) t_1 (if (<= y 2.55e-82) t (if (<= y 7e+74) x t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / (a - z));
double tmp;
if (y <= -1.6e-97) {
tmp = t_1;
} else if (y <= 2.55e-82) {
tmp = t;
} else if (y <= 7e+74) {
tmp = 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 * (y / (a - z))
if (y <= (-1.6d-97)) then
tmp = t_1
else if (y <= 2.55d-82) then
tmp = t
else if (y <= 7d+74) then
tmp = 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 * (y / (a - z));
double tmp;
if (y <= -1.6e-97) {
tmp = t_1;
} else if (y <= 2.55e-82) {
tmp = t;
} else if (y <= 7e+74) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (y / (a - z)) tmp = 0 if y <= -1.6e-97: tmp = t_1 elif y <= 2.55e-82: tmp = t elif y <= 7e+74: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(y / Float64(a - z))) tmp = 0.0 if (y <= -1.6e-97) tmp = t_1; elseif (y <= 2.55e-82) tmp = t; elseif (y <= 7e+74) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (y / (a - z)); tmp = 0.0; if (y <= -1.6e-97) tmp = t_1; elseif (y <= 2.55e-82) tmp = t; elseif (y <= 7e+74) tmp = x; else tmp = t_1; 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[y, -1.6e-97], t$95$1, If[LessEqual[y, 2.55e-82], t, If[LessEqual[y, 7e+74], x, t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y}{a - z}\\
\mathbf{if}\;y \leq -1.6 \cdot 10^{-97}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.55 \cdot 10^{-82}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 7 \cdot 10^{+74}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.5999999999999999e-97 or 7.00000000000000029e74 < y Initial program 78.4%
associate-*l/90.5%
Simplified90.5%
Taylor expanded in x around 0 48.2%
associate-*r/54.1%
Simplified54.1%
Taylor expanded in y around inf 44.1%
if -1.5999999999999999e-97 < y < 2.54999999999999996e-82Initial program 65.9%
associate-*l/75.1%
Simplified75.1%
Taylor expanded in z around inf 42.2%
if 2.54999999999999996e-82 < y < 7.00000000000000029e74Initial program 59.0%
associate-*l/84.8%
Simplified84.8%
Taylor expanded in a around inf 52.4%
Final simplification44.4%
(FPCore (x y z t a)
:precision binary64
(if (<= a -3.6e-58)
(* x (- 1.0 (/ y a)))
(if (<= a 1.35e-269)
(/ (- y) (/ z (- t x)))
(if (<= a 1.6e+126) (- t (/ t (/ z y))) (- x (/ x (/ a y)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.6e-58) {
tmp = x * (1.0 - (y / a));
} else if (a <= 1.35e-269) {
tmp = -y / (z / (t - x));
} else if (a <= 1.6e+126) {
tmp = t - (t / (z / y));
} else {
tmp = x - (x / (a / y));
}
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 <= (-3.6d-58)) then
tmp = x * (1.0d0 - (y / a))
else if (a <= 1.35d-269) then
tmp = -y / (z / (t - x))
else if (a <= 1.6d+126) then
tmp = t - (t / (z / y))
else
tmp = x - (x / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.6e-58) {
tmp = x * (1.0 - (y / a));
} else if (a <= 1.35e-269) {
tmp = -y / (z / (t - x));
} else if (a <= 1.6e+126) {
tmp = t - (t / (z / y));
} else {
tmp = x - (x / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.6e-58: tmp = x * (1.0 - (y / a)) elif a <= 1.35e-269: tmp = -y / (z / (t - x)) elif a <= 1.6e+126: tmp = t - (t / (z / y)) else: tmp = x - (x / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.6e-58) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (a <= 1.35e-269) tmp = Float64(Float64(-y) / Float64(z / Float64(t - x))); elseif (a <= 1.6e+126) tmp = Float64(t - Float64(t / Float64(z / y))); else tmp = Float64(x - Float64(x / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3.6e-58) tmp = x * (1.0 - (y / a)); elseif (a <= 1.35e-269) tmp = -y / (z / (t - x)); elseif (a <= 1.6e+126) tmp = t - (t / (z / y)); else tmp = x - (x / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.6e-58], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.35e-269], N[((-y) / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e+126], N[(t - N[(t / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.6 \cdot 10^{-58}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{-269}:\\
\;\;\;\;\frac{-y}{\frac{z}{t - x}}\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{+126}:\\
\;\;\;\;t - \frac{t}{\frac{z}{y}}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\end{array}
\end{array}
if a < -3.60000000000000009e-58Initial program 68.6%
associate-*l/87.8%
Simplified87.8%
Taylor expanded in z around 0 65.4%
Taylor expanded in x around inf 44.8%
mul-1-neg44.8%
unsub-neg44.8%
Simplified44.8%
if -3.60000000000000009e-58 < a < 1.35000000000000008e-269Initial program 74.5%
associate-*l/78.1%
Simplified78.1%
Taylor expanded in y around -inf 69.6%
Taylor expanded in a around 0 59.2%
mul-1-neg59.2%
associate-/l*58.9%
Simplified58.9%
if 1.35000000000000008e-269 < a < 1.5999999999999999e126Initial program 70.5%
associate-*l/78.5%
Simplified78.5%
Taylor expanded in x around 0 54.2%
Taylor expanded in a around 0 46.6%
mul-1-neg46.6%
associate-/l*57.2%
distribute-neg-frac57.2%
Simplified57.2%
Taylor expanded in z around 0 54.7%
mul-1-neg54.7%
unsub-neg54.7%
associate-/l*57.2%
Simplified57.2%
if 1.5999999999999999e126 < a Initial program 74.7%
associate-*l/95.9%
Simplified95.9%
Taylor expanded in z around 0 79.2%
Taylor expanded in t around 0 53.2%
mul-1-neg53.2%
unsub-neg53.2%
associate-/l*58.7%
Simplified58.7%
Final simplification54.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.8e-31) (not (<= z 1.8e-16))) (* t (/ (- y z) (- a z))) (+ x (* (- t x) (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.8e-31) || !(z <= 1.8e-16)) {
tmp = t * ((y - z) / (a - z));
} 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 ((z <= (-1.8d-31)) .or. (.not. (z <= 1.8d-16))) then
tmp = t * ((y - z) / (a - z))
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 ((z <= -1.8e-31) || !(z <= 1.8e-16)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x + ((t - x) * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.8e-31) or not (z <= 1.8e-16): tmp = t * ((y - z) / (a - z)) else: tmp = x + ((t - x) * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.8e-31) || !(z <= 1.8e-16)) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); 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 ((z <= -1.8e-31) || ~((z <= 1.8e-16))) tmp = t * ((y - z) / (a - z)); else tmp = x + ((t - x) * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.8e-31], N[Not[LessEqual[z, 1.8e-16]], $MachinePrecision]], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.8 \cdot 10^{-31} \lor \neg \left(z \leq 1.8 \cdot 10^{-16}\right):\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -1.80000000000000002e-31 or 1.79999999999999991e-16 < z Initial program 51.5%
associate-*l/76.5%
Simplified76.5%
Taylor expanded in x around 0 39.7%
associate-*r/59.6%
Simplified59.6%
if -1.80000000000000002e-31 < z < 1.79999999999999991e-16Initial program 91.9%
associate-*l/92.1%
Simplified92.1%
Taylor expanded in z around 0 76.7%
Final simplification68.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -5.1e-31) (not (<= z 1.05e-16))) (- t (/ y (/ z (- t x)))) (+ x (* (- t x) (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -5.1e-31) || !(z <= 1.05e-16)) {
tmp = t - (y / (z / (t - x)));
} 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 ((z <= (-5.1d-31)) .or. (.not. (z <= 1.05d-16))) then
tmp = t - (y / (z / (t - x)))
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 ((z <= -5.1e-31) || !(z <= 1.05e-16)) {
tmp = t - (y / (z / (t - x)));
} else {
tmp = x + ((t - x) * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -5.1e-31) or not (z <= 1.05e-16): tmp = t - (y / (z / (t - x))) else: tmp = x + ((t - x) * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -5.1e-31) || !(z <= 1.05e-16)) tmp = Float64(t - Float64(y / Float64(z / Float64(t - x)))); 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 ((z <= -5.1e-31) || ~((z <= 1.05e-16))) tmp = t - (y / (z / (t - x))); else tmp = x + ((t - x) * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -5.1e-31], N[Not[LessEqual[z, 1.05e-16]], $MachinePrecision]], N[(t - N[(y / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.1 \cdot 10^{-31} \lor \neg \left(z \leq 1.05 \cdot 10^{-16}\right):\\
\;\;\;\;t - \frac{y}{\frac{z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -5.0999999999999997e-31 or 1.0500000000000001e-16 < z Initial program 51.5%
associate-*l/76.5%
Simplified76.5%
Taylor expanded in z around -inf 49.9%
associate-+r+49.9%
mul-1-neg49.9%
distribute-rgt-out--49.9%
unsub-neg49.9%
Simplified73.3%
Taylor expanded in a around 0 59.2%
associate-/l*66.1%
Simplified66.1%
if -5.0999999999999997e-31 < z < 1.0500000000000001e-16Initial program 91.9%
associate-*l/92.1%
Simplified92.1%
Taylor expanded in z around 0 76.7%
Final simplification71.4%
(FPCore (x y z t a)
:precision binary64
(if (<= a -7.5e+27)
x
(if (<= a 1.22e-113)
t
(if (<= a 4.3e-57) (* y (/ t a)) (if (<= a 3.3e+125) t x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -7.5e+27) {
tmp = x;
} else if (a <= 1.22e-113) {
tmp = t;
} else if (a <= 4.3e-57) {
tmp = y * (t / a);
} else if (a <= 3.3e+125) {
tmp = t;
} else {
tmp = 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 (a <= (-7.5d+27)) then
tmp = x
else if (a <= 1.22d-113) then
tmp = t
else if (a <= 4.3d-57) then
tmp = y * (t / a)
else if (a <= 3.3d+125) then
tmp = t
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -7.5e+27) {
tmp = x;
} else if (a <= 1.22e-113) {
tmp = t;
} else if (a <= 4.3e-57) {
tmp = y * (t / a);
} else if (a <= 3.3e+125) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -7.5e+27: tmp = x elif a <= 1.22e-113: tmp = t elif a <= 4.3e-57: tmp = y * (t / a) elif a <= 3.3e+125: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -7.5e+27) tmp = x; elseif (a <= 1.22e-113) tmp = t; elseif (a <= 4.3e-57) tmp = Float64(y * Float64(t / a)); elseif (a <= 3.3e+125) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -7.5e+27) tmp = x; elseif (a <= 1.22e-113) tmp = t; elseif (a <= 4.3e-57) tmp = y * (t / a); elseif (a <= 3.3e+125) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -7.5e+27], x, If[LessEqual[a, 1.22e-113], t, If[LessEqual[a, 4.3e-57], N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.3e+125], t, x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7.5 \cdot 10^{+27}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.22 \cdot 10^{-113}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 4.3 \cdot 10^{-57}:\\
\;\;\;\;y \cdot \frac{t}{a}\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{+125}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -7.5000000000000002e27 or 3.30000000000000005e125 < a Initial program 73.7%
associate-*l/93.6%
Simplified93.6%
Taylor expanded in a around inf 48.7%
if -7.5000000000000002e27 < a < 1.21999999999999995e-113 or 4.30000000000000022e-57 < a < 3.30000000000000005e125Initial program 68.9%
associate-*l/77.8%
Simplified77.8%
Taylor expanded in z around inf 34.7%
if 1.21999999999999995e-113 < a < 4.30000000000000022e-57Initial program 91.2%
associate-*l/90.2%
Simplified90.2%
Taylor expanded in x around 0 81.5%
Taylor expanded in z around 0 60.7%
associate-/l*51.4%
Simplified51.4%
associate-/r/61.2%
Applied egg-rr61.2%
Final simplification41.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.75e-72) (not (<= a 3.6e+125))) (* x (- 1.0 (/ y a))) (- t (/ t (/ z y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.75e-72) || !(a <= 3.6e+125)) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t - (t / (z / y));
}
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 <= (-1.75d-72)) .or. (.not. (a <= 3.6d+125))) then
tmp = x * (1.0d0 - (y / a))
else
tmp = t - (t / (z / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.75e-72) || !(a <= 3.6e+125)) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t - (t / (z / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.75e-72) or not (a <= 3.6e+125): tmp = x * (1.0 - (y / a)) else: tmp = t - (t / (z / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.75e-72) || !(a <= 3.6e+125)) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = Float64(t - Float64(t / Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.75e-72) || ~((a <= 3.6e+125))) tmp = x * (1.0 - (y / a)); else tmp = t - (t / (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.75e-72], N[Not[LessEqual[a, 3.6e+125]], $MachinePrecision]], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(t / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.75 \cdot 10^{-72} \lor \neg \left(a \leq 3.6 \cdot 10^{+125}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t - \frac{t}{\frac{z}{y}}\\
\end{array}
\end{array}
if a < -1.75e-72 or 3.6000000000000003e125 < a Initial program 71.1%
associate-*l/90.5%
Simplified90.5%
Taylor expanded in z around 0 69.8%
Taylor expanded in x around inf 49.7%
mul-1-neg49.7%
unsub-neg49.7%
Simplified49.7%
if -1.75e-72 < a < 3.6000000000000003e125Initial program 72.0%
associate-*l/78.3%
Simplified78.3%
Taylor expanded in x around 0 54.0%
Taylor expanded in a around 0 46.5%
mul-1-neg46.5%
associate-/l*53.7%
distribute-neg-frac53.7%
Simplified53.7%
Taylor expanded in z around 0 53.6%
mul-1-neg53.6%
unsub-neg53.6%
associate-/l*53.7%
Simplified53.7%
Final simplification51.8%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.2e-71) (* x (- 1.0 (/ y a))) (if (<= a 3.1e+125) (- t (/ t (/ z y))) (- x (/ x (/ a y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.2e-71) {
tmp = x * (1.0 - (y / a));
} else if (a <= 3.1e+125) {
tmp = t - (t / (z / y));
} else {
tmp = x - (x / (a / y));
}
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 <= (-1.2d-71)) then
tmp = x * (1.0d0 - (y / a))
else if (a <= 3.1d+125) then
tmp = t - (t / (z / y))
else
tmp = x - (x / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.2e-71) {
tmp = x * (1.0 - (y / a));
} else if (a <= 3.1e+125) {
tmp = t - (t / (z / y));
} else {
tmp = x - (x / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.2e-71: tmp = x * (1.0 - (y / a)) elif a <= 3.1e+125: tmp = t - (t / (z / y)) else: tmp = x - (x / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.2e-71) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (a <= 3.1e+125) tmp = Float64(t - Float64(t / Float64(z / y))); else tmp = Float64(x - Float64(x / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.2e-71) tmp = x * (1.0 - (y / a)); elseif (a <= 3.1e+125) tmp = t - (t / (z / y)); else tmp = x - (x / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.2e-71], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.1e+125], N[(t - N[(t / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.2 \cdot 10^{-71}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{+125}:\\
\;\;\;\;t - \frac{t}{\frac{z}{y}}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\end{array}
\end{array}
if a < -1.2e-71Initial program 69.0%
associate-*l/87.4%
Simplified87.4%
Taylor expanded in z around 0 64.4%
Taylor expanded in x around inf 44.6%
mul-1-neg44.6%
unsub-neg44.6%
Simplified44.6%
if -1.2e-71 < a < 3.1e125Initial program 72.0%
associate-*l/78.3%
Simplified78.3%
Taylor expanded in x around 0 54.0%
Taylor expanded in a around 0 46.5%
mul-1-neg46.5%
associate-/l*53.7%
distribute-neg-frac53.7%
Simplified53.7%
Taylor expanded in z around 0 53.6%
mul-1-neg53.6%
unsub-neg53.6%
associate-/l*53.7%
Simplified53.7%
if 3.1e125 < a Initial program 74.7%
associate-*l/95.9%
Simplified95.9%
Taylor expanded in z around 0 79.2%
Taylor expanded in t around 0 53.2%
mul-1-neg53.2%
unsub-neg53.2%
associate-/l*58.7%
Simplified58.7%
Final simplification51.8%
(FPCore (x y z t a) :precision binary64 (if (<= a -9.2e+28) x (if (<= a 3.1e+125) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.2e+28) {
tmp = x;
} else if (a <= 3.1e+125) {
tmp = t;
} else {
tmp = 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 (a <= (-9.2d+28)) then
tmp = x
else if (a <= 3.1d+125) then
tmp = t
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.2e+28) {
tmp = x;
} else if (a <= 3.1e+125) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -9.2e+28: tmp = x elif a <= 3.1e+125: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -9.2e+28) tmp = x; elseif (a <= 3.1e+125) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -9.2e+28) tmp = x; elseif (a <= 3.1e+125) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -9.2e+28], x, If[LessEqual[a, 3.1e+125], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.2 \cdot 10^{+28}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{+125}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -9.19999999999999935e28 or 3.1e125 < a Initial program 73.7%
associate-*l/93.6%
Simplified93.6%
Taylor expanded in a around inf 48.7%
if -9.19999999999999935e28 < a < 3.1e125Initial program 70.3%
associate-*l/78.6%
Simplified78.6%
Taylor expanded in z around inf 33.3%
Final simplification39.1%
(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 71.6%
associate-*l/84.2%
Simplified84.2%
Taylor expanded in z around inf 24.5%
Final simplification24.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* (/ y z) (- t x)))))
(if (< z -1.2536131056095036e+188)
t_1
(if (< z 4.446702369113811e+64)
(+ x (/ (- y z) (/ (- a z) (- t x))))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (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 - ((y / z) * (t - x))
if (z < (-1.2536131056095036d+188)) then
tmp = t_1
else if (z < 4.446702369113811d+64) then
tmp = x + ((y - z) / ((a - z) / (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 - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - ((y / z) * (t - x)) tmp = 0 if z < -1.2536131056095036e+188: tmp = t_1 elif z < 4.446702369113811e+64: tmp = x + ((y - z) / ((a - z) / (t - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(y / z) * Float64(t - x))) tmp = 0.0 if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - ((y / z) * (t - x)); tmp = 0.0; if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = x + ((y - z) / ((a - z) / (t - x))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y / z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -1.2536131056095036e+188], t$95$1, If[Less[z, 4.446702369113811e+64], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\
\mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
herbie shell --seed 2023277
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:herbie-target
(if (< z -1.2536131056095036e+188) (- t (* (/ y z) (- t x))) (if (< z 4.446702369113811e+64) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x)))))
(+ x (/ (* (- y z) (- t x)) (- a z))))