
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - z) * (t - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * (t - x)) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - z) * (t - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * (t - x)) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (<= t_1 (- INFINITY))
(+ x (* (- y z) (/ (- t x) (- a z))))
(if (<= t_1 -2e-298)
t_1
(if (<= t_1 5e-238)
(+ (+ t (/ (* y (- x t)) z)) (/ (* (- t x) a) z))
(if (<= t_1 1e+304)
t_1
(+ x (/ (- y z) (/ -1.0 (/ (- x t) (- a z)))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = x + ((y - z) * ((t - x) / (a - z)));
} else if (t_1 <= -2e-298) {
tmp = t_1;
} else if (t_1 <= 5e-238) {
tmp = (t + ((y * (x - t)) / z)) + (((t - x) * a) / z);
} else if (t_1 <= 1e+304) {
tmp = t_1;
} else {
tmp = x + ((y - z) / (-1.0 / ((x - t) / (a - z))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = x + ((y - z) * ((t - x) / (a - z)));
} else if (t_1 <= -2e-298) {
tmp = t_1;
} else if (t_1 <= 5e-238) {
tmp = (t + ((y * (x - t)) / z)) + (((t - x) * a) / z);
} else if (t_1 <= 1e+304) {
tmp = t_1;
} else {
tmp = x + ((y - z) / (-1.0 / ((x - t) / (a - z))));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if t_1 <= -math.inf: tmp = x + ((y - z) * ((t - x) / (a - z))) elif t_1 <= -2e-298: tmp = t_1 elif t_1 <= 5e-238: tmp = (t + ((y * (x - t)) / z)) + (((t - x) * a) / z) elif t_1 <= 1e+304: tmp = t_1 else: tmp = x + ((y - z) / (-1.0 / ((x - t) / (a - z)))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))); elseif (t_1 <= -2e-298) tmp = t_1; elseif (t_1 <= 5e-238) tmp = Float64(Float64(t + Float64(Float64(y * Float64(x - t)) / z)) + Float64(Float64(Float64(t - x) * a) / z)); elseif (t_1 <= 1e+304) tmp = t_1; else tmp = Float64(x + Float64(Float64(y - z) / Float64(-1.0 / Float64(Float64(x - t) / Float64(a - z))))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - z) * (t - x)) / (a - z)); tmp = 0.0; if (t_1 <= -Inf) tmp = x + ((y - z) * ((t - x) / (a - z))); elseif (t_1 <= -2e-298) tmp = t_1; elseif (t_1 <= 5e-238) tmp = (t + ((y * (x - t)) / z)) + (((t - x) * a) / z); elseif (t_1 <= 1e+304) tmp = t_1; else tmp = x + ((y - z) / (-1.0 / ((x - t) / (a - z)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -2e-298], t$95$1, If[LessEqual[t$95$1, 5e-238], N[(N[(t + N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t - x), $MachinePrecision] * a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+304], t$95$1, N[(x + N[(N[(y - z), $MachinePrecision] / N[(-1.0 / N[(N[(x - t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-298}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-238}:\\
\;\;\;\;\left(t + \frac{y \cdot \left(x - t\right)}{z}\right) + \frac{\left(t - x\right) \cdot a}{z}\\
\mathbf{elif}\;t\_1 \leq 10^{+304}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - z}{\frac{-1}{\frac{x - t}{a - z}}}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -inf.0Initial program 41.3%
associate-/l*81.9%
Simplified81.9%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -1.99999999999999982e-298 or 5e-238 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 9.9999999999999994e303Initial program 97.2%
if -1.99999999999999982e-298 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 5e-238Initial program 10.4%
associate-/l*8.5%
Simplified8.5%
Taylor expanded in z around inf 99.8%
associate-*r/99.8%
associate-*r*99.8%
mul-1-neg99.8%
mul-1-neg99.8%
Simplified99.8%
if 9.9999999999999994e303 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 36.6%
associate-/l*85.5%
Simplified85.5%
clear-num85.6%
un-div-inv85.7%
Applied egg-rr85.7%
clear-num85.7%
inv-pow85.7%
Applied egg-rr85.7%
unpow-185.7%
Simplified85.7%
Final simplification92.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (or (<= t_1 -2e-298) (not (<= t_1 5e-238)))
(fma (- t x) (/ (- y z) (- a z)) x)
(+ (+ t (/ (* y (- x t)) z)) (/ (* (- t x) a) z)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -2e-298) || !(t_1 <= 5e-238)) {
tmp = fma((t - x), ((y - z) / (a - z)), x);
} else {
tmp = (t + ((y * (x - t)) / z)) + (((t - x) * a) / z);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if ((t_1 <= -2e-298) || !(t_1 <= 5e-238)) tmp = fma(Float64(t - x), Float64(Float64(y - z) / Float64(a - z)), x); else tmp = Float64(Float64(t + Float64(Float64(y * Float64(x - t)) / z)) + Float64(Float64(Float64(t - x) * a) / z)); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -2e-298], N[Not[LessEqual[t$95$1, 5e-238]], $MachinePrecision]], N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(N[(t + N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t - x), $MachinePrecision] * a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{-298} \lor \neg \left(t\_1 \leq 5 \cdot 10^{-238}\right):\\
\;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;\left(t + \frac{y \cdot \left(x - t\right)}{z}\right) + \frac{\left(t - x\right) \cdot a}{z}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -1.99999999999999982e-298 or 5e-238 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 72.9%
+-commutative72.9%
*-commutative72.9%
associate-/l*91.1%
fma-define91.1%
Simplified91.1%
if -1.99999999999999982e-298 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 5e-238Initial program 10.4%
associate-/l*8.5%
Simplified8.5%
Taylor expanded in z around inf 99.8%
associate-*r/99.8%
associate-*r*99.8%
mul-1-neg99.8%
mul-1-neg99.8%
Simplified99.8%
Final simplification91.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (<= t_1 (- INFINITY))
(+ x (* (- y z) (/ (- t x) (- a z))))
(if (<= t_1 -2e-298)
t_1
(if (<= t_1 5e-238)
(+ t (/ (* (- t x) (- a y)) z))
(if (<= t_1 1e+304)
t_1
(+ x (/ (- y z) (/ -1.0 (/ (- x t) (- a z)))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = x + ((y - z) * ((t - x) / (a - z)));
} else if (t_1 <= -2e-298) {
tmp = t_1;
} else if (t_1 <= 5e-238) {
tmp = t + (((t - x) * (a - y)) / z);
} else if (t_1 <= 1e+304) {
tmp = t_1;
} else {
tmp = x + ((y - z) / (-1.0 / ((x - t) / (a - z))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = x + ((y - z) * ((t - x) / (a - z)));
} else if (t_1 <= -2e-298) {
tmp = t_1;
} else if (t_1 <= 5e-238) {
tmp = t + (((t - x) * (a - y)) / z);
} else if (t_1 <= 1e+304) {
tmp = t_1;
} else {
tmp = x + ((y - z) / (-1.0 / ((x - t) / (a - z))));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if t_1 <= -math.inf: tmp = x + ((y - z) * ((t - x) / (a - z))) elif t_1 <= -2e-298: tmp = t_1 elif t_1 <= 5e-238: tmp = t + (((t - x) * (a - y)) / z) elif t_1 <= 1e+304: tmp = t_1 else: tmp = x + ((y - z) / (-1.0 / ((x - t) / (a - z)))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))); elseif (t_1 <= -2e-298) tmp = t_1; elseif (t_1 <= 5e-238) tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)); elseif (t_1 <= 1e+304) tmp = t_1; else tmp = Float64(x + Float64(Float64(y - z) / Float64(-1.0 / Float64(Float64(x - t) / Float64(a - z))))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - z) * (t - x)) / (a - z)); tmp = 0.0; if (t_1 <= -Inf) tmp = x + ((y - z) * ((t - x) / (a - z))); elseif (t_1 <= -2e-298) tmp = t_1; elseif (t_1 <= 5e-238) tmp = t + (((t - x) * (a - y)) / z); elseif (t_1 <= 1e+304) tmp = t_1; else tmp = x + ((y - z) / (-1.0 / ((x - t) / (a - z)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -2e-298], t$95$1, If[LessEqual[t$95$1, 5e-238], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+304], t$95$1, N[(x + N[(N[(y - z), $MachinePrecision] / N[(-1.0 / N[(N[(x - t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-298}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-238}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\mathbf{elif}\;t\_1 \leq 10^{+304}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - z}{\frac{-1}{\frac{x - t}{a - z}}}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -inf.0Initial program 41.3%
associate-/l*81.9%
Simplified81.9%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -1.99999999999999982e-298 or 5e-238 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 9.9999999999999994e303Initial program 97.2%
if -1.99999999999999982e-298 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 5e-238Initial program 10.4%
associate-/l*8.5%
Simplified8.5%
Taylor expanded in z around inf 99.8%
associate--l+99.8%
associate-*r/99.8%
associate-*r/99.8%
mul-1-neg99.8%
div-sub99.7%
mul-1-neg99.7%
distribute-lft-out--99.7%
associate-*r/99.7%
mul-1-neg99.7%
unsub-neg99.7%
distribute-rgt-out--99.7%
Simplified99.7%
if 9.9999999999999994e303 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 36.6%
associate-/l*85.5%
Simplified85.5%
clear-num85.6%
un-div-inv85.7%
Applied egg-rr85.7%
clear-num85.7%
inv-pow85.7%
Applied egg-rr85.7%
unpow-185.7%
Simplified85.7%
Final simplification92.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z)))))
(t_2 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -2e-298)
t_2
(if (<= t_2 5e-238)
(+ t (/ (* (- t x) (- a y)) z))
(if (<= t_2 1e+304) t_2 t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double t_2 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -2e-298) {
tmp = t_2;
} else if (t_2 <= 5e-238) {
tmp = t + (((t - x) * (a - y)) / z);
} else if (t_2 <= 1e+304) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double t_2 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_2 <= -2e-298) {
tmp = t_2;
} else if (t_2 <= 5e-238) {
tmp = t + (((t - x) * (a - y)) / z);
} else if (t_2 <= 1e+304) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) t_2 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if t_2 <= -math.inf: tmp = t_1 elif t_2 <= -2e-298: tmp = t_2 elif t_2 <= 5e-238: tmp = t + (((t - x) * (a - y)) / z) elif t_2 <= 1e+304: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) t_2 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -2e-298) tmp = t_2; elseif (t_2 <= 5e-238) tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)); elseif (t_2 <= 1e+304) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * ((t - x) / (a - z))); t_2 = x + (((y - z) * (t - x)) / (a - z)); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1; elseif (t_2 <= -2e-298) tmp = t_2; elseif (t_2 <= 5e-238) tmp = t + (((t - x) * (a - y)) / z); elseif (t_2 <= 1e+304) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -2e-298], t$95$2, If[LessEqual[t$95$2, 5e-238], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+304], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
t_2 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -2 \cdot 10^{-298}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-238}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\mathbf{elif}\;t\_2 \leq 10^{+304}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -inf.0 or 9.9999999999999994e303 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 38.3%
associate-/l*84.2%
Simplified84.2%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -1.99999999999999982e-298 or 5e-238 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 9.9999999999999994e303Initial program 97.2%
if -1.99999999999999982e-298 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 5e-238Initial program 10.4%
associate-/l*8.5%
Simplified8.5%
Taylor expanded in z around inf 99.8%
associate--l+99.8%
associate-*r/99.8%
associate-*r/99.8%
mul-1-neg99.8%
div-sub99.7%
mul-1-neg99.7%
distribute-lft-out--99.7%
associate-*r/99.7%
mul-1-neg99.7%
unsub-neg99.7%
distribute-rgt-out--99.7%
Simplified99.7%
Final simplification92.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (<= t_1 (- INFINITY))
(+ x (* (- y z) (/ (- t x) (- a z))))
(if (<= t_1 -2e-298)
t_1
(if (<= t_1 5e-238)
(+ t (/ (* (- t x) (- a y)) z))
(if (<= t_1 1e+304) t_1 (+ x (/ (- y z) (/ (- a z) (- t x))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = x + ((y - z) * ((t - x) / (a - z)));
} else if (t_1 <= -2e-298) {
tmp = t_1;
} else if (t_1 <= 5e-238) {
tmp = t + (((t - x) * (a - y)) / z);
} else if (t_1 <= 1e+304) {
tmp = t_1;
} else {
tmp = x + ((y - z) / ((a - z) / (t - x)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = x + ((y - z) * ((t - x) / (a - z)));
} else if (t_1 <= -2e-298) {
tmp = t_1;
} else if (t_1 <= 5e-238) {
tmp = t + (((t - x) * (a - y)) / z);
} else if (t_1 <= 1e+304) {
tmp = t_1;
} else {
tmp = x + ((y - z) / ((a - z) / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if t_1 <= -math.inf: tmp = x + ((y - z) * ((t - x) / (a - z))) elif t_1 <= -2e-298: tmp = t_1 elif t_1 <= 5e-238: tmp = t + (((t - x) * (a - y)) / z) elif t_1 <= 1e+304: tmp = t_1 else: tmp = x + ((y - z) / ((a - z) / (t - x))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))); elseif (t_1 <= -2e-298) tmp = t_1; elseif (t_1 <= 5e-238) tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)); elseif (t_1 <= 1e+304) tmp = t_1; else tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - z) * (t - x)) / (a - z)); tmp = 0.0; if (t_1 <= -Inf) tmp = x + ((y - z) * ((t - x) / (a - z))); elseif (t_1 <= -2e-298) tmp = t_1; elseif (t_1 <= 5e-238) tmp = t + (((t - x) * (a - y)) / z); elseif (t_1 <= 1e+304) tmp = t_1; else tmp = x + ((y - z) / ((a - z) / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -2e-298], t$95$1, If[LessEqual[t$95$1, 5e-238], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+304], t$95$1, N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-298}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-238}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\mathbf{elif}\;t\_1 \leq 10^{+304}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -inf.0Initial program 41.3%
associate-/l*81.9%
Simplified81.9%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -1.99999999999999982e-298 or 5e-238 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 9.9999999999999994e303Initial program 97.2%
if -1.99999999999999982e-298 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 5e-238Initial program 10.4%
associate-/l*8.5%
Simplified8.5%
Taylor expanded in z around inf 99.8%
associate--l+99.8%
associate-*r/99.8%
associate-*r/99.8%
mul-1-neg99.8%
div-sub99.7%
mul-1-neg99.7%
distribute-lft-out--99.7%
associate-*r/99.7%
mul-1-neg99.7%
unsub-neg99.7%
distribute-rgt-out--99.7%
Simplified99.7%
if 9.9999999999999994e303 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 36.6%
associate-/l*85.5%
Simplified85.5%
clear-num85.6%
un-div-inv85.7%
Applied egg-rr85.7%
Final simplification92.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- t x) (/ (- y z) a)))))
(if (<= a -1.25e-98)
t_1
(if (<= a 1.05e-52)
(+ t (/ (* (- t x) (- a y)) z))
(if (<= a 1.7e+21)
(* y (/ (- t x) (- a z)))
(if (<= a 8.2e+77) (+ x (* z (/ (- x t) (- a z)))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * ((y - z) / a));
double tmp;
if (a <= -1.25e-98) {
tmp = t_1;
} else if (a <= 1.05e-52) {
tmp = t + (((t - x) * (a - y)) / z);
} else if (a <= 1.7e+21) {
tmp = y * ((t - x) / (a - z));
} else if (a <= 8.2e+77) {
tmp = x + (z * ((x - t) / (a - z)));
} 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 + ((t - x) * ((y - z) / a))
if (a <= (-1.25d-98)) then
tmp = t_1
else if (a <= 1.05d-52) then
tmp = t + (((t - x) * (a - y)) / z)
else if (a <= 1.7d+21) then
tmp = y * ((t - x) / (a - z))
else if (a <= 8.2d+77) then
tmp = x + (z * ((x - t) / (a - z)))
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 + ((t - x) * ((y - z) / a));
double tmp;
if (a <= -1.25e-98) {
tmp = t_1;
} else if (a <= 1.05e-52) {
tmp = t + (((t - x) * (a - y)) / z);
} else if (a <= 1.7e+21) {
tmp = y * ((t - x) / (a - z));
} else if (a <= 8.2e+77) {
tmp = x + (z * ((x - t) / (a - z)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((t - x) * ((y - z) / a)) tmp = 0 if a <= -1.25e-98: tmp = t_1 elif a <= 1.05e-52: tmp = t + (((t - x) * (a - y)) / z) elif a <= 1.7e+21: tmp = y * ((t - x) / (a - z)) elif a <= 8.2e+77: tmp = x + (z * ((x - t) / (a - z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / a))) tmp = 0.0 if (a <= -1.25e-98) tmp = t_1; elseif (a <= 1.05e-52) tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)); elseif (a <= 1.7e+21) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (a <= 8.2e+77) tmp = Float64(x + Float64(z * Float64(Float64(x - t) / Float64(a - z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((t - x) * ((y - z) / a)); tmp = 0.0; if (a <= -1.25e-98) tmp = t_1; elseif (a <= 1.05e-52) tmp = t + (((t - x) * (a - y)) / z); elseif (a <= 1.7e+21) tmp = y * ((t - x) / (a - z)); elseif (a <= 8.2e+77) tmp = x + (z * ((x - t) / (a - z))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.25e-98], t$95$1, If[LessEqual[a, 1.05e-52], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.7e+21], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.2e+77], N[(x + N[(z * N[(N[(x - t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(t - x\right) \cdot \frac{y - z}{a}\\
\mathbf{if}\;a \leq -1.25 \cdot 10^{-98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{-52}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{+21}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;a \leq 8.2 \cdot 10^{+77}:\\
\;\;\;\;x + z \cdot \frac{x - t}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.25000000000000005e-98 or 8.2000000000000002e77 < a Initial program 71.0%
associate-/l*90.9%
Simplified90.9%
Taylor expanded in a around inf 67.6%
associate-/l*84.0%
Simplified84.0%
if -1.25000000000000005e-98 < a < 1.0499999999999999e-52Initial program 65.1%
associate-/l*62.2%
Simplified62.2%
Taylor expanded in z around inf 79.5%
associate--l+79.5%
associate-*r/79.5%
associate-*r/79.5%
mul-1-neg79.5%
div-sub80.5%
mul-1-neg80.5%
distribute-lft-out--80.5%
associate-*r/80.5%
mul-1-neg80.5%
unsub-neg80.5%
distribute-rgt-out--80.5%
Simplified80.5%
if 1.0499999999999999e-52 < a < 1.7e21Initial program 68.8%
associate-/l*87.3%
Simplified87.3%
Taylor expanded in y around inf 74.8%
div-sub74.8%
Simplified74.8%
if 1.7e21 < a < 8.2000000000000002e77Initial program 55.9%
associate-/l*77.4%
Simplified77.4%
Taylor expanded in y around 0 55.9%
mul-1-neg55.9%
unsub-neg55.9%
associate-/l*77.4%
Simplified77.4%
Final simplification81.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- t x) (/ (- y z) a)))))
(if (<= a -2.3e-95)
t_1
(if (<= a 7.8e-54)
(+ t (/ (* (- t x) (- a y)) z))
(if (<= a 1.25e+21)
(* y (/ (- t x) (- a z)))
(if (<= a 8.5e+77) (+ x (/ z (/ (- a z) (- x t)))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * ((y - z) / a));
double tmp;
if (a <= -2.3e-95) {
tmp = t_1;
} else if (a <= 7.8e-54) {
tmp = t + (((t - x) * (a - y)) / z);
} else if (a <= 1.25e+21) {
tmp = y * ((t - x) / (a - z));
} else if (a <= 8.5e+77) {
tmp = x + (z / ((a - z) / (x - t)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((t - x) * ((y - z) / a))
if (a <= (-2.3d-95)) then
tmp = t_1
else if (a <= 7.8d-54) then
tmp = t + (((t - x) * (a - y)) / z)
else if (a <= 1.25d+21) then
tmp = y * ((t - x) / (a - z))
else if (a <= 8.5d+77) then
tmp = x + (z / ((a - z) / (x - t)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * ((y - z) / a));
double tmp;
if (a <= -2.3e-95) {
tmp = t_1;
} else if (a <= 7.8e-54) {
tmp = t + (((t - x) * (a - y)) / z);
} else if (a <= 1.25e+21) {
tmp = y * ((t - x) / (a - z));
} else if (a <= 8.5e+77) {
tmp = x + (z / ((a - z) / (x - t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((t - x) * ((y - z) / a)) tmp = 0 if a <= -2.3e-95: tmp = t_1 elif a <= 7.8e-54: tmp = t + (((t - x) * (a - y)) / z) elif a <= 1.25e+21: tmp = y * ((t - x) / (a - z)) elif a <= 8.5e+77: tmp = x + (z / ((a - z) / (x - t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / a))) tmp = 0.0 if (a <= -2.3e-95) tmp = t_1; elseif (a <= 7.8e-54) tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)); elseif (a <= 1.25e+21) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (a <= 8.5e+77) tmp = Float64(x + Float64(z / Float64(Float64(a - z) / Float64(x - t)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((t - x) * ((y - z) / a)); tmp = 0.0; if (a <= -2.3e-95) tmp = t_1; elseif (a <= 7.8e-54) tmp = t + (((t - x) * (a - y)) / z); elseif (a <= 1.25e+21) tmp = y * ((t - x) / (a - z)); elseif (a <= 8.5e+77) tmp = x + (z / ((a - z) / (x - t))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.3e-95], t$95$1, If[LessEqual[a, 7.8e-54], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.25e+21], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.5e+77], N[(x + N[(z / N[(N[(a - z), $MachinePrecision] / N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(t - x\right) \cdot \frac{y - z}{a}\\
\mathbf{if}\;a \leq -2.3 \cdot 10^{-95}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 7.8 \cdot 10^{-54}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{+21}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{+77}:\\
\;\;\;\;x + \frac{z}{\frac{a - z}{x - t}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.29999999999999999e-95 or 8.50000000000000018e77 < a Initial program 71.0%
associate-/l*90.9%
Simplified90.9%
Taylor expanded in a around inf 67.6%
associate-/l*84.0%
Simplified84.0%
if -2.29999999999999999e-95 < a < 7.8e-54Initial program 65.1%
associate-/l*62.2%
Simplified62.2%
Taylor expanded in z around inf 79.5%
associate--l+79.5%
associate-*r/79.5%
associate-*r/79.5%
mul-1-neg79.5%
div-sub80.5%
mul-1-neg80.5%
distribute-lft-out--80.5%
associate-*r/80.5%
mul-1-neg80.5%
unsub-neg80.5%
distribute-rgt-out--80.5%
Simplified80.5%
if 7.8e-54 < a < 1.25e21Initial program 68.8%
associate-/l*87.3%
Simplified87.3%
Taylor expanded in y around inf 74.8%
div-sub74.8%
Simplified74.8%
if 1.25e21 < a < 8.50000000000000018e77Initial program 55.9%
associate-/l*77.4%
Simplified77.4%
Taylor expanded in y around 0 55.9%
mul-1-neg55.9%
unsub-neg55.9%
associate-/l*77.4%
Simplified77.4%
clear-num77.3%
div-inv77.6%
Applied egg-rr77.6%
Final simplification81.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= z -4.5e+68)
(* t (/ z (- z a)))
(if (<= z -1.5e-118)
t_1
(if (<= z -1.35e-221)
(* t (/ y (- a z)))
(if (<= z 1.9e+193) t_1 t))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -4.5e+68) {
tmp = t * (z / (z - a));
} else if (z <= -1.5e-118) {
tmp = t_1;
} else if (z <= -1.35e-221) {
tmp = t * (y / (a - z));
} else if (z <= 1.9e+193) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
if (z <= (-4.5d+68)) then
tmp = t * (z / (z - a))
else if (z <= (-1.5d-118)) then
tmp = t_1
else if (z <= (-1.35d-221)) then
tmp = t * (y / (a - z))
else if (z <= 1.9d+193) then
tmp = t_1
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -4.5e+68) {
tmp = t * (z / (z - a));
} else if (z <= -1.5e-118) {
tmp = t_1;
} else if (z <= -1.35e-221) {
tmp = t * (y / (a - z));
} else if (z <= 1.9e+193) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if z <= -4.5e+68: tmp = t * (z / (z - a)) elif z <= -1.5e-118: tmp = t_1 elif z <= -1.35e-221: tmp = t * (y / (a - z)) elif z <= 1.9e+193: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (z <= -4.5e+68) tmp = Float64(t * Float64(z / Float64(z - a))); elseif (z <= -1.5e-118) tmp = t_1; elseif (z <= -1.35e-221) tmp = Float64(t * Float64(y / Float64(a - z))); elseif (z <= 1.9e+193) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (z <= -4.5e+68) tmp = t * (z / (z - a)); elseif (z <= -1.5e-118) tmp = t_1; elseif (z <= -1.35e-221) tmp = t * (y / (a - z)); elseif (z <= 1.9e+193) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.5e+68], N[(t * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.5e-118], t$95$1, If[LessEqual[z, -1.35e-221], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e+193], t$95$1, t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;z \leq -4.5 \cdot 10^{+68}:\\
\;\;\;\;t \cdot \frac{z}{z - a}\\
\mathbf{elif}\;z \leq -1.5 \cdot 10^{-118}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.35 \cdot 10^{-221}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{+193}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -4.5000000000000003e68Initial program 36.6%
associate-/l*71.2%
Simplified71.2%
Taylor expanded in y around 0 29.9%
mul-1-neg29.9%
unsub-neg29.9%
associate-/l*57.9%
Simplified57.9%
Taylor expanded in x around 0 35.8%
mul-1-neg35.8%
associate-/l*64.2%
distribute-rgt-neg-in64.2%
mul-1-neg64.2%
associate-*r/64.2%
neg-mul-164.2%
Simplified64.2%
distribute-frac-neg64.2%
distribute-frac-neg264.2%
associate-*r/35.8%
sub-neg35.8%
distribute-neg-in35.8%
remove-double-neg35.8%
Applied egg-rr35.8%
associate-/l*64.2%
+-commutative64.2%
unsub-neg64.2%
Simplified64.2%
if -4.5000000000000003e68 < z < -1.50000000000000009e-118 or -1.35e-221 < z < 1.89999999999999986e193Initial program 79.2%
associate-/l*85.3%
Simplified85.3%
Taylor expanded in z around 0 64.0%
associate-/l*67.9%
Simplified67.9%
Taylor expanded in x around inf 60.1%
mul-1-neg60.1%
unsub-neg60.1%
Simplified60.1%
if -1.50000000000000009e-118 < z < -1.35e-221Initial program 99.6%
associate-/l*91.6%
Simplified91.6%
Taylor expanded in y around inf 60.8%
div-sub60.8%
Simplified60.8%
Taylor expanded in t around inf 55.9%
associate-/l*56.0%
Simplified56.0%
if 1.89999999999999986e193 < z Initial program 22.5%
associate-/l*40.7%
Simplified40.7%
Taylor expanded in z around inf 66.9%
Final simplification61.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* t (/ y a)))))
(if (<= a -1.95e-32)
t_1
(if (<= a 2.7e-55)
(* t (/ (- y z) (- a z)))
(if (<= a 26000000000.0) (* y (/ (- t x) (- a z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / a));
double tmp;
if (a <= -1.95e-32) {
tmp = t_1;
} else if (a <= 2.7e-55) {
tmp = t * ((y - z) / (a - z));
} else if (a <= 26000000000.0) {
tmp = y * ((t - x) / (a - z));
} 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 + (t * (y / a))
if (a <= (-1.95d-32)) then
tmp = t_1
else if (a <= 2.7d-55) then
tmp = t * ((y - z) / (a - z))
else if (a <= 26000000000.0d0) then
tmp = y * ((t - x) / (a - z))
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 + (t * (y / a));
double tmp;
if (a <= -1.95e-32) {
tmp = t_1;
} else if (a <= 2.7e-55) {
tmp = t * ((y - z) / (a - z));
} else if (a <= 26000000000.0) {
tmp = y * ((t - x) / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t * (y / a)) tmp = 0 if a <= -1.95e-32: tmp = t_1 elif a <= 2.7e-55: tmp = t * ((y - z) / (a - z)) elif a <= 26000000000.0: tmp = y * ((t - x) / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t * Float64(y / a))) tmp = 0.0 if (a <= -1.95e-32) tmp = t_1; elseif (a <= 2.7e-55) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (a <= 26000000000.0) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t * (y / a)); tmp = 0.0; if (a <= -1.95e-32) tmp = t_1; elseif (a <= 2.7e-55) tmp = t * ((y - z) / (a - z)); elseif (a <= 26000000000.0) tmp = y * ((t - x) / (a - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.95e-32], t$95$1, If[LessEqual[a, 2.7e-55], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 26000000000.0], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + t \cdot \frac{y}{a}\\
\mathbf{if}\;a \leq -1.95 \cdot 10^{-32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{-55}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;a \leq 26000000000:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.9500000000000001e-32 or 2.6e10 < a Initial program 69.5%
associate-/l*90.3%
Simplified90.3%
Taylor expanded in z around 0 68.0%
associate-/l*75.8%
Simplified75.8%
Taylor expanded in t around inf 63.4%
associate-/l*69.2%
Simplified69.2%
if -1.9500000000000001e-32 < a < 2.70000000000000004e-55Initial program 67.2%
associate-/l*65.4%
Simplified65.4%
Taylor expanded in x around 0 55.9%
associate-/l*67.7%
Simplified67.7%
if 2.70000000000000004e-55 < a < 2.6e10Initial program 56.4%
associate-/l*77.8%
Simplified77.8%
Taylor expanded in y around inf 71.2%
div-sub71.2%
Simplified71.2%
Final simplification68.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.9e-115) (not (<= a 2.05e-173))) (+ x (* (- y z) (/ (- t x) (- a z)))) (+ t (/ (* (- t x) (- a y)) z))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.9e-115) || !(a <= 2.05e-173)) {
tmp = x + ((y - z) * ((t - x) / (a - z)));
} else {
tmp = t + (((t - x) * (a - y)) / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-1.9d-115)) .or. (.not. (a <= 2.05d-173))) then
tmp = x + ((y - z) * ((t - x) / (a - z)))
else
tmp = t + (((t - x) * (a - y)) / z)
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.9e-115) || !(a <= 2.05e-173)) {
tmp = x + ((y - z) * ((t - x) / (a - z)));
} else {
tmp = t + (((t - x) * (a - y)) / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.9e-115) or not (a <= 2.05e-173): tmp = x + ((y - z) * ((t - x) / (a - z))) else: tmp = t + (((t - x) * (a - y)) / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.9e-115) || !(a <= 2.05e-173)) tmp = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))); else tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.9e-115) || ~((a <= 2.05e-173))) tmp = x + ((y - z) * ((t - x) / (a - z))); else tmp = t + (((t - x) * (a - y)) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.9e-115], N[Not[LessEqual[a, 2.05e-173]], $MachinePrecision]], N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.9 \cdot 10^{-115} \lor \neg \left(a \leq 2.05 \cdot 10^{-173}\right):\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\end{array}
\end{array}
if a < -1.89999999999999996e-115 or 2.0499999999999999e-173 < a Initial program 70.1%
associate-/l*87.3%
Simplified87.3%
if -1.89999999999999996e-115 < a < 2.0499999999999999e-173Initial program 62.0%
associate-/l*57.8%
Simplified57.8%
Taylor expanded in z around inf 85.5%
associate--l+85.5%
associate-*r/85.5%
associate-*r/85.5%
mul-1-neg85.5%
div-sub86.9%
mul-1-neg86.9%
distribute-lft-out--86.9%
associate-*r/86.9%
mul-1-neg86.9%
unsub-neg86.9%
distribute-rgt-out--86.9%
Simplified86.9%
Final simplification87.2%
(FPCore (x y z t a)
:precision binary64
(if (<= z -6.4e+69)
(* t (/ z (- z a)))
(if (<= z -3.3e-234)
(* t (/ y (- a z)))
(if (<= z 4.5e+189) (* x (+ 1.0 (/ z a))) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -6.4e+69) {
tmp = t * (z / (z - a));
} else if (z <= -3.3e-234) {
tmp = t * (y / (a - z));
} else if (z <= 4.5e+189) {
tmp = x * (1.0 + (z / a));
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-6.4d+69)) then
tmp = t * (z / (z - a))
else if (z <= (-3.3d-234)) then
tmp = t * (y / (a - z))
else if (z <= 4.5d+189) then
tmp = x * (1.0d0 + (z / a))
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -6.4e+69) {
tmp = t * (z / (z - a));
} else if (z <= -3.3e-234) {
tmp = t * (y / (a - z));
} else if (z <= 4.5e+189) {
tmp = x * (1.0 + (z / a));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -6.4e+69: tmp = t * (z / (z - a)) elif z <= -3.3e-234: tmp = t * (y / (a - z)) elif z <= 4.5e+189: tmp = x * (1.0 + (z / a)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -6.4e+69) tmp = Float64(t * Float64(z / Float64(z - a))); elseif (z <= -3.3e-234) tmp = Float64(t * Float64(y / Float64(a - z))); elseif (z <= 4.5e+189) tmp = Float64(x * Float64(1.0 + Float64(z / a))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -6.4e+69) tmp = t * (z / (z - a)); elseif (z <= -3.3e-234) tmp = t * (y / (a - z)); elseif (z <= 4.5e+189) tmp = x * (1.0 + (z / a)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -6.4e+69], N[(t * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.3e-234], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e+189], N[(x * N[(1.0 + N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.4 \cdot 10^{+69}:\\
\;\;\;\;t \cdot \frac{z}{z - a}\\
\mathbf{elif}\;z \leq -3.3 \cdot 10^{-234}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{+189}:\\
\;\;\;\;x \cdot \left(1 + \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -6.3999999999999997e69Initial program 36.6%
associate-/l*71.2%
Simplified71.2%
Taylor expanded in y around 0 29.9%
mul-1-neg29.9%
unsub-neg29.9%
associate-/l*57.9%
Simplified57.9%
Taylor expanded in x around 0 35.8%
mul-1-neg35.8%
associate-/l*64.2%
distribute-rgt-neg-in64.2%
mul-1-neg64.2%
associate-*r/64.2%
neg-mul-164.2%
Simplified64.2%
distribute-frac-neg64.2%
distribute-frac-neg264.2%
associate-*r/35.8%
sub-neg35.8%
distribute-neg-in35.8%
remove-double-neg35.8%
Applied egg-rr35.8%
associate-/l*64.2%
+-commutative64.2%
unsub-neg64.2%
Simplified64.2%
if -6.3999999999999997e69 < z < -3.30000000000000014e-234Initial program 82.1%
associate-/l*85.4%
Simplified85.4%
Taylor expanded in y around inf 59.0%
div-sub59.0%
Simplified59.0%
Taylor expanded in t around inf 35.6%
associate-/l*42.1%
Simplified42.1%
if -3.30000000000000014e-234 < z < 4.49999999999999973e189Initial program 82.0%
associate-/l*87.0%
Simplified87.0%
Taylor expanded in y around 0 51.4%
mul-1-neg51.4%
unsub-neg51.4%
associate-/l*55.0%
Simplified55.0%
Taylor expanded in z around 0 47.1%
Taylor expanded in x around inf 47.7%
sub-neg47.7%
mul-1-neg47.7%
remove-double-neg47.7%
+-commutative47.7%
Simplified47.7%
if 4.49999999999999973e189 < z Initial program 21.7%
associate-/l*39.3%
Simplified39.3%
Taylor expanded in z around inf 64.5%
Final simplification51.1%
(FPCore (x y z t a)
:precision binary64
(if (<= z -3.2e+69)
(* t (/ z (- z a)))
(if (<= z 3.2e-103)
(+ x (* t (/ y a)))
(if (<= z 1.9e+193) (* x (- 1.0 (/ y a))) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.2e+69) {
tmp = t * (z / (z - a));
} else if (z <= 3.2e-103) {
tmp = x + (t * (y / a));
} else if (z <= 1.9e+193) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-3.2d+69)) then
tmp = t * (z / (z - a))
else if (z <= 3.2d-103) then
tmp = x + (t * (y / a))
else if (z <= 1.9d+193) then
tmp = x * (1.0d0 - (y / a))
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.2e+69) {
tmp = t * (z / (z - a));
} else if (z <= 3.2e-103) {
tmp = x + (t * (y / a));
} else if (z <= 1.9e+193) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.2e+69: tmp = t * (z / (z - a)) elif z <= 3.2e-103: tmp = x + (t * (y / a)) elif z <= 1.9e+193: tmp = x * (1.0 - (y / a)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.2e+69) tmp = Float64(t * Float64(z / Float64(z - a))); elseif (z <= 3.2e-103) tmp = Float64(x + Float64(t * Float64(y / a))); elseif (z <= 1.9e+193) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.2e+69) tmp = t * (z / (z - a)); elseif (z <= 3.2e-103) tmp = x + (t * (y / a)); elseif (z <= 1.9e+193) tmp = x * (1.0 - (y / a)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.2e+69], N[(t * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.2e-103], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e+193], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.2 \cdot 10^{+69}:\\
\;\;\;\;t \cdot \frac{z}{z - a}\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{-103}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{+193}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -3.19999999999999985e69Initial program 36.6%
associate-/l*71.2%
Simplified71.2%
Taylor expanded in y around 0 29.9%
mul-1-neg29.9%
unsub-neg29.9%
associate-/l*57.9%
Simplified57.9%
Taylor expanded in x around 0 35.8%
mul-1-neg35.8%
associate-/l*64.2%
distribute-rgt-neg-in64.2%
mul-1-neg64.2%
associate-*r/64.2%
neg-mul-164.2%
Simplified64.2%
distribute-frac-neg64.2%
distribute-frac-neg264.2%
associate-*r/35.8%
sub-neg35.8%
distribute-neg-in35.8%
remove-double-neg35.8%
Applied egg-rr35.8%
associate-/l*64.2%
+-commutative64.2%
unsub-neg64.2%
Simplified64.2%
if -3.19999999999999985e69 < z < 3.19999999999999976e-103Initial program 88.0%
associate-/l*88.9%
Simplified88.9%
Taylor expanded in z around 0 71.6%
associate-/l*75.3%
Simplified75.3%
Taylor expanded in t around inf 63.9%
associate-/l*67.7%
Simplified67.7%
if 3.19999999999999976e-103 < z < 1.89999999999999986e193Initial program 68.5%
associate-/l*80.2%
Simplified80.2%
Taylor expanded in z around 0 50.2%
associate-/l*53.1%
Simplified53.1%
Taylor expanded in x around inf 51.9%
mul-1-neg51.9%
unsub-neg51.9%
Simplified51.9%
if 1.89999999999999986e193 < z Initial program 22.5%
associate-/l*40.7%
Simplified40.7%
Taylor expanded in z around inf 66.9%
Final simplification63.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* t (/ y a)))))
(if (<= a -4.25e-32)
t_1
(if (<= a 2e-55)
(* t (/ (- y z) (- a z)))
(if (<= a 32000000000.0) (* y (/ x (- z a))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / a));
double tmp;
if (a <= -4.25e-32) {
tmp = t_1;
} else if (a <= 2e-55) {
tmp = t * ((y - z) / (a - z));
} else if (a <= 32000000000.0) {
tmp = y * (x / (z - a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (t * (y / a))
if (a <= (-4.25d-32)) then
tmp = t_1
else if (a <= 2d-55) then
tmp = t * ((y - z) / (a - z))
else if (a <= 32000000000.0d0) then
tmp = y * (x / (z - a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / a));
double tmp;
if (a <= -4.25e-32) {
tmp = t_1;
} else if (a <= 2e-55) {
tmp = t * ((y - z) / (a - z));
} else if (a <= 32000000000.0) {
tmp = y * (x / (z - a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t * (y / a)) tmp = 0 if a <= -4.25e-32: tmp = t_1 elif a <= 2e-55: tmp = t * ((y - z) / (a - z)) elif a <= 32000000000.0: tmp = y * (x / (z - a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t * Float64(y / a))) tmp = 0.0 if (a <= -4.25e-32) tmp = t_1; elseif (a <= 2e-55) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (a <= 32000000000.0) tmp = Float64(y * Float64(x / Float64(z - a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t * (y / a)); tmp = 0.0; if (a <= -4.25e-32) tmp = t_1; elseif (a <= 2e-55) tmp = t * ((y - z) / (a - z)); elseif (a <= 32000000000.0) tmp = y * (x / (z - a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.25e-32], t$95$1, If[LessEqual[a, 2e-55], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 32000000000.0], N[(y * N[(x / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + t \cdot \frac{y}{a}\\
\mathbf{if}\;a \leq -4.25 \cdot 10^{-32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2 \cdot 10^{-55}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;a \leq 32000000000:\\
\;\;\;\;y \cdot \frac{x}{z - a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -4.2500000000000001e-32 or 3.2e10 < a Initial program 69.5%
associate-/l*90.3%
Simplified90.3%
Taylor expanded in z around 0 68.0%
associate-/l*75.8%
Simplified75.8%
Taylor expanded in t around inf 63.4%
associate-/l*69.2%
Simplified69.2%
if -4.2500000000000001e-32 < a < 1.99999999999999999e-55Initial program 67.2%
associate-/l*65.4%
Simplified65.4%
Taylor expanded in x around 0 55.9%
associate-/l*67.7%
Simplified67.7%
if 1.99999999999999999e-55 < a < 3.2e10Initial program 56.4%
associate-/l*77.8%
Simplified77.8%
Taylor expanded in y around inf 71.2%
div-sub71.2%
Simplified71.2%
Taylor expanded in t around 0 63.9%
neg-mul-163.9%
distribute-neg-frac263.9%
Simplified63.9%
Final simplification68.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2.5e-89) (not (<= a 2.3e-52))) (+ x (* (- t x) (/ (- y z) a))) (* t (/ (- y z) (- a z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.5e-89) || !(a <= 2.3e-52)) {
tmp = x + ((t - x) * ((y - z) / a));
} else {
tmp = t * ((y - z) / (a - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-2.5d-89)) .or. (.not. (a <= 2.3d-52))) then
tmp = x + ((t - x) * ((y - z) / a))
else
tmp = t * ((y - z) / (a - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.5e-89) || !(a <= 2.3e-52)) {
tmp = x + ((t - x) * ((y - z) / a));
} else {
tmp = t * ((y - z) / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2.5e-89) or not (a <= 2.3e-52): tmp = x + ((t - x) * ((y - z) / a)) else: tmp = t * ((y - z) / (a - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -2.5e-89) || !(a <= 2.3e-52)) tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / a))); else tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -2.5e-89) || ~((a <= 2.3e-52))) tmp = x + ((t - x) * ((y - z) / a)); else tmp = t * ((y - z) / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2.5e-89], N[Not[LessEqual[a, 2.3e-52]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.5 \cdot 10^{-89} \lor \neg \left(a \leq 2.3 \cdot 10^{-52}\right):\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\end{array}
\end{array}
if a < -2.49999999999999983e-89 or 2.29999999999999994e-52 < a Initial program 69.6%
associate-/l*89.8%
Simplified89.8%
Taylor expanded in a around inf 65.6%
associate-/l*79.3%
Simplified79.3%
if -2.49999999999999983e-89 < a < 2.29999999999999994e-52Initial program 65.2%
associate-/l*62.3%
Simplified62.3%
Taylor expanded in x around 0 56.8%
associate-/l*68.8%
Simplified68.8%
Final simplification75.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.4e-98) (not (<= a 2.25e-52))) (+ x (* (- t x) (/ (- y z) a))) (+ t (/ (* (- t x) (- a y)) z))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.4e-98) || !(a <= 2.25e-52)) {
tmp = x + ((t - x) * ((y - z) / a));
} else {
tmp = t + (((t - x) * (a - y)) / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-1.4d-98)) .or. (.not. (a <= 2.25d-52))) then
tmp = x + ((t - x) * ((y - z) / a))
else
tmp = t + (((t - x) * (a - y)) / z)
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.4e-98) || !(a <= 2.25e-52)) {
tmp = x + ((t - x) * ((y - z) / a));
} else {
tmp = t + (((t - x) * (a - y)) / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.4e-98) or not (a <= 2.25e-52): tmp = x + ((t - x) * ((y - z) / a)) else: tmp = t + (((t - x) * (a - y)) / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.4e-98) || !(a <= 2.25e-52)) tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / a))); else tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.4e-98) || ~((a <= 2.25e-52))) tmp = x + ((t - x) * ((y - z) / a)); else tmp = t + (((t - x) * (a - y)) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.4e-98], N[Not[LessEqual[a, 2.25e-52]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.4 \cdot 10^{-98} \lor \neg \left(a \leq 2.25 \cdot 10^{-52}\right):\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\end{array}
\end{array}
if a < -1.3999999999999999e-98 or 2.25e-52 < a Initial program 69.9%
associate-/l*89.9%
Simplified89.9%
Taylor expanded in a around inf 66.0%
associate-/l*79.6%
Simplified79.6%
if -1.3999999999999999e-98 < a < 2.25e-52Initial program 64.5%
associate-/l*61.6%
Simplified61.6%
Taylor expanded in z around inf 79.7%
associate--l+79.7%
associate-*r/79.7%
associate-*r/79.7%
mul-1-neg79.7%
div-sub80.7%
mul-1-neg80.7%
distribute-lft-out--80.7%
associate-*r/80.7%
mul-1-neg80.7%
unsub-neg80.7%
distribute-rgt-out--80.7%
Simplified80.7%
Final simplification80.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.95e-87) (not (<= a 6.6e-52))) (+ x (* y (/ (- t x) a))) (* t (/ (- y z) (- a z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.95e-87) || !(a <= 6.6e-52)) {
tmp = x + (y * ((t - x) / a));
} else {
tmp = t * ((y - z) / (a - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-1.95d-87)) .or. (.not. (a <= 6.6d-52))) then
tmp = x + (y * ((t - x) / a))
else
tmp = t * ((y - z) / (a - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.95e-87) || !(a <= 6.6e-52)) {
tmp = x + (y * ((t - x) / a));
} else {
tmp = t * ((y - z) / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.95e-87) or not (a <= 6.6e-52): tmp = x + (y * ((t - x) / a)) else: tmp = t * ((y - z) / (a - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.95e-87) || !(a <= 6.6e-52)) tmp = Float64(x + Float64(y * Float64(Float64(t - x) / a))); else tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.95e-87) || ~((a <= 6.6e-52))) tmp = x + (y * ((t - x) / a)); else tmp = t * ((y - z) / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.95e-87], N[Not[LessEqual[a, 6.6e-52]], $MachinePrecision]], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.95 \cdot 10^{-87} \lor \neg \left(a \leq 6.6 \cdot 10^{-52}\right):\\
\;\;\;\;x + y \cdot \frac{t - x}{a}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\end{array}
\end{array}
if a < -1.9499999999999999e-87 or 6.5999999999999999e-52 < a Initial program 69.6%
associate-/l*89.8%
Simplified89.8%
Taylor expanded in z around 0 66.3%
associate-/l*73.0%
Simplified73.0%
if -1.9499999999999999e-87 < a < 6.5999999999999999e-52Initial program 65.2%
associate-/l*62.3%
Simplified62.3%
Taylor expanded in x around 0 56.8%
associate-/l*68.8%
Simplified68.8%
Final simplification71.3%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.26e+68) t (if (<= z -3.6e-234) (* t (/ y (- a z))) (if (<= z 5.2e+207) x t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.26e+68) {
tmp = t;
} else if (z <= -3.6e-234) {
tmp = t * (y / (a - z));
} else if (z <= 5.2e+207) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.26d+68)) then
tmp = t
else if (z <= (-3.6d-234)) then
tmp = t * (y / (a - z))
else if (z <= 5.2d+207) then
tmp = x
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.26e+68) {
tmp = t;
} else if (z <= -3.6e-234) {
tmp = t * (y / (a - z));
} else if (z <= 5.2e+207) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.26e+68: tmp = t elif z <= -3.6e-234: tmp = t * (y / (a - z)) elif z <= 5.2e+207: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.26e+68) tmp = t; elseif (z <= -3.6e-234) tmp = Float64(t * Float64(y / Float64(a - z))); elseif (z <= 5.2e+207) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.26e+68) tmp = t; elseif (z <= -3.6e-234) tmp = t * (y / (a - z)); elseif (z <= 5.2e+207) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.26e+68], t, If[LessEqual[z, -3.6e-234], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.2e+207], x, t]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.26 \cdot 10^{+68}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -3.6 \cdot 10^{-234}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{+207}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.26e68 or 5.1999999999999996e207 < z Initial program 31.2%
associate-/l*60.8%
Simplified60.8%
Taylor expanded in z around inf 59.9%
if -1.26e68 < z < -3.5999999999999998e-234Initial program 81.8%
associate-/l*85.1%
Simplified85.1%
Taylor expanded in y around inf 60.0%
div-sub60.0%
Simplified60.0%
Taylor expanded in t around inf 36.2%
associate-/l*42.8%
Simplified42.8%
if -3.5999999999999998e-234 < z < 5.1999999999999996e207Initial program 81.5%
associate-/l*85.7%
Simplified85.7%
Taylor expanded in a around inf 46.2%
Final simplification49.2%
(FPCore (x y z t a) :precision binary64 (if (<= z -3.7e+69) (* t (/ z (- z a))) (if (<= z -7.8e-235) (* t (/ y (- a z))) (if (<= z 5.2e+207) x t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.7e+69) {
tmp = t * (z / (z - a));
} else if (z <= -7.8e-235) {
tmp = t * (y / (a - z));
} else if (z <= 5.2e+207) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-3.7d+69)) then
tmp = t * (z / (z - a))
else if (z <= (-7.8d-235)) then
tmp = t * (y / (a - z))
else if (z <= 5.2d+207) then
tmp = x
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.7e+69) {
tmp = t * (z / (z - a));
} else if (z <= -7.8e-235) {
tmp = t * (y / (a - z));
} else if (z <= 5.2e+207) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.7e+69: tmp = t * (z / (z - a)) elif z <= -7.8e-235: tmp = t * (y / (a - z)) elif z <= 5.2e+207: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.7e+69) tmp = Float64(t * Float64(z / Float64(z - a))); elseif (z <= -7.8e-235) tmp = Float64(t * Float64(y / Float64(a - z))); elseif (z <= 5.2e+207) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.7e+69) tmp = t * (z / (z - a)); elseif (z <= -7.8e-235) tmp = t * (y / (a - z)); elseif (z <= 5.2e+207) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.7e+69], N[(t * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -7.8e-235], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.2e+207], x, t]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.7 \cdot 10^{+69}:\\
\;\;\;\;t \cdot \frac{z}{z - a}\\
\mathbf{elif}\;z \leq -7.8 \cdot 10^{-235}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{+207}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -3.6999999999999999e69Initial program 36.6%
associate-/l*71.2%
Simplified71.2%
Taylor expanded in y around 0 29.9%
mul-1-neg29.9%
unsub-neg29.9%
associate-/l*57.9%
Simplified57.9%
Taylor expanded in x around 0 35.8%
mul-1-neg35.8%
associate-/l*64.2%
distribute-rgt-neg-in64.2%
mul-1-neg64.2%
associate-*r/64.2%
neg-mul-164.2%
Simplified64.2%
distribute-frac-neg64.2%
distribute-frac-neg264.2%
associate-*r/35.8%
sub-neg35.8%
distribute-neg-in35.8%
remove-double-neg35.8%
Applied egg-rr35.8%
associate-/l*64.2%
+-commutative64.2%
unsub-neg64.2%
Simplified64.2%
if -3.6999999999999999e69 < z < -7.79999999999999939e-235Initial program 82.1%
associate-/l*85.4%
Simplified85.4%
Taylor expanded in y around inf 59.0%
div-sub59.0%
Simplified59.0%
Taylor expanded in t around inf 35.6%
associate-/l*42.1%
Simplified42.1%
if -7.79999999999999939e-235 < z < 5.1999999999999996e207Initial program 81.5%
associate-/l*85.7%
Simplified85.7%
Taylor expanded in a around inf 46.2%
if 5.1999999999999996e207 < z Initial program 19.5%
associate-/l*42.1%
Simplified42.1%
Taylor expanded in z around inf 69.3%
Final simplification50.7%
(FPCore (x y z t a) :precision binary64 (if (<= a -7.1e-31) x (if (<= a 1.65e-52) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -7.1e-31) {
tmp = x;
} else if (a <= 1.65e-52) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-7.1d-31)) then
tmp = x
else if (a <= 1.65d-52) then
tmp = t
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -7.1e-31) {
tmp = x;
} else if (a <= 1.65e-52) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -7.1e-31: tmp = x elif a <= 1.65e-52: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -7.1e-31) tmp = x; elseif (a <= 1.65e-52) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -7.1e-31) tmp = x; elseif (a <= 1.65e-52) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -7.1e-31], x, If[LessEqual[a, 1.65e-52], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7.1 \cdot 10^{-31}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{-52}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -7.0999999999999999e-31 or 1.64999999999999998e-52 < a Initial program 68.8%
associate-/l*89.8%
Simplified89.8%
Taylor expanded in a around inf 53.0%
if -7.0999999999999999e-31 < a < 1.64999999999999998e-52Initial program 66.6%
associate-/l*64.8%
Simplified64.8%
Taylor expanded in z around inf 38.0%
Final simplification46.4%
(FPCore (x y z t a) :precision binary64 t)
double code(double x, double y, double z, double t, double a) {
return t;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = t
end function
public static double code(double x, double y, double z, double t, double a) {
return t;
}
def code(x, y, z, t, a): return t
function code(x, y, z, t, a) return t end
function tmp = code(x, y, z, t, a) tmp = t; end
code[x_, y_, z_, t_, a_] := t
\begin{array}{l}
\\
t
\end{array}
Initial program 67.8%
associate-/l*78.8%
Simplified78.8%
Taylor expanded in z around inf 24.2%
Final simplification24.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* (/ y z) (- t x)))))
(if (< z -1.2536131056095036e+188)
t_1
(if (< z 4.446702369113811e+64)
(+ x (/ (- y z) (/ (- a z) (- t x))))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t - ((y / z) * (t - x))
if (z < (-1.2536131056095036d+188)) then
tmp = t_1
else if (z < 4.446702369113811d+64) then
tmp = x + ((y - z) / ((a - z) / (t - x)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - ((y / z) * (t - x)) tmp = 0 if z < -1.2536131056095036e+188: tmp = t_1 elif z < 4.446702369113811e+64: tmp = x + ((y - z) / ((a - z) / (t - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(y / z) * Float64(t - x))) tmp = 0.0 if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - ((y / z) * (t - x)); tmp = 0.0; if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = x + ((y - z) / ((a - z) / (t - x))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y / z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -1.2536131056095036e+188], t$95$1, If[Less[z, 4.446702369113811e+64], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\
\mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024069
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:alt
(if (< z -1.2536131056095036e+188) (- t (* (/ y z) (- t x))) (if (< z 4.446702369113811e+64) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x)))))
(+ x (/ (* (- y z) (- t x)) (- a z))))