
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + ((y - z) * ((t - x) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * ((t - x) / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + ((y - z) * ((t - x) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * ((t - x) / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -5e-275) (not (<= t_1 0.0)))
(+ x (/ (- t x) (/ (- a z) (- y z))))
(+ (+ t (/ (* y (- x t)) 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 <= -5e-275) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = (t + ((y * (x - t)) / z)) + (a / (z / (t - x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
if ((t_1 <= (-5d-275)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((t - x) / ((a - z) / (y - z)))
else
tmp = (t + ((y * (x - t)) / z)) + (a / (z / (t - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if ((t_1 <= -5e-275) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = (t + ((y * (x - t)) / 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 <= -5e-275) or not (t_1 <= 0.0): tmp = x + ((t - x) / ((a - z) / (y - z))) else: tmp = (t + ((y * (x - t)) / z)) + (a / (z / (t - x))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if ((t_1 <= -5e-275) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - z)))); else tmp = Float64(Float64(t + Float64(Float64(y * Float64(x - t)) / z)) + Float64(a / Float64(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 <= -5e-275) || ~((t_1 <= 0.0))) tmp = x + ((t - x) / ((a - z) / (y - z))); else tmp = (t + ((y * (x - t)) / z)) + (a / (z / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-275], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(a / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{-275} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;\left(t + \frac{y \cdot \left(x - t\right)}{z}\right) + \frac{a}{\frac{z}{t - x}}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.99999999999999983e-275 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 91.2%
*-commutative91.2%
associate-*l/76.8%
associate-*r/94.7%
clear-num94.7%
un-div-inv94.8%
Applied egg-rr94.8%
if -4.99999999999999983e-275 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 4.1%
*-commutative4.1%
associate-*l/2.9%
associate-*r/4.1%
clear-num4.1%
un-div-inv4.1%
Applied egg-rr4.1%
Taylor expanded in z around inf 77.8%
sub-neg77.8%
+-commutative77.8%
mul-1-neg77.8%
unsub-neg77.8%
mul-1-neg77.8%
remove-double-neg77.8%
associate-/l*87.2%
Simplified87.2%
Final simplification93.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -5e-275) (not (<= t_1 0.0)))
(+ x (/ (- t x) (/ (- a z) (- y z))))
(+ t (/ (+ (* (- t x) a) (* y (- x t))) 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 <= -5e-275) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t + ((((t - x) * a) + (y * (x - t))) / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
if ((t_1 <= (-5d-275)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((t - x) / ((a - z) / (y - z)))
else
tmp = t + ((((t - x) * a) + (y * (x - t))) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if ((t_1 <= -5e-275) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t + ((((t - x) * a) + (y * (x - t))) / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if (t_1 <= -5e-275) or not (t_1 <= 0.0): tmp = x + ((t - x) / ((a - z) / (y - z))) else: tmp = t + ((((t - x) * a) + (y * (x - t))) / z) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if ((t_1 <= -5e-275) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - z)))); else tmp = Float64(t + Float64(Float64(Float64(Float64(t - x) * a) + Float64(y * Float64(x - t))) / 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 <= -5e-275) || ~((t_1 <= 0.0))) tmp = x + ((t - x) / ((a - z) / (y - z))); else tmp = t + ((((t - x) * a) + (y * (x - t))) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-275], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(N[(N[(t - x), $MachinePrecision] * a), $MachinePrecision] + N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{-275} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot a + y \cdot \left(x - t\right)}{z}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.99999999999999983e-275 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 91.2%
*-commutative91.2%
associate-*l/76.8%
associate-*r/94.7%
clear-num94.7%
un-div-inv94.8%
Applied egg-rr94.8%
if -4.99999999999999983e-275 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 4.1%
Taylor expanded in z around -inf 77.9%
Final simplification92.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -5e-275) (not (<= t_1 4e-239)))
t_1
(+ t (/ (* (- y a) (- x t)) 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 <= -5e-275) || !(t_1 <= 4e-239)) {
tmp = t_1;
} else {
tmp = t + (((y - a) * (x - t)) / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
if ((t_1 <= (-5d-275)) .or. (.not. (t_1 <= 4d-239))) then
tmp = t_1
else
tmp = t + (((y - a) * (x - t)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if ((t_1 <= -5e-275) || !(t_1 <= 4e-239)) {
tmp = t_1;
} else {
tmp = t + (((y - a) * (x - t)) / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if (t_1 <= -5e-275) or not (t_1 <= 4e-239): tmp = t_1 else: tmp = t + (((y - a) * (x - t)) / z) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if ((t_1 <= -5e-275) || !(t_1 <= 4e-239)) tmp = t_1; else tmp = Float64(t + Float64(Float64(Float64(y - a) * Float64(x - t)) / 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 <= -5e-275) || ~((t_1 <= 4e-239))) tmp = t_1; else tmp = t + (((y - a) * (x - t)) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-275], N[Not[LessEqual[t$95$1, 4e-239]], $MachinePrecision]], t$95$1, N[(t + N[(N[(N[(y - a), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{-275} \lor \neg \left(t_1 \leq 4 \cdot 10^{-239}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t + \frac{\left(y - a\right) \cdot \left(x - t\right)}{z}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.99999999999999983e-275 or 4.0000000000000003e-239 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 91.9%
if -4.99999999999999983e-275 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 4.0000000000000003e-239Initial program 7.1%
Taylor expanded in z around inf 77.0%
+-commutative77.0%
associate--l+77.0%
associate-*r/77.0%
associate-*r/77.0%
div-sub77.1%
distribute-lft-out--77.1%
mul-1-neg77.1%
distribute-neg-frac77.1%
unsub-neg77.1%
distribute-rgt-out--77.1%
Simplified77.1%
Final simplification90.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -5e-275) (not (<= t_1 0.0)))
(+ x (/ (- t x) (/ (- a z) (- y z))))
(+ t (/ (* (- y a) (- x t)) 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 <= -5e-275) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t + (((y - a) * (x - t)) / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
if ((t_1 <= (-5d-275)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((t - x) / ((a - z) / (y - z)))
else
tmp = t + (((y - a) * (x - t)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if ((t_1 <= -5e-275) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t + (((y - a) * (x - t)) / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if (t_1 <= -5e-275) or not (t_1 <= 0.0): tmp = x + ((t - x) / ((a - z) / (y - z))) else: tmp = t + (((y - a) * (x - t)) / z) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if ((t_1 <= -5e-275) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - z)))); else tmp = Float64(t + Float64(Float64(Float64(y - a) * Float64(x - t)) / 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 <= -5e-275) || ~((t_1 <= 0.0))) tmp = x + ((t - x) / ((a - z) / (y - z))); else tmp = t + (((y - a) * (x - t)) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-275], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(N[(y - a), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{-275} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{\left(y - a\right) \cdot \left(x - t\right)}{z}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.99999999999999983e-275 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 91.2%
*-commutative91.2%
associate-*l/76.8%
associate-*r/94.7%
clear-num94.7%
un-div-inv94.8%
Applied egg-rr94.8%
if -4.99999999999999983e-275 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 4.1%
Taylor expanded in z around inf 77.8%
+-commutative77.8%
associate--l+77.8%
associate-*r/77.8%
associate-*r/77.8%
div-sub77.9%
distribute-lft-out--77.9%
mul-1-neg77.9%
distribute-neg-frac77.9%
unsub-neg77.9%
distribute-rgt-out--77.9%
Simplified77.9%
Final simplification92.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (- 1.0 (/ y z)))))
(if (<= a -1.08e-20)
x
(if (<= a -3.8e-203)
t_1
(if (<= a -2.5e-259)
(* x (/ y z))
(if (<= a 3.9e+62)
t_1
(if (<= a 2.1e+185) (* y (/ (- t x) a)) x)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (1.0 - (y / z));
double tmp;
if (a <= -1.08e-20) {
tmp = x;
} else if (a <= -3.8e-203) {
tmp = t_1;
} else if (a <= -2.5e-259) {
tmp = x * (y / z);
} else if (a <= 3.9e+62) {
tmp = t_1;
} else if (a <= 2.1e+185) {
tmp = y * ((t - x) / a);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * (1.0d0 - (y / z))
if (a <= (-1.08d-20)) then
tmp = x
else if (a <= (-3.8d-203)) then
tmp = t_1
else if (a <= (-2.5d-259)) then
tmp = x * (y / z)
else if (a <= 3.9d+62) then
tmp = t_1
else if (a <= 2.1d+185) then
tmp = y * ((t - x) / a)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * (1.0 - (y / z));
double tmp;
if (a <= -1.08e-20) {
tmp = x;
} else if (a <= -3.8e-203) {
tmp = t_1;
} else if (a <= -2.5e-259) {
tmp = x * (y / z);
} else if (a <= 3.9e+62) {
tmp = t_1;
} else if (a <= 2.1e+185) {
tmp = y * ((t - x) / a);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (1.0 - (y / z)) tmp = 0 if a <= -1.08e-20: tmp = x elif a <= -3.8e-203: tmp = t_1 elif a <= -2.5e-259: tmp = x * (y / z) elif a <= 3.9e+62: tmp = t_1 elif a <= 2.1e+185: tmp = y * ((t - x) / a) else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(1.0 - Float64(y / z))) tmp = 0.0 if (a <= -1.08e-20) tmp = x; elseif (a <= -3.8e-203) tmp = t_1; elseif (a <= -2.5e-259) tmp = Float64(x * Float64(y / z)); elseif (a <= 3.9e+62) tmp = t_1; elseif (a <= 2.1e+185) tmp = Float64(y * Float64(Float64(t - x) / a)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (1.0 - (y / z)); tmp = 0.0; if (a <= -1.08e-20) tmp = x; elseif (a <= -3.8e-203) tmp = t_1; elseif (a <= -2.5e-259) tmp = x * (y / z); elseif (a <= 3.9e+62) tmp = t_1; elseif (a <= 2.1e+185) tmp = y * ((t - x) / a); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.08e-20], x, If[LessEqual[a, -3.8e-203], t$95$1, If[LessEqual[a, -2.5e-259], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.9e+62], t$95$1, If[LessEqual[a, 2.1e+185], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], x]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{if}\;a \leq -1.08 \cdot 10^{-20}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-203}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2.5 \cdot 10^{-259}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;a \leq 3.9 \cdot 10^{+62}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{+185}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.08e-20 or 2.1e185 < a Initial program 88.1%
Taylor expanded in a around inf 50.8%
if -1.08e-20 < a < -3.80000000000000025e-203 or -2.49999999999999989e-259 < a < 3.9e62Initial program 75.7%
Taylor expanded in t around inf 62.0%
Taylor expanded in a around 0 58.7%
*-commutative58.7%
+-commutative58.7%
mul-1-neg58.7%
unsub-neg58.7%
Simplified58.7%
if -3.80000000000000025e-203 < a < -2.49999999999999989e-259Initial program 86.6%
Taylor expanded in x around inf 72.2%
mul-1-neg72.2%
unsub-neg72.2%
Simplified72.2%
Taylor expanded in a around 0 72.1%
if 3.9e62 < a < 2.1e185Initial program 78.5%
*-commutative78.5%
associate-*l/46.9%
associate-*r/81.7%
clear-num81.7%
un-div-inv81.8%
Applied egg-rr81.8%
Taylor expanded in y around inf 53.4%
div-sub53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in a around inf 43.3%
Final simplification55.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))) (t_2 (* t (/ (- y z) (- a z)))))
(if (<= t -1.45e-162)
t_2
(if (<= t 3.6e-240)
t_1
(if (<= t 8.2e-175)
(/ (* x (- y)) (- a z))
(if (<= t 2.8e-46) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double t_2 = t * ((y - z) / (a - z));
double tmp;
if (t <= -1.45e-162) {
tmp = t_2;
} else if (t <= 3.6e-240) {
tmp = t_1;
} else if (t <= 8.2e-175) {
tmp = (x * -y) / (a - z);
} else if (t <= 2.8e-46) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
t_2 = t * ((y - z) / (a - z))
if (t <= (-1.45d-162)) then
tmp = t_2
else if (t <= 3.6d-240) then
tmp = t_1
else if (t <= 8.2d-175) then
tmp = (x * -y) / (a - z)
else if (t <= 2.8d-46) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double t_2 = t * ((y - z) / (a - z));
double tmp;
if (t <= -1.45e-162) {
tmp = t_2;
} else if (t <= 3.6e-240) {
tmp = t_1;
} else if (t <= 8.2e-175) {
tmp = (x * -y) / (a - z);
} else if (t <= 2.8e-46) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) t_2 = t * ((y - z) / (a - z)) tmp = 0 if t <= -1.45e-162: tmp = t_2 elif t <= 3.6e-240: tmp = t_1 elif t <= 8.2e-175: tmp = (x * -y) / (a - z) elif t <= 2.8e-46: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) t_2 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (t <= -1.45e-162) tmp = t_2; elseif (t <= 3.6e-240) tmp = t_1; elseif (t <= 8.2e-175) tmp = Float64(Float64(x * Float64(-y)) / Float64(a - z)); elseif (t <= 2.8e-46) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); t_2 = t * ((y - z) / (a - z)); tmp = 0.0; if (t <= -1.45e-162) tmp = t_2; elseif (t <= 3.6e-240) tmp = t_1; elseif (t <= 8.2e-175) tmp = (x * -y) / (a - z); elseif (t <= 2.8e-46) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.45e-162], t$95$2, If[LessEqual[t, 3.6e-240], t$95$1, If[LessEqual[t, 8.2e-175], N[(N[(x * (-y)), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.8e-46], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
t_2 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;t \leq -1.45 \cdot 10^{-162}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-240}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{-175}:\\
\;\;\;\;\frac{x \cdot \left(-y\right)}{a - z}\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-46}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -1.4500000000000001e-162 or 2.7999999999999998e-46 < t Initial program 86.3%
Taylor expanded in t around inf 67.1%
div-sub67.1%
Simplified67.1%
if -1.4500000000000001e-162 < t < 3.5999999999999999e-240 or 8.19999999999999997e-175 < t < 2.7999999999999998e-46Initial program 71.0%
Taylor expanded in x around inf 70.5%
mul-1-neg70.5%
unsub-neg70.5%
Simplified70.5%
Taylor expanded in z around 0 61.1%
if 3.5999999999999999e-240 < t < 8.19999999999999997e-175Initial program 71.6%
Taylor expanded in y around inf 80.8%
div-sub80.8%
*-commutative80.8%
associate-*r/80.5%
Simplified80.5%
Taylor expanded in t around 0 80.5%
associate-*r/80.5%
associate-*r*80.5%
neg-mul-180.5%
Simplified80.5%
Final simplification65.8%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.9e+88)
(* t (/ (- y z) (- a z)))
(if (<= z -6e-105)
(/ y (/ (- a z) (- t x)))
(if (<= z 1.65e-80)
(+ x (* (- y z) (/ (- t x) a)))
(/ t (/ (- a z) (- y z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.9e+88) {
tmp = t * ((y - z) / (a - z));
} else if (z <= -6e-105) {
tmp = y / ((a - z) / (t - x));
} else if (z <= 1.65e-80) {
tmp = x + ((y - z) * ((t - x) / a));
} else {
tmp = t / ((a - z) / (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 (z <= (-2.9d+88)) then
tmp = t * ((y - z) / (a - z))
else if (z <= (-6d-105)) then
tmp = y / ((a - z) / (t - x))
else if (z <= 1.65d-80) then
tmp = x + ((y - z) * ((t - x) / a))
else
tmp = t / ((a - z) / (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 (z <= -2.9e+88) {
tmp = t * ((y - z) / (a - z));
} else if (z <= -6e-105) {
tmp = y / ((a - z) / (t - x));
} else if (z <= 1.65e-80) {
tmp = x + ((y - z) * ((t - x) / a));
} else {
tmp = t / ((a - z) / (y - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.9e+88: tmp = t * ((y - z) / (a - z)) elif z <= -6e-105: tmp = y / ((a - z) / (t - x)) elif z <= 1.65e-80: tmp = x + ((y - z) * ((t - x) / a)) else: tmp = t / ((a - z) / (y - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.9e+88) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (z <= -6e-105) tmp = Float64(y / Float64(Float64(a - z) / Float64(t - x))); elseif (z <= 1.65e-80) tmp = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / a))); else tmp = Float64(t / Float64(Float64(a - z) / Float64(y - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.9e+88) tmp = t * ((y - z) / (a - z)); elseif (z <= -6e-105) tmp = y / ((a - z) / (t - x)); elseif (z <= 1.65e-80) tmp = x + ((y - z) * ((t - x) / a)); else tmp = t / ((a - z) / (y - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.9e+88], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -6e-105], N[(y / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.65e-80], N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.9 \cdot 10^{+88}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;z \leq -6 \cdot 10^{-105}:\\
\;\;\;\;\frac{y}{\frac{a - z}{t - x}}\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{-80}:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t - x}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{\frac{a - z}{y - z}}\\
\end{array}
\end{array}
if z < -2.9e88Initial program 60.2%
Taylor expanded in t around inf 67.2%
div-sub67.2%
Simplified67.2%
if -2.9e88 < z < -6.0000000000000002e-105Initial program 84.9%
Taylor expanded in y around inf 65.4%
div-sub65.4%
*-commutative65.4%
associate-*r/55.2%
associate-/l*65.4%
Simplified65.4%
if -6.0000000000000002e-105 < z < 1.65e-80Initial program 95.6%
Taylor expanded in a around inf 83.3%
if 1.65e-80 < z Initial program 76.2%
Taylor expanded in x around 0 42.4%
associate-/l*61.7%
Simplified61.7%
Final simplification70.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (- 1.0 (/ y z)))))
(if (<= a -1.08e-20)
x
(if (<= a -3.6e-196)
t_1
(if (<= a -3.9e-261) (* x (/ y z)) (if (<= a 1.06e+120) t_1 x))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (1.0 - (y / z));
double tmp;
if (a <= -1.08e-20) {
tmp = x;
} else if (a <= -3.6e-196) {
tmp = t_1;
} else if (a <= -3.9e-261) {
tmp = x * (y / z);
} else if (a <= 1.06e+120) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * (1.0d0 - (y / z))
if (a <= (-1.08d-20)) then
tmp = x
else if (a <= (-3.6d-196)) then
tmp = t_1
else if (a <= (-3.9d-261)) then
tmp = x * (y / z)
else if (a <= 1.06d+120) then
tmp = t_1
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * (1.0 - (y / z));
double tmp;
if (a <= -1.08e-20) {
tmp = x;
} else if (a <= -3.6e-196) {
tmp = t_1;
} else if (a <= -3.9e-261) {
tmp = x * (y / z);
} else if (a <= 1.06e+120) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (1.0 - (y / z)) tmp = 0 if a <= -1.08e-20: tmp = x elif a <= -3.6e-196: tmp = t_1 elif a <= -3.9e-261: tmp = x * (y / z) elif a <= 1.06e+120: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(1.0 - Float64(y / z))) tmp = 0.0 if (a <= -1.08e-20) tmp = x; elseif (a <= -3.6e-196) tmp = t_1; elseif (a <= -3.9e-261) tmp = Float64(x * Float64(y / z)); elseif (a <= 1.06e+120) tmp = t_1; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (1.0 - (y / z)); tmp = 0.0; if (a <= -1.08e-20) tmp = x; elseif (a <= -3.6e-196) tmp = t_1; elseif (a <= -3.9e-261) tmp = x * (y / z); elseif (a <= 1.06e+120) tmp = t_1; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.08e-20], x, If[LessEqual[a, -3.6e-196], t$95$1, If[LessEqual[a, -3.9e-261], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.06e+120], t$95$1, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{if}\;a \leq -1.08 \cdot 10^{-20}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -3.6 \cdot 10^{-196}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -3.9 \cdot 10^{-261}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;a \leq 1.06 \cdot 10^{+120}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.08e-20 or 1.05999999999999994e120 < a Initial program 86.0%
Taylor expanded in a around inf 46.8%
if -1.08e-20 < a < -3.6000000000000001e-196 or -3.90000000000000017e-261 < a < 1.05999999999999994e120Initial program 76.6%
Taylor expanded in t around inf 60.7%
Taylor expanded in a around 0 56.3%
*-commutative56.3%
+-commutative56.3%
mul-1-neg56.3%
unsub-neg56.3%
Simplified56.3%
if -3.6000000000000001e-196 < a < -3.90000000000000017e-261Initial program 86.6%
Taylor expanded in x around inf 72.2%
mul-1-neg72.2%
unsub-neg72.2%
Simplified72.2%
Taylor expanded in a around 0 72.1%
Final simplification53.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= z -8e+87)
t_1
(if (<= z -1.8e-107)
(* y (/ (- t x) (- a z)))
(if (<= z 9e-88) (* x (- 1.0 (/ y a))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -8e+87) {
tmp = t_1;
} else if (z <= -1.8e-107) {
tmp = y * ((t - x) / (a - z));
} else if (z <= 9e-88) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
if (z <= (-8d+87)) then
tmp = t_1
else if (z <= (-1.8d-107)) then
tmp = y * ((t - x) / (a - z))
else if (z <= 9d-88) then
tmp = x * (1.0d0 - (y / a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -8e+87) {
tmp = t_1;
} else if (z <= -1.8e-107) {
tmp = y * ((t - x) / (a - z));
} else if (z <= 9e-88) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if z <= -8e+87: tmp = t_1 elif z <= -1.8e-107: tmp = y * ((t - x) / (a - z)) elif z <= 9e-88: tmp = x * (1.0 - (y / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -8e+87) tmp = t_1; elseif (z <= -1.8e-107) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (z <= 9e-88) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (z <= -8e+87) tmp = t_1; elseif (z <= -1.8e-107) tmp = y * ((t - x) / (a - z)); elseif (z <= 9e-88) tmp = x * (1.0 - (y / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8e+87], t$95$1, If[LessEqual[z, -1.8e-107], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9e-88], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -8 \cdot 10^{+87}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.8 \cdot 10^{-107}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;z \leq 9 \cdot 10^{-88}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -7.9999999999999997e87 or 8.99999999999999982e-88 < z Initial program 71.1%
Taylor expanded in t around inf 63.4%
div-sub63.4%
Simplified63.4%
if -7.9999999999999997e87 < z < -1.79999999999999988e-107Initial program 84.9%
*-commutative84.9%
associate-*l/74.6%
associate-*r/84.8%
clear-num84.8%
un-div-inv85.0%
Applied egg-rr85.0%
Taylor expanded in y around inf 65.4%
div-sub65.4%
*-commutative65.4%
Simplified65.4%
if -1.79999999999999988e-107 < z < 8.99999999999999982e-88Initial program 95.4%
Taylor expanded in x around inf 70.0%
mul-1-neg70.0%
unsub-neg70.0%
Simplified70.0%
Taylor expanded in z around 0 65.1%
Final simplification64.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= z -1.35e+88)
t_1
(if (<= z -5.5e-103)
(* y (/ (- t x) (- a z)))
(if (<= z 1.3e-79) (+ x (/ y (/ a (- t x)))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -1.35e+88) {
tmp = t_1;
} else if (z <= -5.5e-103) {
tmp = y * ((t - x) / (a - z));
} else if (z <= 1.3e-79) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
if (z <= (-1.35d+88)) then
tmp = t_1
else if (z <= (-5.5d-103)) then
tmp = y * ((t - x) / (a - z))
else if (z <= 1.3d-79) then
tmp = x + (y / (a / (t - x)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -1.35e+88) {
tmp = t_1;
} else if (z <= -5.5e-103) {
tmp = y * ((t - x) / (a - z));
} else if (z <= 1.3e-79) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if z <= -1.35e+88: tmp = t_1 elif z <= -5.5e-103: tmp = y * ((t - x) / (a - z)) elif z <= 1.3e-79: tmp = x + (y / (a / (t - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -1.35e+88) tmp = t_1; elseif (z <= -5.5e-103) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (z <= 1.3e-79) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (z <= -1.35e+88) tmp = t_1; elseif (z <= -5.5e-103) tmp = y * ((t - x) / (a - z)); elseif (z <= 1.3e-79) tmp = x + (y / (a / (t - x))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.35e+88], t$95$1, If[LessEqual[z, -5.5e-103], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.3e-79], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -1.35 \cdot 10^{+88}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -5.5 \cdot 10^{-103}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{-79}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -1.35000000000000008e88 or 1.29999999999999997e-79 < z Initial program 70.7%
Taylor expanded in t around inf 63.5%
div-sub63.5%
Simplified63.5%
if -1.35000000000000008e88 < z < -5.50000000000000032e-103Initial program 84.9%
*-commutative84.9%
associate-*l/74.6%
associate-*r/84.8%
clear-num84.8%
un-div-inv85.0%
Applied egg-rr85.0%
Taylor expanded in y around inf 65.4%
div-sub65.4%
*-commutative65.4%
Simplified65.4%
if -5.50000000000000032e-103 < z < 1.29999999999999997e-79Initial program 95.6%
Taylor expanded in z around 0 78.9%
+-commutative78.9%
associate-/l*81.5%
Simplified81.5%
Final simplification69.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= z -1.6e+91)
t_1
(if (<= z -1.26e-93)
(* y (/ (- t x) (- a z)))
(if (<= z 1.75e-79) (+ x (/ (- t x) (/ a y))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -1.6e+91) {
tmp = t_1;
} else if (z <= -1.26e-93) {
tmp = y * ((t - x) / (a - z));
} else if (z <= 1.75e-79) {
tmp = x + ((t - x) / (a / y));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
if (z <= (-1.6d+91)) then
tmp = t_1
else if (z <= (-1.26d-93)) then
tmp = y * ((t - x) / (a - z))
else if (z <= 1.75d-79) then
tmp = x + ((t - x) / (a / y))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -1.6e+91) {
tmp = t_1;
} else if (z <= -1.26e-93) {
tmp = y * ((t - x) / (a - z));
} else if (z <= 1.75e-79) {
tmp = x + ((t - x) / (a / y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if z <= -1.6e+91: tmp = t_1 elif z <= -1.26e-93: tmp = y * ((t - x) / (a - z)) elif z <= 1.75e-79: tmp = x + ((t - x) / (a / y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -1.6e+91) tmp = t_1; elseif (z <= -1.26e-93) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (z <= 1.75e-79) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (z <= -1.6e+91) tmp = t_1; elseif (z <= -1.26e-93) tmp = y * ((t - x) / (a - z)); elseif (z <= 1.75e-79) tmp = x + ((t - x) / (a / y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.6e+91], t$95$1, If[LessEqual[z, -1.26e-93], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.75e-79], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -1.6 \cdot 10^{+91}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.26 \cdot 10^{-93}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;z \leq 1.75 \cdot 10^{-79}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -1.59999999999999995e91 or 1.75000000000000015e-79 < z Initial program 70.7%
Taylor expanded in t around inf 63.5%
div-sub63.5%
Simplified63.5%
if -1.59999999999999995e91 < z < -1.2600000000000001e-93Initial program 86.2%
*-commutative86.2%
associate-*l/72.8%
associate-*r/83.8%
clear-num83.8%
un-div-inv83.9%
Applied egg-rr83.9%
Taylor expanded in y around inf 65.3%
div-sub65.3%
*-commutative65.3%
Simplified65.3%
if -1.2600000000000001e-93 < z < 1.75000000000000015e-79Initial program 94.5%
*-commutative94.5%
associate-*l/96.0%
associate-*r/98.7%
clear-num98.7%
un-div-inv98.8%
Applied egg-rr98.8%
Taylor expanded in z around 0 81.3%
Final simplification69.6%
(FPCore (x y z t a)
:precision binary64
(if (<= z -7.2e+89)
(* t (/ (- y z) (- a z)))
(if (<= z -1.85e-95)
(* y (/ (- t x) (- a z)))
(if (<= z 1.65e-80)
(+ x (/ (- t x) (/ a y)))
(/ t (/ (- a z) (- y z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -7.2e+89) {
tmp = t * ((y - z) / (a - z));
} else if (z <= -1.85e-95) {
tmp = y * ((t - x) / (a - z));
} else if (z <= 1.65e-80) {
tmp = x + ((t - x) / (a / y));
} else {
tmp = t / ((a - z) / (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 (z <= (-7.2d+89)) then
tmp = t * ((y - z) / (a - z))
else if (z <= (-1.85d-95)) then
tmp = y * ((t - x) / (a - z))
else if (z <= 1.65d-80) then
tmp = x + ((t - x) / (a / y))
else
tmp = t / ((a - z) / (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 (z <= -7.2e+89) {
tmp = t * ((y - z) / (a - z));
} else if (z <= -1.85e-95) {
tmp = y * ((t - x) / (a - z));
} else if (z <= 1.65e-80) {
tmp = x + ((t - x) / (a / y));
} else {
tmp = t / ((a - z) / (y - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -7.2e+89: tmp = t * ((y - z) / (a - z)) elif z <= -1.85e-95: tmp = y * ((t - x) / (a - z)) elif z <= 1.65e-80: tmp = x + ((t - x) / (a / y)) else: tmp = t / ((a - z) / (y - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -7.2e+89) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (z <= -1.85e-95) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (z <= 1.65e-80) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / y))); else tmp = Float64(t / Float64(Float64(a - z) / Float64(y - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -7.2e+89) tmp = t * ((y - z) / (a - z)); elseif (z <= -1.85e-95) tmp = y * ((t - x) / (a - z)); elseif (z <= 1.65e-80) tmp = x + ((t - x) / (a / y)); else tmp = t / ((a - z) / (y - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -7.2e+89], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.85e-95], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.65e-80], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.2 \cdot 10^{+89}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;z \leq -1.85 \cdot 10^{-95}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{-80}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{\frac{a - z}{y - z}}\\
\end{array}
\end{array}
if z < -7.2e89Initial program 60.2%
Taylor expanded in t around inf 67.2%
div-sub67.2%
Simplified67.2%
if -7.2e89 < z < -1.84999999999999997e-95Initial program 86.2%
*-commutative86.2%
associate-*l/72.8%
associate-*r/83.8%
clear-num83.8%
un-div-inv83.9%
Applied egg-rr83.9%
Taylor expanded in y around inf 65.3%
div-sub65.3%
*-commutative65.3%
Simplified65.3%
if -1.84999999999999997e-95 < z < 1.65e-80Initial program 94.5%
*-commutative94.5%
associate-*l/96.0%
associate-*r/98.7%
clear-num98.7%
un-div-inv98.8%
Applied egg-rr98.8%
Taylor expanded in z around 0 81.3%
if 1.65e-80 < z Initial program 76.2%
Taylor expanded in x around 0 42.4%
associate-/l*61.7%
Simplified61.7%
Final simplification69.6%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.8e+90)
(* t (/ (- y z) (- a z)))
(if (<= z -1.4e-93)
(/ y (/ (- a z) (- t x)))
(if (<= z 1.7e-79) (+ x (/ (- t x) (/ a y))) (/ t (/ (- a z) (- y z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.8e+90) {
tmp = t * ((y - z) / (a - z));
} else if (z <= -1.4e-93) {
tmp = y / ((a - z) / (t - x));
} else if (z <= 1.7e-79) {
tmp = x + ((t - x) / (a / y));
} else {
tmp = t / ((a - z) / (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 (z <= (-1.8d+90)) then
tmp = t * ((y - z) / (a - z))
else if (z <= (-1.4d-93)) then
tmp = y / ((a - z) / (t - x))
else if (z <= 1.7d-79) then
tmp = x + ((t - x) / (a / y))
else
tmp = t / ((a - z) / (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 (z <= -1.8e+90) {
tmp = t * ((y - z) / (a - z));
} else if (z <= -1.4e-93) {
tmp = y / ((a - z) / (t - x));
} else if (z <= 1.7e-79) {
tmp = x + ((t - x) / (a / y));
} else {
tmp = t / ((a - z) / (y - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.8e+90: tmp = t * ((y - z) / (a - z)) elif z <= -1.4e-93: tmp = y / ((a - z) / (t - x)) elif z <= 1.7e-79: tmp = x + ((t - x) / (a / y)) else: tmp = t / ((a - z) / (y - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.8e+90) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (z <= -1.4e-93) tmp = Float64(y / Float64(Float64(a - z) / Float64(t - x))); elseif (z <= 1.7e-79) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / y))); else tmp = Float64(t / Float64(Float64(a - z) / Float64(y - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.8e+90) tmp = t * ((y - z) / (a - z)); elseif (z <= -1.4e-93) tmp = y / ((a - z) / (t - x)); elseif (z <= 1.7e-79) tmp = x + ((t - x) / (a / y)); else tmp = t / ((a - z) / (y - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.8e+90], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.4e-93], N[(y / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e-79], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.8 \cdot 10^{+90}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-93}:\\
\;\;\;\;\frac{y}{\frac{a - z}{t - x}}\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-79}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{\frac{a - z}{y - z}}\\
\end{array}
\end{array}
if z < -1.8e90Initial program 60.2%
Taylor expanded in t around inf 67.2%
div-sub67.2%
Simplified67.2%
if -1.8e90 < z < -1.39999999999999999e-93Initial program 86.2%
Taylor expanded in y around inf 65.3%
div-sub65.3%
*-commutative65.3%
associate-*r/52.0%
associate-/l*65.3%
Simplified65.3%
if -1.39999999999999999e-93 < z < 1.69999999999999988e-79Initial program 94.5%
*-commutative94.5%
associate-*l/96.0%
associate-*r/98.7%
clear-num98.7%
un-div-inv98.8%
Applied egg-rr98.8%
Taylor expanded in z around 0 81.3%
if 1.69999999999999988e-79 < z Initial program 76.2%
Taylor expanded in x around 0 42.4%
associate-/l*61.7%
Simplified61.7%
Final simplification69.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= x -6.2e-50) (not (<= x 1.9e-60))) (* x (+ (/ (- z y) (- a z)) 1.0)) (/ t (/ (- a z) (- y z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x <= -6.2e-50) || !(x <= 1.9e-60)) {
tmp = x * (((z - y) / (a - z)) + 1.0);
} else {
tmp = t / ((a - z) / (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 ((x <= (-6.2d-50)) .or. (.not. (x <= 1.9d-60))) then
tmp = x * (((z - y) / (a - z)) + 1.0d0)
else
tmp = t / ((a - z) / (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 ((x <= -6.2e-50) || !(x <= 1.9e-60)) {
tmp = x * (((z - y) / (a - z)) + 1.0);
} else {
tmp = t / ((a - z) / (y - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (x <= -6.2e-50) or not (x <= 1.9e-60): tmp = x * (((z - y) / (a - z)) + 1.0) else: tmp = t / ((a - z) / (y - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((x <= -6.2e-50) || !(x <= 1.9e-60)) tmp = Float64(x * Float64(Float64(Float64(z - y) / Float64(a - z)) + 1.0)); else tmp = Float64(t / Float64(Float64(a - z) / Float64(y - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((x <= -6.2e-50) || ~((x <= 1.9e-60))) tmp = x * (((z - y) / (a - z)) + 1.0); else tmp = t / ((a - z) / (y - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[x, -6.2e-50], N[Not[LessEqual[x, 1.9e-60]], $MachinePrecision]], N[(x * N[(N[(N[(z - y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.2 \cdot 10^{-50} \lor \neg \left(x \leq 1.9 \cdot 10^{-60}\right):\\
\;\;\;\;x \cdot \left(\frac{z - y}{a - z} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{\frac{a - z}{y - z}}\\
\end{array}
\end{array}
if x < -6.2000000000000004e-50 or 1.89999999999999997e-60 < x Initial program 79.0%
Taylor expanded in x around inf 61.0%
mul-1-neg61.0%
unsub-neg61.0%
Simplified61.0%
if -6.2000000000000004e-50 < x < 1.89999999999999997e-60Initial program 84.2%
Taylor expanded in x around 0 62.3%
associate-/l*80.5%
Simplified80.5%
Final simplification68.5%
(FPCore (x y z t a)
:precision binary64
(if (<= z -3.65e+124)
(* t (/ (- y z) (- a z)))
(if (<= z 1e+78)
(+ x (/ (- t x) (/ (- a z) y)))
(/ t (/ (- a z) (- y z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.65e+124) {
tmp = t * ((y - z) / (a - z));
} else if (z <= 1e+78) {
tmp = x + ((t - x) / ((a - z) / y));
} else {
tmp = t / ((a - z) / (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 (z <= (-3.65d+124)) then
tmp = t * ((y - z) / (a - z))
else if (z <= 1d+78) then
tmp = x + ((t - x) / ((a - z) / y))
else
tmp = t / ((a - z) / (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 (z <= -3.65e+124) {
tmp = t * ((y - z) / (a - z));
} else if (z <= 1e+78) {
tmp = x + ((t - x) / ((a - z) / y));
} else {
tmp = t / ((a - z) / (y - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.65e+124: tmp = t * ((y - z) / (a - z)) elif z <= 1e+78: tmp = x + ((t - x) / ((a - z) / y)) else: tmp = t / ((a - z) / (y - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.65e+124) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (z <= 1e+78) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / y))); else tmp = Float64(t / Float64(Float64(a - z) / Float64(y - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.65e+124) tmp = t * ((y - z) / (a - z)); elseif (z <= 1e+78) tmp = x + ((t - x) / ((a - z) / y)); else tmp = t / ((a - z) / (y - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.65e+124], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e+78], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.65 \cdot 10^{+124}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;z \leq 10^{+78}:\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{\frac{a - z}{y - z}}\\
\end{array}
\end{array}
if z < -3.64999999999999997e124Initial program 59.0%
Taylor expanded in t around inf 74.3%
div-sub74.3%
Simplified74.3%
if -3.64999999999999997e124 < z < 1.00000000000000001e78Initial program 89.8%
*-commutative89.8%
associate-*l/85.1%
associate-*r/92.8%
clear-num92.9%
un-div-inv92.9%
Applied egg-rr92.9%
Taylor expanded in y around inf 80.9%
if 1.00000000000000001e78 < z Initial program 66.8%
Taylor expanded in x around 0 42.4%
associate-/l*72.6%
Simplified72.6%
Final simplification78.4%
(FPCore (x y z t a)
:precision binary64
(if (<= z -6.8e+72)
(- t (/ y (/ z t)))
(if (<= z -2.8e-90)
(/ (- x) (/ z (- a y)))
(if (<= z 6.2e+75) (* x (- 1.0 (/ y a))) (* t (- 1.0 (/ y z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -6.8e+72) {
tmp = t - (y / (z / t));
} else if (z <= -2.8e-90) {
tmp = -x / (z / (a - y));
} else if (z <= 6.2e+75) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t * (1.0 - (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 (z <= (-6.8d+72)) then
tmp = t - (y / (z / t))
else if (z <= (-2.8d-90)) then
tmp = -x / (z / (a - y))
else if (z <= 6.2d+75) then
tmp = x * (1.0d0 - (y / a))
else
tmp = t * (1.0d0 - (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 (z <= -6.8e+72) {
tmp = t - (y / (z / t));
} else if (z <= -2.8e-90) {
tmp = -x / (z / (a - y));
} else if (z <= 6.2e+75) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t * (1.0 - (y / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -6.8e+72: tmp = t - (y / (z / t)) elif z <= -2.8e-90: tmp = -x / (z / (a - y)) elif z <= 6.2e+75: tmp = x * (1.0 - (y / a)) else: tmp = t * (1.0 - (y / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -6.8e+72) tmp = Float64(t - Float64(y / Float64(z / t))); elseif (z <= -2.8e-90) tmp = Float64(Float64(-x) / Float64(z / Float64(a - y))); elseif (z <= 6.2e+75) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = Float64(t * Float64(1.0 - Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -6.8e+72) tmp = t - (y / (z / t)); elseif (z <= -2.8e-90) tmp = -x / (z / (a - y)); elseif (z <= 6.2e+75) tmp = x * (1.0 - (y / a)); else tmp = t * (1.0 - (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -6.8e+72], N[(t - N[(y / N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.8e-90], N[((-x) / N[(z / N[(a - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e+75], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.8 \cdot 10^{+72}:\\
\;\;\;\;t - \frac{y}{\frac{z}{t}}\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{-90}:\\
\;\;\;\;\frac{-x}{\frac{z}{a - y}}\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+75}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\end{array}
\end{array}
if z < -6.7999999999999997e72Initial program 64.4%
Taylor expanded in t around inf 64.8%
Taylor expanded in z around -inf 41.5%
+-commutative41.5%
mul-1-neg41.5%
unsub-neg41.5%
associate-/l*56.0%
Simplified56.0%
Taylor expanded in y around inf 47.5%
associate-/l*56.6%
Simplified56.6%
if -6.7999999999999997e72 < z < -2.7999999999999999e-90Initial program 85.7%
Taylor expanded in x around inf 54.6%
mul-1-neg54.6%
unsub-neg54.6%
Simplified54.6%
Taylor expanded in z around inf 42.1%
mul-1-neg42.1%
neg-mul-142.1%
sub-neg42.1%
*-commutative42.1%
associate-/l*45.0%
Simplified45.0%
if -2.7999999999999999e-90 < z < 6.2000000000000002e75Initial program 92.1%
Taylor expanded in x around inf 63.2%
mul-1-neg63.2%
unsub-neg63.2%
Simplified63.2%
Taylor expanded in z around 0 55.2%
if 6.2000000000000002e75 < z Initial program 66.8%
Taylor expanded in t around inf 72.5%
Taylor expanded in a around 0 58.8%
*-commutative58.8%
+-commutative58.8%
mul-1-neg58.8%
unsub-neg58.8%
Simplified58.8%
Final simplification54.8%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.6e+73)
(- t (/ y (/ z t)))
(if (<= z -2.9e-90)
(/ (- y) (/ (- a z) x))
(if (<= z 1.65e+76) (* x (- 1.0 (/ y a))) (* t (- 1.0 (/ y z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.6e+73) {
tmp = t - (y / (z / t));
} else if (z <= -2.9e-90) {
tmp = -y / ((a - z) / x);
} else if (z <= 1.65e+76) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t * (1.0 - (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 (z <= (-2.6d+73)) then
tmp = t - (y / (z / t))
else if (z <= (-2.9d-90)) then
tmp = -y / ((a - z) / x)
else if (z <= 1.65d+76) then
tmp = x * (1.0d0 - (y / a))
else
tmp = t * (1.0d0 - (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 (z <= -2.6e+73) {
tmp = t - (y / (z / t));
} else if (z <= -2.9e-90) {
tmp = -y / ((a - z) / x);
} else if (z <= 1.65e+76) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t * (1.0 - (y / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.6e+73: tmp = t - (y / (z / t)) elif z <= -2.9e-90: tmp = -y / ((a - z) / x) elif z <= 1.65e+76: tmp = x * (1.0 - (y / a)) else: tmp = t * (1.0 - (y / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.6e+73) tmp = Float64(t - Float64(y / Float64(z / t))); elseif (z <= -2.9e-90) tmp = Float64(Float64(-y) / Float64(Float64(a - z) / x)); elseif (z <= 1.65e+76) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = Float64(t * Float64(1.0 - Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.6e+73) tmp = t - (y / (z / t)); elseif (z <= -2.9e-90) tmp = -y / ((a - z) / x); elseif (z <= 1.65e+76) tmp = x * (1.0 - (y / a)); else tmp = t * (1.0 - (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.6e+73], N[(t - N[(y / N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.9e-90], N[((-y) / N[(N[(a - z), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.65e+76], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.6 \cdot 10^{+73}:\\
\;\;\;\;t - \frac{y}{\frac{z}{t}}\\
\mathbf{elif}\;z \leq -2.9 \cdot 10^{-90}:\\
\;\;\;\;\frac{-y}{\frac{a - z}{x}}\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{+76}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\end{array}
\end{array}
if z < -2.6000000000000001e73Initial program 64.4%
Taylor expanded in t around inf 64.8%
Taylor expanded in z around -inf 41.5%
+-commutative41.5%
mul-1-neg41.5%
unsub-neg41.5%
associate-/l*56.0%
Simplified56.0%
Taylor expanded in y around inf 47.5%
associate-/l*56.6%
Simplified56.6%
if -2.6000000000000001e73 < z < -2.89999999999999983e-90Initial program 85.7%
*-commutative85.7%
associate-*l/74.6%
associate-*r/82.7%
clear-num82.6%
un-div-inv82.9%
Applied egg-rr82.9%
Taylor expanded in y around inf 68.3%
div-sub68.3%
*-commutative68.3%
Simplified68.3%
Taylor expanded in t around 0 43.1%
mul-1-neg43.1%
associate-/l*48.5%
Simplified48.5%
if -2.89999999999999983e-90 < z < 1.65e76Initial program 92.1%
Taylor expanded in x around inf 63.2%
mul-1-neg63.2%
unsub-neg63.2%
Simplified63.2%
Taylor expanded in z around 0 55.2%
if 1.65e76 < z Initial program 66.8%
Taylor expanded in t around inf 72.5%
Taylor expanded in a around 0 58.8%
*-commutative58.8%
+-commutative58.8%
mul-1-neg58.8%
unsub-neg58.8%
Simplified58.8%
Final simplification55.3%
(FPCore (x y z t a)
:precision binary64
(if (<= a -8.2e-21)
x
(if (<= a -1.05e-115)
t
(if (<= a -1.15e-260) (* x (/ y z)) (if (<= a 1.55e+112) t x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -8.2e-21) {
tmp = x;
} else if (a <= -1.05e-115) {
tmp = t;
} else if (a <= -1.15e-260) {
tmp = x * (y / z);
} else if (a <= 1.55e+112) {
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 <= (-8.2d-21)) then
tmp = x
else if (a <= (-1.05d-115)) then
tmp = t
else if (a <= (-1.15d-260)) then
tmp = x * (y / z)
else if (a <= 1.55d+112) 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 <= -8.2e-21) {
tmp = x;
} else if (a <= -1.05e-115) {
tmp = t;
} else if (a <= -1.15e-260) {
tmp = x * (y / z);
} else if (a <= 1.55e+112) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -8.2e-21: tmp = x elif a <= -1.05e-115: tmp = t elif a <= -1.15e-260: tmp = x * (y / z) elif a <= 1.55e+112: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -8.2e-21) tmp = x; elseif (a <= -1.05e-115) tmp = t; elseif (a <= -1.15e-260) tmp = Float64(x * Float64(y / z)); elseif (a <= 1.55e+112) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -8.2e-21) tmp = x; elseif (a <= -1.05e-115) tmp = t; elseif (a <= -1.15e-260) tmp = x * (y / z); elseif (a <= 1.55e+112) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -8.2e-21], x, If[LessEqual[a, -1.05e-115], t, If[LessEqual[a, -1.15e-260], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.55e+112], t, x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.2 \cdot 10^{-21}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.05 \cdot 10^{-115}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{-260}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;a \leq 1.55 \cdot 10^{+112}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -8.19999999999999988e-21 or 1.54999999999999991e112 < a Initial program 86.1%
Taylor expanded in a around inf 46.3%
if -8.19999999999999988e-21 < a < -1.05000000000000001e-115 or -1.15e-260 < a < 1.54999999999999991e112Initial program 77.1%
Taylor expanded in z around inf 37.9%
if -1.05000000000000001e-115 < a < -1.15e-260Initial program 78.7%
Taylor expanded in x around inf 52.9%
mul-1-neg52.9%
unsub-neg52.9%
Simplified52.9%
Taylor expanded in a around 0 56.5%
Final simplification43.3%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.08e-20)
x
(if (<= a -8.2e-116)
t
(if (<= a -8e-261) (/ (* x y) z) (if (<= a 2.3e+111) t x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.08e-20) {
tmp = x;
} else if (a <= -8.2e-116) {
tmp = t;
} else if (a <= -8e-261) {
tmp = (x * y) / z;
} else if (a <= 2.3e+111) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.08d-20)) then
tmp = x
else if (a <= (-8.2d-116)) then
tmp = t
else if (a <= (-8d-261)) then
tmp = (x * y) / z
else if (a <= 2.3d+111) then
tmp = t
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.08e-20) {
tmp = x;
} else if (a <= -8.2e-116) {
tmp = t;
} else if (a <= -8e-261) {
tmp = (x * y) / z;
} else if (a <= 2.3e+111) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.08e-20: tmp = x elif a <= -8.2e-116: tmp = t elif a <= -8e-261: tmp = (x * y) / z elif a <= 2.3e+111: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.08e-20) tmp = x; elseif (a <= -8.2e-116) tmp = t; elseif (a <= -8e-261) tmp = Float64(Float64(x * y) / z); elseif (a <= 2.3e+111) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.08e-20) tmp = x; elseif (a <= -8.2e-116) tmp = t; elseif (a <= -8e-261) tmp = (x * y) / z; elseif (a <= 2.3e+111) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.08e-20], x, If[LessEqual[a, -8.2e-116], t, If[LessEqual[a, -8e-261], N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[a, 2.3e+111], t, x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.08 \cdot 10^{-20}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -8.2 \cdot 10^{-116}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq -8 \cdot 10^{-261}:\\
\;\;\;\;\frac{x \cdot y}{z}\\
\mathbf{elif}\;a \leq 2.3 \cdot 10^{+111}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.08e-20 or 2.30000000000000002e111 < a Initial program 86.1%
Taylor expanded in a around inf 46.3%
if -1.08e-20 < a < -8.1999999999999998e-116 or -7.99999999999999987e-261 < a < 2.30000000000000002e111Initial program 77.1%
Taylor expanded in z around inf 37.9%
if -8.1999999999999998e-116 < a < -7.99999999999999987e-261Initial program 78.7%
Taylor expanded in x around inf 52.9%
mul-1-neg52.9%
unsub-neg52.9%
Simplified52.9%
Taylor expanded in a around 0 56.5%
Final simplification43.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -6.4e+122) (not (<= z 3.1e+78))) (* t (- 1.0 (/ y z))) (* x (- 1.0 (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -6.4e+122) || !(z <= 3.1e+78)) {
tmp = t * (1.0 - (y / z));
} else {
tmp = x * (1.0 - (y / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-6.4d+122)) .or. (.not. (z <= 3.1d+78))) then
tmp = t * (1.0d0 - (y / z))
else
tmp = x * (1.0d0 - (y / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -6.4e+122) || !(z <= 3.1e+78)) {
tmp = t * (1.0 - (y / z));
} else {
tmp = x * (1.0 - (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -6.4e+122) or not (z <= 3.1e+78): tmp = t * (1.0 - (y / z)) else: tmp = x * (1.0 - (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -6.4e+122) || !(z <= 3.1e+78)) tmp = Float64(t * Float64(1.0 - Float64(y / z))); else tmp = Float64(x * Float64(1.0 - Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -6.4e+122) || ~((z <= 3.1e+78))) tmp = t * (1.0 - (y / z)); else tmp = x * (1.0 - (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -6.4e+122], N[Not[LessEqual[z, 3.1e+78]], $MachinePrecision]], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.4 \cdot 10^{+122} \lor \neg \left(z \leq 3.1 \cdot 10^{+78}\right):\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\end{array}
\end{array}
if z < -6.40000000000000024e122 or 3.1e78 < z Initial program 63.2%
Taylor expanded in t around inf 73.3%
Taylor expanded in a around 0 61.9%
*-commutative61.9%
+-commutative61.9%
mul-1-neg61.9%
unsub-neg61.9%
Simplified61.9%
if -6.40000000000000024e122 < z < 3.1e78Initial program 89.8%
Taylor expanded in x around inf 60.6%
mul-1-neg60.6%
unsub-neg60.6%
Simplified60.6%
Taylor expanded in z around 0 48.5%
Final simplification53.0%
(FPCore (x y z t a) :precision binary64 (if (<= z -5.5e+122) (- t (/ t (/ z y))) (if (<= z 1.6e+78) (* x (- 1.0 (/ y a))) (* t (- 1.0 (/ y z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.5e+122) {
tmp = t - (t / (z / y));
} else if (z <= 1.6e+78) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t * (1.0 - (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 (z <= (-5.5d+122)) then
tmp = t - (t / (z / y))
else if (z <= 1.6d+78) then
tmp = x * (1.0d0 - (y / a))
else
tmp = t * (1.0d0 - (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 (z <= -5.5e+122) {
tmp = t - (t / (z / y));
} else if (z <= 1.6e+78) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t * (1.0 - (y / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -5.5e+122: tmp = t - (t / (z / y)) elif z <= 1.6e+78: tmp = x * (1.0 - (y / a)) else: tmp = t * (1.0 - (y / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -5.5e+122) tmp = Float64(t - Float64(t / Float64(z / y))); elseif (z <= 1.6e+78) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = Float64(t * Float64(1.0 - Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -5.5e+122) tmp = t - (t / (z / y)); elseif (z <= 1.6e+78) tmp = x * (1.0 - (y / a)); else tmp = t * (1.0 - (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -5.5e+122], N[(t - N[(t / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.6e+78], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5 \cdot 10^{+122}:\\
\;\;\;\;t - \frac{t}{\frac{z}{y}}\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{+78}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\end{array}
\end{array}
if z < -5.4999999999999998e122Initial program 59.0%
Taylor expanded in t around inf 74.3%
Taylor expanded in z around -inf 45.7%
+-commutative45.7%
mul-1-neg45.7%
unsub-neg45.7%
associate-/l*65.4%
Simplified65.4%
Taylor expanded in y around inf 65.5%
if -5.4999999999999998e122 < z < 1.59999999999999997e78Initial program 89.8%
Taylor expanded in x around inf 60.6%
mul-1-neg60.6%
unsub-neg60.6%
Simplified60.6%
Taylor expanded in z around 0 48.5%
if 1.59999999999999997e78 < z Initial program 66.8%
Taylor expanded in t around inf 72.5%
Taylor expanded in a around 0 58.8%
*-commutative58.8%
+-commutative58.8%
mul-1-neg58.8%
unsub-neg58.8%
Simplified58.8%
Final simplification53.0%
(FPCore (x y z t a) :precision binary64 (if (<= z -9.6e+122) (- t (/ y (/ z t))) (if (<= z 9e+75) (* x (- 1.0 (/ y a))) (* t (- 1.0 (/ y z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -9.6e+122) {
tmp = t - (y / (z / t));
} else if (z <= 9e+75) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t * (1.0 - (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 (z <= (-9.6d+122)) then
tmp = t - (y / (z / t))
else if (z <= 9d+75) then
tmp = x * (1.0d0 - (y / a))
else
tmp = t * (1.0d0 - (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 (z <= -9.6e+122) {
tmp = t - (y / (z / t));
} else if (z <= 9e+75) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t * (1.0 - (y / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -9.6e+122: tmp = t - (y / (z / t)) elif z <= 9e+75: tmp = x * (1.0 - (y / a)) else: tmp = t * (1.0 - (y / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -9.6e+122) tmp = Float64(t - Float64(y / Float64(z / t))); elseif (z <= 9e+75) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = Float64(t * Float64(1.0 - Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -9.6e+122) tmp = t - (y / (z / t)); elseif (z <= 9e+75) tmp = x * (1.0 - (y / a)); else tmp = t * (1.0 - (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -9.6e+122], N[(t - N[(y / N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9e+75], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.6 \cdot 10^{+122}:\\
\;\;\;\;t - \frac{y}{\frac{z}{t}}\\
\mathbf{elif}\;z \leq 9 \cdot 10^{+75}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\end{array}
\end{array}
if z < -9.6000000000000007e122Initial program 59.0%
Taylor expanded in t around inf 74.3%
Taylor expanded in z around -inf 45.7%
+-commutative45.7%
mul-1-neg45.7%
unsub-neg45.7%
associate-/l*65.4%
Simplified65.4%
Taylor expanded in y around inf 53.3%
associate-/l*65.6%
Simplified65.6%
if -9.6000000000000007e122 < z < 9.0000000000000007e75Initial program 89.8%
Taylor expanded in x around inf 60.6%
mul-1-neg60.6%
unsub-neg60.6%
Simplified60.6%
Taylor expanded in z around 0 48.5%
if 9.0000000000000007e75 < z Initial program 66.8%
Taylor expanded in t around inf 72.5%
Taylor expanded in a around 0 58.8%
*-commutative58.8%
+-commutative58.8%
mul-1-neg58.8%
unsub-neg58.8%
Simplified58.8%
Final simplification53.0%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.02e-20) x (if (<= a 2.3e+111) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.02e-20) {
tmp = x;
} else if (a <= 2.3e+111) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.02d-20)) then
tmp = x
else if (a <= 2.3d+111) then
tmp = t
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.02e-20) {
tmp = x;
} else if (a <= 2.3e+111) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.02e-20: tmp = x elif a <= 2.3e+111: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.02e-20) tmp = x; elseif (a <= 2.3e+111) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.02e-20) tmp = x; elseif (a <= 2.3e+111) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.02e-20], x, If[LessEqual[a, 2.3e+111], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.02 \cdot 10^{-20}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 2.3 \cdot 10^{+111}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.02000000000000001e-20 or 2.30000000000000002e111 < a Initial program 86.1%
Taylor expanded in a around inf 46.3%
if -1.02000000000000001e-20 < a < 2.30000000000000002e111Initial program 77.4%
Taylor expanded in z around inf 34.8%
Final simplification39.5%
(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 81.0%
Taylor expanded in z around inf 24.6%
Final simplification24.6%
herbie shell --seed 2023228
(FPCore (x y z t a)
:name "Numeric.Signal:interpolate from hsignal-0.2.7.1"
:precision binary64
(+ x (* (- y z) (/ (- t x) (- a z)))))