
(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 24 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 (* (- y x) (- t z))) (t_2 (+ x (/ t_1 (- t a)))))
(if (<= t_2 (- INFINITY))
(- x (* (- z t) (* (- y x) (/ -1.0 (- a t)))))
(if (<= t_2 -1e-216)
(+ x (/ -1.0 (/ (- a t) t_1)))
(if (<= t_2 0.0)
(- y (/ (* (- a z) (- x y)) t))
(if (<= t_2 1e+305) t_2 (+ y (* (/ (- x y) t) (- z a)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y - x) * (t - z);
double t_2 = x + (t_1 / (t - a));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = x - ((z - t) * ((y - x) * (-1.0 / (a - t))));
} else if (t_2 <= -1e-216) {
tmp = x + (-1.0 / ((a - t) / t_1));
} else if (t_2 <= 0.0) {
tmp = y - (((a - z) * (x - y)) / t);
} else if (t_2 <= 1e+305) {
tmp = t_2;
} else {
tmp = y + (((x - y) / t) * (z - a));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (y - x) * (t - z);
double t_2 = x + (t_1 / (t - a));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = x - ((z - t) * ((y - x) * (-1.0 / (a - t))));
} else if (t_2 <= -1e-216) {
tmp = x + (-1.0 / ((a - t) / t_1));
} else if (t_2 <= 0.0) {
tmp = y - (((a - z) * (x - y)) / t);
} else if (t_2 <= 1e+305) {
tmp = t_2;
} else {
tmp = y + (((x - y) / t) * (z - a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y - x) * (t - z) t_2 = x + (t_1 / (t - a)) tmp = 0 if t_2 <= -math.inf: tmp = x - ((z - t) * ((y - x) * (-1.0 / (a - t)))) elif t_2 <= -1e-216: tmp = x + (-1.0 / ((a - t) / t_1)) elif t_2 <= 0.0: tmp = y - (((a - z) * (x - y)) / t) elif t_2 <= 1e+305: tmp = t_2 else: tmp = y + (((x - y) / t) * (z - a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y - x) * Float64(t - z)) t_2 = Float64(x + Float64(t_1 / Float64(t - a))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(x - Float64(Float64(z - t) * Float64(Float64(y - x) * Float64(-1.0 / Float64(a - t))))); elseif (t_2 <= -1e-216) tmp = Float64(x + Float64(-1.0 / Float64(Float64(a - t) / t_1))); elseif (t_2 <= 0.0) tmp = Float64(y - Float64(Float64(Float64(a - z) * Float64(x - y)) / t)); elseif (t_2 <= 1e+305) tmp = t_2; else tmp = Float64(y + Float64(Float64(Float64(x - y) / t) * Float64(z - a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y - x) * (t - z); t_2 = x + (t_1 / (t - a)); tmp = 0.0; if (t_2 <= -Inf) tmp = x - ((z - t) * ((y - x) * (-1.0 / (a - t)))); elseif (t_2 <= -1e-216) tmp = x + (-1.0 / ((a - t) / t_1)); elseif (t_2 <= 0.0) tmp = y - (((a - z) * (x - y)) / t); elseif (t_2 <= 1e+305) tmp = t_2; else tmp = y + (((x - y) / t) * (z - a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y - x), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(t$95$1 / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(x - N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] * N[(-1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, -1e-216], N[(x + N[(-1.0 / N[(N[(a - t), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 0.0], N[(y - N[(N[(N[(a - z), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+305], t$95$2, N[(y + N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - x\right) \cdot \left(t - z\right)\\
t_2 := x + \frac{t\_1}{t - a}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;x - \left(z - t\right) \cdot \left(\left(y - x\right) \cdot \frac{-1}{a - t}\right)\\
\mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-216}:\\
\;\;\;\;x + \frac{-1}{\frac{a - t}{t\_1}}\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;y - \frac{\left(a - z\right) \cdot \left(x - y\right)}{t}\\
\mathbf{elif}\;t\_2 \leq 10^{+305}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;y + \frac{x - y}{t} \cdot \left(z - a\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0Initial program 43.2%
div-inv43.2%
*-commutative43.2%
associate-*l*85.5%
Applied egg-rr85.5%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1e-216Initial program 97.1%
clear-num97.1%
inv-pow97.1%
*-commutative97.1%
associate-/r*97.1%
Applied egg-rr97.1%
unpow-197.1%
associate-/l/97.1%
*-commutative97.1%
Simplified97.1%
if -1e-216 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 9.2%
div-inv9.7%
*-commutative9.7%
associate-*l*4.9%
Applied egg-rr4.9%
Taylor expanded in t around inf 99.9%
associate--l+99.9%
associate-*r/99.9%
associate-*r/99.9%
mul-1-neg99.9%
div-sub100.0%
mul-1-neg100.0%
distribute-lft-out--100.0%
associate-*r/100.0%
mul-1-neg100.0%
unsub-neg100.0%
distribute-rgt-out--100.0%
Simplified100.0%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 9.9999999999999994e304Initial program 99.4%
if 9.9999999999999994e304 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 22.1%
Taylor expanded in t around inf 49.0%
associate--l+49.0%
distribute-lft-out--49.0%
div-sub49.1%
mul-1-neg49.1%
unsub-neg49.1%
div-sub49.0%
associate-/l*61.2%
associate-/l*68.5%
distribute-rgt-out--72.9%
Simplified72.9%
Final simplification91.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- t z)) (- t a)))))
(if (or (<= t_1 -1e-216) (not (<= t_1 0.0)))
(fma (- y x) (/ (- z t) (- a t)) x)
(- y (/ (* (- a z) (- x y)) t)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (t - z)) / (t - a));
double tmp;
if ((t_1 <= -1e-216) || !(t_1 <= 0.0)) {
tmp = fma((y - x), ((z - t) / (a - t)), x);
} else {
tmp = y - (((a - z) * (x - y)) / t);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(t - z)) / Float64(t - a))) tmp = 0.0 if ((t_1 <= -1e-216) || !(t_1 <= 0.0)) tmp = fma(Float64(y - x), Float64(Float64(z - t) / Float64(a - t)), x); else tmp = Float64(y - Float64(Float64(Float64(a - z) * Float64(x - y)) / t)); end return 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[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -1e-216], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(y - N[(N[(N[(a - z), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(t - z\right)}{t - a}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-216} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;\mathsf{fma}\left(y - x, \frac{z - t}{a - t}, x\right)\\
\mathbf{else}:\\
\;\;\;\;y - \frac{\left(a - z\right) \cdot \left(x - y\right)}{t}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1e-216 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 70.9%
+-commutative70.9%
associate-/l*90.0%
fma-define90.0%
Simplified90.0%
if -1e-216 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 9.2%
div-inv9.7%
*-commutative9.7%
associate-*l*4.9%
Applied egg-rr4.9%
Taylor expanded in t around inf 99.9%
associate--l+99.9%
associate-*r/99.9%
associate-*r/99.9%
mul-1-neg99.9%
div-sub100.0%
mul-1-neg100.0%
distribute-lft-out--100.0%
associate-*r/100.0%
mul-1-neg100.0%
unsub-neg100.0%
distribute-rgt-out--100.0%
Simplified100.0%
Final simplification90.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- t z)) (- t a)))))
(if (<= t_1 (- INFINITY))
(- x (* (- z t) (* (- y x) (/ -1.0 (- a t)))))
(if (<= t_1 -1e-216)
t_1
(if (<= t_1 0.0)
(- y (/ (* (- a z) (- x y)) t))
(if (<= t_1 1e+305) t_1 (+ y (* (/ (- x y) t) (- z a)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (t - z)) / (t - a));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = x - ((z - t) * ((y - x) * (-1.0 / (a - t))));
} else if (t_1 <= -1e-216) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = y - (((a - z) * (x - y)) / t);
} else if (t_1 <= 1e+305) {
tmp = t_1;
} else {
tmp = y + (((x - y) / t) * (z - a));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (t - z)) / (t - a));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = x - ((z - t) * ((y - x) * (-1.0 / (a - t))));
} else if (t_1 <= -1e-216) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = y - (((a - z) * (x - y)) / t);
} else if (t_1 <= 1e+305) {
tmp = t_1;
} else {
tmp = y + (((x - y) / t) * (z - a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) * (t - z)) / (t - a)) tmp = 0 if t_1 <= -math.inf: tmp = x - ((z - t) * ((y - x) * (-1.0 / (a - t)))) elif t_1 <= -1e-216: tmp = t_1 elif t_1 <= 0.0: tmp = y - (((a - z) * (x - y)) / t) elif t_1 <= 1e+305: tmp = t_1 else: tmp = y + (((x - y) / t) * (z - a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(t - z)) / Float64(t - a))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(x - Float64(Float64(z - t) * Float64(Float64(y - x) * Float64(-1.0 / Float64(a - t))))); elseif (t_1 <= -1e-216) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(y - Float64(Float64(Float64(a - z) * Float64(x - y)) / t)); elseif (t_1 <= 1e+305) tmp = t_1; else tmp = Float64(y + Float64(Float64(Float64(x - y) / t) * Float64(z - a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) * (t - z)) / (t - a)); tmp = 0.0; if (t_1 <= -Inf) tmp = x - ((z - t) * ((y - x) * (-1.0 / (a - t)))); elseif (t_1 <= -1e-216) tmp = t_1; elseif (t_1 <= 0.0) tmp = y - (((a - z) * (x - y)) / t); elseif (t_1 <= 1e+305) tmp = t_1; else tmp = y + (((x - y) / t) * (z - a)); 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[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(x - N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] * N[(-1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -1e-216], t$95$1, If[LessEqual[t$95$1, 0.0], N[(y - N[(N[(N[(a - z), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+305], t$95$1, N[(y + N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(t - z\right)}{t - a}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;x - \left(z - t\right) \cdot \left(\left(y - x\right) \cdot \frac{-1}{a - t}\right)\\
\mathbf{elif}\;t\_1 \leq -1 \cdot 10^{-216}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;y - \frac{\left(a - z\right) \cdot \left(x - y\right)}{t}\\
\mathbf{elif}\;t\_1 \leq 10^{+305}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y + \frac{x - y}{t} \cdot \left(z - a\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0Initial program 43.2%
div-inv43.2%
*-commutative43.2%
associate-*l*85.5%
Applied egg-rr85.5%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1e-216 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 9.9999999999999994e304Initial program 98.3%
if -1e-216 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 9.2%
div-inv9.7%
*-commutative9.7%
associate-*l*4.9%
Applied egg-rr4.9%
Taylor expanded in t around inf 99.9%
associate--l+99.9%
associate-*r/99.9%
associate-*r/99.9%
mul-1-neg99.9%
div-sub100.0%
mul-1-neg100.0%
distribute-lft-out--100.0%
associate-*r/100.0%
mul-1-neg100.0%
unsub-neg100.0%
distribute-rgt-out--100.0%
Simplified100.0%
if 9.9999999999999994e304 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 22.1%
Taylor expanded in t around inf 49.0%
associate--l+49.0%
distribute-lft-out--49.0%
div-sub49.1%
mul-1-neg49.1%
unsub-neg49.1%
div-sub49.0%
associate-/l*61.2%
associate-/l*68.5%
distribute-rgt-out--72.9%
Simplified72.9%
Final simplification91.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- t z)) (- t a)))))
(if (<= t_1 (- INFINITY))
(/ z (/ (- a t) (- y x)))
(if (<= t_1 -1e-216)
t_1
(if (<= t_1 0.0)
(- y (/ (* (- a z) (- x y)) t))
(if (<= t_1 1e+305) t_1 (+ y (* (/ (- x y) t) (- z a)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (t - z)) / (t - a));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = z / ((a - t) / (y - x));
} else if (t_1 <= -1e-216) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = y - (((a - z) * (x - y)) / t);
} else if (t_1 <= 1e+305) {
tmp = t_1;
} else {
tmp = y + (((x - y) / t) * (z - a));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (t - z)) / (t - a));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = z / ((a - t) / (y - x));
} else if (t_1 <= -1e-216) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = y - (((a - z) * (x - y)) / t);
} else if (t_1 <= 1e+305) {
tmp = t_1;
} else {
tmp = y + (((x - y) / t) * (z - a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) * (t - z)) / (t - a)) tmp = 0 if t_1 <= -math.inf: tmp = z / ((a - t) / (y - x)) elif t_1 <= -1e-216: tmp = t_1 elif t_1 <= 0.0: tmp = y - (((a - z) * (x - y)) / t) elif t_1 <= 1e+305: tmp = t_1 else: tmp = y + (((x - y) / t) * (z - a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(t - z)) / Float64(t - a))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(z / Float64(Float64(a - t) / Float64(y - x))); elseif (t_1 <= -1e-216) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(y - Float64(Float64(Float64(a - z) * Float64(x - y)) / t)); elseif (t_1 <= 1e+305) tmp = t_1; else tmp = Float64(y + Float64(Float64(Float64(x - y) / t) * Float64(z - a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) * (t - z)) / (t - a)); tmp = 0.0; if (t_1 <= -Inf) tmp = z / ((a - t) / (y - x)); elseif (t_1 <= -1e-216) tmp = t_1; elseif (t_1 <= 0.0) tmp = y - (((a - z) * (x - y)) / t); elseif (t_1 <= 1e+305) tmp = t_1; else tmp = y + (((x - y) / t) * (z - a)); 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[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(z / N[(N[(a - t), $MachinePrecision] / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -1e-216], t$95$1, If[LessEqual[t$95$1, 0.0], N[(y - N[(N[(N[(a - z), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+305], t$95$1, N[(y + N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(t - z\right)}{t - a}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\frac{z}{\frac{a - t}{y - x}}\\
\mathbf{elif}\;t\_1 \leq -1 \cdot 10^{-216}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;y - \frac{\left(a - z\right) \cdot \left(x - y\right)}{t}\\
\mathbf{elif}\;t\_1 \leq 10^{+305}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y + \frac{x - y}{t} \cdot \left(z - a\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0Initial program 43.2%
div-inv43.2%
*-commutative43.2%
associate-*l*85.5%
Applied egg-rr85.5%
Taylor expanded in z around inf 62.5%
div-sub64.4%
Simplified64.4%
clear-num64.4%
un-div-inv64.5%
Applied egg-rr64.5%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1e-216 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 9.9999999999999994e304Initial program 98.3%
if -1e-216 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 9.2%
div-inv9.7%
*-commutative9.7%
associate-*l*4.9%
Applied egg-rr4.9%
Taylor expanded in t around inf 99.9%
associate--l+99.9%
associate-*r/99.9%
associate-*r/99.9%
mul-1-neg99.9%
div-sub100.0%
mul-1-neg100.0%
distribute-lft-out--100.0%
associate-*r/100.0%
mul-1-neg100.0%
unsub-neg100.0%
distribute-rgt-out--100.0%
Simplified100.0%
if 9.9999999999999994e304 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 22.1%
Taylor expanded in t around inf 49.0%
associate--l+49.0%
distribute-lft-out--49.0%
div-sub49.1%
mul-1-neg49.1%
unsub-neg49.1%
div-sub49.0%
associate-/l*61.2%
associate-/l*68.5%
distribute-rgt-out--72.9%
Simplified72.9%
Final simplification86.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* z (/ (- x y) t))))
(if (<= a -42000000000.0)
(+ x (/ y (/ a z)))
(if (<= a -5.2e-169)
(* x (/ (- z a) t))
(if (<= a -9.5e-190)
y
(if (<= a -9.2e-302)
t_1
(if (<= a 2.7e-252)
y
(if (<= a 3.2e-129)
t_1
(if (<= a 43000000000.0)
(+ x (/ -1.0 (/ -1.0 y)))
(+ x (* y (/ z a))))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = z * ((x - y) / t);
double tmp;
if (a <= -42000000000.0) {
tmp = x + (y / (a / z));
} else if (a <= -5.2e-169) {
tmp = x * ((z - a) / t);
} else if (a <= -9.5e-190) {
tmp = y;
} else if (a <= -9.2e-302) {
tmp = t_1;
} else if (a <= 2.7e-252) {
tmp = y;
} else if (a <= 3.2e-129) {
tmp = t_1;
} else if (a <= 43000000000.0) {
tmp = x + (-1.0 / (-1.0 / y));
} else {
tmp = x + (y * (z / 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 = z * ((x - y) / t)
if (a <= (-42000000000.0d0)) then
tmp = x + (y / (a / z))
else if (a <= (-5.2d-169)) then
tmp = x * ((z - a) / t)
else if (a <= (-9.5d-190)) then
tmp = y
else if (a <= (-9.2d-302)) then
tmp = t_1
else if (a <= 2.7d-252) then
tmp = y
else if (a <= 3.2d-129) then
tmp = t_1
else if (a <= 43000000000.0d0) then
tmp = x + ((-1.0d0) / ((-1.0d0) / y))
else
tmp = x + (y * (z / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = z * ((x - y) / t);
double tmp;
if (a <= -42000000000.0) {
tmp = x + (y / (a / z));
} else if (a <= -5.2e-169) {
tmp = x * ((z - a) / t);
} else if (a <= -9.5e-190) {
tmp = y;
} else if (a <= -9.2e-302) {
tmp = t_1;
} else if (a <= 2.7e-252) {
tmp = y;
} else if (a <= 3.2e-129) {
tmp = t_1;
} else if (a <= 43000000000.0) {
tmp = x + (-1.0 / (-1.0 / y));
} else {
tmp = x + (y * (z / a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = z * ((x - y) / t) tmp = 0 if a <= -42000000000.0: tmp = x + (y / (a / z)) elif a <= -5.2e-169: tmp = x * ((z - a) / t) elif a <= -9.5e-190: tmp = y elif a <= -9.2e-302: tmp = t_1 elif a <= 2.7e-252: tmp = y elif a <= 3.2e-129: tmp = t_1 elif a <= 43000000000.0: tmp = x + (-1.0 / (-1.0 / y)) else: tmp = x + (y * (z / a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(z * Float64(Float64(x - y) / t)) tmp = 0.0 if (a <= -42000000000.0) tmp = Float64(x + Float64(y / Float64(a / z))); elseif (a <= -5.2e-169) tmp = Float64(x * Float64(Float64(z - a) / t)); elseif (a <= -9.5e-190) tmp = y; elseif (a <= -9.2e-302) tmp = t_1; elseif (a <= 2.7e-252) tmp = y; elseif (a <= 3.2e-129) tmp = t_1; elseif (a <= 43000000000.0) tmp = Float64(x + Float64(-1.0 / Float64(-1.0 / y))); else tmp = Float64(x + Float64(y * Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = z * ((x - y) / t); tmp = 0.0; if (a <= -42000000000.0) tmp = x + (y / (a / z)); elseif (a <= -5.2e-169) tmp = x * ((z - a) / t); elseif (a <= -9.5e-190) tmp = y; elseif (a <= -9.2e-302) tmp = t_1; elseif (a <= 2.7e-252) tmp = y; elseif (a <= 3.2e-129) tmp = t_1; elseif (a <= 43000000000.0) tmp = x + (-1.0 / (-1.0 / y)); else tmp = x + (y * (z / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(z * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -42000000000.0], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.2e-169], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -9.5e-190], y, If[LessEqual[a, -9.2e-302], t$95$1, If[LessEqual[a, 2.7e-252], y, If[LessEqual[a, 3.2e-129], t$95$1, If[LessEqual[a, 43000000000.0], N[(x + N[(-1.0 / N[(-1.0 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \frac{x - y}{t}\\
\mathbf{if}\;a \leq -42000000000:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;a \leq -5.2 \cdot 10^{-169}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{elif}\;a \leq -9.5 \cdot 10^{-190}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq -9.2 \cdot 10^{-302}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{-252}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-129}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 43000000000:\\
\;\;\;\;x + \frac{-1}{\frac{-1}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\end{array}
\end{array}
if a < -4.2e10Initial program 74.1%
Taylor expanded in y around inf 72.6%
associate-/l*81.8%
Simplified81.8%
Taylor expanded in y around 0 72.6%
*-commutative72.6%
associate-*r/78.1%
*-commutative78.1%
associate-/r/81.9%
Simplified81.9%
Taylor expanded in t around 0 69.0%
if -4.2e10 < a < -5.20000000000000028e-169Initial program 54.3%
div-inv54.4%
*-commutative54.4%
associate-*l*60.2%
Applied egg-rr60.2%
Taylor expanded in t around inf 59.2%
associate--l+59.2%
associate-*r/59.2%
associate-*r/59.2%
mul-1-neg59.2%
div-sub59.2%
mul-1-neg59.2%
distribute-lft-out--59.2%
associate-*r/59.2%
mul-1-neg59.2%
unsub-neg59.2%
distribute-rgt-out--59.2%
Simplified59.2%
Taylor expanded in y around 0 29.1%
associate-/l*36.9%
Simplified36.9%
if -5.20000000000000028e-169 < a < -9.50000000000000055e-190 or -9.20000000000000007e-302 < a < 2.69999999999999981e-252Initial program 48.0%
Taylor expanded in t around inf 78.7%
if -9.50000000000000055e-190 < a < -9.20000000000000007e-302 or 2.69999999999999981e-252 < a < 3.2000000000000003e-129Initial program 70.0%
div-inv69.9%
*-commutative69.9%
associate-*l*68.3%
Applied egg-rr68.3%
Taylor expanded in t around inf 77.0%
associate--l+77.0%
associate-*r/77.0%
associate-*r/77.0%
mul-1-neg77.0%
div-sub77.0%
mul-1-neg77.0%
distribute-lft-out--77.0%
associate-*r/77.0%
mul-1-neg77.0%
unsub-neg77.0%
distribute-rgt-out--77.0%
Simplified77.0%
Taylor expanded in z around -inf 55.5%
mul-1-neg55.5%
associate-/l*64.7%
*-commutative64.7%
distribute-rgt-neg-in64.7%
Simplified64.7%
if 3.2000000000000003e-129 < a < 4.3e10Initial program 78.2%
Taylor expanded in y around inf 54.6%
associate-/l*70.8%
Simplified70.8%
associate-*r/54.6%
clear-num54.4%
Applied egg-rr54.4%
Taylor expanded in t around inf 53.0%
if 4.3e10 < a Initial program 64.6%
Taylor expanded in t around 0 58.6%
Taylor expanded in y around inf 58.2%
associate-/l*65.3%
Simplified65.3%
Final simplification62.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* z (/ (- y x) (- a t)))))
(if (<= a -180000000000.0)
(+ x (/ y (/ a z)))
(if (<= a -9.2e-302)
t_1
(if (<= a 3.4e-252)
y
(if (<= a 2.1e-82)
t_1
(if (<= a 4e-18)
(+ x (/ -1.0 (/ -1.0 y)))
(if (<= a 1.2e+52) t_1 (+ x (* y (/ z a)))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = z * ((y - x) / (a - t));
double tmp;
if (a <= -180000000000.0) {
tmp = x + (y / (a / z));
} else if (a <= -9.2e-302) {
tmp = t_1;
} else if (a <= 3.4e-252) {
tmp = y;
} else if (a <= 2.1e-82) {
tmp = t_1;
} else if (a <= 4e-18) {
tmp = x + (-1.0 / (-1.0 / y));
} else if (a <= 1.2e+52) {
tmp = t_1;
} else {
tmp = x + (y * (z / 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 = z * ((y - x) / (a - t))
if (a <= (-180000000000.0d0)) then
tmp = x + (y / (a / z))
else if (a <= (-9.2d-302)) then
tmp = t_1
else if (a <= 3.4d-252) then
tmp = y
else if (a <= 2.1d-82) then
tmp = t_1
else if (a <= 4d-18) then
tmp = x + ((-1.0d0) / ((-1.0d0) / y))
else if (a <= 1.2d+52) then
tmp = t_1
else
tmp = x + (y * (z / a))
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 (a <= -180000000000.0) {
tmp = x + (y / (a / z));
} else if (a <= -9.2e-302) {
tmp = t_1;
} else if (a <= 3.4e-252) {
tmp = y;
} else if (a <= 2.1e-82) {
tmp = t_1;
} else if (a <= 4e-18) {
tmp = x + (-1.0 / (-1.0 / y));
} else if (a <= 1.2e+52) {
tmp = t_1;
} else {
tmp = x + (y * (z / a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = z * ((y - x) / (a - t)) tmp = 0 if a <= -180000000000.0: tmp = x + (y / (a / z)) elif a <= -9.2e-302: tmp = t_1 elif a <= 3.4e-252: tmp = y elif a <= 2.1e-82: tmp = t_1 elif a <= 4e-18: tmp = x + (-1.0 / (-1.0 / y)) elif a <= 1.2e+52: tmp = t_1 else: tmp = x + (y * (z / a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(z * Float64(Float64(y - x) / Float64(a - t))) tmp = 0.0 if (a <= -180000000000.0) tmp = Float64(x + Float64(y / Float64(a / z))); elseif (a <= -9.2e-302) tmp = t_1; elseif (a <= 3.4e-252) tmp = y; elseif (a <= 2.1e-82) tmp = t_1; elseif (a <= 4e-18) tmp = Float64(x + Float64(-1.0 / Float64(-1.0 / y))); elseif (a <= 1.2e+52) tmp = t_1; else tmp = Float64(x + Float64(y * Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = z * ((y - x) / (a - t)); tmp = 0.0; if (a <= -180000000000.0) tmp = x + (y / (a / z)); elseif (a <= -9.2e-302) tmp = t_1; elseif (a <= 3.4e-252) tmp = y; elseif (a <= 2.1e-82) tmp = t_1; elseif (a <= 4e-18) tmp = x + (-1.0 / (-1.0 / y)); elseif (a <= 1.2e+52) tmp = t_1; else tmp = x + (y * (z / a)); 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[a, -180000000000.0], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -9.2e-302], t$95$1, If[LessEqual[a, 3.4e-252], y, If[LessEqual[a, 2.1e-82], t$95$1, If[LessEqual[a, 4e-18], N[(x + N[(-1.0 / N[(-1.0 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.2e+52], t$95$1, N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \frac{y - x}{a - t}\\
\mathbf{if}\;a \leq -180000000000:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;a \leq -9.2 \cdot 10^{-302}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.4 \cdot 10^{-252}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{-82}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 4 \cdot 10^{-18}:\\
\;\;\;\;x + \frac{-1}{\frac{-1}{y}}\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{+52}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\end{array}
\end{array}
if a < -1.8e11Initial program 74.1%
Taylor expanded in y around inf 72.6%
associate-/l*81.8%
Simplified81.8%
Taylor expanded in y around 0 72.6%
*-commutative72.6%
associate-*r/78.1%
*-commutative78.1%
associate-/r/81.9%
Simplified81.9%
Taylor expanded in t around 0 69.0%
if -1.8e11 < a < -9.20000000000000007e-302 or 3.4e-252 < a < 2.1e-82 or 4.0000000000000003e-18 < a < 1.2e52Initial program 63.9%
div-inv63.8%
*-commutative63.8%
associate-*l*67.2%
Applied egg-rr67.2%
Taylor expanded in z around inf 57.1%
div-sub58.1%
Simplified58.1%
if -9.20000000000000007e-302 < a < 3.4e-252Initial program 55.2%
Taylor expanded in t around inf 78.3%
if 2.1e-82 < a < 4.0000000000000003e-18Initial program 78.6%
Taylor expanded in y around inf 64.1%
associate-/l*85.4%
Simplified85.4%
associate-*r/64.1%
clear-num63.6%
Applied egg-rr63.6%
Taylor expanded in t around inf 68.8%
if 1.2e52 < a Initial program 61.7%
Taylor expanded in t around 0 58.8%
Taylor expanded in y around inf 61.8%
associate-/l*69.9%
Simplified69.9%
Final simplification65.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (/ z a)))))
(if (<= t -3.6e+124)
y
(if (<= t -5.5e+54)
t_1
(if (<= t -45000000000.0)
(/ (* y z) (- a t))
(if (<= t -4.4e-278)
t_1
(if (<= t 2.7e-177)
(- x (/ x (/ a z)))
(if (<= t 1.46e+125) t_1 y))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * (z / a));
double tmp;
if (t <= -3.6e+124) {
tmp = y;
} else if (t <= -5.5e+54) {
tmp = t_1;
} else if (t <= -45000000000.0) {
tmp = (y * z) / (a - t);
} else if (t <= -4.4e-278) {
tmp = t_1;
} else if (t <= 2.7e-177) {
tmp = x - (x / (a / z));
} else if (t <= 1.46e+125) {
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 + (y * (z / a))
if (t <= (-3.6d+124)) then
tmp = y
else if (t <= (-5.5d+54)) then
tmp = t_1
else if (t <= (-45000000000.0d0)) then
tmp = (y * z) / (a - t)
else if (t <= (-4.4d-278)) then
tmp = t_1
else if (t <= 2.7d-177) then
tmp = x - (x / (a / z))
else if (t <= 1.46d+125) 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 tmp;
if (t <= -3.6e+124) {
tmp = y;
} else if (t <= -5.5e+54) {
tmp = t_1;
} else if (t <= -45000000000.0) {
tmp = (y * z) / (a - t);
} else if (t <= -4.4e-278) {
tmp = t_1;
} else if (t <= 2.7e-177) {
tmp = x - (x / (a / z));
} else if (t <= 1.46e+125) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * (z / a)) tmp = 0 if t <= -3.6e+124: tmp = y elif t <= -5.5e+54: tmp = t_1 elif t <= -45000000000.0: tmp = (y * z) / (a - t) elif t <= -4.4e-278: tmp = t_1 elif t <= 2.7e-177: tmp = x - (x / (a / z)) elif t <= 1.46e+125: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(z / a))) tmp = 0.0 if (t <= -3.6e+124) tmp = y; elseif (t <= -5.5e+54) tmp = t_1; elseif (t <= -45000000000.0) tmp = Float64(Float64(y * z) / Float64(a - t)); elseif (t <= -4.4e-278) tmp = t_1; elseif (t <= 2.7e-177) tmp = Float64(x - Float64(x / Float64(a / z))); elseif (t <= 1.46e+125) 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)); tmp = 0.0; if (t <= -3.6e+124) tmp = y; elseif (t <= -5.5e+54) tmp = t_1; elseif (t <= -45000000000.0) tmp = (y * z) / (a - t); elseif (t <= -4.4e-278) tmp = t_1; elseif (t <= 2.7e-177) tmp = x - (x / (a / z)); elseif (t <= 1.46e+125) 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]}, If[LessEqual[t, -3.6e+124], y, If[LessEqual[t, -5.5e+54], t$95$1, If[LessEqual[t, -45000000000.0], N[(N[(y * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.4e-278], t$95$1, If[LessEqual[t, 2.7e-177], N[(x - N[(x / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.46e+125], t$95$1, y]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{z}{a}\\
\mathbf{if}\;t \leq -3.6 \cdot 10^{+124}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -5.5 \cdot 10^{+54}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -45000000000:\\
\;\;\;\;\frac{y \cdot z}{a - t}\\
\mathbf{elif}\;t \leq -4.4 \cdot 10^{-278}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-177}:\\
\;\;\;\;x - \frac{x}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 1.46 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -3.59999999999999986e124 or 1.45999999999999999e125 < t Initial program 31.8%
Taylor expanded in t around inf 52.3%
if -3.59999999999999986e124 < t < -5.50000000000000026e54 or -4.5e10 < t < -4.4000000000000002e-278 or 2.7000000000000002e-177 < t < 1.45999999999999999e125Initial program 77.6%
Taylor expanded in t around 0 55.6%
Taylor expanded in y around inf 53.7%
associate-/l*59.6%
Simplified59.6%
if -5.50000000000000026e54 < t < -4.5e10Initial program 89.7%
div-inv89.5%
*-commutative89.5%
associate-*l*99.5%
Applied egg-rr99.5%
Taylor expanded in x around 0 89.3%
Taylor expanded in z around inf 68.0%
if -4.4000000000000002e-278 < t < 2.7000000000000002e-177Initial program 92.1%
Taylor expanded in t around 0 84.0%
Taylor expanded in y around 0 84.0%
mul-1-neg84.0%
unsub-neg84.0%
associate-/l*87.8%
Simplified87.8%
clear-num87.7%
un-div-inv87.8%
Applied egg-rr87.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (/ z a)))))
(if (<= t -8.5e+122)
y
(if (<= t -8.5e+52)
t_1
(if (<= t -45000000000.0)
(* z (/ y (- a t)))
(if (<= t -2e-277)
t_1
(if (<= t 1e-175)
(- x (/ x (/ a z)))
(if (<= t 1.56e+125) t_1 y))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * (z / a));
double tmp;
if (t <= -8.5e+122) {
tmp = y;
} else if (t <= -8.5e+52) {
tmp = t_1;
} else if (t <= -45000000000.0) {
tmp = z * (y / (a - t));
} else if (t <= -2e-277) {
tmp = t_1;
} else if (t <= 1e-175) {
tmp = x - (x / (a / z));
} else if (t <= 1.56e+125) {
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 + (y * (z / a))
if (t <= (-8.5d+122)) then
tmp = y
else if (t <= (-8.5d+52)) then
tmp = t_1
else if (t <= (-45000000000.0d0)) then
tmp = z * (y / (a - t))
else if (t <= (-2d-277)) then
tmp = t_1
else if (t <= 1d-175) then
tmp = x - (x / (a / z))
else if (t <= 1.56d+125) 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 tmp;
if (t <= -8.5e+122) {
tmp = y;
} else if (t <= -8.5e+52) {
tmp = t_1;
} else if (t <= -45000000000.0) {
tmp = z * (y / (a - t));
} else if (t <= -2e-277) {
tmp = t_1;
} else if (t <= 1e-175) {
tmp = x - (x / (a / z));
} else if (t <= 1.56e+125) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * (z / a)) tmp = 0 if t <= -8.5e+122: tmp = y elif t <= -8.5e+52: tmp = t_1 elif t <= -45000000000.0: tmp = z * (y / (a - t)) elif t <= -2e-277: tmp = t_1 elif t <= 1e-175: tmp = x - (x / (a / z)) elif t <= 1.56e+125: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(z / a))) tmp = 0.0 if (t <= -8.5e+122) tmp = y; elseif (t <= -8.5e+52) tmp = t_1; elseif (t <= -45000000000.0) tmp = Float64(z * Float64(y / Float64(a - t))); elseif (t <= -2e-277) tmp = t_1; elseif (t <= 1e-175) tmp = Float64(x - Float64(x / Float64(a / z))); elseif (t <= 1.56e+125) 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)); tmp = 0.0; if (t <= -8.5e+122) tmp = y; elseif (t <= -8.5e+52) tmp = t_1; elseif (t <= -45000000000.0) tmp = z * (y / (a - t)); elseif (t <= -2e-277) tmp = t_1; elseif (t <= 1e-175) tmp = x - (x / (a / z)); elseif (t <= 1.56e+125) 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]}, If[LessEqual[t, -8.5e+122], y, If[LessEqual[t, -8.5e+52], t$95$1, If[LessEqual[t, -45000000000.0], N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2e-277], t$95$1, If[LessEqual[t, 1e-175], N[(x - N[(x / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.56e+125], t$95$1, y]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{z}{a}\\
\mathbf{if}\;t \leq -8.5 \cdot 10^{+122}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -8.5 \cdot 10^{+52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -45000000000:\\
\;\;\;\;z \cdot \frac{y}{a - t}\\
\mathbf{elif}\;t \leq -2 \cdot 10^{-277}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 10^{-175}:\\
\;\;\;\;x - \frac{x}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 1.56 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -8.50000000000000003e122 or 1.56e125 < t Initial program 31.8%
Taylor expanded in t around inf 52.3%
if -8.50000000000000003e122 < t < -8.49999999999999994e52 or -4.5e10 < t < -1.99999999999999994e-277 or 1e-175 < t < 1.56e125Initial program 77.6%
Taylor expanded in t around 0 55.6%
Taylor expanded in y around inf 53.7%
associate-/l*59.6%
Simplified59.6%
if -8.49999999999999994e52 < t < -4.5e10Initial program 89.7%
div-inv89.5%
*-commutative89.5%
associate-*l*99.5%
Applied egg-rr99.5%
Taylor expanded in z around inf 78.6%
div-sub78.6%
Simplified78.6%
Taylor expanded in y around inf 67.8%
if -1.99999999999999994e-277 < t < 1e-175Initial program 92.1%
Taylor expanded in t around 0 84.0%
Taylor expanded in y around 0 84.0%
mul-1-neg84.0%
unsub-neg84.0%
associate-/l*87.8%
Simplified87.8%
clear-num87.7%
un-div-inv87.8%
Applied egg-rr87.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (/ z a)))))
(if (<= t -1.85e+121)
y
(if (<= t -1.3e+51)
t_1
(if (<= t -10500000000.0)
(* z (/ y (- a t)))
(if (<= t -1.65e-277)
t_1
(if (<= t 8.2e-175)
(- x (* x (/ z a)))
(if (<= t 1.85e+125) t_1 y))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * (z / a));
double tmp;
if (t <= -1.85e+121) {
tmp = y;
} else if (t <= -1.3e+51) {
tmp = t_1;
} else if (t <= -10500000000.0) {
tmp = z * (y / (a - t));
} else if (t <= -1.65e-277) {
tmp = t_1;
} else if (t <= 8.2e-175) {
tmp = x - (x * (z / a));
} else if (t <= 1.85e+125) {
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 + (y * (z / a))
if (t <= (-1.85d+121)) then
tmp = y
else if (t <= (-1.3d+51)) then
tmp = t_1
else if (t <= (-10500000000.0d0)) then
tmp = z * (y / (a - t))
else if (t <= (-1.65d-277)) then
tmp = t_1
else if (t <= 8.2d-175) then
tmp = x - (x * (z / a))
else if (t <= 1.85d+125) 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 tmp;
if (t <= -1.85e+121) {
tmp = y;
} else if (t <= -1.3e+51) {
tmp = t_1;
} else if (t <= -10500000000.0) {
tmp = z * (y / (a - t));
} else if (t <= -1.65e-277) {
tmp = t_1;
} else if (t <= 8.2e-175) {
tmp = x - (x * (z / a));
} else if (t <= 1.85e+125) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * (z / a)) tmp = 0 if t <= -1.85e+121: tmp = y elif t <= -1.3e+51: tmp = t_1 elif t <= -10500000000.0: tmp = z * (y / (a - t)) elif t <= -1.65e-277: tmp = t_1 elif t <= 8.2e-175: tmp = x - (x * (z / a)) elif t <= 1.85e+125: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(z / a))) tmp = 0.0 if (t <= -1.85e+121) tmp = y; elseif (t <= -1.3e+51) tmp = t_1; elseif (t <= -10500000000.0) tmp = Float64(z * Float64(y / Float64(a - t))); elseif (t <= -1.65e-277) tmp = t_1; elseif (t <= 8.2e-175) tmp = Float64(x - Float64(x * Float64(z / a))); elseif (t <= 1.85e+125) 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)); tmp = 0.0; if (t <= -1.85e+121) tmp = y; elseif (t <= -1.3e+51) tmp = t_1; elseif (t <= -10500000000.0) tmp = z * (y / (a - t)); elseif (t <= -1.65e-277) tmp = t_1; elseif (t <= 8.2e-175) tmp = x - (x * (z / a)); elseif (t <= 1.85e+125) 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]}, If[LessEqual[t, -1.85e+121], y, If[LessEqual[t, -1.3e+51], t$95$1, If[LessEqual[t, -10500000000.0], N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.65e-277], t$95$1, If[LessEqual[t, 8.2e-175], N[(x - N[(x * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.85e+125], t$95$1, y]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{z}{a}\\
\mathbf{if}\;t \leq -1.85 \cdot 10^{+121}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -1.3 \cdot 10^{+51}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -10500000000:\\
\;\;\;\;z \cdot \frac{y}{a - t}\\
\mathbf{elif}\;t \leq -1.65 \cdot 10^{-277}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{-175}:\\
\;\;\;\;x - x \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.85000000000000006e121 or 1.8499999999999999e125 < t Initial program 31.8%
Taylor expanded in t around inf 52.3%
if -1.85000000000000006e121 < t < -1.3000000000000001e51 or -1.05e10 < t < -1.64999999999999991e-277 or 8.19999999999999997e-175 < t < 1.8499999999999999e125Initial program 77.6%
Taylor expanded in t around 0 55.6%
Taylor expanded in y around inf 53.7%
associate-/l*59.6%
Simplified59.6%
if -1.3000000000000001e51 < t < -1.05e10Initial program 89.7%
div-inv89.5%
*-commutative89.5%
associate-*l*99.5%
Applied egg-rr99.5%
Taylor expanded in z around inf 78.6%
div-sub78.6%
Simplified78.6%
Taylor expanded in y around inf 67.8%
if -1.64999999999999991e-277 < t < 8.19999999999999997e-175Initial program 92.1%
Taylor expanded in t around 0 84.0%
Taylor expanded in y around 0 84.0%
mul-1-neg84.0%
unsub-neg84.0%
associate-/l*87.8%
Simplified87.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (/ z a)))))
(if (<= t -9.8e+123)
y
(if (<= t -9e+52)
t_1
(if (<= t -135000000.0)
(* z (/ y (- a t)))
(if (<= t 2.3e+63)
t_1
(if (<= t 8e+90)
(* a (/ (- y x) t))
(if (<= t 1.22e+125) t_1 y))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * (z / a));
double tmp;
if (t <= -9.8e+123) {
tmp = y;
} else if (t <= -9e+52) {
tmp = t_1;
} else if (t <= -135000000.0) {
tmp = z * (y / (a - t));
} else if (t <= 2.3e+63) {
tmp = t_1;
} else if (t <= 8e+90) {
tmp = a * ((y - x) / t);
} else if (t <= 1.22e+125) {
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 + (y * (z / a))
if (t <= (-9.8d+123)) then
tmp = y
else if (t <= (-9d+52)) then
tmp = t_1
else if (t <= (-135000000.0d0)) then
tmp = z * (y / (a - t))
else if (t <= 2.3d+63) then
tmp = t_1
else if (t <= 8d+90) then
tmp = a * ((y - x) / t)
else if (t <= 1.22d+125) 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 tmp;
if (t <= -9.8e+123) {
tmp = y;
} else if (t <= -9e+52) {
tmp = t_1;
} else if (t <= -135000000.0) {
tmp = z * (y / (a - t));
} else if (t <= 2.3e+63) {
tmp = t_1;
} else if (t <= 8e+90) {
tmp = a * ((y - x) / t);
} else if (t <= 1.22e+125) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * (z / a)) tmp = 0 if t <= -9.8e+123: tmp = y elif t <= -9e+52: tmp = t_1 elif t <= -135000000.0: tmp = z * (y / (a - t)) elif t <= 2.3e+63: tmp = t_1 elif t <= 8e+90: tmp = a * ((y - x) / t) elif t <= 1.22e+125: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(z / a))) tmp = 0.0 if (t <= -9.8e+123) tmp = y; elseif (t <= -9e+52) tmp = t_1; elseif (t <= -135000000.0) tmp = Float64(z * Float64(y / Float64(a - t))); elseif (t <= 2.3e+63) tmp = t_1; elseif (t <= 8e+90) tmp = Float64(a * Float64(Float64(y - x) / t)); elseif (t <= 1.22e+125) 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)); tmp = 0.0; if (t <= -9.8e+123) tmp = y; elseif (t <= -9e+52) tmp = t_1; elseif (t <= -135000000.0) tmp = z * (y / (a - t)); elseif (t <= 2.3e+63) tmp = t_1; elseif (t <= 8e+90) tmp = a * ((y - x) / t); elseif (t <= 1.22e+125) 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]}, If[LessEqual[t, -9.8e+123], y, If[LessEqual[t, -9e+52], t$95$1, If[LessEqual[t, -135000000.0], N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.3e+63], t$95$1, If[LessEqual[t, 8e+90], N[(a * N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.22e+125], t$95$1, y]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{z}{a}\\
\mathbf{if}\;t \leq -9.8 \cdot 10^{+123}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -9 \cdot 10^{+52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -135000000:\\
\;\;\;\;z \cdot \frac{y}{a - t}\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 8 \cdot 10^{+90}:\\
\;\;\;\;a \cdot \frac{y - x}{t}\\
\mathbf{elif}\;t \leq 1.22 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -9.79999999999999952e123 or 1.22e125 < t Initial program 31.8%
Taylor expanded in t around inf 52.3%
if -9.79999999999999952e123 < t < -8.9999999999999999e52 or -1.35e8 < t < 2.29999999999999993e63 or 7.99999999999999973e90 < t < 1.22e125Initial program 81.1%
Taylor expanded in t around 0 61.5%
Taylor expanded in y around inf 57.0%
associate-/l*62.3%
Simplified62.3%
if -8.9999999999999999e52 < t < -1.35e8Initial program 89.7%
div-inv89.5%
*-commutative89.5%
associate-*l*99.5%
Applied egg-rr99.5%
Taylor expanded in z around inf 78.6%
div-sub78.6%
Simplified78.6%
Taylor expanded in y around inf 67.8%
if 2.29999999999999993e63 < t < 7.99999999999999973e90Initial program 44.7%
div-inv46.2%
*-commutative46.2%
associate-*l*46.2%
Applied egg-rr46.2%
Taylor expanded in t around inf 71.3%
associate--l+71.3%
associate-*r/71.3%
associate-*r/71.3%
mul-1-neg71.3%
div-sub71.5%
mul-1-neg71.5%
distribute-lft-out--71.5%
associate-*r/71.5%
mul-1-neg71.5%
unsub-neg71.5%
distribute-rgt-out--71.5%
Simplified71.5%
Taylor expanded in a around inf 65.7%
associate-/l*65.5%
Simplified65.5%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.2e-51)
(+ x (/ y (/ a (- z t))))
(if (<= a 7.5e-252)
(* y (/ (- z t) (- a t)))
(if (<= a 6.4e-92)
(/ z (/ (- a t) (- y x)))
(if (<= a 3.85) (+ x (* y (/ (- t z) t))) (+ x (* y (/ (- z t) a))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.2e-51) {
tmp = x + (y / (a / (z - t)));
} else if (a <= 7.5e-252) {
tmp = y * ((z - t) / (a - t));
} else if (a <= 6.4e-92) {
tmp = z / ((a - t) / (y - x));
} else if (a <= 3.85) {
tmp = x + (y * ((t - z) / t));
} else {
tmp = x + (y * ((z - t) / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.2d-51)) then
tmp = x + (y / (a / (z - t)))
else if (a <= 7.5d-252) then
tmp = y * ((z - t) / (a - t))
else if (a <= 6.4d-92) then
tmp = z / ((a - t) / (y - x))
else if (a <= 3.85d0) then
tmp = x + (y * ((t - z) / t))
else
tmp = x + (y * ((z - t) / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.2e-51) {
tmp = x + (y / (a / (z - t)));
} else if (a <= 7.5e-252) {
tmp = y * ((z - t) / (a - t));
} else if (a <= 6.4e-92) {
tmp = z / ((a - t) / (y - x));
} else if (a <= 3.85) {
tmp = x + (y * ((t - z) / t));
} else {
tmp = x + (y * ((z - t) / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.2e-51: tmp = x + (y / (a / (z - t))) elif a <= 7.5e-252: tmp = y * ((z - t) / (a - t)) elif a <= 6.4e-92: tmp = z / ((a - t) / (y - x)) elif a <= 3.85: tmp = x + (y * ((t - z) / t)) else: tmp = x + (y * ((z - t) / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.2e-51) tmp = Float64(x + Float64(y / Float64(a / Float64(z - t)))); elseif (a <= 7.5e-252) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (a <= 6.4e-92) tmp = Float64(z / Float64(Float64(a - t) / Float64(y - x))); elseif (a <= 3.85) tmp = Float64(x + Float64(y * Float64(Float64(t - z) / t))); else tmp = Float64(x + Float64(y * Float64(Float64(z - t) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.2e-51) tmp = x + (y / (a / (z - t))); elseif (a <= 7.5e-252) tmp = y * ((z - t) / (a - t)); elseif (a <= 6.4e-92) tmp = z / ((a - t) / (y - x)); elseif (a <= 3.85) tmp = x + (y * ((t - z) / t)); else tmp = x + (y * ((z - t) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.2e-51], N[(x + N[(y / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.5e-252], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.4e-92], N[(z / N[(N[(a - t), $MachinePrecision] / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.85], N[(x + N[(y * N[(N[(t - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.2 \cdot 10^{-51}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z - t}}\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{-252}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;a \leq 6.4 \cdot 10^{-92}:\\
\;\;\;\;\frac{z}{\frac{a - t}{y - x}}\\
\mathbf{elif}\;a \leq 3.85:\\
\;\;\;\;x + y \cdot \frac{t - z}{t}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z - t}{a}\\
\end{array}
\end{array}
if a < -1.2e-51Initial program 71.6%
Taylor expanded in y around inf 68.4%
associate-/l*76.2%
Simplified76.2%
Taylor expanded in y around 0 68.4%
*-commutative68.4%
associate-*r/73.0%
*-commutative73.0%
associate-/r/76.2%
Simplified76.2%
Taylor expanded in a around inf 71.6%
if -1.2e-51 < a < 7.4999999999999996e-252Initial program 61.9%
div-inv61.8%
*-commutative61.8%
associate-*l*66.9%
Applied egg-rr66.9%
Taylor expanded in x around 0 54.2%
associate-*r/74.7%
*-commutative74.7%
Applied egg-rr74.7%
if 7.4999999999999996e-252 < a < 6.3999999999999994e-92Initial program 57.9%
div-inv57.8%
*-commutative57.8%
associate-*l*61.6%
Applied egg-rr61.6%
Taylor expanded in z around inf 73.6%
div-sub73.6%
Simplified73.6%
clear-num73.6%
un-div-inv73.6%
Applied egg-rr73.6%
if 6.3999999999999994e-92 < a < 3.85000000000000009Initial program 77.9%
Taylor expanded in y around inf 60.3%
*-commutative60.3%
Simplified60.3%
Taylor expanded in a around 0 58.7%
mul-1-neg58.7%
unsub-neg58.7%
associate-/l*78.5%
Simplified78.5%
if 3.85000000000000009 < a Initial program 65.3%
Taylor expanded in y around inf 64.9%
associate-/l*80.5%
Simplified80.5%
Taylor expanded in a around inf 72.7%
Final simplification73.2%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.2e-51)
(+ x (/ y (/ a (- z t))))
(if (<= a 4.3e-251)
(* y (/ (- z t) (- a t)))
(if (<= a 2.1e-82)
(* z (/ (- y x) (- a t)))
(if (<= a 58.0) (+ x (* y (/ (- t z) t))) (+ x (* y (/ (- z t) a))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.2e-51) {
tmp = x + (y / (a / (z - t)));
} else if (a <= 4.3e-251) {
tmp = y * ((z - t) / (a - t));
} else if (a <= 2.1e-82) {
tmp = z * ((y - x) / (a - t));
} else if (a <= 58.0) {
tmp = x + (y * ((t - z) / t));
} else {
tmp = x + (y * ((z - t) / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.2d-51)) then
tmp = x + (y / (a / (z - t)))
else if (a <= 4.3d-251) then
tmp = y * ((z - t) / (a - t))
else if (a <= 2.1d-82) then
tmp = z * ((y - x) / (a - t))
else if (a <= 58.0d0) then
tmp = x + (y * ((t - z) / t))
else
tmp = x + (y * ((z - t) / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.2e-51) {
tmp = x + (y / (a / (z - t)));
} else if (a <= 4.3e-251) {
tmp = y * ((z - t) / (a - t));
} else if (a <= 2.1e-82) {
tmp = z * ((y - x) / (a - t));
} else if (a <= 58.0) {
tmp = x + (y * ((t - z) / t));
} else {
tmp = x + (y * ((z - t) / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.2e-51: tmp = x + (y / (a / (z - t))) elif a <= 4.3e-251: tmp = y * ((z - t) / (a - t)) elif a <= 2.1e-82: tmp = z * ((y - x) / (a - t)) elif a <= 58.0: tmp = x + (y * ((t - z) / t)) else: tmp = x + (y * ((z - t) / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.2e-51) tmp = Float64(x + Float64(y / Float64(a / Float64(z - t)))); elseif (a <= 4.3e-251) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (a <= 2.1e-82) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif (a <= 58.0) tmp = Float64(x + Float64(y * Float64(Float64(t - z) / t))); else tmp = Float64(x + Float64(y * Float64(Float64(z - t) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.2e-51) tmp = x + (y / (a / (z - t))); elseif (a <= 4.3e-251) tmp = y * ((z - t) / (a - t)); elseif (a <= 2.1e-82) tmp = z * ((y - x) / (a - t)); elseif (a <= 58.0) tmp = x + (y * ((t - z) / t)); else tmp = x + (y * ((z - t) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.2e-51], N[(x + N[(y / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.3e-251], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.1e-82], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 58.0], N[(x + N[(y * N[(N[(t - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.2 \cdot 10^{-51}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z - t}}\\
\mathbf{elif}\;a \leq 4.3 \cdot 10^{-251}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{-82}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;a \leq 58:\\
\;\;\;\;x + y \cdot \frac{t - z}{t}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z - t}{a}\\
\end{array}
\end{array}
if a < -1.2e-51Initial program 71.6%
Taylor expanded in y around inf 68.4%
associate-/l*76.2%
Simplified76.2%
Taylor expanded in y around 0 68.4%
*-commutative68.4%
associate-*r/73.0%
*-commutative73.0%
associate-/r/76.2%
Simplified76.2%
Taylor expanded in a around inf 71.6%
if -1.2e-51 < a < 4.3000000000000002e-251Initial program 61.9%
div-inv61.8%
*-commutative61.8%
associate-*l*66.9%
Applied egg-rr66.9%
Taylor expanded in x around 0 54.2%
associate-*r/74.7%
*-commutative74.7%
Applied egg-rr74.7%
if 4.3000000000000002e-251 < a < 2.1e-82Initial program 57.9%
div-inv57.8%
*-commutative57.8%
associate-*l*61.6%
Applied egg-rr61.6%
Taylor expanded in z around inf 73.6%
div-sub73.6%
Simplified73.6%
if 2.1e-82 < a < 58Initial program 77.9%
Taylor expanded in y around inf 60.3%
*-commutative60.3%
Simplified60.3%
Taylor expanded in a around 0 58.7%
mul-1-neg58.7%
unsub-neg58.7%
associate-/l*78.5%
Simplified78.5%
if 58 < a Initial program 65.3%
Taylor expanded in y around inf 64.9%
associate-/l*80.5%
Simplified80.5%
Taylor expanded in a around inf 72.7%
Final simplification73.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= a -1.85e-53)
(+ x (/ y (/ a (- z t))))
(if (<= a 1.14e-250)
t_1
(if (<= a 3.1e-80)
(* z (/ (- y x) (- a t)))
(if (<= a 9.5e+30) t_1 (+ x (* y (/ (- z t) a)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (a <= -1.85e-53) {
tmp = x + (y / (a / (z - t)));
} else if (a <= 1.14e-250) {
tmp = t_1;
} else if (a <= 3.1e-80) {
tmp = z * ((y - x) / (a - t));
} else if (a <= 9.5e+30) {
tmp = t_1;
} else {
tmp = x + (y * ((z - t) / 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 * ((z - t) / (a - t))
if (a <= (-1.85d-53)) then
tmp = x + (y / (a / (z - t)))
else if (a <= 1.14d-250) then
tmp = t_1
else if (a <= 3.1d-80) then
tmp = z * ((y - x) / (a - t))
else if (a <= 9.5d+30) then
tmp = t_1
else
tmp = x + (y * ((z - t) / 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 * ((z - t) / (a - t));
double tmp;
if (a <= -1.85e-53) {
tmp = x + (y / (a / (z - t)));
} else if (a <= 1.14e-250) {
tmp = t_1;
} else if (a <= 3.1e-80) {
tmp = z * ((y - x) / (a - t));
} else if (a <= 9.5e+30) {
tmp = t_1;
} else {
tmp = x + (y * ((z - t) / a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if a <= -1.85e-53: tmp = x + (y / (a / (z - t))) elif a <= 1.14e-250: tmp = t_1 elif a <= 3.1e-80: tmp = z * ((y - x) / (a - t)) elif a <= 9.5e+30: tmp = t_1 else: tmp = x + (y * ((z - t) / a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (a <= -1.85e-53) tmp = Float64(x + Float64(y / Float64(a / Float64(z - t)))); elseif (a <= 1.14e-250) tmp = t_1; elseif (a <= 3.1e-80) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif (a <= 9.5e+30) tmp = t_1; else tmp = Float64(x + Float64(y * Float64(Float64(z - t) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (a <= -1.85e-53) tmp = x + (y / (a / (z - t))); elseif (a <= 1.14e-250) tmp = t_1; elseif (a <= 3.1e-80) tmp = z * ((y - x) / (a - t)); elseif (a <= 9.5e+30) tmp = t_1; else tmp = x + (y * ((z - t) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.85e-53], N[(x + N[(y / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.14e-250], t$95$1, If[LessEqual[a, 3.1e-80], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e+30], t$95$1, N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;a \leq -1.85 \cdot 10^{-53}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z - t}}\\
\mathbf{elif}\;a \leq 1.14 \cdot 10^{-250}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{-80}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{+30}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z - t}{a}\\
\end{array}
\end{array}
if a < -1.84999999999999991e-53Initial program 71.6%
Taylor expanded in y around inf 68.4%
associate-/l*76.2%
Simplified76.2%
Taylor expanded in y around 0 68.4%
*-commutative68.4%
associate-*r/73.0%
*-commutative73.0%
associate-/r/76.2%
Simplified76.2%
Taylor expanded in a around inf 71.6%
if -1.84999999999999991e-53 < a < 1.14000000000000007e-250 or 3.10000000000000016e-80 < a < 9.5000000000000003e30Initial program 65.7%
div-inv65.5%
*-commutative65.5%
associate-*l*72.8%
Applied egg-rr72.8%
Taylor expanded in x around 0 53.3%
associate-*r/73.5%
*-commutative73.5%
Applied egg-rr73.5%
if 1.14000000000000007e-250 < a < 3.10000000000000016e-80Initial program 59.5%
div-inv59.5%
*-commutative59.5%
associate-*l*59.5%
Applied egg-rr59.5%
Taylor expanded in z around inf 71.1%
div-sub71.1%
Simplified71.1%
if 9.5000000000000003e30 < a Initial program 63.3%
Taylor expanded in y around inf 64.6%
associate-/l*80.2%
Simplified80.2%
Taylor expanded in a around inf 74.9%
Final simplification72.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))) (t_2 (+ x (* y (/ (- z t) a)))))
(if (<= a -1.2e-51)
t_2
(if (<= a 3.15e-248)
t_1
(if (<= a 2.05e-78)
(* z (/ (- y x) (- a t)))
(if (<= a 4e+28) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x + (y * ((z - t) / a));
double tmp;
if (a <= -1.2e-51) {
tmp = t_2;
} else if (a <= 3.15e-248) {
tmp = t_1;
} else if (a <= 2.05e-78) {
tmp = z * ((y - x) / (a - t));
} else if (a <= 4e+28) {
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 = y * ((z - t) / (a - t))
t_2 = x + (y * ((z - t) / a))
if (a <= (-1.2d-51)) then
tmp = t_2
else if (a <= 3.15d-248) then
tmp = t_1
else if (a <= 2.05d-78) then
tmp = z * ((y - x) / (a - t))
else if (a <= 4d+28) 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 = y * ((z - t) / (a - t));
double t_2 = x + (y * ((z - t) / a));
double tmp;
if (a <= -1.2e-51) {
tmp = t_2;
} else if (a <= 3.15e-248) {
tmp = t_1;
} else if (a <= 2.05e-78) {
tmp = z * ((y - x) / (a - t));
} else if (a <= 4e+28) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) t_2 = x + (y * ((z - t) / a)) tmp = 0 if a <= -1.2e-51: tmp = t_2 elif a <= 3.15e-248: tmp = t_1 elif a <= 2.05e-78: tmp = z * ((y - x) / (a - t)) elif a <= 4e+28: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) t_2 = Float64(x + Float64(y * Float64(Float64(z - t) / a))) tmp = 0.0 if (a <= -1.2e-51) tmp = t_2; elseif (a <= 3.15e-248) tmp = t_1; elseif (a <= 2.05e-78) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif (a <= 4e+28) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); t_2 = x + (y * ((z - t) / a)); tmp = 0.0; if (a <= -1.2e-51) tmp = t_2; elseif (a <= 3.15e-248) tmp = t_1; elseif (a <= 2.05e-78) tmp = z * ((y - x) / (a - t)); elseif (a <= 4e+28) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.2e-51], t$95$2, If[LessEqual[a, 3.15e-248], t$95$1, If[LessEqual[a, 2.05e-78], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4e+28], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
t_2 := x + y \cdot \frac{z - t}{a}\\
\mathbf{if}\;a \leq -1.2 \cdot 10^{-51}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 3.15 \cdot 10^{-248}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.05 \cdot 10^{-78}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;a \leq 4 \cdot 10^{+28}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -1.2e-51 or 3.99999999999999983e28 < a Initial program 68.3%
Taylor expanded in y around inf 66.9%
associate-/l*77.8%
Simplified77.8%
Taylor expanded in a around inf 72.9%
if -1.2e-51 < a < 3.14999999999999997e-248 or 2.0499999999999999e-78 < a < 3.99999999999999983e28Initial program 65.7%
div-inv65.5%
*-commutative65.5%
associate-*l*72.8%
Applied egg-rr72.8%
Taylor expanded in x around 0 53.3%
associate-*r/73.5%
*-commutative73.5%
Applied egg-rr73.5%
if 3.14999999999999997e-248 < a < 2.0499999999999999e-78Initial program 59.5%
div-inv59.5%
*-commutative59.5%
associate-*l*59.5%
Applied egg-rr59.5%
Taylor expanded in z around inf 71.1%
div-sub71.1%
Simplified71.1%
Final simplification72.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))) (t_2 (+ x (* y (/ z a)))))
(if (<= a -1.8e+67)
t_2
(if (<= a 1.6e-249)
t_1
(if (<= a 2.15e-78)
(* z (/ (- y x) (- a t)))
(if (<= a 4.3e+61) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x + (y * (z / a));
double tmp;
if (a <= -1.8e+67) {
tmp = t_2;
} else if (a <= 1.6e-249) {
tmp = t_1;
} else if (a <= 2.15e-78) {
tmp = z * ((y - x) / (a - t));
} else if (a <= 4.3e+61) {
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 = y * ((z - t) / (a - t))
t_2 = x + (y * (z / a))
if (a <= (-1.8d+67)) then
tmp = t_2
else if (a <= 1.6d-249) then
tmp = t_1
else if (a <= 2.15d-78) then
tmp = z * ((y - x) / (a - t))
else if (a <= 4.3d+61) 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 = y * ((z - t) / (a - t));
double t_2 = x + (y * (z / a));
double tmp;
if (a <= -1.8e+67) {
tmp = t_2;
} else if (a <= 1.6e-249) {
tmp = t_1;
} else if (a <= 2.15e-78) {
tmp = z * ((y - x) / (a - t));
} else if (a <= 4.3e+61) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) t_2 = x + (y * (z / a)) tmp = 0 if a <= -1.8e+67: tmp = t_2 elif a <= 1.6e-249: tmp = t_1 elif a <= 2.15e-78: tmp = z * ((y - x) / (a - t)) elif a <= 4.3e+61: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) t_2 = Float64(x + Float64(y * Float64(z / a))) tmp = 0.0 if (a <= -1.8e+67) tmp = t_2; elseif (a <= 1.6e-249) tmp = t_1; elseif (a <= 2.15e-78) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif (a <= 4.3e+61) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); t_2 = x + (y * (z / a)); tmp = 0.0; if (a <= -1.8e+67) tmp = t_2; elseif (a <= 1.6e-249) tmp = t_1; elseif (a <= 2.15e-78) tmp = z * ((y - x) / (a - t)); elseif (a <= 4.3e+61) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.8e+67], t$95$2, If[LessEqual[a, 1.6e-249], t$95$1, If[LessEqual[a, 2.15e-78], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.3e+61], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
t_2 := x + y \cdot \frac{z}{a}\\
\mathbf{if}\;a \leq -1.8 \cdot 10^{+67}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-249}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.15 \cdot 10^{-78}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;a \leq 4.3 \cdot 10^{+61}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -1.7999999999999999e67 or 4.3000000000000001e61 < a Initial program 69.6%
Taylor expanded in t around 0 64.3%
Taylor expanded in y around inf 64.7%
associate-/l*70.9%
Simplified70.9%
if -1.7999999999999999e67 < a < 1.6000000000000001e-249 or 2.14999999999999997e-78 < a < 4.3000000000000001e61Initial program 65.0%
div-inv65.0%
*-commutative65.0%
associate-*l*72.1%
Applied egg-rr72.1%
Taylor expanded in x around 0 49.0%
associate-*r/64.9%
*-commutative64.9%
Applied egg-rr64.9%
if 1.6000000000000001e-249 < a < 2.14999999999999997e-78Initial program 59.5%
div-inv59.5%
*-commutative59.5%
associate-*l*59.5%
Applied egg-rr59.5%
Taylor expanded in z around inf 71.1%
div-sub71.1%
Simplified71.1%
Final simplification68.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* z (/ (- y x) a))))
(if (<= z -5.9e+65)
t_1
(if (<= z -1.85e-69) x (if (<= z -6e-240) y (if (<= z 3e+37) x t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = z * ((y - x) / a);
double tmp;
if (z <= -5.9e+65) {
tmp = t_1;
} else if (z <= -1.85e-69) {
tmp = x;
} else if (z <= -6e-240) {
tmp = y;
} else if (z <= 3e+37) {
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 = z * ((y - x) / a)
if (z <= (-5.9d+65)) then
tmp = t_1
else if (z <= (-1.85d-69)) then
tmp = x
else if (z <= (-6d-240)) then
tmp = y
else if (z <= 3d+37) 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 = z * ((y - x) / a);
double tmp;
if (z <= -5.9e+65) {
tmp = t_1;
} else if (z <= -1.85e-69) {
tmp = x;
} else if (z <= -6e-240) {
tmp = y;
} else if (z <= 3e+37) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = z * ((y - x) / a) tmp = 0 if z <= -5.9e+65: tmp = t_1 elif z <= -1.85e-69: tmp = x elif z <= -6e-240: tmp = y elif z <= 3e+37: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(z * Float64(Float64(y - x) / a)) tmp = 0.0 if (z <= -5.9e+65) tmp = t_1; elseif (z <= -1.85e-69) tmp = x; elseif (z <= -6e-240) tmp = y; elseif (z <= 3e+37) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = z * ((y - x) / a); tmp = 0.0; if (z <= -5.9e+65) tmp = t_1; elseif (z <= -1.85e-69) tmp = x; elseif (z <= -6e-240) tmp = y; elseif (z <= 3e+37) tmp = x; 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] / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.9e+65], t$95$1, If[LessEqual[z, -1.85e-69], x, If[LessEqual[z, -6e-240], y, If[LessEqual[z, 3e+37], x, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \frac{y - x}{a}\\
\mathbf{if}\;z \leq -5.9 \cdot 10^{+65}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.85 \cdot 10^{-69}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -6 \cdot 10^{-240}:\\
\;\;\;\;y\\
\mathbf{elif}\;z \leq 3 \cdot 10^{+37}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -5.9000000000000003e65 or 3.00000000000000022e37 < z Initial program 68.0%
div-inv67.9%
*-commutative67.9%
associate-*l*84.2%
Applied egg-rr84.2%
Taylor expanded in z around inf 69.9%
div-sub70.8%
Simplified70.8%
Taylor expanded in a around inf 37.6%
associate-/l*44.8%
Simplified44.8%
if -5.9000000000000003e65 < z < -1.8500000000000001e-69 or -5.99999999999999982e-240 < z < 3.00000000000000022e37Initial program 65.7%
Taylor expanded in a around inf 46.1%
if -1.8500000000000001e-69 < z < -5.99999999999999982e-240Initial program 65.0%
Taylor expanded in t around inf 43.2%
(FPCore (x y z t a)
:precision binary64
(if (<= t -5.8e+110)
y
(if (<= t -7e-96)
(* z (/ y (- a t)))
(if (<= t 0.85) x (if (<= t 7.4e+124) (* x (/ (- z a) t)) y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -5.8e+110) {
tmp = y;
} else if (t <= -7e-96) {
tmp = z * (y / (a - t));
} else if (t <= 0.85) {
tmp = x;
} else if (t <= 7.4e+124) {
tmp = x * ((z - a) / t);
} 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) :: tmp
if (t <= (-5.8d+110)) then
tmp = y
else if (t <= (-7d-96)) then
tmp = z * (y / (a - t))
else if (t <= 0.85d0) then
tmp = x
else if (t <= 7.4d+124) then
tmp = x * ((z - a) / t)
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -5.8e+110) {
tmp = y;
} else if (t <= -7e-96) {
tmp = z * (y / (a - t));
} else if (t <= 0.85) {
tmp = x;
} else if (t <= 7.4e+124) {
tmp = x * ((z - a) / t);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -5.8e+110: tmp = y elif t <= -7e-96: tmp = z * (y / (a - t)) elif t <= 0.85: tmp = x elif t <= 7.4e+124: tmp = x * ((z - a) / t) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -5.8e+110) tmp = y; elseif (t <= -7e-96) tmp = Float64(z * Float64(y / Float64(a - t))); elseif (t <= 0.85) tmp = x; elseif (t <= 7.4e+124) tmp = Float64(x * Float64(Float64(z - a) / t)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -5.8e+110) tmp = y; elseif (t <= -7e-96) tmp = z * (y / (a - t)); elseif (t <= 0.85) tmp = x; elseif (t <= 7.4e+124) tmp = x * ((z - a) / t); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -5.8e+110], y, If[LessEqual[t, -7e-96], N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.85], x, If[LessEqual[t, 7.4e+124], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], y]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.8 \cdot 10^{+110}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -7 \cdot 10^{-96}:\\
\;\;\;\;z \cdot \frac{y}{a - t}\\
\mathbf{elif}\;t \leq 0.85:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 7.4 \cdot 10^{+124}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -5.7999999999999999e110 or 7.40000000000000016e124 < t Initial program 32.8%
Taylor expanded in t around inf 51.0%
if -5.7999999999999999e110 < t < -6.9999999999999998e-96Initial program 77.9%
div-inv77.8%
*-commutative77.8%
associate-*l*90.1%
Applied egg-rr90.1%
Taylor expanded in z around inf 56.4%
div-sub56.4%
Simplified56.4%
Taylor expanded in y around inf 40.2%
if -6.9999999999999998e-96 < t < 0.849999999999999978Initial program 90.4%
Taylor expanded in a around inf 47.2%
if 0.849999999999999978 < t < 7.40000000000000016e124Initial program 53.8%
div-inv54.1%
*-commutative54.1%
associate-*l*69.2%
Applied egg-rr69.2%
Taylor expanded in t around inf 47.0%
associate--l+47.0%
associate-*r/47.0%
associate-*r/47.0%
mul-1-neg47.0%
div-sub47.1%
mul-1-neg47.1%
distribute-lft-out--47.1%
associate-*r/47.1%
mul-1-neg47.1%
unsub-neg47.1%
distribute-rgt-out--47.1%
Simplified47.1%
Taylor expanded in y around 0 33.6%
associate-/l*36.6%
Simplified36.6%
(FPCore (x y z t a) :precision binary64 (if (<= t -5.9e+100) y (if (<= t 4.2) x (if (<= t 3.6e+124) (* x (/ (- z a) t)) y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -5.9e+100) {
tmp = y;
} else if (t <= 4.2) {
tmp = x;
} else if (t <= 3.6e+124) {
tmp = x * ((z - a) / t);
} 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) :: tmp
if (t <= (-5.9d+100)) then
tmp = y
else if (t <= 4.2d0) then
tmp = x
else if (t <= 3.6d+124) then
tmp = x * ((z - a) / t)
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -5.9e+100) {
tmp = y;
} else if (t <= 4.2) {
tmp = x;
} else if (t <= 3.6e+124) {
tmp = x * ((z - a) / t);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -5.9e+100: tmp = y elif t <= 4.2: tmp = x elif t <= 3.6e+124: tmp = x * ((z - a) / t) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -5.9e+100) tmp = y; elseif (t <= 4.2) tmp = x; elseif (t <= 3.6e+124) tmp = Float64(x * Float64(Float64(z - a) / t)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -5.9e+100) tmp = y; elseif (t <= 4.2) tmp = x; elseif (t <= 3.6e+124) tmp = x * ((z - a) / t); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -5.9e+100], y, If[LessEqual[t, 4.2], x, If[LessEqual[t, 3.6e+124], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.9 \cdot 10^{+100}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 4.2:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{+124}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -5.90000000000000027e100 or 3.59999999999999986e124 < t Initial program 31.8%
Taylor expanded in t around inf 49.1%
if -5.90000000000000027e100 < t < 4.20000000000000018Initial program 88.1%
Taylor expanded in a around inf 40.4%
if 4.20000000000000018 < t < 3.59999999999999986e124Initial program 53.8%
div-inv54.1%
*-commutative54.1%
associate-*l*69.2%
Applied egg-rr69.2%
Taylor expanded in t around inf 47.0%
associate--l+47.0%
associate-*r/47.0%
associate-*r/47.0%
mul-1-neg47.0%
div-sub47.1%
mul-1-neg47.1%
distribute-lft-out--47.1%
associate-*r/47.1%
mul-1-neg47.1%
unsub-neg47.1%
distribute-rgt-out--47.1%
Simplified47.1%
Taylor expanded in y around 0 33.6%
associate-/l*36.6%
Simplified36.6%
(FPCore (x y z t a)
:precision binary64
(if (<= t -3.8e+98)
y
(if (<= t 7.4e+56)
x
(if (<= t 8e+90) (* a (/ (- y x) t)) (if (<= t 8.5e+124) x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.8e+98) {
tmp = y;
} else if (t <= 7.4e+56) {
tmp = x;
} else if (t <= 8e+90) {
tmp = a * ((y - x) / t);
} else if (t <= 8.5e+124) {
tmp = x;
} 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) :: tmp
if (t <= (-3.8d+98)) then
tmp = y
else if (t <= 7.4d+56) then
tmp = x
else if (t <= 8d+90) then
tmp = a * ((y - x) / t)
else if (t <= 8.5d+124) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.8e+98) {
tmp = y;
} else if (t <= 7.4e+56) {
tmp = x;
} else if (t <= 8e+90) {
tmp = a * ((y - x) / t);
} else if (t <= 8.5e+124) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.8e+98: tmp = y elif t <= 7.4e+56: tmp = x elif t <= 8e+90: tmp = a * ((y - x) / t) elif t <= 8.5e+124: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.8e+98) tmp = y; elseif (t <= 7.4e+56) tmp = x; elseif (t <= 8e+90) tmp = Float64(a * Float64(Float64(y - x) / t)); elseif (t <= 8.5e+124) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3.8e+98) tmp = y; elseif (t <= 7.4e+56) tmp = x; elseif (t <= 8e+90) tmp = a * ((y - x) / t); elseif (t <= 8.5e+124) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.8e+98], y, If[LessEqual[t, 7.4e+56], x, If[LessEqual[t, 8e+90], N[(a * N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e+124], x, y]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.8 \cdot 10^{+98}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 7.4 \cdot 10^{+56}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 8 \cdot 10^{+90}:\\
\;\;\;\;a \cdot \frac{y - x}{t}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{+124}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -3.7999999999999999e98 or 8.4999999999999997e124 < t Initial program 30.9%
Taylor expanded in t around inf 49.7%
if -3.7999999999999999e98 < t < 7.39999999999999994e56 or 7.99999999999999973e90 < t < 8.4999999999999997e124Initial program 84.1%
Taylor expanded in a around inf 39.0%
if 7.39999999999999994e56 < t < 7.99999999999999973e90Initial program 46.9%
div-inv48.1%
*-commutative48.1%
associate-*l*58.2%
Applied egg-rr58.2%
Taylor expanded in t around inf 77.6%
associate--l+77.6%
associate-*r/77.6%
associate-*r/77.6%
mul-1-neg77.6%
div-sub77.8%
mul-1-neg77.8%
distribute-lft-out--77.8%
associate-*r/77.8%
mul-1-neg77.8%
unsub-neg77.8%
distribute-rgt-out--77.8%
Simplified77.8%
Taylor expanded in a around inf 52.3%
associate-/l*52.2%
Simplified52.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -7.5e+62) (not (<= z 4.9e+173))) (* z (/ (- y x) (- a t))) (+ x (/ y (/ (- a t) (- z t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -7.5e+62) || !(z <= 4.9e+173)) {
tmp = z * ((y - x) / (a - t));
} else {
tmp = x + (y / ((a - t) / (z - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-7.5d+62)) .or. (.not. (z <= 4.9d+173))) then
tmp = z * ((y - x) / (a - t))
else
tmp = x + (y / ((a - t) / (z - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -7.5e+62) || !(z <= 4.9e+173)) {
tmp = z * ((y - x) / (a - t));
} else {
tmp = x + (y / ((a - t) / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -7.5e+62) or not (z <= 4.9e+173): tmp = z * ((y - x) / (a - t)) else: tmp = x + (y / ((a - t) / (z - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -7.5e+62) || !(z <= 4.9e+173)) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); else tmp = Float64(x + Float64(y / Float64(Float64(a - t) / Float64(z - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -7.5e+62) || ~((z <= 4.9e+173))) tmp = z * ((y - x) / (a - t)); else tmp = x + (y / ((a - t) / (z - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -7.5e+62], N[Not[LessEqual[z, 4.9e+173]], $MachinePrecision]], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{+62} \lor \neg \left(z \leq 4.9 \cdot 10^{+173}\right):\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a - t}{z - t}}\\
\end{array}
\end{array}
if z < -7.49999999999999998e62 or 4.9000000000000001e173 < z Initial program 69.7%
div-inv69.6%
*-commutative69.6%
associate-*l*81.8%
Applied egg-rr81.8%
Taylor expanded in z around inf 79.0%
div-sub80.3%
Simplified80.3%
if -7.49999999999999998e62 < z < 4.9000000000000001e173Initial program 65.1%
Taylor expanded in y around inf 64.2%
associate-/l*77.1%
Simplified77.1%
Taylor expanded in y around 0 64.2%
*-commutative64.2%
associate-*r/74.0%
*-commutative74.0%
associate-/r/77.1%
Simplified77.1%
Final simplification78.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.7e+64) (not (<= z 7e+172))) (* z (/ (- y x) (- a t))) (+ x (* y (/ (- z t) (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.7e+64) || !(z <= 7e+172)) {
tmp = z * ((y - x) / (a - t));
} else {
tmp = x + (y * ((z - t) / (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 ((z <= (-2.7d+64)) .or. (.not. (z <= 7d+172))) then
tmp = z * ((y - x) / (a - t))
else
tmp = x + (y * ((z - t) / (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 ((z <= -2.7e+64) || !(z <= 7e+172)) {
tmp = z * ((y - x) / (a - t));
} else {
tmp = x + (y * ((z - t) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.7e+64) or not (z <= 7e+172): tmp = z * ((y - x) / (a - t)) else: tmp = x + (y * ((z - t) / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.7e+64) || !(z <= 7e+172)) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); else tmp = Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.7e+64) || ~((z <= 7e+172))) tmp = z * ((y - x) / (a - t)); else tmp = x + (y * ((z - t) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.7e+64], N[Not[LessEqual[z, 7e+172]], $MachinePrecision]], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{+64} \lor \neg \left(z \leq 7 \cdot 10^{+172}\right):\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if z < -2.7e64 or 6.99999999999999955e172 < z Initial program 69.7%
div-inv69.6%
*-commutative69.6%
associate-*l*81.8%
Applied egg-rr81.8%
Taylor expanded in z around inf 79.0%
div-sub80.3%
Simplified80.3%
if -2.7e64 < z < 6.99999999999999955e172Initial program 65.1%
Taylor expanded in y around inf 64.2%
associate-/l*77.1%
Simplified77.1%
Final simplification78.1%
(FPCore (x y z t a)
:precision binary64
(if (<= a -14500.0)
(+ x (* (- y x) (/ (- z t) a)))
(if (<= a 2.36e-85)
(+ y (* (/ (- x y) t) (- z a)))
(+ x (* y (/ (- z t) (- a t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -14500.0) {
tmp = x + ((y - x) * ((z - t) / a));
} else if (a <= 2.36e-85) {
tmp = y + (((x - y) / t) * (z - a));
} else {
tmp = x + (y * ((z - t) / (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 (a <= (-14500.0d0)) then
tmp = x + ((y - x) * ((z - t) / a))
else if (a <= 2.36d-85) then
tmp = y + (((x - y) / t) * (z - a))
else
tmp = x + (y * ((z - t) / (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 (a <= -14500.0) {
tmp = x + ((y - x) * ((z - t) / a));
} else if (a <= 2.36e-85) {
tmp = y + (((x - y) / t) * (z - a));
} else {
tmp = x + (y * ((z - t) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -14500.0: tmp = x + ((y - x) * ((z - t) / a)) elif a <= 2.36e-85: tmp = y + (((x - y) / t) * (z - a)) else: tmp = x + (y * ((z - t) / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -14500.0) tmp = Float64(x + Float64(Float64(y - x) * Float64(Float64(z - t) / a))); elseif (a <= 2.36e-85) tmp = Float64(y + Float64(Float64(Float64(x - y) / t) * Float64(z - a))); else tmp = Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -14500.0) tmp = x + ((y - x) * ((z - t) / a)); elseif (a <= 2.36e-85) tmp = y + (((x - y) / t) * (z - a)); else tmp = x + (y * ((z - t) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -14500.0], N[(x + N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.36e-85], N[(y + N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -14500:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z - t}{a}\\
\mathbf{elif}\;a \leq 2.36 \cdot 10^{-85}:\\
\;\;\;\;y + \frac{x - y}{t} \cdot \left(z - a\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if a < -14500Initial program 74.5%
Taylor expanded in a around inf 71.7%
associate-/l*86.6%
Simplified86.6%
if -14500 < a < 2.35999999999999999e-85Initial program 60.0%
Taylor expanded in t around inf 73.8%
associate--l+73.8%
distribute-lft-out--73.8%
div-sub73.8%
mul-1-neg73.8%
unsub-neg73.8%
div-sub73.8%
associate-/l*78.2%
associate-/l*75.2%
distribute-rgt-out--78.3%
Simplified78.3%
if 2.35999999999999999e-85 < a Initial program 67.6%
Taylor expanded in y around inf 64.0%
associate-/l*80.4%
Simplified80.4%
Final simplification81.4%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.6e+96) y (if (<= t 1.3e+125) x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.6e+96) {
tmp = y;
} else if (t <= 1.3e+125) {
tmp = x;
} 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) :: tmp
if (t <= (-1.6d+96)) then
tmp = y
else if (t <= 1.3d+125) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.6e+96) {
tmp = y;
} else if (t <= 1.3e+125) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.6e+96: tmp = y elif t <= 1.3e+125: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.6e+96) tmp = y; elseif (t <= 1.3e+125) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.6e+96) tmp = y; elseif (t <= 1.3e+125) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.6e+96], y, If[LessEqual[t, 1.3e+125], x, y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.6 \cdot 10^{+96}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{+125}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.60000000000000003e96 or 1.30000000000000002e125 < t Initial program 30.9%
Taylor expanded in t around inf 49.7%
if -1.60000000000000003e96 < t < 1.30000000000000002e125Initial program 82.2%
Taylor expanded in a around inf 37.2%
(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 66.6%
Taylor expanded in a around inf 28.9%
(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 2024086
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
:precision binary64
:alt
(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))))