
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - 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 = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - 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 = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- t z) (/ (- x y) (- a t)))))
(t_2 (- x (/ (* (- y x) (- t z)) (- a t)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -2e-270)
t_2
(if (<= t_2 0.0)
(+ y (/ (* x (- z a)) t))
(if (<= t_2 2e+122) t_2 t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - z) * ((x - y) / (a - t)));
double t_2 = x - (((y - x) * (t - z)) / (a - t));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -2e-270) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = y + ((x * (z - a)) / t);
} else if (t_2 <= 2e+122) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - z) * ((x - y) / (a - t)));
double t_2 = x - (((y - x) * (t - z)) / (a - t));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_2 <= -2e-270) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = y + ((x * (z - a)) / t);
} else if (t_2 <= 2e+122) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((t - z) * ((x - y) / (a - t))) t_2 = x - (((y - x) * (t - z)) / (a - t)) tmp = 0 if t_2 <= -math.inf: tmp = t_1 elif t_2 <= -2e-270: tmp = t_2 elif t_2 <= 0.0: tmp = y + ((x * (z - a)) / t) elif t_2 <= 2e+122: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(t - z) * Float64(Float64(x - y) / Float64(a - t)))) t_2 = Float64(x - Float64(Float64(Float64(y - x) * Float64(t - z)) / Float64(a - t))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -2e-270) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(y + Float64(Float64(x * Float64(z - a)) / t)); elseif (t_2 <= 2e+122) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((t - z) * ((x - y) / (a - t))); t_2 = x - (((y - x) * (t - z)) / (a - t)); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1; elseif (t_2 <= -2e-270) tmp = t_2; elseif (t_2 <= 0.0) tmp = y + ((x * (z - a)) / t); elseif (t_2 <= 2e+122) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(t - z), $MachinePrecision] * N[(N[(x - y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(N[(N[(y - x), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -2e-270], t$95$2, If[LessEqual[t$95$2, 0.0], N[(y + N[(N[(x * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+122], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(t - z\right) \cdot \frac{x - y}{a - t}\\
t_2 := x - \frac{\left(y - x\right) \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -2 \cdot 10^{-270}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;y + \frac{x \cdot \left(z - a\right)}{t}\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+122}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0 or 2.00000000000000003e122 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 54.5%
associate-*l/86.8%
Simplified86.8%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -2.0000000000000001e-270 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 2.00000000000000003e122Initial program 95.8%
if -2.0000000000000001e-270 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.3%
associate-*l/3.7%
Simplified3.7%
Taylor expanded in t around inf 99.8%
associate--l+99.8%
associate-*r/99.8%
associate-*r/99.8%
div-sub99.7%
distribute-lft-out--99.7%
associate-*r/99.7%
mul-1-neg99.7%
unsub-neg99.7%
distribute-rgt-out--99.8%
Simplified99.8%
Taylor expanded in y around 0 99.8%
mul-1-neg99.8%
*-commutative99.8%
distribute-rgt-neg-in99.8%
Simplified99.8%
Final simplification92.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ (* (- y x) (- t z)) (- a t)))))
(if (or (<= t_1 -2e-270) (not (<= t_1 0.0)))
(+ x (/ (- y x) (/ (- a t) (- z t))))
(+ y (/ (* x (- z a)) t)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (((y - x) * (t - z)) / (a - t));
double tmp;
if ((t_1 <= -2e-270) || !(t_1 <= 0.0)) {
tmp = x + ((y - x) / ((a - t) / (z - t)));
} else {
tmp = y + ((x * (z - a)) / 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 - (((y - x) * (t - z)) / (a - t))
if ((t_1 <= (-2d-270)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((y - x) / ((a - t) / (z - t)))
else
tmp = y + ((x * (z - a)) / 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 - (((y - x) * (t - z)) / (a - t));
double tmp;
if ((t_1 <= -2e-270) || !(t_1 <= 0.0)) {
tmp = x + ((y - x) / ((a - t) / (z - t)));
} else {
tmp = y + ((x * (z - a)) / t);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (((y - x) * (t - z)) / (a - t)) tmp = 0 if (t_1 <= -2e-270) or not (t_1 <= 0.0): tmp = x + ((y - x) / ((a - t) / (z - t))) else: tmp = y + ((x * (z - a)) / t) return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(Float64(y - x) * Float64(t - z)) / Float64(a - t))) tmp = 0.0 if ((t_1 <= -2e-270) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / Float64(z - t)))); else tmp = Float64(y + Float64(Float64(x * Float64(z - a)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (((y - x) * (t - z)) / (a - t)); tmp = 0.0; if ((t_1 <= -2e-270) || ~((t_1 <= 0.0))) tmp = x + ((y - x) / ((a - t) / (z - t))); else tmp = y + ((x * (z - a)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(N[(y - x), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -2e-270], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(N[(x * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{\left(y - x\right) \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{-270} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{x \cdot \left(z - a\right)}{t}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -2.0000000000000001e-270 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 76.5%
associate-/l*91.0%
Simplified91.0%
if -2.0000000000000001e-270 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.3%
associate-*l/3.7%
Simplified3.7%
Taylor expanded in t around inf 99.8%
associate--l+99.8%
associate-*r/99.8%
associate-*r/99.8%
div-sub99.7%
distribute-lft-out--99.7%
associate-*r/99.7%
mul-1-neg99.7%
unsub-neg99.7%
distribute-rgt-out--99.8%
Simplified99.8%
Taylor expanded in y around 0 99.8%
mul-1-neg99.8%
*-commutative99.8%
distribute-rgt-neg-in99.8%
Simplified99.8%
Final simplification91.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (/ z a)))) (t_2 (* x (- 1.0 (/ z a)))))
(if (<= t -2.9e+24)
y
(if (<= t -1.8e-133)
t_2
(if (<= t -6e-187)
(/ (* y z) (- a t))
(if (<= t -1.75e-227)
t_2
(if (<= t -4.2e-307)
t_1
(if (<= t 2.8e-227) t_2 (if (<= t 7700000000.0) t_1 y)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * (z / a));
double t_2 = x * (1.0 - (z / a));
double tmp;
if (t <= -2.9e+24) {
tmp = y;
} else if (t <= -1.8e-133) {
tmp = t_2;
} else if (t <= -6e-187) {
tmp = (y * z) / (a - t);
} else if (t <= -1.75e-227) {
tmp = t_2;
} else if (t <= -4.2e-307) {
tmp = t_1;
} else if (t <= 2.8e-227) {
tmp = t_2;
} else if (t <= 7700000000.0) {
tmp = t_1;
} else {
tmp = 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + (y * (z / a))
t_2 = x * (1.0d0 - (z / a))
if (t <= (-2.9d+24)) then
tmp = y
else if (t <= (-1.8d-133)) then
tmp = t_2
else if (t <= (-6d-187)) then
tmp = (y * z) / (a - t)
else if (t <= (-1.75d-227)) then
tmp = t_2
else if (t <= (-4.2d-307)) then
tmp = t_1
else if (t <= 2.8d-227) then
tmp = t_2
else if (t <= 7700000000.0d0) then
tmp = t_1
else
tmp = y
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 / a));
double t_2 = x * (1.0 - (z / a));
double tmp;
if (t <= -2.9e+24) {
tmp = y;
} else if (t <= -1.8e-133) {
tmp = t_2;
} else if (t <= -6e-187) {
tmp = (y * z) / (a - t);
} else if (t <= -1.75e-227) {
tmp = t_2;
} else if (t <= -4.2e-307) {
tmp = t_1;
} else if (t <= 2.8e-227) {
tmp = t_2;
} else if (t <= 7700000000.0) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * (z / a)) t_2 = x * (1.0 - (z / a)) tmp = 0 if t <= -2.9e+24: tmp = y elif t <= -1.8e-133: tmp = t_2 elif t <= -6e-187: tmp = (y * z) / (a - t) elif t <= -1.75e-227: tmp = t_2 elif t <= -4.2e-307: tmp = t_1 elif t <= 2.8e-227: tmp = t_2 elif t <= 7700000000.0: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(z / a))) t_2 = Float64(x * Float64(1.0 - Float64(z / a))) tmp = 0.0 if (t <= -2.9e+24) tmp = y; elseif (t <= -1.8e-133) tmp = t_2; elseif (t <= -6e-187) tmp = Float64(Float64(y * z) / Float64(a - t)); elseif (t <= -1.75e-227) tmp = t_2; elseif (t <= -4.2e-307) tmp = t_1; elseif (t <= 2.8e-227) tmp = t_2; elseif (t <= 7700000000.0) tmp = t_1; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y * (z / a)); t_2 = x * (1.0 - (z / a)); tmp = 0.0; if (t <= -2.9e+24) tmp = y; elseif (t <= -1.8e-133) tmp = t_2; elseif (t <= -6e-187) tmp = (y * z) / (a - t); elseif (t <= -1.75e-227) tmp = t_2; elseif (t <= -4.2e-307) tmp = t_1; elseif (t <= 2.8e-227) tmp = t_2; elseif (t <= 7700000000.0) tmp = t_1; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.9e+24], y, If[LessEqual[t, -1.8e-133], t$95$2, If[LessEqual[t, -6e-187], N[(N[(y * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.75e-227], t$95$2, If[LessEqual[t, -4.2e-307], t$95$1, If[LessEqual[t, 2.8e-227], t$95$2, If[LessEqual[t, 7700000000.0], t$95$1, y]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{z}{a}\\
t_2 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -2.9 \cdot 10^{+24}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -1.8 \cdot 10^{-133}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -6 \cdot 10^{-187}:\\
\;\;\;\;\frac{y \cdot z}{a - t}\\
\mathbf{elif}\;t \leq -1.75 \cdot 10^{-227}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -4.2 \cdot 10^{-307}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-227}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 7700000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -2.89999999999999979e24 or 7.7e9 < t Initial program 44.3%
associate-*l/63.6%
Simplified63.6%
Taylor expanded in t around inf 44.7%
if -2.89999999999999979e24 < t < -1.8000000000000002e-133 or -6.00000000000000008e-187 < t < -1.75000000000000005e-227 or -4.2000000000000002e-307 < t < 2.7999999999999998e-227Initial program 92.4%
associate-/l*96.1%
Simplified96.1%
Taylor expanded in t around 0 77.3%
Taylor expanded in x around inf 70.4%
mul-1-neg70.4%
unsub-neg70.4%
Simplified70.4%
if -1.8000000000000002e-133 < t < -6.00000000000000008e-187Initial program 99.9%
+-commutative99.9%
associate-*l/99.7%
fma-define99.7%
Simplified99.7%
clear-num99.6%
inv-pow99.6%
Applied egg-rr99.6%
unpow-199.6%
Simplified99.6%
Taylor expanded in z around -inf 71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in y around inf 70.7%
*-commutative70.7%
Simplified70.7%
if -1.75000000000000005e-227 < t < -4.2000000000000002e-307 or 2.7999999999999998e-227 < t < 7.7e9Initial program 93.8%
associate-/l*96.8%
Simplified96.8%
Taylor expanded in t around 0 77.1%
Taylor expanded in y around inf 73.0%
associate-*r/73.1%
Simplified73.1%
Final simplification59.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (- 1.0 (/ z t))))
(t_2 (+ x (* (- z t) (/ y a))))
(t_3 (* z (/ (- y x) (- a t)))))
(if (<= a -8.5e+26)
t_2
(if (<= a 9.5e-201)
t_1
(if (<= a 3.1e-50)
t_3
(if (<= a 4500000000.0) t_1 (if (<= a 2.8e+103) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (1.0 - (z / t));
double t_2 = x + ((z - t) * (y / a));
double t_3 = z * ((y - x) / (a - t));
double tmp;
if (a <= -8.5e+26) {
tmp = t_2;
} else if (a <= 9.5e-201) {
tmp = t_1;
} else if (a <= 3.1e-50) {
tmp = t_3;
} else if (a <= 4500000000.0) {
tmp = t_1;
} else if (a <= 2.8e+103) {
tmp = t_3;
} 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 = y * (1.0d0 - (z / t))
t_2 = x + ((z - t) * (y / a))
t_3 = z * ((y - x) / (a - t))
if (a <= (-8.5d+26)) then
tmp = t_2
else if (a <= 9.5d-201) then
tmp = t_1
else if (a <= 3.1d-50) then
tmp = t_3
else if (a <= 4500000000.0d0) then
tmp = t_1
else if (a <= 2.8d+103) then
tmp = t_3
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 = y * (1.0 - (z / t));
double t_2 = x + ((z - t) * (y / a));
double t_3 = z * ((y - x) / (a - t));
double tmp;
if (a <= -8.5e+26) {
tmp = t_2;
} else if (a <= 9.5e-201) {
tmp = t_1;
} else if (a <= 3.1e-50) {
tmp = t_3;
} else if (a <= 4500000000.0) {
tmp = t_1;
} else if (a <= 2.8e+103) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (1.0 - (z / t)) t_2 = x + ((z - t) * (y / a)) t_3 = z * ((y - x) / (a - t)) tmp = 0 if a <= -8.5e+26: tmp = t_2 elif a <= 9.5e-201: tmp = t_1 elif a <= 3.1e-50: tmp = t_3 elif a <= 4500000000.0: tmp = t_1 elif a <= 2.8e+103: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(1.0 - Float64(z / t))) t_2 = Float64(x + Float64(Float64(z - t) * Float64(y / a))) t_3 = Float64(z * Float64(Float64(y - x) / Float64(a - t))) tmp = 0.0 if (a <= -8.5e+26) tmp = t_2; elseif (a <= 9.5e-201) tmp = t_1; elseif (a <= 3.1e-50) tmp = t_3; elseif (a <= 4500000000.0) tmp = t_1; elseif (a <= 2.8e+103) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (1.0 - (z / t)); t_2 = x + ((z - t) * (y / a)); t_3 = z * ((y - x) / (a - t)); tmp = 0.0; if (a <= -8.5e+26) tmp = t_2; elseif (a <= 9.5e-201) tmp = t_1; elseif (a <= 3.1e-50) tmp = t_3; elseif (a <= 4500000000.0) tmp = t_1; elseif (a <= 2.8e+103) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.5e+26], t$95$2, If[LessEqual[a, 9.5e-201], t$95$1, If[LessEqual[a, 3.1e-50], t$95$3, If[LessEqual[a, 4500000000.0], t$95$1, If[LessEqual[a, 2.8e+103], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(1 - \frac{z}{t}\right)\\
t_2 := x + \left(z - t\right) \cdot \frac{y}{a}\\
t_3 := z \cdot \frac{y - x}{a - t}\\
\mathbf{if}\;a \leq -8.5 \cdot 10^{+26}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-201}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{-50}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq 4500000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{+103}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -8.5e26 or 2.80000000000000008e103 < a Initial program 70.9%
associate-*l/85.2%
Simplified85.2%
Taylor expanded in y around inf 75.2%
Taylor expanded in a around inf 69.8%
if -8.5e26 < a < 9.5000000000000001e-201 or 3.1000000000000002e-50 < a < 4.5e9Initial program 76.4%
+-commutative76.4%
associate-*l/81.2%
fma-define81.4%
Simplified81.4%
Taylor expanded in a around 0 63.9%
associate-*r/63.9%
neg-mul-163.9%
Simplified63.9%
Taylor expanded in y around -inf 65.4%
associate-*r*65.4%
neg-mul-165.4%
sub-neg65.4%
metadata-eval65.4%
Simplified65.4%
if 9.5000000000000001e-201 < a < 3.1000000000000002e-50 or 4.5e9 < a < 2.80000000000000008e103Initial program 60.4%
associate-*l/65.4%
Simplified65.4%
Taylor expanded in z around inf 58.2%
div-sub58.2%
Simplified58.2%
Final simplification65.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (- 1.0 (/ z t)))) (t_2 (* z (/ (- y x) (- a t)))))
(if (<= a -6e+24)
(+ x (/ y (/ a (- z t))))
(if (<= a 7.6e-206)
t_1
(if (<= a 7.8e-51)
t_2
(if (<= a 4500000000.0)
t_1
(if (<= a 1.45e+102) t_2 (+ x (* (- z t) (/ y a))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (1.0 - (z / t));
double t_2 = z * ((y - x) / (a - t));
double tmp;
if (a <= -6e+24) {
tmp = x + (y / (a / (z - t)));
} else if (a <= 7.6e-206) {
tmp = t_1;
} else if (a <= 7.8e-51) {
tmp = t_2;
} else if (a <= 4500000000.0) {
tmp = t_1;
} else if (a <= 1.45e+102) {
tmp = t_2;
} else {
tmp = x + ((z - 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) :: t_2
real(8) :: tmp
t_1 = y * (1.0d0 - (z / t))
t_2 = z * ((y - x) / (a - t))
if (a <= (-6d+24)) then
tmp = x + (y / (a / (z - t)))
else if (a <= 7.6d-206) then
tmp = t_1
else if (a <= 7.8d-51) then
tmp = t_2
else if (a <= 4500000000.0d0) then
tmp = t_1
else if (a <= 1.45d+102) then
tmp = t_2
else
tmp = x + ((z - 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 = y * (1.0 - (z / t));
double t_2 = z * ((y - x) / (a - t));
double tmp;
if (a <= -6e+24) {
tmp = x + (y / (a / (z - t)));
} else if (a <= 7.6e-206) {
tmp = t_1;
} else if (a <= 7.8e-51) {
tmp = t_2;
} else if (a <= 4500000000.0) {
tmp = t_1;
} else if (a <= 1.45e+102) {
tmp = t_2;
} else {
tmp = x + ((z - t) * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (1.0 - (z / t)) t_2 = z * ((y - x) / (a - t)) tmp = 0 if a <= -6e+24: tmp = x + (y / (a / (z - t))) elif a <= 7.6e-206: tmp = t_1 elif a <= 7.8e-51: tmp = t_2 elif a <= 4500000000.0: tmp = t_1 elif a <= 1.45e+102: tmp = t_2 else: tmp = x + ((z - t) * (y / a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(1.0 - Float64(z / t))) t_2 = Float64(z * Float64(Float64(y - x) / Float64(a - t))) tmp = 0.0 if (a <= -6e+24) tmp = Float64(x + Float64(y / Float64(a / Float64(z - t)))); elseif (a <= 7.6e-206) tmp = t_1; elseif (a <= 7.8e-51) tmp = t_2; elseif (a <= 4500000000.0) tmp = t_1; elseif (a <= 1.45e+102) tmp = t_2; else tmp = Float64(x + Float64(Float64(z - t) * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (1.0 - (z / t)); t_2 = z * ((y - x) / (a - t)); tmp = 0.0; if (a <= -6e+24) tmp = x + (y / (a / (z - t))); elseif (a <= 7.6e-206) tmp = t_1; elseif (a <= 7.8e-51) tmp = t_2; elseif (a <= 4500000000.0) tmp = t_1; elseif (a <= 1.45e+102) tmp = t_2; else tmp = x + ((z - t) * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6e+24], N[(x + N[(y / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.6e-206], t$95$1, If[LessEqual[a, 7.8e-51], t$95$2, If[LessEqual[a, 4500000000.0], t$95$1, If[LessEqual[a, 1.45e+102], t$95$2, N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(1 - \frac{z}{t}\right)\\
t_2 := z \cdot \frac{y - x}{a - t}\\
\mathbf{if}\;a \leq -6 \cdot 10^{+24}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z - t}}\\
\mathbf{elif}\;a \leq 7.6 \cdot 10^{-206}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 7.8 \cdot 10^{-51}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 4500000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.45 \cdot 10^{+102}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a}\\
\end{array}
\end{array}
if a < -5.9999999999999999e24Initial program 69.4%
associate-*l/80.3%
Simplified80.3%
Taylor expanded in y around inf 71.6%
Taylor expanded in a around inf 65.9%
associate-/l*71.4%
Simplified71.4%
if -5.9999999999999999e24 < a < 7.60000000000000005e-206 or 7.7999999999999995e-51 < a < 4.5e9Initial program 76.4%
+-commutative76.4%
associate-*l/81.2%
fma-define81.4%
Simplified81.4%
Taylor expanded in a around 0 63.9%
associate-*r/63.9%
neg-mul-163.9%
Simplified63.9%
Taylor expanded in y around -inf 65.4%
associate-*r*65.4%
neg-mul-165.4%
sub-neg65.4%
metadata-eval65.4%
Simplified65.4%
if 7.60000000000000005e-206 < a < 7.7999999999999995e-51 or 4.5e9 < a < 1.4500000000000001e102Initial program 60.4%
associate-*l/65.4%
Simplified65.4%
Taylor expanded in z around inf 58.2%
div-sub58.2%
Simplified58.2%
if 1.4500000000000001e102 < a Initial program 73.2%
associate-*l/93.0%
Simplified93.0%
Taylor expanded in y around inf 81.0%
Taylor expanded in a around inf 72.0%
Final simplification66.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (/ z a)))) (t_2 (* x (- 1.0 (/ z a)))))
(if (<= t -3.8e+24)
y
(if (<= t -8.2e-132)
t_2
(if (<= t -3.9e-307)
t_1
(if (<= t 3.5e-225) t_2 (if (<= t 8000000000.0) t_1 y)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * (z / a));
double t_2 = x * (1.0 - (z / a));
double tmp;
if (t <= -3.8e+24) {
tmp = y;
} else if (t <= -8.2e-132) {
tmp = t_2;
} else if (t <= -3.9e-307) {
tmp = t_1;
} else if (t <= 3.5e-225) {
tmp = t_2;
} else if (t <= 8000000000.0) {
tmp = t_1;
} else {
tmp = 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + (y * (z / a))
t_2 = x * (1.0d0 - (z / a))
if (t <= (-3.8d+24)) then
tmp = y
else if (t <= (-8.2d-132)) then
tmp = t_2
else if (t <= (-3.9d-307)) then
tmp = t_1
else if (t <= 3.5d-225) then
tmp = t_2
else if (t <= 8000000000.0d0) then
tmp = t_1
else
tmp = y
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 / a));
double t_2 = x * (1.0 - (z / a));
double tmp;
if (t <= -3.8e+24) {
tmp = y;
} else if (t <= -8.2e-132) {
tmp = t_2;
} else if (t <= -3.9e-307) {
tmp = t_1;
} else if (t <= 3.5e-225) {
tmp = t_2;
} else if (t <= 8000000000.0) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * (z / a)) t_2 = x * (1.0 - (z / a)) tmp = 0 if t <= -3.8e+24: tmp = y elif t <= -8.2e-132: tmp = t_2 elif t <= -3.9e-307: tmp = t_1 elif t <= 3.5e-225: tmp = t_2 elif t <= 8000000000.0: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(z / a))) t_2 = Float64(x * Float64(1.0 - Float64(z / a))) tmp = 0.0 if (t <= -3.8e+24) tmp = y; elseif (t <= -8.2e-132) tmp = t_2; elseif (t <= -3.9e-307) tmp = t_1; elseif (t <= 3.5e-225) tmp = t_2; elseif (t <= 8000000000.0) tmp = t_1; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y * (z / a)); t_2 = x * (1.0 - (z / a)); tmp = 0.0; if (t <= -3.8e+24) tmp = y; elseif (t <= -8.2e-132) tmp = t_2; elseif (t <= -3.9e-307) tmp = t_1; elseif (t <= 3.5e-225) tmp = t_2; elseif (t <= 8000000000.0) tmp = t_1; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.8e+24], y, If[LessEqual[t, -8.2e-132], t$95$2, If[LessEqual[t, -3.9e-307], t$95$1, If[LessEqual[t, 3.5e-225], t$95$2, If[LessEqual[t, 8000000000.0], t$95$1, y]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{z}{a}\\
t_2 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -3.8 \cdot 10^{+24}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -8.2 \cdot 10^{-132}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -3.9 \cdot 10^{-307}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-225}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 8000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -3.80000000000000015e24 or 8e9 < t Initial program 44.3%
associate-*l/63.6%
Simplified63.6%
Taylor expanded in t around inf 44.7%
if -3.80000000000000015e24 < t < -8.20000000000000013e-132 or -3.9e-307 < t < 3.4999999999999997e-225Initial program 92.9%
associate-/l*97.2%
Simplified97.2%
Taylor expanded in t around 0 78.7%
Taylor expanded in x around inf 70.9%
mul-1-neg70.9%
unsub-neg70.9%
Simplified70.9%
if -8.20000000000000013e-132 < t < -3.9e-307 or 3.4999999999999997e-225 < t < 8e9Initial program 94.1%
associate-/l*96.4%
Simplified96.4%
Taylor expanded in t around 0 74.4%
Taylor expanded in y around inf 66.5%
associate-*r/66.5%
Simplified66.5%
Final simplification57.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ x (/ t z))))
(if (<= a -4.8e+30)
x
(if (<= a -2.2e-275)
y
(if (<= a 1.2e-306)
t_1
(if (<= a 4.5e-232)
y
(if (<= a 1.65e-72) t_1 (if (<= a 1.02e+48) y x))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x / (t / z);
double tmp;
if (a <= -4.8e+30) {
tmp = x;
} else if (a <= -2.2e-275) {
tmp = y;
} else if (a <= 1.2e-306) {
tmp = t_1;
} else if (a <= 4.5e-232) {
tmp = y;
} else if (a <= 1.65e-72) {
tmp = t_1;
} else if (a <= 1.02e+48) {
tmp = y;
} 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) :: t_1
real(8) :: tmp
t_1 = x / (t / z)
if (a <= (-4.8d+30)) then
tmp = x
else if (a <= (-2.2d-275)) then
tmp = y
else if (a <= 1.2d-306) then
tmp = t_1
else if (a <= 4.5d-232) then
tmp = y
else if (a <= 1.65d-72) then
tmp = t_1
else if (a <= 1.02d+48) then
tmp = y
else
tmp = x
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 / z);
double tmp;
if (a <= -4.8e+30) {
tmp = x;
} else if (a <= -2.2e-275) {
tmp = y;
} else if (a <= 1.2e-306) {
tmp = t_1;
} else if (a <= 4.5e-232) {
tmp = y;
} else if (a <= 1.65e-72) {
tmp = t_1;
} else if (a <= 1.02e+48) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x / (t / z) tmp = 0 if a <= -4.8e+30: tmp = x elif a <= -2.2e-275: tmp = y elif a <= 1.2e-306: tmp = t_1 elif a <= 4.5e-232: tmp = y elif a <= 1.65e-72: tmp = t_1 elif a <= 1.02e+48: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(x / Float64(t / z)) tmp = 0.0 if (a <= -4.8e+30) tmp = x; elseif (a <= -2.2e-275) tmp = y; elseif (a <= 1.2e-306) tmp = t_1; elseif (a <= 4.5e-232) tmp = y; elseif (a <= 1.65e-72) tmp = t_1; elseif (a <= 1.02e+48) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x / (t / z); tmp = 0.0; if (a <= -4.8e+30) tmp = x; elseif (a <= -2.2e-275) tmp = y; elseif (a <= 1.2e-306) tmp = t_1; elseif (a <= 4.5e-232) tmp = y; elseif (a <= 1.65e-72) tmp = t_1; elseif (a <= 1.02e+48) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x / N[(t / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.8e+30], x, If[LessEqual[a, -2.2e-275], y, If[LessEqual[a, 1.2e-306], t$95$1, If[LessEqual[a, 4.5e-232], y, If[LessEqual[a, 1.65e-72], t$95$1, If[LessEqual[a, 1.02e+48], y, x]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\frac{t}{z}}\\
\mathbf{if}\;a \leq -4.8 \cdot 10^{+30}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -2.2 \cdot 10^{-275}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{-306}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{-232}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{-72}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.02 \cdot 10^{+48}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -4.7999999999999999e30 or 1.02e48 < a Initial program 67.8%
associate-*l/83.4%
Simplified83.4%
Taylor expanded in a around inf 49.5%
if -4.7999999999999999e30 < a < -2.19999999999999989e-275 or 1.2e-306 < a < 4.49999999999999967e-232 or 1.65e-72 < a < 1.02e48Initial program 74.3%
associate-*l/81.4%
Simplified81.4%
Taylor expanded in t around inf 45.4%
if -2.19999999999999989e-275 < a < 1.2e-306 or 4.49999999999999967e-232 < a < 1.65e-72Initial program 72.1%
+-commutative72.1%
associate-*l/67.2%
fma-define67.1%
Simplified67.1%
Taylor expanded in a around 0 57.3%
associate-*r/57.3%
neg-mul-157.3%
Simplified57.3%
Taylor expanded in x around inf 39.9%
associate-/l*45.7%
Simplified45.7%
Final simplification47.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* z (/ (- y x) (- a t)))))
(if (<= z -2.4e+63)
t_1
(if (<= z -6.8e-60)
(+ x (* z (/ y a)))
(if (<= z -3.1e-120)
(* y (- 1.0 (/ z t)))
(if (<= z 14500000000000.0) (- x (/ t (/ a y))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = z * ((y - x) / (a - t));
double tmp;
if (z <= -2.4e+63) {
tmp = t_1;
} else if (z <= -6.8e-60) {
tmp = x + (z * (y / a));
} else if (z <= -3.1e-120) {
tmp = y * (1.0 - (z / t));
} else if (z <= 14500000000000.0) {
tmp = x - (t / (a / y));
} 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 = z * ((y - x) / (a - t))
if (z <= (-2.4d+63)) then
tmp = t_1
else if (z <= (-6.8d-60)) then
tmp = x + (z * (y / a))
else if (z <= (-3.1d-120)) then
tmp = y * (1.0d0 - (z / t))
else if (z <= 14500000000000.0d0) then
tmp = x - (t / (a / y))
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 = z * ((y - x) / (a - t));
double tmp;
if (z <= -2.4e+63) {
tmp = t_1;
} else if (z <= -6.8e-60) {
tmp = x + (z * (y / a));
} else if (z <= -3.1e-120) {
tmp = y * (1.0 - (z / t));
} else if (z <= 14500000000000.0) {
tmp = x - (t / (a / y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = z * ((y - x) / (a - t)) tmp = 0 if z <= -2.4e+63: tmp = t_1 elif z <= -6.8e-60: tmp = x + (z * (y / a)) elif z <= -3.1e-120: tmp = y * (1.0 - (z / t)) elif z <= 14500000000000.0: tmp = x - (t / (a / y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(z * Float64(Float64(y - x) / Float64(a - t))) tmp = 0.0 if (z <= -2.4e+63) tmp = t_1; elseif (z <= -6.8e-60) tmp = Float64(x + Float64(z * Float64(y / a))); elseif (z <= -3.1e-120) tmp = Float64(y * Float64(1.0 - Float64(z / t))); elseif (z <= 14500000000000.0) tmp = Float64(x - Float64(t / Float64(a / y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = z * ((y - x) / (a - t)); tmp = 0.0; if (z <= -2.4e+63) tmp = t_1; elseif (z <= -6.8e-60) tmp = x + (z * (y / a)); elseif (z <= -3.1e-120) tmp = y * (1.0 - (z / t)); elseif (z <= 14500000000000.0) tmp = x - (t / (a / y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.4e+63], t$95$1, If[LessEqual[z, -6.8e-60], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.1e-120], N[(y * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 14500000000000.0], N[(x - N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \frac{y - x}{a - t}\\
\mathbf{if}\;z \leq -2.4 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -6.8 \cdot 10^{-60}:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq -3.1 \cdot 10^{-120}:\\
\;\;\;\;y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{elif}\;z \leq 14500000000000:\\
\;\;\;\;x - \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.4e63 or 1.45e13 < z Initial program 67.2%
associate-*l/83.0%
Simplified83.0%
Taylor expanded in z around inf 72.4%
div-sub72.4%
Simplified72.4%
if -2.4e63 < z < -6.80000000000000013e-60Initial program 86.7%
associate-/l*95.1%
Simplified95.1%
Taylor expanded in t around 0 68.7%
Taylor expanded in y around inf 70.3%
associate-*r/65.3%
Simplified65.3%
Taylor expanded in y around 0 70.3%
associate-/l*68.7%
associate-/r/70.3%
Simplified70.3%
if -6.80000000000000013e-60 < z < -3.10000000000000019e-120Initial program 67.8%
+-commutative67.8%
associate-*l/60.0%
fma-define60.2%
Simplified60.2%
Taylor expanded in a around 0 37.6%
associate-*r/37.6%
neg-mul-137.6%
Simplified37.6%
Taylor expanded in y around -inf 53.1%
associate-*r*53.1%
neg-mul-153.1%
sub-neg53.1%
metadata-eval53.1%
Simplified53.1%
if -3.10000000000000019e-120 < z < 1.45e13Initial program 72.4%
associate-*l/75.7%
Simplified75.7%
Taylor expanded in y around inf 72.4%
Taylor expanded in a around inf 51.2%
associate-/l*53.0%
Simplified53.0%
Taylor expanded in z around 0 46.4%
mul-1-neg46.4%
unsub-neg46.4%
associate-/l*49.9%
Simplified49.9%
Final simplification61.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (- 1.0 (/ z t)))))
(if (<= t -1.65e+17)
t_1
(if (<= t 2.7e-137)
(+ x (/ z (/ a (- y x))))
(if (<= t 4.5e-107)
(* z (/ (- y x) (- a t)))
(if (<= t 88000000000000.0) (+ x (/ y (/ a (- z t)))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (1.0 - (z / t));
double tmp;
if (t <= -1.65e+17) {
tmp = t_1;
} else if (t <= 2.7e-137) {
tmp = x + (z / (a / (y - x)));
} else if (t <= 4.5e-107) {
tmp = z * ((y - x) / (a - t));
} else if (t <= 88000000000000.0) {
tmp = x + (y / (a / (z - t)));
} 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 * (1.0d0 - (z / t))
if (t <= (-1.65d+17)) then
tmp = t_1
else if (t <= 2.7d-137) then
tmp = x + (z / (a / (y - x)))
else if (t <= 4.5d-107) then
tmp = z * ((y - x) / (a - t))
else if (t <= 88000000000000.0d0) then
tmp = x + (y / (a / (z - t)))
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 * (1.0 - (z / t));
double tmp;
if (t <= -1.65e+17) {
tmp = t_1;
} else if (t <= 2.7e-137) {
tmp = x + (z / (a / (y - x)));
} else if (t <= 4.5e-107) {
tmp = z * ((y - x) / (a - t));
} else if (t <= 88000000000000.0) {
tmp = x + (y / (a / (z - t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (1.0 - (z / t)) tmp = 0 if t <= -1.65e+17: tmp = t_1 elif t <= 2.7e-137: tmp = x + (z / (a / (y - x))) elif t <= 4.5e-107: tmp = z * ((y - x) / (a - t)) elif t <= 88000000000000.0: tmp = x + (y / (a / (z - t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(1.0 - Float64(z / t))) tmp = 0.0 if (t <= -1.65e+17) tmp = t_1; elseif (t <= 2.7e-137) tmp = Float64(x + Float64(z / Float64(a / Float64(y - x)))); elseif (t <= 4.5e-107) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif (t <= 88000000000000.0) tmp = Float64(x + Float64(y / Float64(a / Float64(z - t)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (1.0 - (z / t)); tmp = 0.0; if (t <= -1.65e+17) tmp = t_1; elseif (t <= 2.7e-137) tmp = x + (z / (a / (y - x))); elseif (t <= 4.5e-107) tmp = z * ((y - x) / (a - t)); elseif (t <= 88000000000000.0) tmp = x + (y / (a / (z - t))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.65e+17], t$95$1, If[LessEqual[t, 2.7e-137], N[(x + N[(z / N[(a / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e-107], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 88000000000000.0], N[(x + N[(y / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;t \leq -1.65 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-137}:\\
\;\;\;\;x + \frac{z}{\frac{a}{y - x}}\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-107}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;t \leq 88000000000000:\\
\;\;\;\;x + \frac{y}{\frac{a}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.65e17 or 8.8e13 < t Initial program 45.5%
+-commutative45.5%
associate-*l/63.9%
fma-define64.5%
Simplified64.5%
Taylor expanded in a around 0 42.1%
associate-*r/42.1%
neg-mul-142.1%
Simplified42.1%
Taylor expanded in y around -inf 51.7%
associate-*r*51.7%
neg-mul-151.7%
sub-neg51.7%
metadata-eval51.7%
Simplified51.7%
if -1.65e17 < t < 2.69999999999999993e-137Initial program 94.3%
associate-*l/94.5%
Simplified94.5%
Taylor expanded in t around 0 78.1%
associate-/l*80.5%
Simplified80.5%
if 2.69999999999999993e-137 < t < 4.50000000000000016e-107Initial program 89.2%
associate-*l/89.2%
Simplified89.2%
Taylor expanded in z around inf 78.7%
div-sub78.7%
Simplified78.7%
if 4.50000000000000016e-107 < t < 8.8e13Initial program 88.3%
associate-*l/91.7%
Simplified91.7%
Taylor expanded in y around inf 75.7%
Taylor expanded in a around inf 67.4%
associate-/l*67.4%
Simplified67.4%
Final simplification65.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- y x) (/ a z)))) (t_2 (* y (- 1.0 (/ z t)))))
(if (<= t -9e+20)
t_2
(if (<= t 8.5e-137)
t_1
(if (<= t 1.05e-107)
(* z (/ (- y x) (- a t)))
(if (<= t 170000000000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - x) / (a / z));
double t_2 = y * (1.0 - (z / t));
double tmp;
if (t <= -9e+20) {
tmp = t_2;
} else if (t <= 8.5e-137) {
tmp = t_1;
} else if (t <= 1.05e-107) {
tmp = z * ((y - x) / (a - t));
} else if (t <= 170000000000.0) {
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 + ((y - x) / (a / z))
t_2 = y * (1.0d0 - (z / t))
if (t <= (-9d+20)) then
tmp = t_2
else if (t <= 8.5d-137) then
tmp = t_1
else if (t <= 1.05d-107) then
tmp = z * ((y - x) / (a - t))
else if (t <= 170000000000.0d0) 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 + ((y - x) / (a / z));
double t_2 = y * (1.0 - (z / t));
double tmp;
if (t <= -9e+20) {
tmp = t_2;
} else if (t <= 8.5e-137) {
tmp = t_1;
} else if (t <= 1.05e-107) {
tmp = z * ((y - x) / (a - t));
} else if (t <= 170000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - x) / (a / z)) t_2 = y * (1.0 - (z / t)) tmp = 0 if t <= -9e+20: tmp = t_2 elif t <= 8.5e-137: tmp = t_1 elif t <= 1.05e-107: tmp = z * ((y - x) / (a - t)) elif t <= 170000000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - x) / Float64(a / z))) t_2 = Float64(y * Float64(1.0 - Float64(z / t))) tmp = 0.0 if (t <= -9e+20) tmp = t_2; elseif (t <= 8.5e-137) tmp = t_1; elseif (t <= 1.05e-107) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif (t <= 170000000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - x) / (a / z)); t_2 = y * (1.0 - (z / t)); tmp = 0.0; if (t <= -9e+20) tmp = t_2; elseif (t <= 8.5e-137) tmp = t_1; elseif (t <= 1.05e-107) tmp = z * ((y - x) / (a - t)); elseif (t <= 170000000000.0) 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[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9e+20], t$95$2, If[LessEqual[t, 8.5e-137], t$95$1, If[LessEqual[t, 1.05e-107], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 170000000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - x}{\frac{a}{z}}\\
t_2 := y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;t \leq -9 \cdot 10^{+20}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-137}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{-107}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;t \leq 170000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -9e20 or 1.7e11 < t Initial program 45.5%
+-commutative45.5%
associate-*l/63.9%
fma-define64.5%
Simplified64.5%
Taylor expanded in a around 0 42.1%
associate-*r/42.1%
neg-mul-142.1%
Simplified42.1%
Taylor expanded in y around -inf 51.7%
associate-*r*51.7%
neg-mul-151.7%
sub-neg51.7%
metadata-eval51.7%
Simplified51.7%
if -9e20 < t < 8.5000000000000001e-137 or 1.05e-107 < t < 1.7e11Initial program 93.2%
associate-/l*97.2%
Simplified97.2%
Taylor expanded in t around 0 80.3%
if 8.5000000000000001e-137 < t < 1.05e-107Initial program 89.2%
associate-*l/89.2%
Simplified89.2%
Taylor expanded in z around inf 78.7%
div-sub78.7%
Simplified78.7%
Final simplification67.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ z a)))))
(if (<= t -3.8e+24)
y
(if (<= t 8.5e-137)
t_1
(if (<= t 1.5e-106) (/ x (/ t z)) (if (<= t 1.26e+14) t_1 y))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (t <= -3.8e+24) {
tmp = y;
} else if (t <= 8.5e-137) {
tmp = t_1;
} else if (t <= 1.5e-106) {
tmp = x / (t / z);
} else if (t <= 1.26e+14) {
tmp = t_1;
} else {
tmp = 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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (z / a))
if (t <= (-3.8d+24)) then
tmp = y
else if (t <= 8.5d-137) then
tmp = t_1
else if (t <= 1.5d-106) then
tmp = x / (t / z)
else if (t <= 1.26d+14) then
tmp = t_1
else
tmp = y
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 - (z / a));
double tmp;
if (t <= -3.8e+24) {
tmp = y;
} else if (t <= 8.5e-137) {
tmp = t_1;
} else if (t <= 1.5e-106) {
tmp = x / (t / z);
} else if (t <= 1.26e+14) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (z / a)) tmp = 0 if t <= -3.8e+24: tmp = y elif t <= 8.5e-137: tmp = t_1 elif t <= 1.5e-106: tmp = x / (t / z) elif t <= 1.26e+14: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(z / a))) tmp = 0.0 if (t <= -3.8e+24) tmp = y; elseif (t <= 8.5e-137) tmp = t_1; elseif (t <= 1.5e-106) tmp = Float64(x / Float64(t / z)); elseif (t <= 1.26e+14) tmp = t_1; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (z / a)); tmp = 0.0; if (t <= -3.8e+24) tmp = y; elseif (t <= 8.5e-137) tmp = t_1; elseif (t <= 1.5e-106) tmp = x / (t / z); elseif (t <= 1.26e+14) tmp = t_1; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.8e+24], y, If[LessEqual[t, 8.5e-137], t$95$1, If[LessEqual[t, 1.5e-106], N[(x / N[(t / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.26e+14], t$95$1, y]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -3.8 \cdot 10^{+24}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-137}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{-106}:\\
\;\;\;\;\frac{x}{\frac{t}{z}}\\
\mathbf{elif}\;t \leq 1.26 \cdot 10^{+14}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -3.80000000000000015e24 or 1.26e14 < t Initial program 44.6%
associate-*l/63.3%
Simplified63.3%
Taylor expanded in t around inf 45.1%
if -3.80000000000000015e24 < t < 8.5000000000000001e-137 or 1.50000000000000009e-106 < t < 1.26e14Initial program 93.3%
associate-/l*97.2%
Simplified97.2%
Taylor expanded in t around 0 79.8%
Taylor expanded in x around inf 62.5%
mul-1-neg62.5%
unsub-neg62.5%
Simplified62.5%
if 8.5000000000000001e-137 < t < 1.50000000000000009e-106Initial program 90.3%
+-commutative90.3%
associate-*l/90.3%
fma-define90.1%
Simplified90.1%
Taylor expanded in a around 0 64.6%
associate-*r/64.6%
neg-mul-164.6%
Simplified64.6%
Taylor expanded in x around inf 42.5%
associate-/l*52.1%
Simplified52.1%
Final simplification54.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ z a)))))
(if (<= t -1.35e+24)
y
(if (<= t 8e-139)
t_1
(if (<= t 4e-107) (* z (/ (- x y) t)) (if (<= t 3.35e+15) t_1 y))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (t <= -1.35e+24) {
tmp = y;
} else if (t <= 8e-139) {
tmp = t_1;
} else if (t <= 4e-107) {
tmp = z * ((x - y) / t);
} else if (t <= 3.35e+15) {
tmp = t_1;
} else {
tmp = 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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (z / a))
if (t <= (-1.35d+24)) then
tmp = y
else if (t <= 8d-139) then
tmp = t_1
else if (t <= 4d-107) then
tmp = z * ((x - y) / t)
else if (t <= 3.35d+15) then
tmp = t_1
else
tmp = y
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 - (z / a));
double tmp;
if (t <= -1.35e+24) {
tmp = y;
} else if (t <= 8e-139) {
tmp = t_1;
} else if (t <= 4e-107) {
tmp = z * ((x - y) / t);
} else if (t <= 3.35e+15) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (z / a)) tmp = 0 if t <= -1.35e+24: tmp = y elif t <= 8e-139: tmp = t_1 elif t <= 4e-107: tmp = z * ((x - y) / t) elif t <= 3.35e+15: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(z / a))) tmp = 0.0 if (t <= -1.35e+24) tmp = y; elseif (t <= 8e-139) tmp = t_1; elseif (t <= 4e-107) tmp = Float64(z * Float64(Float64(x - y) / t)); elseif (t <= 3.35e+15) tmp = t_1; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (z / a)); tmp = 0.0; if (t <= -1.35e+24) tmp = y; elseif (t <= 8e-139) tmp = t_1; elseif (t <= 4e-107) tmp = z * ((x - y) / t); elseif (t <= 3.35e+15) tmp = t_1; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.35e+24], y, If[LessEqual[t, 8e-139], t$95$1, If[LessEqual[t, 4e-107], N[(z * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.35e+15], t$95$1, y]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -1.35 \cdot 10^{+24}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 8 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-107}:\\
\;\;\;\;z \cdot \frac{x - y}{t}\\
\mathbf{elif}\;t \leq 3.35 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.35e24 or 3.35e15 < t Initial program 44.6%
associate-*l/63.3%
Simplified63.3%
Taylor expanded in t around inf 45.1%
if -1.35e24 < t < 8.00000000000000024e-139 or 4e-107 < t < 3.35e15Initial program 93.2%
associate-/l*97.2%
Simplified97.2%
Taylor expanded in t around 0 79.6%
Taylor expanded in x around inf 62.2%
mul-1-neg62.2%
unsub-neg62.2%
Simplified62.2%
if 8.00000000000000024e-139 < t < 4e-107Initial program 91.2%
+-commutative91.2%
associate-*l/91.2%
fma-define91.0%
Simplified91.0%
Taylor expanded in a around 0 68.2%
associate-*r/68.2%
neg-mul-168.2%
Simplified68.2%
Taylor expanded in z around inf 59.7%
div-sub59.7%
Simplified59.7%
Final simplification54.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (- 1.0 (/ z t)))))
(if (<= a -3.2e+23)
(+ x (* y (/ z a)))
(if (<= a 3.1e-182)
t_1
(if (<= a 2.2e-74)
(/ x (/ t (- z a)))
(if (<= a 1.25e+41) t_1 (+ x (* z (/ y a)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (1.0 - (z / t));
double tmp;
if (a <= -3.2e+23) {
tmp = x + (y * (z / a));
} else if (a <= 3.1e-182) {
tmp = t_1;
} else if (a <= 2.2e-74) {
tmp = x / (t / (z - a));
} else if (a <= 1.25e+41) {
tmp = t_1;
} else {
tmp = 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 = y * (1.0d0 - (z / t))
if (a <= (-3.2d+23)) then
tmp = x + (y * (z / a))
else if (a <= 3.1d-182) then
tmp = t_1
else if (a <= 2.2d-74) then
tmp = x / (t / (z - a))
else if (a <= 1.25d+41) then
tmp = t_1
else
tmp = 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 = y * (1.0 - (z / t));
double tmp;
if (a <= -3.2e+23) {
tmp = x + (y * (z / a));
} else if (a <= 3.1e-182) {
tmp = t_1;
} else if (a <= 2.2e-74) {
tmp = x / (t / (z - a));
} else if (a <= 1.25e+41) {
tmp = t_1;
} else {
tmp = x + (z * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (1.0 - (z / t)) tmp = 0 if a <= -3.2e+23: tmp = x + (y * (z / a)) elif a <= 3.1e-182: tmp = t_1 elif a <= 2.2e-74: tmp = x / (t / (z - a)) elif a <= 1.25e+41: tmp = t_1 else: tmp = x + (z * (y / a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(1.0 - Float64(z / t))) tmp = 0.0 if (a <= -3.2e+23) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (a <= 3.1e-182) tmp = t_1; elseif (a <= 2.2e-74) tmp = Float64(x / Float64(t / Float64(z - a))); elseif (a <= 1.25e+41) tmp = t_1; else tmp = Float64(x + Float64(z * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (1.0 - (z / t)); tmp = 0.0; if (a <= -3.2e+23) tmp = x + (y * (z / a)); elseif (a <= 3.1e-182) tmp = t_1; elseif (a <= 2.2e-74) tmp = x / (t / (z - a)); elseif (a <= 1.25e+41) tmp = t_1; else tmp = x + (z * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.2e+23], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.1e-182], t$95$1, If[LessEqual[a, 2.2e-74], N[(x / N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.25e+41], t$95$1, N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{if}\;a \leq -3.2 \cdot 10^{+23}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{-182}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{-74}:\\
\;\;\;\;\frac{x}{\frac{t}{z - a}}\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{+41}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\end{array}
\end{array}
if a < -3.2e23Initial program 69.4%
associate-/l*84.7%
Simplified84.7%
Taylor expanded in t around 0 73.2%
Taylor expanded in y around inf 63.4%
associate-*r/63.4%
Simplified63.4%
if -3.2e23 < a < 3.10000000000000008e-182 or 2.2000000000000001e-74 < a < 1.25000000000000006e41Initial program 75.8%
+-commutative75.8%
associate-*l/81.1%
fma-define81.5%
Simplified81.5%
Taylor expanded in a around 0 61.9%
associate-*r/61.9%
neg-mul-161.9%
Simplified61.9%
Taylor expanded in y around -inf 63.2%
associate-*r*63.2%
neg-mul-163.2%
sub-neg63.2%
metadata-eval63.2%
Simplified63.2%
if 3.10000000000000008e-182 < a < 2.2000000000000001e-74Initial program 63.6%
associate-*l/59.0%
Simplified59.0%
Taylor expanded in t around inf 73.3%
associate--l+73.3%
associate-*r/73.3%
associate-*r/73.3%
div-sub76.7%
distribute-lft-out--76.7%
associate-*r/76.7%
mul-1-neg76.7%
unsub-neg76.7%
distribute-rgt-out--76.7%
Simplified76.7%
Taylor expanded in y around 0 43.8%
associate-/l*55.8%
Simplified55.8%
if 1.25000000000000006e41 < a Initial program 66.9%
associate-/l*89.7%
Simplified89.7%
Taylor expanded in t around 0 67.3%
Taylor expanded in y around inf 51.7%
associate-*r/56.8%
Simplified56.8%
Taylor expanded in y around 0 51.7%
associate-/l*56.8%
associate-/r/56.9%
Simplified56.9%
Final simplification61.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* (/ y (- a t)) (- t z)))))
(if (<= y -2.8e-78)
t_1
(if (<= y 1.45e-245)
(* x (+ (/ (- t z) (- a t)) 1.0))
(if (<= y 3.4e-86) (+ y (/ (* x (- z a)) t)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - ((y / (a - t)) * (t - z));
double tmp;
if (y <= -2.8e-78) {
tmp = t_1;
} else if (y <= 1.45e-245) {
tmp = x * (((t - z) / (a - t)) + 1.0);
} else if (y <= 3.4e-86) {
tmp = y + ((x * (z - a)) / t);
} 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 = x - ((y / (a - t)) * (t - z))
if (y <= (-2.8d-78)) then
tmp = t_1
else if (y <= 1.45d-245) then
tmp = x * (((t - z) / (a - t)) + 1.0d0)
else if (y <= 3.4d-86) then
tmp = y + ((x * (z - a)) / t)
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 = x - ((y / (a - t)) * (t - z));
double tmp;
if (y <= -2.8e-78) {
tmp = t_1;
} else if (y <= 1.45e-245) {
tmp = x * (((t - z) / (a - t)) + 1.0);
} else if (y <= 3.4e-86) {
tmp = y + ((x * (z - a)) / t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - ((y / (a - t)) * (t - z)) tmp = 0 if y <= -2.8e-78: tmp = t_1 elif y <= 1.45e-245: tmp = x * (((t - z) / (a - t)) + 1.0) elif y <= 3.4e-86: tmp = y + ((x * (z - a)) / t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(y / Float64(a - t)) * Float64(t - z))) tmp = 0.0 if (y <= -2.8e-78) tmp = t_1; elseif (y <= 1.45e-245) tmp = Float64(x * Float64(Float64(Float64(t - z) / Float64(a - t)) + 1.0)); elseif (y <= 3.4e-86) tmp = Float64(y + Float64(Float64(x * Float64(z - a)) / t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - ((y / (a - t)) * (t - z)); tmp = 0.0; if (y <= -2.8e-78) tmp = t_1; elseif (y <= 1.45e-245) tmp = x * (((t - z) / (a - t)) + 1.0); elseif (y <= 3.4e-86) tmp = y + ((x * (z - a)) / t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.8e-78], t$95$1, If[LessEqual[y, 1.45e-245], N[(x * N[(N[(N[(t - z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e-86], N[(y + N[(N[(x * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{y}{a - t} \cdot \left(t - z\right)\\
\mathbf{if}\;y \leq -2.8 \cdot 10^{-78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{-245}:\\
\;\;\;\;x \cdot \left(\frac{t - z}{a - t} + 1\right)\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{-86}:\\
\;\;\;\;y + \frac{x \cdot \left(z - a\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.80000000000000024e-78 or 3.4e-86 < y Initial program 77.0%
associate-*l/91.9%
Simplified91.9%
Taylor expanded in y around inf 82.9%
if -2.80000000000000024e-78 < y < 1.45e-245Initial program 64.3%
associate-*l/65.2%
Simplified65.2%
Taylor expanded in x around inf 64.3%
mul-1-neg64.3%
unsub-neg64.3%
Simplified64.3%
if 1.45e-245 < y < 3.4e-86Initial program 54.7%
associate-*l/51.4%
Simplified51.4%
Taylor expanded in t around inf 70.1%
associate--l+70.1%
associate-*r/70.1%
associate-*r/70.1%
div-sub70.0%
distribute-lft-out--70.0%
associate-*r/70.0%
mul-1-neg70.0%
unsub-neg70.0%
distribute-rgt-out--70.3%
Simplified70.3%
Taylor expanded in y around 0 66.9%
mul-1-neg66.9%
*-commutative66.9%
distribute-rgt-neg-in66.9%
Simplified66.9%
Final simplification75.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* (/ y (- a t)) (- t z)))))
(if (<= y -2.15e-78)
t_1
(if (<= y 2.8e-244)
(- x (/ x (/ (- a t) (- z t))))
(if (<= y 6.2e-98) (+ y (/ (* x (- z a)) t)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - ((y / (a - t)) * (t - z));
double tmp;
if (y <= -2.15e-78) {
tmp = t_1;
} else if (y <= 2.8e-244) {
tmp = x - (x / ((a - t) / (z - t)));
} else if (y <= 6.2e-98) {
tmp = y + ((x * (z - a)) / t);
} 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 = x - ((y / (a - t)) * (t - z))
if (y <= (-2.15d-78)) then
tmp = t_1
else if (y <= 2.8d-244) then
tmp = x - (x / ((a - t) / (z - t)))
else if (y <= 6.2d-98) then
tmp = y + ((x * (z - a)) / t)
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 = x - ((y / (a - t)) * (t - z));
double tmp;
if (y <= -2.15e-78) {
tmp = t_1;
} else if (y <= 2.8e-244) {
tmp = x - (x / ((a - t) / (z - t)));
} else if (y <= 6.2e-98) {
tmp = y + ((x * (z - a)) / t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - ((y / (a - t)) * (t - z)) tmp = 0 if y <= -2.15e-78: tmp = t_1 elif y <= 2.8e-244: tmp = x - (x / ((a - t) / (z - t))) elif y <= 6.2e-98: tmp = y + ((x * (z - a)) / t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(y / Float64(a - t)) * Float64(t - z))) tmp = 0.0 if (y <= -2.15e-78) tmp = t_1; elseif (y <= 2.8e-244) tmp = Float64(x - Float64(x / Float64(Float64(a - t) / Float64(z - t)))); elseif (y <= 6.2e-98) tmp = Float64(y + Float64(Float64(x * Float64(z - a)) / t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - ((y / (a - t)) * (t - z)); tmp = 0.0; if (y <= -2.15e-78) tmp = t_1; elseif (y <= 2.8e-244) tmp = x - (x / ((a - t) / (z - t))); elseif (y <= 6.2e-98) tmp = y + ((x * (z - a)) / t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.15e-78], t$95$1, If[LessEqual[y, 2.8e-244], N[(x - N[(x / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.2e-98], N[(y + N[(N[(x * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{y}{a - t} \cdot \left(t - z\right)\\
\mathbf{if}\;y \leq -2.15 \cdot 10^{-78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-244}:\\
\;\;\;\;x - \frac{x}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{-98}:\\
\;\;\;\;y + \frac{x \cdot \left(z - a\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.14999999999999997e-78 or 6.2e-98 < y Initial program 77.0%
associate-*l/91.9%
Simplified91.9%
Taylor expanded in y around inf 82.9%
if -2.14999999999999997e-78 < y < 2.80000000000000013e-244Initial program 64.3%
+-commutative64.3%
associate-*l/65.2%
fma-define65.7%
Simplified65.7%
clear-num64.7%
inv-pow64.7%
Applied egg-rr64.7%
unpow-164.7%
Simplified64.7%
Taylor expanded in y around 0 53.8%
mul-1-neg53.8%
unsub-neg53.8%
associate-/l*64.5%
Simplified64.5%
if 2.80000000000000013e-244 < y < 6.2e-98Initial program 54.7%
associate-*l/51.4%
Simplified51.4%
Taylor expanded in t around inf 70.1%
associate--l+70.1%
associate-*r/70.1%
associate-*r/70.1%
div-sub70.0%
distribute-lft-out--70.0%
associate-*r/70.0%
mul-1-neg70.0%
unsub-neg70.0%
distribute-rgt-out--70.3%
Simplified70.3%
Taylor expanded in y around 0 66.9%
mul-1-neg66.9%
*-commutative66.9%
distribute-rgt-neg-in66.9%
Simplified66.9%
Final simplification75.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* (/ y (- a t)) (- t z)))))
(if (<= y -2.2e-78)
t_1
(if (<= y 2.8e-244)
(- x (/ x (/ (- a t) (- z t))))
(if (<= y 9e-91) (+ y (/ (* (- y x) (- a z)) t)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - ((y / (a - t)) * (t - z));
double tmp;
if (y <= -2.2e-78) {
tmp = t_1;
} else if (y <= 2.8e-244) {
tmp = x - (x / ((a - t) / (z - t)));
} else if (y <= 9e-91) {
tmp = y + (((y - x) * (a - z)) / t);
} 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 = x - ((y / (a - t)) * (t - z))
if (y <= (-2.2d-78)) then
tmp = t_1
else if (y <= 2.8d-244) then
tmp = x - (x / ((a - t) / (z - t)))
else if (y <= 9d-91) then
tmp = y + (((y - x) * (a - z)) / t)
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 = x - ((y / (a - t)) * (t - z));
double tmp;
if (y <= -2.2e-78) {
tmp = t_1;
} else if (y <= 2.8e-244) {
tmp = x - (x / ((a - t) / (z - t)));
} else if (y <= 9e-91) {
tmp = y + (((y - x) * (a - z)) / t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - ((y / (a - t)) * (t - z)) tmp = 0 if y <= -2.2e-78: tmp = t_1 elif y <= 2.8e-244: tmp = x - (x / ((a - t) / (z - t))) elif y <= 9e-91: tmp = y + (((y - x) * (a - z)) / t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(y / Float64(a - t)) * Float64(t - z))) tmp = 0.0 if (y <= -2.2e-78) tmp = t_1; elseif (y <= 2.8e-244) tmp = Float64(x - Float64(x / Float64(Float64(a - t) / Float64(z - t)))); elseif (y <= 9e-91) tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - ((y / (a - t)) * (t - z)); tmp = 0.0; if (y <= -2.2e-78) tmp = t_1; elseif (y <= 2.8e-244) tmp = x - (x / ((a - t) / (z - t))); elseif (y <= 9e-91) tmp = y + (((y - x) * (a - z)) / t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.2e-78], t$95$1, If[LessEqual[y, 2.8e-244], N[(x - N[(x / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9e-91], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{y}{a - t} \cdot \left(t - z\right)\\
\mathbf{if}\;y \leq -2.2 \cdot 10^{-78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-244}:\\
\;\;\;\;x - \frac{x}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;y \leq 9 \cdot 10^{-91}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.1999999999999999e-78 or 8.99999999999999952e-91 < y Initial program 77.0%
associate-*l/91.9%
Simplified91.9%
Taylor expanded in y around inf 82.9%
if -2.1999999999999999e-78 < y < 2.80000000000000013e-244Initial program 64.3%
+-commutative64.3%
associate-*l/65.2%
fma-define65.7%
Simplified65.7%
clear-num64.7%
inv-pow64.7%
Applied egg-rr64.7%
unpow-164.7%
Simplified64.7%
Taylor expanded in y around 0 53.8%
mul-1-neg53.8%
unsub-neg53.8%
associate-/l*64.5%
Simplified64.5%
if 2.80000000000000013e-244 < y < 8.99999999999999952e-91Initial program 54.7%
associate-*l/51.4%
Simplified51.4%
Taylor expanded in t around inf 70.1%
associate--l+70.1%
associate-*r/70.1%
associate-*r/70.1%
div-sub70.0%
distribute-lft-out--70.0%
associate-*r/70.0%
mul-1-neg70.0%
unsub-neg70.0%
distribute-rgt-out--70.3%
Simplified70.3%
Final simplification76.3%
(FPCore (x y z t a)
:precision binary64
(if (<= a -5e-15)
(+ x (/ (- y x) (/ a z)))
(if (<= a -4.7e-226)
(/ y (/ (- a t) (- z t)))
(if (<= a 7.4e-34) (+ y (/ (* x (- z a)) t)) (+ x (/ z (/ a (- y x))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -5e-15) {
tmp = x + ((y - x) / (a / z));
} else if (a <= -4.7e-226) {
tmp = y / ((a - t) / (z - t));
} else if (a <= 7.4e-34) {
tmp = y + ((x * (z - a)) / t);
} else {
tmp = x + (z / (a / (y - 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 <= (-5d-15)) then
tmp = x + ((y - x) / (a / z))
else if (a <= (-4.7d-226)) then
tmp = y / ((a - t) / (z - t))
else if (a <= 7.4d-34) then
tmp = y + ((x * (z - a)) / t)
else
tmp = x + (z / (a / (y - 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 <= -5e-15) {
tmp = x + ((y - x) / (a / z));
} else if (a <= -4.7e-226) {
tmp = y / ((a - t) / (z - t));
} else if (a <= 7.4e-34) {
tmp = y + ((x * (z - a)) / t);
} else {
tmp = x + (z / (a / (y - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -5e-15: tmp = x + ((y - x) / (a / z)) elif a <= -4.7e-226: tmp = y / ((a - t) / (z - t)) elif a <= 7.4e-34: tmp = y + ((x * (z - a)) / t) else: tmp = x + (z / (a / (y - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -5e-15) tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); elseif (a <= -4.7e-226) tmp = Float64(y / Float64(Float64(a - t) / Float64(z - t))); elseif (a <= 7.4e-34) tmp = Float64(y + Float64(Float64(x * Float64(z - a)) / t)); else tmp = Float64(x + Float64(z / Float64(a / Float64(y - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -5e-15) tmp = x + ((y - x) / (a / z)); elseif (a <= -4.7e-226) tmp = y / ((a - t) / (z - t)); elseif (a <= 7.4e-34) tmp = y + ((x * (z - a)) / t); else tmp = x + (z / (a / (y - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -5e-15], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.7e-226], N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.4e-34], N[(y + N[(N[(x * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(x + N[(z / N[(a / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5 \cdot 10^{-15}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\mathbf{elif}\;a \leq -4.7 \cdot 10^{-226}:\\
\;\;\;\;\frac{y}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;a \leq 7.4 \cdot 10^{-34}:\\
\;\;\;\;y + \frac{x \cdot \left(z - a\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{\frac{a}{y - x}}\\
\end{array}
\end{array}
if a < -4.99999999999999999e-15Initial program 70.2%
associate-/l*85.7%
Simplified85.7%
Taylor expanded in t around 0 71.2%
if -4.99999999999999999e-15 < a < -4.69999999999999999e-226Initial program 73.7%
associate-*l/76.4%
Simplified76.4%
Taylor expanded in x around 0 68.5%
associate-/l*76.4%
Simplified76.4%
if -4.69999999999999999e-226 < a < 7.39999999999999976e-34Initial program 72.4%
associate-*l/73.0%
Simplified73.0%
Taylor expanded in t around inf 81.6%
associate--l+81.6%
associate-*r/81.6%
associate-*r/81.6%
div-sub82.9%
distribute-lft-out--82.9%
associate-*r/82.9%
mul-1-neg82.9%
unsub-neg82.9%
distribute-rgt-out--82.9%
Simplified82.9%
Taylor expanded in y around 0 71.8%
mul-1-neg71.8%
*-commutative71.8%
distribute-rgt-neg-in71.8%
Simplified71.8%
if 7.39999999999999976e-34 < a Initial program 68.5%
associate-*l/87.1%
Simplified87.1%
Taylor expanded in t around 0 52.1%
associate-/l*62.9%
Simplified62.9%
Final simplification69.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -8e+65) (not (<= z 1.8e+24))) (* z (/ (- y x) (- a t))) (- x (/ t (/ (- a t) y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -8e+65) || !(z <= 1.8e+24)) {
tmp = z * ((y - x) / (a - t));
} else {
tmp = x - (t / ((a - t) / 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 ((z <= (-8d+65)) .or. (.not. (z <= 1.8d+24))) then
tmp = z * ((y - x) / (a - t))
else
tmp = x - (t / ((a - t) / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -8e+65) || !(z <= 1.8e+24)) {
tmp = z * ((y - x) / (a - t));
} else {
tmp = x - (t / ((a - t) / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -8e+65) or not (z <= 1.8e+24): tmp = z * ((y - x) / (a - t)) else: tmp = x - (t / ((a - t) / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -8e+65) || !(z <= 1.8e+24)) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); else tmp = Float64(x - Float64(t / Float64(Float64(a - t) / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -8e+65) || ~((z <= 1.8e+24))) tmp = z * ((y - x) / (a - t)); else tmp = x - (t / ((a - t) / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -8e+65], N[Not[LessEqual[z, 1.8e+24]], $MachinePrecision]], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(t / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8 \cdot 10^{+65} \lor \neg \left(z \leq 1.8 \cdot 10^{+24}\right):\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{t}{\frac{a - t}{y}}\\
\end{array}
\end{array}
if z < -7.9999999999999999e65 or 1.79999999999999992e24 < z Initial program 66.7%
associate-*l/82.7%
Simplified82.7%
Taylor expanded in z around inf 73.5%
div-sub73.5%
Simplified73.5%
if -7.9999999999999999e65 < z < 1.79999999999999992e24Initial program 74.3%
associate-*l/77.5%
Simplified77.5%
Taylor expanded in y around inf 74.2%
Taylor expanded in z around 0 61.8%
mul-1-neg61.8%
unsub-neg61.8%
associate-/l*66.9%
Simplified66.9%
Final simplification69.8%
(FPCore (x y z t a)
:precision binary64
(if (<= a -4.8e-15)
(+ x (/ (- y x) (/ a z)))
(if (<= a 105000000000.0)
(/ y (/ (- a t) (- z t)))
(+ x (/ z (/ a (- y x)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.8e-15) {
tmp = x + ((y - x) / (a / z));
} else if (a <= 105000000000.0) {
tmp = y / ((a - t) / (z - t));
} else {
tmp = x + (z / (a / (y - 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 <= (-4.8d-15)) then
tmp = x + ((y - x) / (a / z))
else if (a <= 105000000000.0d0) then
tmp = y / ((a - t) / (z - t))
else
tmp = x + (z / (a / (y - 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 <= -4.8e-15) {
tmp = x + ((y - x) / (a / z));
} else if (a <= 105000000000.0) {
tmp = y / ((a - t) / (z - t));
} else {
tmp = x + (z / (a / (y - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.8e-15: tmp = x + ((y - x) / (a / z)) elif a <= 105000000000.0: tmp = y / ((a - t) / (z - t)) else: tmp = x + (z / (a / (y - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.8e-15) tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); elseif (a <= 105000000000.0) tmp = Float64(y / Float64(Float64(a - t) / Float64(z - t))); else tmp = Float64(x + Float64(z / Float64(a / Float64(y - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4.8e-15) tmp = x + ((y - x) / (a / z)); elseif (a <= 105000000000.0) tmp = y / ((a - t) / (z - t)); else tmp = x + (z / (a / (y - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.8e-15], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 105000000000.0], N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z / N[(a / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.8 \cdot 10^{-15}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\mathbf{elif}\;a \leq 105000000000:\\
\;\;\;\;\frac{y}{\frac{a - t}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{\frac{a}{y - x}}\\
\end{array}
\end{array}
if a < -4.7999999999999999e-15Initial program 70.2%
associate-/l*85.7%
Simplified85.7%
Taylor expanded in t around 0 71.2%
if -4.7999999999999999e-15 < a < 1.05e11Initial program 73.2%
associate-*l/75.1%
Simplified75.1%
Taylor expanded in x around 0 59.0%
associate-/l*66.4%
Simplified66.4%
if 1.05e11 < a Initial program 67.0%
associate-*l/87.5%
Simplified87.5%
Taylor expanded in t around 0 53.0%
associate-/l*65.8%
Simplified65.8%
Final simplification67.6%
(FPCore (x y z t a) :precision binary64 (if (<= t -2.55e+180) (+ y (/ (* x (- z a)) t)) (+ x (* (- t z) (/ (- x y) (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.55e+180) {
tmp = y + ((x * (z - a)) / t);
} else {
tmp = x + ((t - z) * ((x - y) / (a - 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 (t <= (-2.55d+180)) then
tmp = y + ((x * (z - a)) / t)
else
tmp = x + ((t - z) * ((x - y) / (a - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.55e+180) {
tmp = y + ((x * (z - a)) / t);
} else {
tmp = x + ((t - z) * ((x - y) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.55e+180: tmp = y + ((x * (z - a)) / t) else: tmp = x + ((t - z) * ((x - y) / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.55e+180) tmp = Float64(y + Float64(Float64(x * Float64(z - a)) / t)); else tmp = Float64(x + Float64(Float64(t - z) * Float64(Float64(x - y) / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.55e+180) tmp = y + ((x * (z - a)) / t); else tmp = x + ((t - z) * ((x - y) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.55e+180], N[(y + N[(N[(x * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - z), $MachinePrecision] * N[(N[(x - y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.55 \cdot 10^{+180}:\\
\;\;\;\;y + \frac{x \cdot \left(z - a\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \left(t - z\right) \cdot \frac{x - y}{a - t}\\
\end{array}
\end{array}
if t < -2.54999999999999977e180Initial program 26.7%
associate-*l/37.0%
Simplified37.0%
Taylor expanded in t around inf 81.6%
associate--l+81.6%
associate-*r/81.6%
associate-*r/81.6%
div-sub81.6%
distribute-lft-out--81.6%
associate-*r/81.6%
mul-1-neg81.6%
unsub-neg81.6%
distribute-rgt-out--81.6%
Simplified81.6%
Taylor expanded in y around 0 88.3%
mul-1-neg88.3%
*-commutative88.3%
distribute-rgt-neg-in88.3%
Simplified88.3%
if -2.54999999999999977e180 < t Initial program 75.9%
associate-*l/84.6%
Simplified84.6%
Final simplification85.0%
(FPCore (x y z t a) :precision binary64 (if (<= a -4.4e+30) x (if (<= a 1.02e+48) y x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.4e+30) {
tmp = x;
} else if (a <= 1.02e+48) {
tmp = y;
} 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 <= (-4.4d+30)) then
tmp = x
else if (a <= 1.02d+48) then
tmp = y
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 <= -4.4e+30) {
tmp = x;
} else if (a <= 1.02e+48) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.4e+30: tmp = x elif a <= 1.02e+48: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.4e+30) tmp = x; elseif (a <= 1.02e+48) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4.4e+30) tmp = x; elseif (a <= 1.02e+48) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.4e+30], x, If[LessEqual[a, 1.02e+48], y, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.4 \cdot 10^{+30}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.02 \cdot 10^{+48}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -4.4e30 or 1.02e48 < a Initial program 67.8%
associate-*l/83.4%
Simplified83.4%
Taylor expanded in a around inf 49.5%
if -4.4e30 < a < 1.02e48Initial program 73.6%
associate-*l/76.7%
Simplified76.7%
Taylor expanded in t around inf 38.6%
Final simplification43.7%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
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
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 70.9%
associate-*l/79.8%
Simplified79.8%
Taylor expanded in a around inf 26.6%
Final simplification26.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(if (< a -1.6153062845442575e-142)
t_1
(if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
double tmp;
if (a < -1.6153062845442575e-142) {
tmp = t_1;
} else if (a < 3.774403170083174e-182) {
tmp = y - ((z / t) * (y - 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 = x + (((y - x) / 1.0d0) * ((z - t) / (a - t)))
if (a < (-1.6153062845442575d-142)) then
tmp = t_1
else if (a < 3.774403170083174d-182) then
tmp = y - ((z / t) * (y - 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 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
double tmp;
if (a < -1.6153062845442575e-142) {
tmp = t_1;
} else if (a < 3.774403170083174e-182) {
tmp = y - ((z / t) * (y - x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t))) tmp = 0 if a < -1.6153062845442575e-142: tmp = t_1 elif a < 3.774403170083174e-182: tmp = y - ((z / t) * (y - x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) / 1.0) * Float64(Float64(z - t) / Float64(a - t)))) tmp = 0.0 if (a < -1.6153062845442575e-142) tmp = t_1; elseif (a < 3.774403170083174e-182) tmp = Float64(y - Float64(Float64(z / t) * Float64(y - x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t))); tmp = 0.0; if (a < -1.6153062845442575e-142) tmp = t_1; elseif (a < 3.774403170083174e-182) tmp = y - ((z / t) * (y - x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[a, -1.6153062845442575e-142], t$95$1, If[Less[a, 3.774403170083174e-182], N[(y - N[(N[(z / t), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;a < -1.6153062845442575 \cdot 10^{-142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a < 3.774403170083174 \cdot 10^{-182}:\\
\;\;\;\;y - \frac{z}{t} \cdot \left(y - x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024034
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
:precision binary64
:herbie-target
(if (< a -1.6153062845442575e-142) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t)))) (if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(+ x (/ (* (- y x) (- z t)) (- a t))))