
(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 19 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 (or (<= t_1 -5e-246) (not (<= t_1 0.0)))
(fma (/ (- y z) (- a z)) (- t x) x)
(+ t (/ (* (- t x) (- a y)) 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-246) || !(t_1 <= 0.0)) {
tmp = fma(((y - z) / (a - z)), (t - x), x);
} else {
tmp = t + (((t - x) * (a - y)) / 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 <= -5e-246) || !(t_1 <= 0.0)) tmp = fma(Float64(Float64(y - z) / Float64(a - z)), Float64(t - x), x); else tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / 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, -5e-246], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $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 -5 \cdot 10^{-246} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)\\
\mathbf{else}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -4.9999999999999997e-246 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 71.3%
+-commutative71.3%
associate-*l/89.4%
fma-def89.5%
Simplified89.5%
if -4.9999999999999997e-246 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 13.7%
+-commutative13.7%
associate-*l/13.8%
fma-def13.8%
Simplified13.8%
Taylor expanded in z around -inf 99.8%
Final simplification90.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (or (<= t_1 -5e-246) (not (<= t_1 0.0)))
(+ x (* (- t x) (/ (- y z) (- a z))))
(+ t (/ (* (- t x) (- a y)) 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-246) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) * ((y - z) / (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) :: t_1
real(8) :: tmp
t_1 = x + (((y - z) * (t - x)) / (a - z))
if ((t_1 <= (-5d-246)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((t - x) * ((y - z) / (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 t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -5e-246) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) * ((y - z) / (a - z)));
} else {
tmp = t + (((t - x) * (a - y)) / 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-246) or not (t_1 <= 0.0): tmp = x + ((t - x) * ((y - z) / (a - z))) else: tmp = t + (((t - x) * (a - y)) / 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 <= -5e-246) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / 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) t_1 = x + (((y - z) * (t - x)) / (a - z)); tmp = 0.0; if ((t_1 <= -5e-246) || ~((t_1 <= 0.0))) tmp = x + ((t - x) * ((y - z) / (a - z))); else tmp = t + (((t - x) * (a - y)) / 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[Or[LessEqual[t$95$1, -5e-246], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $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}
t_1 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{-246} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -4.9999999999999997e-246 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 71.3%
associate-*l/89.4%
Simplified89.4%
if -4.9999999999999997e-246 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 13.7%
+-commutative13.7%
associate-*l/13.8%
fma-def13.8%
Simplified13.8%
Taylor expanded in z around -inf 99.8%
Final simplification90.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- t x) (/ a (- y z))))))
(if (<= a -5500000.0)
t_1
(if (<= a 1.75e-116)
(+ t (/ (- x t) (/ z y)))
(if (or (<= a 5.9e+85) (not (<= a 3.8e+153)))
t_1
(+ t (* x (/ (- y a) z))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) / (a / (y - z)));
double tmp;
if (a <= -5500000.0) {
tmp = t_1;
} else if (a <= 1.75e-116) {
tmp = t + ((x - t) / (z / y));
} else if ((a <= 5.9e+85) || !(a <= 3.8e+153)) {
tmp = t_1;
} else {
tmp = t + (x * ((y - a) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((t - x) / (a / (y - z)))
if (a <= (-5500000.0d0)) then
tmp = t_1
else if (a <= 1.75d-116) then
tmp = t + ((x - t) / (z / y))
else if ((a <= 5.9d+85) .or. (.not. (a <= 3.8d+153))) then
tmp = t_1
else
tmp = t + (x * ((y - a) / 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 + ((t - x) / (a / (y - z)));
double tmp;
if (a <= -5500000.0) {
tmp = t_1;
} else if (a <= 1.75e-116) {
tmp = t + ((x - t) / (z / y));
} else if ((a <= 5.9e+85) || !(a <= 3.8e+153)) {
tmp = t_1;
} else {
tmp = t + (x * ((y - a) / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((t - x) / (a / (y - z))) tmp = 0 if a <= -5500000.0: tmp = t_1 elif a <= 1.75e-116: tmp = t + ((x - t) / (z / y)) elif (a <= 5.9e+85) or not (a <= 3.8e+153): tmp = t_1 else: tmp = t + (x * ((y - a) / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))) tmp = 0.0 if (a <= -5500000.0) tmp = t_1; elseif (a <= 1.75e-116) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / y))); elseif ((a <= 5.9e+85) || !(a <= 3.8e+153)) tmp = t_1; else tmp = Float64(t + Float64(x * Float64(Float64(y - a) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((t - x) / (a / (y - z))); tmp = 0.0; if (a <= -5500000.0) tmp = t_1; elseif (a <= 1.75e-116) tmp = t + ((x - t) / (z / y)); elseif ((a <= 5.9e+85) || ~((a <= 3.8e+153))) tmp = t_1; else tmp = t + (x * ((y - a) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5500000.0], t$95$1, If[LessEqual[a, 1.75e-116], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, 5.9e+85], N[Not[LessEqual[a, 3.8e+153]], $MachinePrecision]], t$95$1, N[(t + N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{t - x}{\frac{a}{y - z}}\\
\mathbf{if}\;a \leq -5500000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{-116}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y}}\\
\mathbf{elif}\;a \leq 5.9 \cdot 10^{+85} \lor \neg \left(a \leq 3.8 \cdot 10^{+153}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t + x \cdot \frac{y - a}{z}\\
\end{array}
\end{array}
if a < -5.5e6 or 1.74999999999999992e-116 < a < 5.9e85 or 3.79999999999999966e153 < a Initial program 70.3%
associate-*l/90.5%
Simplified90.5%
Taylor expanded in a around inf 61.5%
associate-/l*75.5%
Simplified75.5%
if -5.5e6 < a < 1.74999999999999992e-116Initial program 64.0%
associate-*l/76.9%
Simplified76.9%
Taylor expanded in z around inf 79.0%
associate--l+79.0%
associate-*r/79.0%
associate-*r/79.0%
div-sub79.0%
distribute-lft-out--79.0%
mul-1-neg79.0%
distribute-neg-frac79.0%
distribute-rgt-out--79.0%
unsub-neg79.0%
associate-/l*89.6%
Simplified89.6%
Taylor expanded in y around inf 89.6%
if 5.9e85 < a < 3.79999999999999966e153Initial program 59.0%
associate-*l/72.0%
Simplified72.0%
Taylor expanded in z around inf 59.4%
associate--l+59.4%
associate-*r/59.4%
associate-*r/59.4%
div-sub59.4%
distribute-lft-out--59.4%
mul-1-neg59.4%
distribute-neg-frac59.4%
distribute-rgt-out--59.4%
unsub-neg59.4%
associate-/l*79.7%
Simplified79.7%
Taylor expanded in t around 0 59.5%
mul-1-neg59.5%
associate-*r/73.2%
*-commutative73.2%
distribute-rgt-neg-in73.2%
Simplified73.2%
Final simplification81.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ t (/ a y)))))
(if (<= a -4.2e-8)
t_1
(if (<= a 6.5e-50)
(+ t (* x (/ y z)))
(if (<= a 9e+52) (- x (/ x (/ a y))) (if (<= a 8e+172) (+ x t) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t / (a / y));
double tmp;
if (a <= -4.2e-8) {
tmp = t_1;
} else if (a <= 6.5e-50) {
tmp = t + (x * (y / z));
} else if (a <= 9e+52) {
tmp = x - (x / (a / y));
} else if (a <= 8e+172) {
tmp = 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 / (a / y))
if (a <= (-4.2d-8)) then
tmp = t_1
else if (a <= 6.5d-50) then
tmp = t + (x * (y / z))
else if (a <= 9d+52) then
tmp = x - (x / (a / y))
else if (a <= 8d+172) then
tmp = 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 / (a / y));
double tmp;
if (a <= -4.2e-8) {
tmp = t_1;
} else if (a <= 6.5e-50) {
tmp = t + (x * (y / z));
} else if (a <= 9e+52) {
tmp = x - (x / (a / y));
} else if (a <= 8e+172) {
tmp = x + t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t / (a / y)) tmp = 0 if a <= -4.2e-8: tmp = t_1 elif a <= 6.5e-50: tmp = t + (x * (y / z)) elif a <= 9e+52: tmp = x - (x / (a / y)) elif a <= 8e+172: tmp = x + t else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t / Float64(a / y))) tmp = 0.0 if (a <= -4.2e-8) tmp = t_1; elseif (a <= 6.5e-50) tmp = Float64(t + Float64(x * Float64(y / z))); elseif (a <= 9e+52) tmp = Float64(x - Float64(x / Float64(a / y))); elseif (a <= 8e+172) tmp = Float64(x + t); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t / (a / y)); tmp = 0.0; if (a <= -4.2e-8) tmp = t_1; elseif (a <= 6.5e-50) tmp = t + (x * (y / z)); elseif (a <= 9e+52) tmp = x - (x / (a / y)); elseif (a <= 8e+172) tmp = x + t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.2e-8], t$95$1, If[LessEqual[a, 6.5e-50], N[(t + N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9e+52], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8e+172], N[(x + t), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{t}{\frac{a}{y}}\\
\mathbf{if}\;a \leq -4.2 \cdot 10^{-8}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{-50}:\\
\;\;\;\;t + x \cdot \frac{y}{z}\\
\mathbf{elif}\;a \leq 9 \cdot 10^{+52}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;a \leq 8 \cdot 10^{+172}:\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -4.19999999999999989e-8 or 8.0000000000000007e172 < a Initial program 68.5%
associate-/l*90.7%
Simplified90.7%
Taylor expanded in t around inf 82.9%
Taylor expanded in z around 0 59.1%
+-commutative59.1%
associate-/l*64.4%
Simplified64.4%
if -4.19999999999999989e-8 < a < 6.49999999999999987e-50Initial program 65.2%
associate-*l/77.6%
Simplified77.6%
Taylor expanded in z around inf 75.5%
associate--l+75.5%
associate-*r/75.5%
associate-*r/75.5%
div-sub75.5%
distribute-lft-out--75.5%
mul-1-neg75.5%
distribute-neg-frac75.5%
distribute-rgt-out--75.5%
unsub-neg75.5%
associate-/l*86.6%
Simplified86.6%
Taylor expanded in y around inf 85.8%
Taylor expanded in t around 0 67.7%
mul-1-neg67.7%
associate-*r/75.7%
distribute-rgt-neg-in75.7%
distribute-neg-frac75.7%
Simplified75.7%
if 6.49999999999999987e-50 < a < 8.9999999999999999e52Initial program 73.7%
associate-*l/89.1%
Simplified89.1%
Taylor expanded in z around 0 68.7%
Taylor expanded in t around 0 55.6%
mul-1-neg55.6%
sub-neg55.6%
associate-/l*55.6%
Simplified55.6%
if 8.9999999999999999e52 < a < 8.0000000000000007e172Initial program 66.2%
associate-/l*75.6%
Simplified75.6%
Taylor expanded in t around inf 67.4%
Taylor expanded in z around inf 56.8%
Final simplification68.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ t (/ a y)))))
(if (<= a -0.00012)
t_1
(if (<= a 1.15e-229)
(+ t (* x (/ y z)))
(if (<= a 7.8e+177) (* t (/ (- y z) (- a z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t / (a / y));
double tmp;
if (a <= -0.00012) {
tmp = t_1;
} else if (a <= 1.15e-229) {
tmp = t + (x * (y / z));
} else if (a <= 7.8e+177) {
tmp = t * ((y - z) / (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 / (a / y))
if (a <= (-0.00012d0)) then
tmp = t_1
else if (a <= 1.15d-229) then
tmp = t + (x * (y / z))
else if (a <= 7.8d+177) then
tmp = t * ((y - z) / (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 / (a / y));
double tmp;
if (a <= -0.00012) {
tmp = t_1;
} else if (a <= 1.15e-229) {
tmp = t + (x * (y / z));
} else if (a <= 7.8e+177) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t / (a / y)) tmp = 0 if a <= -0.00012: tmp = t_1 elif a <= 1.15e-229: tmp = t + (x * (y / z)) elif a <= 7.8e+177: tmp = t * ((y - z) / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t / Float64(a / y))) tmp = 0.0 if (a <= -0.00012) tmp = t_1; elseif (a <= 1.15e-229) tmp = Float64(t + Float64(x * Float64(y / z))); elseif (a <= 7.8e+177) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t / (a / y)); tmp = 0.0; if (a <= -0.00012) tmp = t_1; elseif (a <= 1.15e-229) tmp = t + (x * (y / z)); elseif (a <= 7.8e+177) tmp = t * ((y - z) / (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[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -0.00012], t$95$1, If[LessEqual[a, 1.15e-229], N[(t + N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.8e+177], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{t}{\frac{a}{y}}\\
\mathbf{if}\;a \leq -0.00012:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{-229}:\\
\;\;\;\;t + x \cdot \frac{y}{z}\\
\mathbf{elif}\;a \leq 7.8 \cdot 10^{+177}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.20000000000000003e-4 or 7.7999999999999998e177 < a Initial program 67.8%
associate-/l*90.5%
Simplified90.5%
Taylor expanded in t around inf 83.6%
Taylor expanded in z around 0 59.3%
+-commutative59.3%
associate-/l*64.7%
Simplified64.7%
if -1.20000000000000003e-4 < a < 1.14999999999999998e-229Initial program 65.5%
associate-*l/75.0%
Simplified75.0%
Taylor expanded in z around inf 81.0%
associate--l+81.0%
associate-*r/81.0%
associate-*r/81.0%
div-sub81.0%
distribute-lft-out--81.0%
mul-1-neg81.0%
distribute-neg-frac81.0%
distribute-rgt-out--81.0%
unsub-neg81.0%
associate-/l*90.7%
Simplified90.7%
Taylor expanded in y around inf 90.6%
Taylor expanded in t around 0 73.4%
mul-1-neg73.4%
associate-*r/78.9%
distribute-rgt-neg-in78.9%
distribute-neg-frac78.9%
Simplified78.9%
if 1.14999999999999998e-229 < a < 7.7999999999999998e177Initial program 67.9%
associate-*l/85.3%
Simplified85.3%
Taylor expanded in x around 0 39.4%
associate-*r/59.2%
Simplified59.2%
Final simplification67.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -6.6e-15) (not (<= a 1.25e-109))) (+ x (/ (- y z) (/ (- a z) t))) (+ t (/ (- x t) (/ z y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -6.6e-15) || !(a <= 1.25e-109)) {
tmp = x + ((y - z) / ((a - z) / t));
} else {
tmp = t + ((x - t) / (z / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-6.6d-15)) .or. (.not. (a <= 1.25d-109))) then
tmp = x + ((y - z) / ((a - z) / t))
else
tmp = t + ((x - t) / (z / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -6.6e-15) || !(a <= 1.25e-109)) {
tmp = x + ((y - z) / ((a - z) / t));
} else {
tmp = t + ((x - t) / (z / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -6.6e-15) or not (a <= 1.25e-109): tmp = x + ((y - z) / ((a - z) / t)) else: tmp = t + ((x - t) / (z / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -6.6e-15) || !(a <= 1.25e-109)) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / t))); else tmp = Float64(t + Float64(Float64(x - t) / Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -6.6e-15) || ~((a <= 1.25e-109))) tmp = x + ((y - z) / ((a - z) / t)); else tmp = t + ((x - t) / (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -6.6e-15], N[Not[LessEqual[a, 1.25e-109]], $MachinePrecision]], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.6 \cdot 10^{-15} \lor \neg \left(a \leq 1.25 \cdot 10^{-109}\right):\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y}}\\
\end{array}
\end{array}
if a < -6.6e-15 or 1.25000000000000005e-109 < a Initial program 69.3%
associate-/l*87.1%
Simplified87.1%
Taylor expanded in t around inf 77.2%
if -6.6e-15 < a < 1.25000000000000005e-109Initial program 64.0%
associate-*l/76.9%
Simplified76.9%
Taylor expanded in z around inf 79.1%
associate--l+79.1%
associate-*r/79.1%
associate-*r/79.1%
div-sub79.1%
distribute-lft-out--79.1%
mul-1-neg79.1%
distribute-neg-frac79.1%
distribute-rgt-out--79.1%
unsub-neg79.1%
associate-/l*89.7%
Simplified89.7%
Taylor expanded in y around inf 89.6%
Final simplification82.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2.8e-9) (not (<= a 1.3e-109))) (+ x (/ (- y z) (/ (- a z) t))) (- t (/ (- t x) (/ z (- y a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.8e-9) || !(a <= 1.3e-109)) {
tmp = x + ((y - z) / ((a - z) / t));
} else {
tmp = t - ((t - x) / (z / (y - a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-2.8d-9)) .or. (.not. (a <= 1.3d-109))) then
tmp = x + ((y - z) / ((a - z) / t))
else
tmp = t - ((t - x) / (z / (y - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.8e-9) || !(a <= 1.3e-109)) {
tmp = x + ((y - z) / ((a - z) / t));
} else {
tmp = t - ((t - x) / (z / (y - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2.8e-9) or not (a <= 1.3e-109): tmp = x + ((y - z) / ((a - z) / t)) else: tmp = t - ((t - x) / (z / (y - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -2.8e-9) || !(a <= 1.3e-109)) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / t))); else tmp = Float64(t - Float64(Float64(t - x) / Float64(z / Float64(y - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -2.8e-9) || ~((a <= 1.3e-109))) tmp = x + ((y - z) / ((a - z) / t)); else tmp = t - ((t - x) / (z / (y - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2.8e-9], N[Not[LessEqual[a, 1.3e-109]], $MachinePrecision]], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(N[(t - x), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.8 \cdot 10^{-9} \lor \neg \left(a \leq 1.3 \cdot 10^{-109}\right):\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\
\mathbf{else}:\\
\;\;\;\;t - \frac{t - x}{\frac{z}{y - a}}\\
\end{array}
\end{array}
if a < -2.79999999999999984e-9 or 1.2999999999999999e-109 < a Initial program 69.3%
associate-/l*87.1%
Simplified87.1%
Taylor expanded in t around inf 77.2%
if -2.79999999999999984e-9 < a < 1.2999999999999999e-109Initial program 64.0%
associate-*l/76.9%
Simplified76.9%
Taylor expanded in z around inf 79.1%
associate--l+79.1%
associate-*r/79.1%
associate-*r/79.1%
div-sub79.1%
distribute-lft-out--79.1%
mul-1-neg79.1%
distribute-neg-frac79.1%
distribute-rgt-out--79.1%
unsub-neg79.1%
associate-/l*89.7%
Simplified89.7%
Final simplification82.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.35e+26) (not (<= z 9.2e+58))) (+ t (* x (/ y z))) (- x (* (/ y a) (- x t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.35e+26) || !(z <= 9.2e+58)) {
tmp = t + (x * (y / z));
} else {
tmp = x - ((y / a) * (x - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-2.35d+26)) .or. (.not. (z <= 9.2d+58))) then
tmp = t + (x * (y / z))
else
tmp = x - ((y / a) * (x - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.35e+26) || !(z <= 9.2e+58)) {
tmp = t + (x * (y / z));
} else {
tmp = x - ((y / a) * (x - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.35e+26) or not (z <= 9.2e+58): tmp = t + (x * (y / z)) else: tmp = x - ((y / a) * (x - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.35e+26) || !(z <= 9.2e+58)) tmp = Float64(t + Float64(x * Float64(y / z))); else tmp = Float64(x - Float64(Float64(y / a) * Float64(x - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.35e+26) || ~((z <= 9.2e+58))) tmp = t + (x * (y / z)); else tmp = x - ((y / a) * (x - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.35e+26], N[Not[LessEqual[z, 9.2e+58]], $MachinePrecision]], N[(t + N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y / a), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.35 \cdot 10^{+26} \lor \neg \left(z \leq 9.2 \cdot 10^{+58}\right):\\
\;\;\;\;t + x \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{a} \cdot \left(x - t\right)\\
\end{array}
\end{array}
if z < -2.3499999999999999e26 or 9.2000000000000001e58 < z Initial program 44.0%
associate-*l/73.5%
Simplified73.5%
Taylor expanded in z around inf 61.0%
associate--l+61.0%
associate-*r/61.0%
associate-*r/61.0%
div-sub61.0%
distribute-lft-out--61.0%
mul-1-neg61.0%
distribute-neg-frac61.0%
distribute-rgt-out--61.9%
unsub-neg61.9%
associate-/l*81.8%
Simplified81.8%
Taylor expanded in y around inf 75.3%
Taylor expanded in t around 0 61.8%
mul-1-neg61.8%
associate-*r/68.8%
distribute-rgt-neg-in68.8%
distribute-neg-frac68.8%
Simplified68.8%
if -2.3499999999999999e26 < z < 9.2000000000000001e58Initial program 89.4%
associate-*l/93.9%
Simplified93.9%
Taylor expanded in z around 0 74.9%
Final simplification71.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.5e+26) (not (<= z 2.3e+58))) (+ t (* x (/ y z))) (+ x (/ y (/ a (- t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.5e+26) || !(z <= 2.3e+58)) {
tmp = t + (x * (y / z));
} else {
tmp = x + (y / (a / (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) :: tmp
if ((z <= (-1.5d+26)) .or. (.not. (z <= 2.3d+58))) then
tmp = t + (x * (y / z))
else
tmp = x + (y / (a / (t - x)))
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.5e+26) || !(z <= 2.3e+58)) {
tmp = t + (x * (y / z));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.5e+26) or not (z <= 2.3e+58): tmp = t + (x * (y / z)) else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.5e+26) || !(z <= 2.3e+58)) tmp = Float64(t + Float64(x * Float64(y / z))); else tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.5e+26) || ~((z <= 2.3e+58))) tmp = t + (x * (y / z)); else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.5e+26], N[Not[LessEqual[z, 2.3e+58]], $MachinePrecision]], N[(t + N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.5 \cdot 10^{+26} \lor \neg \left(z \leq 2.3 \cdot 10^{+58}\right):\\
\;\;\;\;t + x \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -1.49999999999999999e26 or 2.30000000000000002e58 < z Initial program 44.0%
associate-*l/73.5%
Simplified73.5%
Taylor expanded in z around inf 61.0%
associate--l+61.0%
associate-*r/61.0%
associate-*r/61.0%
div-sub61.0%
distribute-lft-out--61.0%
mul-1-neg61.0%
distribute-neg-frac61.0%
distribute-rgt-out--61.9%
unsub-neg61.9%
associate-/l*81.8%
Simplified81.8%
Taylor expanded in y around inf 75.3%
Taylor expanded in t around 0 61.8%
mul-1-neg61.8%
associate-*r/68.8%
distribute-rgt-neg-in68.8%
distribute-neg-frac68.8%
Simplified68.8%
if -1.49999999999999999e26 < z < 2.30000000000000002e58Initial program 89.4%
associate-*l/93.9%
Simplified93.9%
Taylor expanded in z around 0 70.6%
associate-/l*75.6%
Simplified75.6%
Final simplification72.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.25e+25) (not (<= z 8.5e+36))) (+ t (/ (- x t) (/ z y))) (+ x (/ y (/ a (- t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.25e+25) || !(z <= 8.5e+36)) {
tmp = t + ((x - t) / (z / y));
} else {
tmp = x + (y / (a / (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) :: tmp
if ((z <= (-1.25d+25)) .or. (.not. (z <= 8.5d+36))) then
tmp = t + ((x - t) / (z / y))
else
tmp = x + (y / (a / (t - x)))
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.25e+25) || !(z <= 8.5e+36)) {
tmp = t + ((x - t) / (z / y));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.25e+25) or not (z <= 8.5e+36): tmp = t + ((x - t) / (z / y)) else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.25e+25) || !(z <= 8.5e+36)) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / y))); else tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.25e+25) || ~((z <= 8.5e+36))) tmp = t + ((x - t) / (z / y)); else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.25e+25], N[Not[LessEqual[z, 8.5e+36]], $MachinePrecision]], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.25 \cdot 10^{+25} \lor \neg \left(z \leq 8.5 \cdot 10^{+36}\right):\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -1.25000000000000006e25 or 8.50000000000000014e36 < z Initial program 44.9%
associate-*l/73.5%
Simplified73.5%
Taylor expanded in z around inf 61.4%
associate--l+61.4%
associate-*r/61.4%
associate-*r/61.4%
div-sub61.4%
distribute-lft-out--61.4%
mul-1-neg61.4%
distribute-neg-frac61.4%
distribute-rgt-out--62.3%
unsub-neg62.3%
associate-/l*81.6%
Simplified81.6%
Taylor expanded in y around inf 75.3%
if -1.25000000000000006e25 < z < 8.50000000000000014e36Initial program 89.9%
associate-*l/94.4%
Simplified94.4%
Taylor expanded in z around 0 71.2%
associate-/l*76.3%
Simplified76.3%
Final simplification75.8%
(FPCore (x y z t a) :precision binary64 (if (<= z -8.5e+25) (+ t (* x (/ (- y a) z))) (if (<= z 8e+36) (+ x (/ y (/ a (- t x)))) (+ t (/ (- x t) (/ z y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8.5e+25) {
tmp = t + (x * ((y - a) / z));
} else if (z <= 8e+36) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t + ((x - t) / (z / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-8.5d+25)) then
tmp = t + (x * ((y - a) / z))
else if (z <= 8d+36) then
tmp = x + (y / (a / (t - x)))
else
tmp = t + ((x - t) / (z / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8.5e+25) {
tmp = t + (x * ((y - a) / z));
} else if (z <= 8e+36) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t + ((x - t) / (z / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -8.5e+25: tmp = t + (x * ((y - a) / z)) elif z <= 8e+36: tmp = x + (y / (a / (t - x))) else: tmp = t + ((x - t) / (z / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -8.5e+25) tmp = Float64(t + Float64(x * Float64(Float64(y - a) / z))); elseif (z <= 8e+36) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); else tmp = Float64(t + Float64(Float64(x - t) / Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -8.5e+25) tmp = t + (x * ((y - a) / z)); elseif (z <= 8e+36) tmp = x + (y / (a / (t - x))); else tmp = t + ((x - t) / (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -8.5e+25], N[(t + N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8e+36], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.5 \cdot 10^{+25}:\\
\;\;\;\;t + x \cdot \frac{y - a}{z}\\
\mathbf{elif}\;z \leq 8 \cdot 10^{+36}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y}}\\
\end{array}
\end{array}
if z < -8.5000000000000007e25Initial program 54.7%
associate-*l/78.0%
Simplified78.0%
Taylor expanded in z around inf 68.9%
associate--l+68.9%
associate-*r/68.9%
associate-*r/68.9%
div-sub68.9%
distribute-lft-out--68.9%
mul-1-neg68.9%
distribute-neg-frac68.9%
distribute-rgt-out--70.8%
unsub-neg70.8%
associate-/l*82.0%
Simplified82.0%
Taylor expanded in t around 0 70.1%
mul-1-neg70.1%
associate-*r/76.4%
*-commutative76.4%
distribute-rgt-neg-in76.4%
Simplified76.4%
if -8.5000000000000007e25 < z < 8.00000000000000034e36Initial program 89.9%
associate-*l/94.4%
Simplified94.4%
Taylor expanded in z around 0 71.2%
associate-/l*76.3%
Simplified76.3%
if 8.00000000000000034e36 < z Initial program 36.6%
associate-*l/69.7%
Simplified69.7%
Taylor expanded in z around inf 55.0%
associate--l+55.0%
associate-*r/55.0%
associate-*r/55.0%
div-sub55.0%
distribute-lft-out--55.0%
mul-1-neg55.0%
distribute-neg-frac55.0%
distribute-rgt-out--55.0%
unsub-neg55.0%
associate-/l*81.2%
Simplified81.2%
Taylor expanded in y around inf 76.1%
Final simplification76.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -4.2e+26) (not (<= z 1.3e+54))) (- t (* t (/ y z))) (+ x (/ t (/ a y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -4.2e+26) || !(z <= 1.3e+54)) {
tmp = t - (t * (y / z));
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-4.2d+26)) .or. (.not. (z <= 1.3d+54))) then
tmp = t - (t * (y / z))
else
tmp = x + (t / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -4.2e+26) || !(z <= 1.3e+54)) {
tmp = t - (t * (y / z));
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -4.2e+26) or not (z <= 1.3e+54): tmp = t - (t * (y / z)) else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -4.2e+26) || !(z <= 1.3e+54)) tmp = Float64(t - Float64(t * Float64(y / z))); else tmp = Float64(x + Float64(t / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -4.2e+26) || ~((z <= 1.3e+54))) tmp = t - (t * (y / z)); else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -4.2e+26], N[Not[LessEqual[z, 1.3e+54]], $MachinePrecision]], N[(t - N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.2 \cdot 10^{+26} \lor \neg \left(z \leq 1.3 \cdot 10^{+54}\right):\\
\;\;\;\;t - t \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if z < -4.2000000000000002e26 or 1.30000000000000003e54 < z Initial program 44.4%
associate-*l/73.7%
Simplified73.7%
Taylor expanded in z around inf 61.3%
associate--l+61.3%
associate-*r/61.3%
associate-*r/61.3%
div-sub61.3%
distribute-lft-out--61.3%
mul-1-neg61.3%
distribute-neg-frac61.3%
distribute-rgt-out--62.2%
unsub-neg62.2%
associate-/l*81.9%
Simplified81.9%
Taylor expanded in y around inf 75.5%
Taylor expanded in t around inf 48.7%
associate-*r/59.3%
Simplified59.3%
if -4.2000000000000002e26 < z < 1.30000000000000003e54Initial program 89.3%
associate-/l*93.7%
Simplified93.7%
Taylor expanded in t around inf 75.6%
Taylor expanded in z around 0 58.8%
+-commutative58.8%
associate-/l*63.9%
Simplified63.9%
Final simplification61.6%
(FPCore (x y z t a) :precision binary64 (if (<= z -5.6e-27) (+ x t) (if (<= z 4.7e-144) (* t (/ y (- a z))) (if (<= z 1.7e+220) (+ x t) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.6e-27) {
tmp = x + t;
} else if (z <= 4.7e-144) {
tmp = t * (y / (a - z));
} else if (z <= 1.7e+220) {
tmp = x + t;
} 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 <= (-5.6d-27)) then
tmp = x + t
else if (z <= 4.7d-144) then
tmp = t * (y / (a - z))
else if (z <= 1.7d+220) then
tmp = x + t
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 <= -5.6e-27) {
tmp = x + t;
} else if (z <= 4.7e-144) {
tmp = t * (y / (a - z));
} else if (z <= 1.7e+220) {
tmp = x + t;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -5.6e-27: tmp = x + t elif z <= 4.7e-144: tmp = t * (y / (a - z)) elif z <= 1.7e+220: tmp = x + t else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -5.6e-27) tmp = Float64(x + t); elseif (z <= 4.7e-144) tmp = Float64(t * Float64(y / Float64(a - z))); elseif (z <= 1.7e+220) tmp = Float64(x + t); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -5.6e-27) tmp = x + t; elseif (z <= 4.7e-144) tmp = t * (y / (a - z)); elseif (z <= 1.7e+220) tmp = x + t; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -5.6e-27], N[(x + t), $MachinePrecision], If[LessEqual[z, 4.7e-144], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e+220], N[(x + t), $MachinePrecision], t]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.6 \cdot 10^{-27}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;z \leq 4.7 \cdot 10^{-144}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+220}:\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -5.5999999999999999e-27 or 4.7000000000000002e-144 < z < 1.7e220Initial program 60.2%
associate-/l*76.6%
Simplified76.6%
Taylor expanded in t around inf 66.4%
Taylor expanded in z around inf 46.2%
if -5.5999999999999999e-27 < z < 4.7000000000000002e-144Initial program 94.9%
associate-*l/97.5%
Simplified97.5%
Taylor expanded in x around 0 43.1%
associate-*r/45.6%
Simplified45.6%
Taylor expanded in y around inf 42.0%
if 1.7e220 < z Initial program 18.4%
associate-*l/54.7%
Simplified54.7%
Taylor expanded in z around inf 74.9%
Final simplification47.5%
(FPCore (x y z t a) :precision binary64 (if (<= z -4.2e+26) t (if (<= z 1.5e+59) (+ x (/ t (/ a y))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.2e+26) {
tmp = t;
} else if (z <= 1.5e+59) {
tmp = x + (t / (a / y));
} 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 <= (-4.2d+26)) then
tmp = t
else if (z <= 1.5d+59) then
tmp = x + (t / (a / y))
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 <= -4.2e+26) {
tmp = t;
} else if (z <= 1.5e+59) {
tmp = x + (t / (a / y));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -4.2e+26: tmp = t elif z <= 1.5e+59: tmp = x + (t / (a / y)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.2e+26) tmp = t; elseif (z <= 1.5e+59) tmp = Float64(x + Float64(t / Float64(a / y))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -4.2e+26) tmp = t; elseif (z <= 1.5e+59) tmp = x + (t / (a / y)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.2e+26], t, If[LessEqual[z, 1.5e+59], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.2 \cdot 10^{+26}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{+59}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -4.2000000000000002e26 or 1.5e59 < z Initial program 44.0%
associate-*l/73.5%
Simplified73.5%
Taylor expanded in z around inf 51.6%
if -4.2000000000000002e26 < z < 1.5e59Initial program 89.4%
associate-/l*93.7%
Simplified93.7%
Taylor expanded in t around inf 75.8%
Taylor expanded in z around 0 59.1%
+-commutative59.1%
associate-/l*64.2%
Simplified64.2%
Final simplification58.0%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.3e+26) t (if (<= z 9000000.0) x (if (<= z 1.7e+220) (+ x t) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.3e+26) {
tmp = t;
} else if (z <= 9000000.0) {
tmp = x;
} else if (z <= 1.7e+220) {
tmp = x + t;
} 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.3d+26)) then
tmp = t
else if (z <= 9000000.0d0) then
tmp = x
else if (z <= 1.7d+220) then
tmp = x + t
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.3e+26) {
tmp = t;
} else if (z <= 9000000.0) {
tmp = x;
} else if (z <= 1.7e+220) {
tmp = x + t;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.3e+26: tmp = t elif z <= 9000000.0: tmp = x elif z <= 1.7e+220: tmp = x + t else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.3e+26) tmp = t; elseif (z <= 9000000.0) tmp = x; elseif (z <= 1.7e+220) tmp = Float64(x + t); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.3e+26) tmp = t; elseif (z <= 9000000.0) tmp = x; elseif (z <= 1.7e+220) tmp = x + t; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.3e+26], t, If[LessEqual[z, 9000000.0], x, If[LessEqual[z, 1.7e+220], N[(x + t), $MachinePrecision], t]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{+26}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 9000000:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+220}:\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.30000000000000001e26 or 1.7e220 < z Initial program 44.6%
associate-*l/71.6%
Simplified71.6%
Taylor expanded in z around inf 58.6%
if -1.30000000000000001e26 < z < 9e6Initial program 90.8%
associate-*l/95.7%
Simplified95.7%
Taylor expanded in a around inf 37.9%
if 9e6 < z < 1.7e220Initial program 49.9%
associate-/l*75.0%
Simplified75.0%
Taylor expanded in t around inf 69.0%
Taylor expanded in z around inf 45.2%
Final simplification46.2%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.9e-93) (+ x t) (if (<= z 2e-139) (* t (/ y a)) (if (<= z 1.75e+220) (+ x t) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.9e-93) {
tmp = x + t;
} else if (z <= 2e-139) {
tmp = t * (y / a);
} else if (z <= 1.75e+220) {
tmp = x + t;
} 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 <= (-2.9d-93)) then
tmp = x + t
else if (z <= 2d-139) then
tmp = t * (y / a)
else if (z <= 1.75d+220) then
tmp = x + t
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 <= -2.9e-93) {
tmp = x + t;
} else if (z <= 2e-139) {
tmp = t * (y / a);
} else if (z <= 1.75e+220) {
tmp = x + t;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.9e-93: tmp = x + t elif z <= 2e-139: tmp = t * (y / a) elif z <= 1.75e+220: tmp = x + t else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.9e-93) tmp = Float64(x + t); elseif (z <= 2e-139) tmp = Float64(t * Float64(y / a)); elseif (z <= 1.75e+220) tmp = Float64(x + t); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.9e-93) tmp = x + t; elseif (z <= 2e-139) tmp = t * (y / a); elseif (z <= 1.75e+220) tmp = x + t; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.9e-93], N[(x + t), $MachinePrecision], If[LessEqual[z, 2e-139], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.75e+220], N[(x + t), $MachinePrecision], t]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.9 \cdot 10^{-93}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-139}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 1.75 \cdot 10^{+220}:\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -2.8999999999999998e-93 or 2.00000000000000006e-139 < z < 1.74999999999999993e220Initial program 61.0%
associate-/l*77.7%
Simplified77.7%
Taylor expanded in t around inf 67.5%
Taylor expanded in z around inf 45.3%
if -2.8999999999999998e-93 < z < 2.00000000000000006e-139Initial program 97.0%
associate-*l/97.2%
Simplified97.2%
Taylor expanded in x around 0 46.2%
associate-*r/46.3%
Simplified46.3%
Taylor expanded in z around 0 39.5%
if 1.74999999999999993e220 < z Initial program 18.4%
associate-*l/54.7%
Simplified54.7%
Taylor expanded in z around inf 74.9%
Final simplification46.4%
(FPCore (x y z t a) :precision binary64 (if (<= y -5.9e+62) (* x (/ y z)) (if (<= y 2.6e+101) (+ x t) (* t (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -5.9e+62) {
tmp = x * (y / z);
} else if (y <= 2.6e+101) {
tmp = x + t;
} else {
tmp = t * (y / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (y <= (-5.9d+62)) then
tmp = x * (y / z)
else if (y <= 2.6d+101) then
tmp = x + t
else
tmp = t * (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 (y <= -5.9e+62) {
tmp = x * (y / z);
} else if (y <= 2.6e+101) {
tmp = x + t;
} else {
tmp = t * (y / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -5.9e+62: tmp = x * (y / z) elif y <= 2.6e+101: tmp = x + t else: tmp = t * (y / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -5.9e+62) tmp = Float64(x * Float64(y / z)); elseif (y <= 2.6e+101) tmp = Float64(x + t); else tmp = Float64(t * Float64(y / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -5.9e+62) tmp = x * (y / z); elseif (y <= 2.6e+101) tmp = x + t; else tmp = t * (y / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -5.9e+62], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.6e+101], N[(x + t), $MachinePrecision], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.9 \cdot 10^{+62}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{+101}:\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if y < -5.9000000000000003e62Initial program 57.1%
associate-*l/84.3%
Simplified84.3%
Taylor expanded in z around inf 40.3%
associate--l+40.3%
associate-*r/40.3%
associate-*r/40.3%
div-sub40.4%
distribute-lft-out--40.4%
mul-1-neg40.4%
distribute-neg-frac40.4%
distribute-rgt-out--43.0%
unsub-neg43.0%
associate-/l*66.3%
Simplified66.3%
Taylor expanded in y around inf 66.4%
Taylor expanded in t around 0 25.6%
associate-*r/40.7%
Simplified40.7%
if -5.9000000000000003e62 < y < 2.6e101Initial program 69.5%
associate-/l*78.4%
Simplified78.4%
Taylor expanded in t around inf 69.9%
Taylor expanded in z around inf 46.5%
if 2.6e101 < y Initial program 67.8%
associate-*l/91.8%
Simplified91.8%
Taylor expanded in x around 0 51.6%
associate-*r/75.4%
Simplified75.4%
Taylor expanded in z around 0 44.8%
Final simplification45.2%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.6e+26) t (if (<= z 6.4e+58) x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.6e+26) {
tmp = t;
} else if (z <= 6.4e+58) {
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.6d+26)) then
tmp = t
else if (z <= 6.4d+58) 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.6e+26) {
tmp = t;
} else if (z <= 6.4e+58) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.6e+26: tmp = t elif z <= 6.4e+58: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.6e+26) tmp = t; elseif (z <= 6.4e+58) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.6e+26) tmp = t; elseif (z <= 6.4e+58) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.6e+26], t, If[LessEqual[z, 6.4e+58], x, t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.6 \cdot 10^{+26}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 6.4 \cdot 10^{+58}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.60000000000000014e26 or 6.40000000000000031e58 < z Initial program 44.0%
associate-*l/73.5%
Simplified73.5%
Taylor expanded in z around inf 51.6%
if -1.60000000000000014e26 < z < 6.40000000000000031e58Initial program 89.4%
associate-*l/93.9%
Simplified93.9%
Taylor expanded in a around inf 37.0%
Final simplification44.2%
(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.1%
associate-*l/83.8%
Simplified83.8%
Taylor expanded in z around inf 30.5%
Final simplification30.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* (/ y z) (- t x)))))
(if (< z -1.2536131056095036e+188)
t_1
(if (< z 4.446702369113811e+64)
(+ x (/ (- y z) (/ (- a z) (- t x))))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t - ((y / z) * (t - x))
if (z < (-1.2536131056095036d+188)) then
tmp = t_1
else if (z < 4.446702369113811d+64) then
tmp = x + ((y - z) / ((a - z) / (t - x)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - ((y / z) * (t - x)) tmp = 0 if z < -1.2536131056095036e+188: tmp = t_1 elif z < 4.446702369113811e+64: tmp = x + ((y - z) / ((a - z) / (t - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(y / z) * Float64(t - x))) tmp = 0.0 if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - ((y / z) * (t - x)); tmp = 0.0; if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = x + ((y - z) / ((a - z) / (t - x))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y / z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -1.2536131056095036e+188], t$95$1, If[Less[z, 4.446702369113811e+64], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\
\mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
herbie shell --seed 2023297
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:herbie-target
(if (< z -1.2536131056095036e+188) (- t (* (/ y z) (- t x))) (if (< z 4.446702369113811e+64) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x)))))
(+ x (/ (* (- y z) (- t x)) (- a z))))