
(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 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + ((y - z) * ((t - x) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(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 (/ (- t x) (- a z))) (t_2 (+ x (* (- y z) t_1))))
(if (<= t_2 -4e-265)
t_2
(if (<= t_2 2e-292)
(+ t (/ (- x t) (/ z (- y a))))
(fma (- y z) t_1 x)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (t - x) / (a - z);
double t_2 = x + ((y - z) * t_1);
double tmp;
if (t_2 <= -4e-265) {
tmp = t_2;
} else if (t_2 <= 2e-292) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = fma((y - z), t_1, x);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(t - x) / Float64(a - z)) t_2 = Float64(x + Float64(Float64(y - z) * t_1)) tmp = 0.0 if (t_2 <= -4e-265) tmp = t_2; elseif (t_2 <= 2e-292) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = fma(Float64(y - z), t_1, x); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -4e-265], t$95$2, If[LessEqual[t$95$2, 2e-292], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y - z), $MachinePrecision] * t$95$1 + x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - x}{a - z}\\
t_2 := x + \left(y - z\right) \cdot t_1\\
\mathbf{if}\;t_2 \leq -4 \cdot 10^{-265}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{-292}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y - z, t_1, x\right)\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -3.99999999999999994e-265Initial program 89.7%
if -3.99999999999999994e-265 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 2.0000000000000001e-292Initial program 3.2%
Taylor expanded in z around inf 81.9%
associate--l+81.9%
distribute-lft-out--81.9%
div-sub81.9%
mul-1-neg81.9%
unsub-neg81.9%
distribute-rgt-out--81.9%
associate-/l*97.2%
Simplified97.2%
if 2.0000000000000001e-292 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 92.4%
+-commutative92.4%
fma-def92.4%
Simplified92.4%
Final simplification91.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -4e-265) (not (<= t_1 2e-292)))
t_1
(+ t (/ (- x t) (/ z (- y a)))))))
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 <= -4e-265) || !(t_1 <= 2e-292)) {
tmp = t_1;
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
if ((t_1 <= (-4d-265)) .or. (.not. (t_1 <= 2d-292))) then
tmp = t_1
else
tmp = t + ((x - t) / (z / (y - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if ((t_1 <= -4e-265) || !(t_1 <= 2e-292)) {
tmp = t_1;
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if (t_1 <= -4e-265) or not (t_1 <= 2e-292): tmp = t_1 else: tmp = t + ((x - t) / (z / (y - a))) 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 <= -4e-265) || !(t_1 <= 2e-292)) tmp = t_1; else tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); 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 <= -4e-265) || ~((t_1 <= 2e-292))) tmp = t_1; else tmp = t + ((x - t) / (z / (y - a))); 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, -4e-265], N[Not[LessEqual[t$95$1, 2e-292]], $MachinePrecision]], t$95$1, N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $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 -4 \cdot 10^{-265} \lor \neg \left(t_1 \leq 2 \cdot 10^{-292}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -3.99999999999999994e-265 or 2.0000000000000001e-292 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 91.0%
if -3.99999999999999994e-265 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 2.0000000000000001e-292Initial program 3.2%
Taylor expanded in z around inf 81.9%
associate--l+81.9%
distribute-lft-out--81.9%
div-sub81.9%
mul-1-neg81.9%
unsub-neg81.9%
distribute-rgt-out--81.9%
associate-/l*97.2%
Simplified97.2%
Final simplification91.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- t x) (/ y a)))))
(if (<= a -4.8e+96)
t_1
(if (<= a -2.85e+48)
(+ t (/ a (/ (- z) x)))
(if (<= a -5.4e-30)
t_1
(if (<= a 1.15e-290)
(* t (- 1.0 (/ y z)))
(if (<= a 1.5e-197)
(* (- t x) (/ y (- a z)))
(if (<= a 1.05e-38) (* (- y z) (/ t (- a z))) t_1))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * (y / a));
double tmp;
if (a <= -4.8e+96) {
tmp = t_1;
} else if (a <= -2.85e+48) {
tmp = t + (a / (-z / x));
} else if (a <= -5.4e-30) {
tmp = t_1;
} else if (a <= 1.15e-290) {
tmp = t * (1.0 - (y / z));
} else if (a <= 1.5e-197) {
tmp = (t - x) * (y / (a - z));
} else if (a <= 1.05e-38) {
tmp = (y - z) * (t / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((t - x) * (y / a))
if (a <= (-4.8d+96)) then
tmp = t_1
else if (a <= (-2.85d+48)) then
tmp = t + (a / (-z / x))
else if (a <= (-5.4d-30)) then
tmp = t_1
else if (a <= 1.15d-290) then
tmp = t * (1.0d0 - (y / z))
else if (a <= 1.5d-197) then
tmp = (t - x) * (y / (a - z))
else if (a <= 1.05d-38) then
tmp = (y - z) * (t / (a - z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * (y / a));
double tmp;
if (a <= -4.8e+96) {
tmp = t_1;
} else if (a <= -2.85e+48) {
tmp = t + (a / (-z / x));
} else if (a <= -5.4e-30) {
tmp = t_1;
} else if (a <= 1.15e-290) {
tmp = t * (1.0 - (y / z));
} else if (a <= 1.5e-197) {
tmp = (t - x) * (y / (a - z));
} else if (a <= 1.05e-38) {
tmp = (y - z) * (t / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((t - x) * (y / a)) tmp = 0 if a <= -4.8e+96: tmp = t_1 elif a <= -2.85e+48: tmp = t + (a / (-z / x)) elif a <= -5.4e-30: tmp = t_1 elif a <= 1.15e-290: tmp = t * (1.0 - (y / z)) elif a <= 1.5e-197: tmp = (t - x) * (y / (a - z)) elif a <= 1.05e-38: tmp = (y - z) * (t / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(t - x) * Float64(y / a))) tmp = 0.0 if (a <= -4.8e+96) tmp = t_1; elseif (a <= -2.85e+48) tmp = Float64(t + Float64(a / Float64(Float64(-z) / x))); elseif (a <= -5.4e-30) tmp = t_1; elseif (a <= 1.15e-290) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (a <= 1.5e-197) tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z))); elseif (a <= 1.05e-38) tmp = Float64(Float64(y - z) * Float64(t / Float64(a - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((t - x) * (y / a)); tmp = 0.0; if (a <= -4.8e+96) tmp = t_1; elseif (a <= -2.85e+48) tmp = t + (a / (-z / x)); elseif (a <= -5.4e-30) tmp = t_1; elseif (a <= 1.15e-290) tmp = t * (1.0 - (y / z)); elseif (a <= 1.5e-197) tmp = (t - x) * (y / (a - z)); elseif (a <= 1.05e-38) tmp = (y - z) * (t / (a - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.8e+96], t$95$1, If[LessEqual[a, -2.85e+48], N[(t + N[(a / N[((-z) / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.4e-30], t$95$1, If[LessEqual[a, 1.15e-290], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.5e-197], N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.05e-38], N[(N[(y - z), $MachinePrecision] * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{if}\;a \leq -4.8 \cdot 10^{+96}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2.85 \cdot 10^{+48}:\\
\;\;\;\;t + \frac{a}{\frac{-z}{x}}\\
\mathbf{elif}\;a \leq -5.4 \cdot 10^{-30}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{-290}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;a \leq 1.5 \cdot 10^{-197}:\\
\;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{-38}:\\
\;\;\;\;\left(y - z\right) \cdot \frac{t}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -4.79999999999999986e96 or -2.84999999999999984e48 < a < -5.39999999999999975e-30 or 1.05000000000000006e-38 < a Initial program 89.7%
Taylor expanded in z around 0 68.1%
associate-/l*72.9%
associate-/r/73.9%
Simplified73.9%
if -4.79999999999999986e96 < a < -2.84999999999999984e48Initial program 61.0%
Taylor expanded in z around inf 51.8%
associate--l+51.8%
distribute-lft-out--51.8%
div-sub52.9%
mul-1-neg52.9%
unsub-neg52.9%
distribute-rgt-out--52.9%
associate-/l*72.5%
Simplified72.5%
Taylor expanded in y around 0 51.8%
sub-neg51.8%
mul-1-neg51.8%
remove-double-neg51.8%
associate-/l*71.4%
Simplified71.4%
Taylor expanded in t around 0 71.9%
associate-*r/71.9%
neg-mul-171.9%
Simplified71.9%
if -5.39999999999999975e-30 < a < 1.15e-290Initial program 65.5%
Taylor expanded in z around inf 81.5%
associate--l+81.5%
distribute-lft-out--81.5%
div-sub84.6%
mul-1-neg84.6%
unsub-neg84.6%
distribute-rgt-out--84.6%
associate-/l*93.6%
Simplified93.6%
Taylor expanded in y around inf 78.7%
Taylor expanded in t around inf 70.0%
if 1.15e-290 < a < 1.50000000000000013e-197Initial program 57.8%
Taylor expanded in y around inf 63.4%
div-sub63.4%
associate-*r/64.0%
associate-/l*63.5%
associate-/r/70.0%
Simplified70.0%
if 1.50000000000000013e-197 < a < 1.05000000000000006e-38Initial program 73.7%
Taylor expanded in x around 0 50.6%
associate-/l*67.6%
associate-/r/66.3%
Simplified66.3%
Final simplification71.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- t x) (/ y a)))))
(if (<= a -6.5e+96)
(+ x (/ y (/ a (- t x))))
(if (<= a -1.22e+48)
(+ t (/ a (/ (- z) x)))
(if (<= a -4.8e-32)
t_1
(if (<= a 2e-288)
(* t (- 1.0 (/ y z)))
(if (<= a 6e-198)
(* (- t x) (/ y (- a z)))
(if (<= a 3.3e-38) (* (- y z) (/ t (- a z))) t_1))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * (y / a));
double tmp;
if (a <= -6.5e+96) {
tmp = x + (y / (a / (t - x)));
} else if (a <= -1.22e+48) {
tmp = t + (a / (-z / x));
} else if (a <= -4.8e-32) {
tmp = t_1;
} else if (a <= 2e-288) {
tmp = t * (1.0 - (y / z));
} else if (a <= 6e-198) {
tmp = (t - x) * (y / (a - z));
} else if (a <= 3.3e-38) {
tmp = (y - z) * (t / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((t - x) * (y / a))
if (a <= (-6.5d+96)) then
tmp = x + (y / (a / (t - x)))
else if (a <= (-1.22d+48)) then
tmp = t + (a / (-z / x))
else if (a <= (-4.8d-32)) then
tmp = t_1
else if (a <= 2d-288) then
tmp = t * (1.0d0 - (y / z))
else if (a <= 6d-198) then
tmp = (t - x) * (y / (a - z))
else if (a <= 3.3d-38) then
tmp = (y - z) * (t / (a - z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * (y / a));
double tmp;
if (a <= -6.5e+96) {
tmp = x + (y / (a / (t - x)));
} else if (a <= -1.22e+48) {
tmp = t + (a / (-z / x));
} else if (a <= -4.8e-32) {
tmp = t_1;
} else if (a <= 2e-288) {
tmp = t * (1.0 - (y / z));
} else if (a <= 6e-198) {
tmp = (t - x) * (y / (a - z));
} else if (a <= 3.3e-38) {
tmp = (y - z) * (t / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((t - x) * (y / a)) tmp = 0 if a <= -6.5e+96: tmp = x + (y / (a / (t - x))) elif a <= -1.22e+48: tmp = t + (a / (-z / x)) elif a <= -4.8e-32: tmp = t_1 elif a <= 2e-288: tmp = t * (1.0 - (y / z)) elif a <= 6e-198: tmp = (t - x) * (y / (a - z)) elif a <= 3.3e-38: tmp = (y - z) * (t / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(t - x) * Float64(y / a))) tmp = 0.0 if (a <= -6.5e+96) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); elseif (a <= -1.22e+48) tmp = Float64(t + Float64(a / Float64(Float64(-z) / x))); elseif (a <= -4.8e-32) tmp = t_1; elseif (a <= 2e-288) tmp = Float64(t * Float64(1.0 - Float64(y / z))); elseif (a <= 6e-198) tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z))); elseif (a <= 3.3e-38) tmp = Float64(Float64(y - z) * Float64(t / Float64(a - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((t - x) * (y / a)); tmp = 0.0; if (a <= -6.5e+96) tmp = x + (y / (a / (t - x))); elseif (a <= -1.22e+48) tmp = t + (a / (-z / x)); elseif (a <= -4.8e-32) tmp = t_1; elseif (a <= 2e-288) tmp = t * (1.0 - (y / z)); elseif (a <= 6e-198) tmp = (t - x) * (y / (a - z)); elseif (a <= 3.3e-38) tmp = (y - z) * (t / (a - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.5e+96], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.22e+48], N[(t + N[(a / N[((-z) / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.8e-32], t$95$1, If[LessEqual[a, 2e-288], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6e-198], N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.3e-38], N[(N[(y - z), $MachinePrecision] * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{if}\;a \leq -6.5 \cdot 10^{+96}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{elif}\;a \leq -1.22 \cdot 10^{+48}:\\
\;\;\;\;t + \frac{a}{\frac{-z}{x}}\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{-32}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2 \cdot 10^{-288}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{elif}\;a \leq 6 \cdot 10^{-198}:\\
\;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{-38}:\\
\;\;\;\;\left(y - z\right) \cdot \frac{t}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -6.5e96Initial program 92.8%
Taylor expanded in z around 0 67.9%
associate-/l*74.8%
Simplified74.8%
if -6.5e96 < a < -1.22000000000000004e48Initial program 61.0%
Taylor expanded in z around inf 51.8%
associate--l+51.8%
distribute-lft-out--51.8%
div-sub52.9%
mul-1-neg52.9%
unsub-neg52.9%
distribute-rgt-out--52.9%
associate-/l*72.5%
Simplified72.5%
Taylor expanded in y around 0 51.8%
sub-neg51.8%
mul-1-neg51.8%
remove-double-neg51.8%
associate-/l*71.4%
Simplified71.4%
Taylor expanded in t around 0 71.9%
associate-*r/71.9%
neg-mul-171.9%
Simplified71.9%
if -1.22000000000000004e48 < a < -4.8000000000000003e-32 or 3.3000000000000002e-38 < a Initial program 88.3%
Taylor expanded in z around 0 68.2%
associate-/l*72.0%
associate-/r/73.5%
Simplified73.5%
if -4.8000000000000003e-32 < a < 2.00000000000000012e-288Initial program 65.5%
Taylor expanded in z around inf 81.5%
associate--l+81.5%
distribute-lft-out--81.5%
div-sub84.6%
mul-1-neg84.6%
unsub-neg84.6%
distribute-rgt-out--84.6%
associate-/l*93.6%
Simplified93.6%
Taylor expanded in y around inf 78.7%
Taylor expanded in t around inf 70.0%
if 2.00000000000000012e-288 < a < 6.0000000000000002e-198Initial program 57.8%
Taylor expanded in y around inf 63.4%
div-sub63.4%
associate-*r/64.0%
associate-/l*63.5%
associate-/r/70.0%
Simplified70.0%
if 6.0000000000000002e-198 < a < 3.3000000000000002e-38Initial program 73.7%
Taylor expanded in x around 0 50.6%
associate-/l*67.6%
associate-/r/66.3%
Simplified66.3%
Final simplification71.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (- 1.0 (/ y z)))))
(if (<= a -4.1e+139)
(* x (- 1.0 (/ y a)))
(if (<= a -8e+47)
(+ t (/ a (/ (- z) x)))
(if (<= a -5.5e-27)
(* y (/ (- t x) a))
(if (<= a 9.4e-293)
t_1
(if (<= a 2.5e-168)
(+ t (/ (* x y) z))
(if (<= a 8.2e-24) t_1 (+ x (/ t (/ a y)))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (1.0 - (y / z));
double tmp;
if (a <= -4.1e+139) {
tmp = x * (1.0 - (y / a));
} else if (a <= -8e+47) {
tmp = t + (a / (-z / x));
} else if (a <= -5.5e-27) {
tmp = y * ((t - x) / a);
} else if (a <= 9.4e-293) {
tmp = t_1;
} else if (a <= 2.5e-168) {
tmp = t + ((x * y) / z);
} else if (a <= 8.2e-24) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = t * (1.0d0 - (y / z))
if (a <= (-4.1d+139)) then
tmp = x * (1.0d0 - (y / a))
else if (a <= (-8d+47)) then
tmp = t + (a / (-z / x))
else if (a <= (-5.5d-27)) then
tmp = y * ((t - x) / a)
else if (a <= 9.4d-293) then
tmp = t_1
else if (a <= 2.5d-168) then
tmp = t + ((x * y) / z)
else if (a <= 8.2d-24) then
tmp = t_1
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 t_1 = t * (1.0 - (y / z));
double tmp;
if (a <= -4.1e+139) {
tmp = x * (1.0 - (y / a));
} else if (a <= -8e+47) {
tmp = t + (a / (-z / x));
} else if (a <= -5.5e-27) {
tmp = y * ((t - x) / a);
} else if (a <= 9.4e-293) {
tmp = t_1;
} else if (a <= 2.5e-168) {
tmp = t + ((x * y) / z);
} else if (a <= 8.2e-24) {
tmp = t_1;
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (1.0 - (y / z)) tmp = 0 if a <= -4.1e+139: tmp = x * (1.0 - (y / a)) elif a <= -8e+47: tmp = t + (a / (-z / x)) elif a <= -5.5e-27: tmp = y * ((t - x) / a) elif a <= 9.4e-293: tmp = t_1 elif a <= 2.5e-168: tmp = t + ((x * y) / z) elif a <= 8.2e-24: tmp = t_1 else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(1.0 - Float64(y / z))) tmp = 0.0 if (a <= -4.1e+139) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (a <= -8e+47) tmp = Float64(t + Float64(a / Float64(Float64(-z) / x))); elseif (a <= -5.5e-27) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (a <= 9.4e-293) tmp = t_1; elseif (a <= 2.5e-168) tmp = Float64(t + Float64(Float64(x * y) / z)); elseif (a <= 8.2e-24) tmp = t_1; else tmp = Float64(x + Float64(t / Float64(a / y))); 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 <= -4.1e+139) tmp = x * (1.0 - (y / a)); elseif (a <= -8e+47) tmp = t + (a / (-z / x)); elseif (a <= -5.5e-27) tmp = y * ((t - x) / a); elseif (a <= 9.4e-293) tmp = t_1; elseif (a <= 2.5e-168) tmp = t + ((x * y) / z); elseif (a <= 8.2e-24) tmp = t_1; else tmp = x + (t / (a / y)); 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, -4.1e+139], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8e+47], N[(t + N[(a / N[((-z) / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.5e-27], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.4e-293], t$95$1, If[LessEqual[a, 2.5e-168], N[(t + N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.2e-24], t$95$1, N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{if}\;a \leq -4.1 \cdot 10^{+139}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;a \leq -8 \cdot 10^{+47}:\\
\;\;\;\;t + \frac{a}{\frac{-z}{x}}\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-27}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;a \leq 9.4 \cdot 10^{-293}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.5 \cdot 10^{-168}:\\
\;\;\;\;t + \frac{x \cdot y}{z}\\
\mathbf{elif}\;a \leq 8.2 \cdot 10^{-24}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if a < -4.1000000000000002e139Initial program 92.1%
Taylor expanded in z around 0 69.5%
associate-/l*77.3%
Simplified77.3%
Taylor expanded in x around inf 70.2%
mul-1-neg70.2%
unsub-neg70.2%
Simplified70.2%
if -4.1000000000000002e139 < a < -8.0000000000000004e47Initial program 72.1%
Taylor expanded in z around inf 37.2%
associate--l+37.2%
distribute-lft-out--37.2%
div-sub38.0%
mul-1-neg38.0%
unsub-neg38.0%
distribute-rgt-out--38.0%
associate-/l*59.1%
Simplified59.1%
Taylor expanded in y around 0 37.2%
sub-neg37.2%
mul-1-neg37.2%
remove-double-neg37.2%
associate-/l*58.3%
Simplified58.3%
Taylor expanded in t around 0 63.7%
associate-*r/63.7%
neg-mul-163.7%
Simplified63.7%
if -8.0000000000000004e47 < a < -5.5000000000000002e-27Initial program 95.1%
Taylor expanded in y around inf 60.0%
div-sub60.0%
associate-*r/55.3%
associate-/l*59.9%
associate-/r/59.8%
Simplified59.8%
Taylor expanded in a around inf 55.7%
associate-*r/60.4%
Simplified60.4%
if -5.5000000000000002e-27 < a < 9.40000000000000026e-293 or 2.50000000000000001e-168 < a < 8.20000000000000029e-24Initial program 70.6%
Taylor expanded in z around inf 78.6%
associate--l+78.6%
distribute-lft-out--78.6%
div-sub80.7%
mul-1-neg80.7%
unsub-neg80.7%
distribute-rgt-out--80.7%
associate-/l*88.9%
Simplified88.9%
Taylor expanded in y around inf 75.6%
Taylor expanded in t around inf 68.6%
if 9.40000000000000026e-293 < a < 2.50000000000000001e-168Initial program 60.4%
Taylor expanded in z around inf 78.5%
associate--l+78.5%
distribute-lft-out--78.5%
div-sub78.5%
mul-1-neg78.5%
unsub-neg78.5%
distribute-rgt-out--78.5%
associate-/l*82.0%
Simplified82.0%
Taylor expanded in y around inf 72.0%
Taylor expanded in t around 0 65.1%
neg-mul-165.1%
distribute-lft-neg-in65.1%
*-commutative65.1%
Simplified65.1%
if 8.20000000000000029e-24 < a Initial program 85.5%
Taylor expanded in z around 0 66.6%
associate-/l*70.4%
Simplified70.4%
Taylor expanded in t around inf 68.1%
associate-/l*68.1%
Simplified68.1%
Final simplification67.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (- 1.0 (/ y z)))))
(if (<= a -2.8e+73)
x
(if (<= a -9.5e+47)
t_1
(if (<= a -1.65)
(/ t (/ a y))
(if (<= a -1.85e-20)
(* (/ y a) (- x))
(if (<= a 2.25e-23) 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 <= -2.8e+73) {
tmp = x;
} else if (a <= -9.5e+47) {
tmp = t_1;
} else if (a <= -1.65) {
tmp = t / (a / y);
} else if (a <= -1.85e-20) {
tmp = (y / a) * -x;
} else if (a <= 2.25e-23) {
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 <= (-2.8d+73)) then
tmp = x
else if (a <= (-9.5d+47)) then
tmp = t_1
else if (a <= (-1.65d0)) then
tmp = t / (a / y)
else if (a <= (-1.85d-20)) then
tmp = (y / a) * -x
else if (a <= 2.25d-23) 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 <= -2.8e+73) {
tmp = x;
} else if (a <= -9.5e+47) {
tmp = t_1;
} else if (a <= -1.65) {
tmp = t / (a / y);
} else if (a <= -1.85e-20) {
tmp = (y / a) * -x;
} else if (a <= 2.25e-23) {
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 <= -2.8e+73: tmp = x elif a <= -9.5e+47: tmp = t_1 elif a <= -1.65: tmp = t / (a / y) elif a <= -1.85e-20: tmp = (y / a) * -x elif a <= 2.25e-23: 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 <= -2.8e+73) tmp = x; elseif (a <= -9.5e+47) tmp = t_1; elseif (a <= -1.65) tmp = Float64(t / Float64(a / y)); elseif (a <= -1.85e-20) tmp = Float64(Float64(y / a) * Float64(-x)); elseif (a <= 2.25e-23) 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 <= -2.8e+73) tmp = x; elseif (a <= -9.5e+47) tmp = t_1; elseif (a <= -1.65) tmp = t / (a / y); elseif (a <= -1.85e-20) tmp = (y / a) * -x; elseif (a <= 2.25e-23) 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, -2.8e+73], x, If[LessEqual[a, -9.5e+47], t$95$1, If[LessEqual[a, -1.65], N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.85e-20], N[(N[(y / a), $MachinePrecision] * (-x)), $MachinePrecision], If[LessEqual[a, 2.25e-23], t$95$1, x]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{if}\;a \leq -2.8 \cdot 10^{+73}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -9.5 \cdot 10^{+47}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.65:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;a \leq -1.85 \cdot 10^{-20}:\\
\;\;\;\;\frac{y}{a} \cdot \left(-x\right)\\
\mathbf{elif}\;a \leq 2.25 \cdot 10^{-23}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -2.80000000000000008e73 or 2.24999999999999987e-23 < a Initial program 86.9%
Taylor expanded in a around inf 53.8%
if -2.80000000000000008e73 < a < -9.50000000000000001e47 or -1.85e-20 < a < 2.24999999999999987e-23Initial program 68.6%
Taylor expanded in z around inf 77.4%
associate--l+77.4%
distribute-lft-out--77.4%
div-sub79.1%
mul-1-neg79.1%
unsub-neg79.1%
distribute-rgt-out--79.1%
associate-/l*86.6%
Simplified86.6%
Taylor expanded in y around inf 73.3%
Taylor expanded in t around inf 63.3%
if -9.50000000000000001e47 < a < -1.6499999999999999Initial program 92.4%
Taylor expanded in y around inf 52.6%
div-sub52.6%
associate-*r/45.3%
associate-/l*52.6%
associate-/r/52.2%
Simplified52.2%
Taylor expanded in t around inf 28.7%
associate-*r/35.7%
Simplified35.7%
Taylor expanded in a around inf 28.9%
associate-/l*36.2%
Simplified36.2%
if -1.6499999999999999 < a < -1.85e-20Initial program 99.7%
Taylor expanded in z around 0 69.0%
associate-/l*68.7%
Simplified68.7%
Taylor expanded in t around 0 67.1%
mul-1-neg67.1%
distribute-neg-frac67.1%
distribute-lft-neg-out67.1%
associate-*r/67.3%
distribute-lft-neg-out67.3%
distribute-rgt-neg-in67.3%
mul-1-neg67.3%
metadata-eval67.3%
times-frac67.3%
*-lft-identity67.3%
neg-mul-167.3%
Simplified67.3%
*-commutative67.3%
frac-2neg67.3%
remove-double-neg67.3%
distribute-frac-neg67.3%
add-sqr-sqrt0.0%
sqrt-unprod1.2%
sqr-neg1.2%
sqrt-unprod1.2%
add-sqr-sqrt1.2%
cancel-sign-sub-inv1.2%
*-commutative1.2%
add-sqr-sqrt1.2%
sqrt-unprod1.2%
sqr-neg1.2%
sqrt-unprod0.0%
add-sqr-sqrt67.3%
Applied egg-rr67.3%
Taylor expanded in y around inf 67.0%
mul-1-neg67.0%
*-commutative67.0%
associate-*l/67.2%
distribute-rgt-neg-in67.2%
Simplified67.2%
Final simplification58.0%
(FPCore (x y z t a)
:precision binary64
(if (<= z -3.9e+36)
t
(if (<= z -8e-182)
x
(if (<= z -1.52e-236)
(* a (/ (- t x) z))
(if (<= z 1e-265)
x
(if (<= z 2.85e-149) (/ t (/ a y)) (if (<= z 7800000.0) x t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.9e+36) {
tmp = t;
} else if (z <= -8e-182) {
tmp = x;
} else if (z <= -1.52e-236) {
tmp = a * ((t - x) / z);
} else if (z <= 1e-265) {
tmp = x;
} else if (z <= 2.85e-149) {
tmp = t / (a / y);
} else if (z <= 7800000.0) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-3.9d+36)) then
tmp = t
else if (z <= (-8d-182)) then
tmp = x
else if (z <= (-1.52d-236)) then
tmp = a * ((t - x) / z)
else if (z <= 1d-265) then
tmp = x
else if (z <= 2.85d-149) then
tmp = t / (a / y)
else if (z <= 7800000.0d0) then
tmp = x
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.9e+36) {
tmp = t;
} else if (z <= -8e-182) {
tmp = x;
} else if (z <= -1.52e-236) {
tmp = a * ((t - x) / z);
} else if (z <= 1e-265) {
tmp = x;
} else if (z <= 2.85e-149) {
tmp = t / (a / y);
} else if (z <= 7800000.0) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.9e+36: tmp = t elif z <= -8e-182: tmp = x elif z <= -1.52e-236: tmp = a * ((t - x) / z) elif z <= 1e-265: tmp = x elif z <= 2.85e-149: tmp = t / (a / y) elif z <= 7800000.0: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.9e+36) tmp = t; elseif (z <= -8e-182) tmp = x; elseif (z <= -1.52e-236) tmp = Float64(a * Float64(Float64(t - x) / z)); elseif (z <= 1e-265) tmp = x; elseif (z <= 2.85e-149) tmp = Float64(t / Float64(a / y)); elseif (z <= 7800000.0) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.9e+36) tmp = t; elseif (z <= -8e-182) tmp = x; elseif (z <= -1.52e-236) tmp = a * ((t - x) / z); elseif (z <= 1e-265) tmp = x; elseif (z <= 2.85e-149) tmp = t / (a / y); elseif (z <= 7800000.0) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.9e+36], t, If[LessEqual[z, -8e-182], x, If[LessEqual[z, -1.52e-236], N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e-265], x, If[LessEqual[z, 2.85e-149], N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7800000.0], x, t]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.9 \cdot 10^{+36}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -8 \cdot 10^{-182}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -1.52 \cdot 10^{-236}:\\
\;\;\;\;a \cdot \frac{t - x}{z}\\
\mathbf{elif}\;z \leq 10^{-265}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 2.85 \cdot 10^{-149}:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 7800000:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -3.90000000000000021e36 or 7.8e6 < z Initial program 63.0%
Taylor expanded in z around inf 49.3%
if -3.90000000000000021e36 < z < -8.0000000000000004e-182 or -1.52000000000000009e-236 < z < 9.99999999999999985e-266 or 2.8499999999999999e-149 < z < 7.8e6Initial program 89.7%
Taylor expanded in a around inf 42.4%
if -8.0000000000000004e-182 < z < -1.52000000000000009e-236Initial program 99.8%
Taylor expanded in z around inf 85.7%
associate--l+85.7%
distribute-lft-out--85.7%
div-sub85.7%
mul-1-neg85.7%
unsub-neg85.7%
distribute-rgt-out--85.7%
associate-/l*85.5%
Simplified85.5%
Taylor expanded in a around inf 5.5%
associate-/l*72.5%
Simplified72.5%
Taylor expanded in a around 0 5.5%
associate-*r/72.5%
Simplified72.5%
if 9.99999999999999985e-266 < z < 2.8499999999999999e-149Initial program 96.1%
Taylor expanded in y around inf 76.8%
div-sub80.7%
associate-*r/77.3%
associate-/l*80.6%
associate-/r/80.5%
Simplified80.5%
Taylor expanded in t around inf 59.9%
associate-*r/64.8%
Simplified64.8%
Taylor expanded in a around inf 48.3%
associate-/l*53.5%
Simplified53.5%
Final simplification47.5%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1e+141)
(+ x (/ y (/ a (- t x))))
(if (<= a -7.8e+45)
(/ t (/ (- a z) (- y z)))
(if (or (<= a -2.3e-27) (not (<= a 4.2e-30)))
(+ x (* (- t x) (/ y a)))
(+ t (/ (- x t) (/ z (- y a))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1e+141) {
tmp = x + (y / (a / (t - x)));
} else if (a <= -7.8e+45) {
tmp = t / ((a - z) / (y - z));
} else if ((a <= -2.3e-27) || !(a <= 4.2e-30)) {
tmp = x + ((t - x) * (y / a));
} else {
tmp = t + ((x - t) / (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 <= (-1d+141)) then
tmp = x + (y / (a / (t - x)))
else if (a <= (-7.8d+45)) then
tmp = t / ((a - z) / (y - z))
else if ((a <= (-2.3d-27)) .or. (.not. (a <= 4.2d-30))) then
tmp = x + ((t - x) * (y / a))
else
tmp = t + ((x - t) / (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 <= -1e+141) {
tmp = x + (y / (a / (t - x)));
} else if (a <= -7.8e+45) {
tmp = t / ((a - z) / (y - z));
} else if ((a <= -2.3e-27) || !(a <= 4.2e-30)) {
tmp = x + ((t - x) * (y / a));
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1e+141: tmp = x + (y / (a / (t - x))) elif a <= -7.8e+45: tmp = t / ((a - z) / (y - z)) elif (a <= -2.3e-27) or not (a <= 4.2e-30): tmp = x + ((t - x) * (y / a)) else: tmp = t + ((x - t) / (z / (y - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1e+141) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); elseif (a <= -7.8e+45) tmp = Float64(t / Float64(Float64(a - z) / Float64(y - z))); elseif ((a <= -2.3e-27) || !(a <= 4.2e-30)) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); else tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1e+141) tmp = x + (y / (a / (t - x))); elseif (a <= -7.8e+45) tmp = t / ((a - z) / (y - z)); elseif ((a <= -2.3e-27) || ~((a <= 4.2e-30))) tmp = x + ((t - x) * (y / a)); else tmp = t + ((x - t) / (z / (y - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1e+141], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7.8e+45], N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, -2.3e-27], N[Not[LessEqual[a, 4.2e-30]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1 \cdot 10^{+141}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{elif}\;a \leq -7.8 \cdot 10^{+45}:\\
\;\;\;\;\frac{t}{\frac{a - z}{y - z}}\\
\mathbf{elif}\;a \leq -2.3 \cdot 10^{-27} \lor \neg \left(a \leq 4.2 \cdot 10^{-30}\right):\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\end{array}
\end{array}
if a < -1.00000000000000002e141Initial program 91.9%
Taylor expanded in z around 0 71.2%
associate-/l*79.1%
Simplified79.1%
if -1.00000000000000002e141 < a < -7.7999999999999999e45Initial program 71.6%
Taylor expanded in x around 0 43.6%
associate-/l*70.8%
Simplified70.8%
if -7.7999999999999999e45 < a < -2.2999999999999999e-27 or 4.2000000000000004e-30 < a Initial program 88.6%
Taylor expanded in z around 0 68.2%
associate-/l*72.3%
associate-/r/73.9%
Simplified73.9%
if -2.2999999999999999e-27 < a < 4.2000000000000004e-30Initial program 68.1%
Taylor expanded in z around inf 79.2%
associate--l+79.2%
distribute-lft-out--79.2%
div-sub80.9%
mul-1-neg80.9%
unsub-neg80.9%
distribute-rgt-out--80.9%
associate-/l*88.1%
Simplified88.1%
Final simplification81.1%
(FPCore (x y z t a)
:precision binary64
(if (<= a -5.6e+141)
(+ x (/ y (/ a (- t x))))
(if (<= a -9.5e+45)
(/ t (/ (- a z) (- y z)))
(if (<= a -1.1e-26)
(+ x (* (- t x) (/ y a)))
(if (<= a 2.65e-30)
(+ t (/ (- x t) (/ z (- y a))))
(+ x (* (/ z (- a z)) (- x t))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -5.6e+141) {
tmp = x + (y / (a / (t - x)));
} else if (a <= -9.5e+45) {
tmp = t / ((a - z) / (y - z));
} else if (a <= -1.1e-26) {
tmp = x + ((t - x) * (y / a));
} else if (a <= 2.65e-30) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((z / (a - z)) * (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 (a <= (-5.6d+141)) then
tmp = x + (y / (a / (t - x)))
else if (a <= (-9.5d+45)) then
tmp = t / ((a - z) / (y - z))
else if (a <= (-1.1d-26)) then
tmp = x + ((t - x) * (y / a))
else if (a <= 2.65d-30) then
tmp = t + ((x - t) / (z / (y - a)))
else
tmp = x + ((z / (a - z)) * (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 (a <= -5.6e+141) {
tmp = x + (y / (a / (t - x)));
} else if (a <= -9.5e+45) {
tmp = t / ((a - z) / (y - z));
} else if (a <= -1.1e-26) {
tmp = x + ((t - x) * (y / a));
} else if (a <= 2.65e-30) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((z / (a - z)) * (x - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -5.6e+141: tmp = x + (y / (a / (t - x))) elif a <= -9.5e+45: tmp = t / ((a - z) / (y - z)) elif a <= -1.1e-26: tmp = x + ((t - x) * (y / a)) elif a <= 2.65e-30: tmp = t + ((x - t) / (z / (y - a))) else: tmp = x + ((z / (a - z)) * (x - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -5.6e+141) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); elseif (a <= -9.5e+45) tmp = Float64(t / Float64(Float64(a - z) / Float64(y - z))); elseif (a <= -1.1e-26) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (a <= 2.65e-30) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = Float64(x + Float64(Float64(z / Float64(a - z)) * Float64(x - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -5.6e+141) tmp = x + (y / (a / (t - x))); elseif (a <= -9.5e+45) tmp = t / ((a - z) / (y - z)); elseif (a <= -1.1e-26) tmp = x + ((t - x) * (y / a)); elseif (a <= 2.65e-30) tmp = t + ((x - t) / (z / (y - a))); else tmp = x + ((z / (a - z)) * (x - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -5.6e+141], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -9.5e+45], N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.1e-26], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.65e-30], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.6 \cdot 10^{+141}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{elif}\;a \leq -9.5 \cdot 10^{+45}:\\
\;\;\;\;\frac{t}{\frac{a - z}{y - z}}\\
\mathbf{elif}\;a \leq -1.1 \cdot 10^{-26}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq 2.65 \cdot 10^{-30}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{a - z} \cdot \left(x - t\right)\\
\end{array}
\end{array}
if a < -5.59999999999999982e141Initial program 91.9%
Taylor expanded in z around 0 71.2%
associate-/l*79.1%
Simplified79.1%
if -5.59999999999999982e141 < a < -9.4999999999999998e45Initial program 71.6%
Taylor expanded in x around 0 43.6%
associate-/l*70.8%
Simplified70.8%
if -9.4999999999999998e45 < a < -1.1e-26Initial program 99.9%
Taylor expanded in z around 0 72.7%
associate-/l*77.8%
associate-/r/77.8%
Simplified77.8%
if -1.1e-26 < a < 2.64999999999999987e-30Initial program 67.8%
Taylor expanded in z around inf 79.0%
associate--l+79.0%
distribute-lft-out--79.0%
div-sub80.7%
mul-1-neg80.7%
unsub-neg80.7%
distribute-rgt-out--80.7%
associate-/l*88.0%
Simplified88.0%
if 2.64999999999999987e-30 < a Initial program 85.9%
Taylor expanded in y around 0 56.1%
mul-1-neg56.1%
unsub-neg56.1%
associate-/l*71.6%
associate-/r/73.8%
Simplified73.8%
Final simplification81.2%
(FPCore (x y z t a)
:precision binary64
(if (<= a -3e+98)
(+ x (/ y (/ a (- t x))))
(if (<= a -7e+49)
(+ t (/ a (/ (- z) x)))
(if (or (<= a -6.6e-28) (not (<= a 3e-30)))
(+ x (* (- t x) (/ y a)))
(+ t (/ (* y (- x t)) z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3e+98) {
tmp = x + (y / (a / (t - x)));
} else if (a <= -7e+49) {
tmp = t + (a / (-z / x));
} else if ((a <= -6.6e-28) || !(a <= 3e-30)) {
tmp = x + ((t - x) * (y / a));
} else {
tmp = t + ((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) :: tmp
if (a <= (-3d+98)) then
tmp = x + (y / (a / (t - x)))
else if (a <= (-7d+49)) then
tmp = t + (a / (-z / x))
else if ((a <= (-6.6d-28)) .or. (.not. (a <= 3d-30))) then
tmp = x + ((t - x) * (y / a))
else
tmp = t + ((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 tmp;
if (a <= -3e+98) {
tmp = x + (y / (a / (t - x)));
} else if (a <= -7e+49) {
tmp = t + (a / (-z / x));
} else if ((a <= -6.6e-28) || !(a <= 3e-30)) {
tmp = x + ((t - x) * (y / a));
} else {
tmp = t + ((y * (x - t)) / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3e+98: tmp = x + (y / (a / (t - x))) elif a <= -7e+49: tmp = t + (a / (-z / x)) elif (a <= -6.6e-28) or not (a <= 3e-30): tmp = x + ((t - x) * (y / a)) else: tmp = t + ((y * (x - t)) / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3e+98) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); elseif (a <= -7e+49) tmp = Float64(t + Float64(a / Float64(Float64(-z) / x))); elseif ((a <= -6.6e-28) || !(a <= 3e-30)) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); else tmp = Float64(t + Float64(Float64(y * Float64(x - t)) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3e+98) tmp = x + (y / (a / (t - x))); elseif (a <= -7e+49) tmp = t + (a / (-z / x)); elseif ((a <= -6.6e-28) || ~((a <= 3e-30))) tmp = x + ((t - x) * (y / a)); else tmp = t + ((y * (x - t)) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3e+98], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7e+49], N[(t + N[(a / N[((-z) / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, -6.6e-28], N[Not[LessEqual[a, 3e-30]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3 \cdot 10^{+98}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{elif}\;a \leq -7 \cdot 10^{+49}:\\
\;\;\;\;t + \frac{a}{\frac{-z}{x}}\\
\mathbf{elif}\;a \leq -6.6 \cdot 10^{-28} \lor \neg \left(a \leq 3 \cdot 10^{-30}\right):\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{y \cdot \left(x - t\right)}{z}\\
\end{array}
\end{array}
if a < -3.0000000000000001e98Initial program 92.8%
Taylor expanded in z around 0 67.9%
associate-/l*74.8%
Simplified74.8%
if -3.0000000000000001e98 < a < -6.9999999999999995e49Initial program 61.0%
Taylor expanded in z around inf 51.8%
associate--l+51.8%
distribute-lft-out--51.8%
div-sub52.9%
mul-1-neg52.9%
unsub-neg52.9%
distribute-rgt-out--52.9%
associate-/l*72.5%
Simplified72.5%
Taylor expanded in y around 0 51.8%
sub-neg51.8%
mul-1-neg51.8%
remove-double-neg51.8%
associate-/l*71.4%
Simplified71.4%
Taylor expanded in t around 0 71.9%
associate-*r/71.9%
neg-mul-171.9%
Simplified71.9%
if -6.9999999999999995e49 < a < -6.6000000000000003e-28 or 2.9999999999999999e-30 < a Initial program 87.8%
Taylor expanded in z around 0 67.9%
associate-/l*71.9%
associate-/r/73.5%
Simplified73.5%
if -6.6000000000000003e-28 < a < 2.9999999999999999e-30Initial program 68.1%
Taylor expanded in z around inf 79.2%
associate--l+79.2%
distribute-lft-out--79.2%
div-sub80.9%
mul-1-neg80.9%
unsub-neg80.9%
distribute-rgt-out--80.9%
associate-/l*88.1%
Simplified88.1%
Taylor expanded in y around inf 75.4%
Final simplification74.5%
(FPCore (x y z t a)
:precision binary64
(if (<= a -4.8e+140)
(+ x (/ y (/ a (- t x))))
(if (<= a -1.2e+45)
(/ t (/ (- a z) (- y z)))
(if (or (<= a -1.2e-27) (not (<= a 4.2e-30)))
(+ x (* (- t x) (/ y a)))
(+ t (/ (* y (- x t)) z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.8e+140) {
tmp = x + (y / (a / (t - x)));
} else if (a <= -1.2e+45) {
tmp = t / ((a - z) / (y - z));
} else if ((a <= -1.2e-27) || !(a <= 4.2e-30)) {
tmp = x + ((t - x) * (y / a));
} else {
tmp = t + ((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) :: tmp
if (a <= (-4.8d+140)) then
tmp = x + (y / (a / (t - x)))
else if (a <= (-1.2d+45)) then
tmp = t / ((a - z) / (y - z))
else if ((a <= (-1.2d-27)) .or. (.not. (a <= 4.2d-30))) then
tmp = x + ((t - x) * (y / a))
else
tmp = t + ((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 tmp;
if (a <= -4.8e+140) {
tmp = x + (y / (a / (t - x)));
} else if (a <= -1.2e+45) {
tmp = t / ((a - z) / (y - z));
} else if ((a <= -1.2e-27) || !(a <= 4.2e-30)) {
tmp = x + ((t - x) * (y / a));
} else {
tmp = t + ((y * (x - t)) / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.8e+140: tmp = x + (y / (a / (t - x))) elif a <= -1.2e+45: tmp = t / ((a - z) / (y - z)) elif (a <= -1.2e-27) or not (a <= 4.2e-30): tmp = x + ((t - x) * (y / a)) else: tmp = t + ((y * (x - t)) / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.8e+140) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); elseif (a <= -1.2e+45) tmp = Float64(t / Float64(Float64(a - z) / Float64(y - z))); elseif ((a <= -1.2e-27) || !(a <= 4.2e-30)) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); else tmp = Float64(t + Float64(Float64(y * Float64(x - t)) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4.8e+140) tmp = x + (y / (a / (t - x))); elseif (a <= -1.2e+45) tmp = t / ((a - z) / (y - z)); elseif ((a <= -1.2e-27) || ~((a <= 4.2e-30))) tmp = x + ((t - x) * (y / a)); else tmp = t + ((y * (x - t)) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.8e+140], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.2e+45], N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, -1.2e-27], N[Not[LessEqual[a, 4.2e-30]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.8 \cdot 10^{+140}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{elif}\;a \leq -1.2 \cdot 10^{+45}:\\
\;\;\;\;\frac{t}{\frac{a - z}{y - z}}\\
\mathbf{elif}\;a \leq -1.2 \cdot 10^{-27} \lor \neg \left(a \leq 4.2 \cdot 10^{-30}\right):\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{y \cdot \left(x - t\right)}{z}\\
\end{array}
\end{array}
if a < -4.7999999999999999e140Initial program 91.9%
Taylor expanded in z around 0 71.2%
associate-/l*79.1%
Simplified79.1%
if -4.7999999999999999e140 < a < -1.19999999999999995e45Initial program 71.6%
Taylor expanded in x around 0 43.6%
associate-/l*70.8%
Simplified70.8%
if -1.19999999999999995e45 < a < -1.20000000000000001e-27 or 4.2000000000000004e-30 < a Initial program 88.6%
Taylor expanded in z around 0 68.2%
associate-/l*72.3%
associate-/r/73.9%
Simplified73.9%
if -1.20000000000000001e-27 < a < 4.2000000000000004e-30Initial program 68.1%
Taylor expanded in z around inf 79.2%
associate--l+79.2%
distribute-lft-out--79.2%
div-sub80.9%
mul-1-neg80.9%
unsub-neg80.9%
distribute-rgt-out--80.9%
associate-/l*88.1%
Simplified88.1%
Taylor expanded in y around inf 75.4%
Final simplification75.2%
(FPCore (x y z t a)
:precision binary64
(if (or (<= a -3e+78)
(and (not (<= a -9.2e+45))
(or (<= a -1.28e-20) (not (<= a 4.5e-30)))))
(* 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 ((a <= -3e+78) || (!(a <= -9.2e+45) && ((a <= -1.28e-20) || !(a <= 4.5e-30)))) {
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 ((a <= (-3d+78)) .or. (.not. (a <= (-9.2d+45))) .and. (a <= (-1.28d-20)) .or. (.not. (a <= 4.5d-30))) 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 ((a <= -3e+78) || (!(a <= -9.2e+45) && ((a <= -1.28e-20) || !(a <= 4.5e-30)))) {
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 (a <= -3e+78) or (not (a <= -9.2e+45) and ((a <= -1.28e-20) or not (a <= 4.5e-30))): 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 ((a <= -3e+78) || (!(a <= -9.2e+45) && ((a <= -1.28e-20) || !(a <= 4.5e-30)))) 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 ((a <= -3e+78) || (~((a <= -9.2e+45)) && ((a <= -1.28e-20) || ~((a <= 4.5e-30))))) 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[Or[LessEqual[a, -3e+78], And[N[Not[LessEqual[a, -9.2e+45]], $MachinePrecision], Or[LessEqual[a, -1.28e-20], N[Not[LessEqual[a, 4.5e-30]], $MachinePrecision]]]], 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}\;a \leq -3 \cdot 10^{+78} \lor \neg \left(a \leq -9.2 \cdot 10^{+45}\right) \land \left(a \leq -1.28 \cdot 10^{-20} \lor \neg \left(a \leq 4.5 \cdot 10^{-30}\right)\right):\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\end{array}
\end{array}
if a < -2.99999999999999982e78 or -9.20000000000000049e45 < a < -1.2800000000000001e-20 or 4.49999999999999967e-30 < a Initial program 88.7%
Taylor expanded in z around 0 66.7%
associate-/l*71.7%
Simplified71.7%
Taylor expanded in x around inf 61.2%
mul-1-neg61.2%
unsub-neg61.2%
Simplified61.2%
if -2.99999999999999982e78 < a < -9.20000000000000049e45 or -1.2800000000000001e-20 < a < 4.49999999999999967e-30Initial program 68.1%
Taylor expanded in z around inf 77.6%
associate--l+77.6%
distribute-lft-out--77.6%
div-sub79.3%
mul-1-neg79.3%
unsub-neg79.3%
distribute-rgt-out--79.3%
associate-/l*86.7%
Simplified86.7%
Taylor expanded in y around inf 73.5%
Taylor expanded in t around inf 62.8%
Final simplification62.0%
(FPCore (x y z t a)
:precision binary64
(if (<= a -4.1e+139)
(* x (- 1.0 (/ y a)))
(if (<= a -2.6e+48)
(+ t (/ a (/ (- z) x)))
(if (<= a -3.8e-27)
(* y (/ (- t x) a))
(if (<= a 2.35e-24) (* t (- 1.0 (/ y z))) (+ x (/ t (/ a y))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.1e+139) {
tmp = x * (1.0 - (y / a));
} else if (a <= -2.6e+48) {
tmp = t + (a / (-z / x));
} else if (a <= -3.8e-27) {
tmp = y * ((t - x) / a);
} else if (a <= 2.35e-24) {
tmp = t * (1.0 - (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 (a <= (-4.1d+139)) then
tmp = x * (1.0d0 - (y / a))
else if (a <= (-2.6d+48)) then
tmp = t + (a / (-z / x))
else if (a <= (-3.8d-27)) then
tmp = y * ((t - x) / a)
else if (a <= 2.35d-24) then
tmp = t * (1.0d0 - (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 (a <= -4.1e+139) {
tmp = x * (1.0 - (y / a));
} else if (a <= -2.6e+48) {
tmp = t + (a / (-z / x));
} else if (a <= -3.8e-27) {
tmp = y * ((t - x) / a);
} else if (a <= 2.35e-24) {
tmp = t * (1.0 - (y / z));
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.1e+139: tmp = x * (1.0 - (y / a)) elif a <= -2.6e+48: tmp = t + (a / (-z / x)) elif a <= -3.8e-27: tmp = y * ((t - x) / a) elif a <= 2.35e-24: tmp = t * (1.0 - (y / z)) else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.1e+139) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (a <= -2.6e+48) tmp = Float64(t + Float64(a / Float64(Float64(-z) / x))); elseif (a <= -3.8e-27) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (a <= 2.35e-24) tmp = Float64(t * Float64(1.0 - 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 (a <= -4.1e+139) tmp = x * (1.0 - (y / a)); elseif (a <= -2.6e+48) tmp = t + (a / (-z / x)); elseif (a <= -3.8e-27) tmp = y * ((t - x) / a); elseif (a <= 2.35e-24) tmp = t * (1.0 - (y / z)); else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.1e+139], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.6e+48], N[(t + N[(a / N[((-z) / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.8e-27], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.35e-24], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.1 \cdot 10^{+139}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;a \leq -2.6 \cdot 10^{+48}:\\
\;\;\;\;t + \frac{a}{\frac{-z}{x}}\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-27}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;a \leq 2.35 \cdot 10^{-24}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if a < -4.1000000000000002e139Initial program 92.1%
Taylor expanded in z around 0 69.5%
associate-/l*77.3%
Simplified77.3%
Taylor expanded in x around inf 70.2%
mul-1-neg70.2%
unsub-neg70.2%
Simplified70.2%
if -4.1000000000000002e139 < a < -2.59999999999999995e48Initial program 72.1%
Taylor expanded in z around inf 37.2%
associate--l+37.2%
distribute-lft-out--37.2%
div-sub38.0%
mul-1-neg38.0%
unsub-neg38.0%
distribute-rgt-out--38.0%
associate-/l*59.1%
Simplified59.1%
Taylor expanded in y around 0 37.2%
sub-neg37.2%
mul-1-neg37.2%
remove-double-neg37.2%
associate-/l*58.3%
Simplified58.3%
Taylor expanded in t around 0 63.7%
associate-*r/63.7%
neg-mul-163.7%
Simplified63.7%
if -2.59999999999999995e48 < a < -3.8e-27Initial program 95.1%
Taylor expanded in y around inf 60.0%
div-sub60.0%
associate-*r/55.3%
associate-/l*59.9%
associate-/r/59.8%
Simplified59.8%
Taylor expanded in a around inf 55.7%
associate-*r/60.4%
Simplified60.4%
if -3.8e-27 < a < 2.34999999999999996e-24Initial program 68.4%
Taylor expanded in z around inf 78.6%
associate--l+78.6%
distribute-lft-out--78.6%
div-sub80.2%
mul-1-neg80.2%
unsub-neg80.2%
distribute-rgt-out--80.2%
associate-/l*87.3%
Simplified87.3%
Taylor expanded in y around inf 74.8%
Taylor expanded in t around inf 63.5%
if 2.34999999999999996e-24 < a Initial program 85.5%
Taylor expanded in z around 0 66.6%
associate-/l*70.4%
Simplified70.4%
Taylor expanded in t around inf 68.1%
associate-/l*68.1%
Simplified68.1%
Final simplification65.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= a -4.6e+146)
t_1
(if (<= a -2.7e-31)
(* y (/ (- t x) a))
(if (<= a 4e-30) (* t (- 1.0 (/ y z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (a <= -4.6e+146) {
tmp = t_1;
} else if (a <= -2.7e-31) {
tmp = y * ((t - x) / a);
} else if (a <= 4e-30) {
tmp = t * (1.0 - (y / 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 * (1.0d0 - (y / a))
if (a <= (-4.6d+146)) then
tmp = t_1
else if (a <= (-2.7d-31)) then
tmp = y * ((t - x) / a)
else if (a <= 4d-30) then
tmp = t * (1.0d0 - (y / 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 * (1.0 - (y / a));
double tmp;
if (a <= -4.6e+146) {
tmp = t_1;
} else if (a <= -2.7e-31) {
tmp = y * ((t - x) / a);
} else if (a <= 4e-30) {
tmp = t * (1.0 - (y / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if a <= -4.6e+146: tmp = t_1 elif a <= -2.7e-31: tmp = y * ((t - x) / a) elif a <= 4e-30: tmp = t * (1.0 - (y / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (a <= -4.6e+146) tmp = t_1; elseif (a <= -2.7e-31) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (a <= 4e-30) tmp = Float64(t * Float64(1.0 - Float64(y / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (a <= -4.6e+146) tmp = t_1; elseif (a <= -2.7e-31) tmp = y * ((t - x) / a); elseif (a <= 4e-30) tmp = t * (1.0 - (y / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.6e+146], t$95$1, If[LessEqual[a, -2.7e-31], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4e-30], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;a \leq -4.6 \cdot 10^{+146}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2.7 \cdot 10^{-31}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;a \leq 4 \cdot 10^{-30}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -4.60000000000000001e146 or 4e-30 < a Initial program 87.6%
Taylor expanded in z around 0 67.9%
associate-/l*73.3%
Simplified73.3%
Taylor expanded in x around inf 65.9%
mul-1-neg65.9%
unsub-neg65.9%
Simplified65.9%
if -4.60000000000000001e146 < a < -2.70000000000000014e-31Initial program 86.5%
Taylor expanded in y around inf 46.3%
div-sub46.3%
associate-*r/41.3%
associate-/l*46.2%
associate-/r/46.2%
Simplified46.2%
Taylor expanded in a around inf 41.7%
associate-*r/46.7%
Simplified46.7%
if -2.70000000000000014e-31 < a < 4e-30Initial program 68.1%
Taylor expanded in z around inf 79.2%
associate--l+79.2%
distribute-lft-out--79.2%
div-sub80.9%
mul-1-neg80.9%
unsub-neg80.9%
distribute-rgt-out--80.9%
associate-/l*88.1%
Simplified88.1%
Taylor expanded in y around inf 75.4%
Taylor expanded in t around inf 63.2%
Final simplification61.9%
(FPCore (x y z t a)
:precision binary64
(if (<= a -4.2e+146)
(* x (- 1.0 (/ y a)))
(if (<= a -8.5e-27)
(* y (/ (- t x) a))
(if (<= a 2.6e-25) (* t (- 1.0 (/ y z))) (+ x (/ t (/ a y)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.2e+146) {
tmp = x * (1.0 - (y / a));
} else if (a <= -8.5e-27) {
tmp = y * ((t - x) / a);
} else if (a <= 2.6e-25) {
tmp = t * (1.0 - (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 (a <= (-4.2d+146)) then
tmp = x * (1.0d0 - (y / a))
else if (a <= (-8.5d-27)) then
tmp = y * ((t - x) / a)
else if (a <= 2.6d-25) then
tmp = t * (1.0d0 - (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 (a <= -4.2e+146) {
tmp = x * (1.0 - (y / a));
} else if (a <= -8.5e-27) {
tmp = y * ((t - x) / a);
} else if (a <= 2.6e-25) {
tmp = t * (1.0 - (y / z));
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.2e+146: tmp = x * (1.0 - (y / a)) elif a <= -8.5e-27: tmp = y * ((t - x) / a) elif a <= 2.6e-25: tmp = t * (1.0 - (y / z)) else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.2e+146) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (a <= -8.5e-27) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (a <= 2.6e-25) tmp = Float64(t * Float64(1.0 - 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 (a <= -4.2e+146) tmp = x * (1.0 - (y / a)); elseif (a <= -8.5e-27) tmp = y * ((t - x) / a); elseif (a <= 2.6e-25) tmp = t * (1.0 - (y / z)); else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.2e+146], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8.5e-27], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.6e-25], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.2 \cdot 10^{+146}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;a \leq -8.5 \cdot 10^{-27}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-25}:\\
\;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if a < -4.2000000000000001e146Initial program 91.4%
Taylor expanded in z around 0 69.5%
associate-/l*77.9%
Simplified77.9%
Taylor expanded in x around inf 73.1%
mul-1-neg73.1%
unsub-neg73.1%
Simplified73.1%
if -4.2000000000000001e146 < a < -8.50000000000000033e-27Initial program 86.5%
Taylor expanded in y around inf 46.3%
div-sub46.3%
associate-*r/41.3%
associate-/l*46.2%
associate-/r/46.2%
Simplified46.2%
Taylor expanded in a around inf 41.7%
associate-*r/46.7%
Simplified46.7%
if -8.50000000000000033e-27 < a < 2.6e-25Initial program 68.4%
Taylor expanded in z around inf 78.6%
associate--l+78.6%
distribute-lft-out--78.6%
div-sub80.2%
mul-1-neg80.2%
unsub-neg80.2%
distribute-rgt-out--80.2%
associate-/l*87.3%
Simplified87.3%
Taylor expanded in y around inf 74.8%
Taylor expanded in t around inf 63.5%
if 2.6e-25 < a Initial program 85.5%
Taylor expanded in z around 0 66.6%
associate-/l*70.4%
Simplified70.4%
Taylor expanded in t around inf 68.1%
associate-/l*68.1%
Simplified68.1%
Final simplification63.6%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.85e+37)
t
(if (<= z 7.5e-266)
x
(if (<= z 3.5e-149) (* t (/ y a)) (if (<= z 5e+14) x t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.85e+37) {
tmp = t;
} else if (z <= 7.5e-266) {
tmp = x;
} else if (z <= 3.5e-149) {
tmp = t * (y / a);
} else if (z <= 5e+14) {
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.85d+37)) then
tmp = t
else if (z <= 7.5d-266) then
tmp = x
else if (z <= 3.5d-149) then
tmp = t * (y / a)
else if (z <= 5d+14) 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.85e+37) {
tmp = t;
} else if (z <= 7.5e-266) {
tmp = x;
} else if (z <= 3.5e-149) {
tmp = t * (y / a);
} else if (z <= 5e+14) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.85e+37: tmp = t elif z <= 7.5e-266: tmp = x elif z <= 3.5e-149: tmp = t * (y / a) elif z <= 5e+14: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.85e+37) tmp = t; elseif (z <= 7.5e-266) tmp = x; elseif (z <= 3.5e-149) tmp = Float64(t * Float64(y / a)); elseif (z <= 5e+14) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.85e+37) tmp = t; elseif (z <= 7.5e-266) tmp = x; elseif (z <= 3.5e-149) tmp = t * (y / a); elseif (z <= 5e+14) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.85e+37], t, If[LessEqual[z, 7.5e-266], x, If[LessEqual[z, 3.5e-149], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e+14], x, t]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.85 \cdot 10^{+37}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{-266}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{-149}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 5 \cdot 10^{+14}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.85e37 or 5e14 < z Initial program 63.0%
Taylor expanded in z around inf 49.3%
if -1.85e37 < z < 7.4999999999999995e-266 or 3.5e-149 < z < 5e14Initial program 90.4%
Taylor expanded in a around inf 40.0%
if 7.4999999999999995e-266 < z < 3.5e-149Initial program 96.1%
Taylor expanded in y around inf 76.8%
div-sub80.7%
associate-*r/77.3%
associate-/l*80.6%
associate-/r/80.5%
Simplified80.5%
Taylor expanded in t around inf 59.9%
associate-*r/64.8%
Simplified64.8%
Taylor expanded in a around inf 53.2%
Final simplification45.6%
(FPCore (x y z t a)
:precision binary64
(if (<= z -4.2e+36)
t
(if (<= z 2e-266)
x
(if (<= z 2.25e-146) (/ t (/ a y)) (if (<= z 2500000000000.0) x t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.2e+36) {
tmp = t;
} else if (z <= 2e-266) {
tmp = x;
} else if (z <= 2.25e-146) {
tmp = t / (a / y);
} else if (z <= 2500000000000.0) {
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 <= (-4.2d+36)) then
tmp = t
else if (z <= 2d-266) then
tmp = x
else if (z <= 2.25d-146) then
tmp = t / (a / y)
else if (z <= 2500000000000.0d0) 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 <= -4.2e+36) {
tmp = t;
} else if (z <= 2e-266) {
tmp = x;
} else if (z <= 2.25e-146) {
tmp = t / (a / y);
} else if (z <= 2500000000000.0) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -4.2e+36: tmp = t elif z <= 2e-266: tmp = x elif z <= 2.25e-146: tmp = t / (a / y) elif z <= 2500000000000.0: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.2e+36) tmp = t; elseif (z <= 2e-266) tmp = x; elseif (z <= 2.25e-146) tmp = Float64(t / Float64(a / y)); elseif (z <= 2500000000000.0) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -4.2e+36) tmp = t; elseif (z <= 2e-266) tmp = x; elseif (z <= 2.25e-146) tmp = t / (a / y); elseif (z <= 2500000000000.0) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.2e+36], t, If[LessEqual[z, 2e-266], x, If[LessEqual[z, 2.25e-146], N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2500000000000.0], x, t]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.2 \cdot 10^{+36}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-266}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 2.25 \cdot 10^{-146}:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 2500000000000:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -4.20000000000000009e36 or 2.5e12 < z Initial program 63.0%
Taylor expanded in z around inf 49.3%
if -4.20000000000000009e36 < z < 2e-266 or 2.25e-146 < z < 2.5e12Initial program 90.4%
Taylor expanded in a around inf 40.0%
if 2e-266 < z < 2.25e-146Initial program 96.1%
Taylor expanded in y around inf 76.8%
div-sub80.7%
associate-*r/77.3%
associate-/l*80.6%
associate-/r/80.5%
Simplified80.5%
Taylor expanded in t around inf 59.9%
associate-*r/64.8%
Simplified64.8%
Taylor expanded in a around inf 48.3%
associate-/l*53.5%
Simplified53.5%
Final simplification45.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -8e-66) (not (<= t 5.5e-62))) (* (- y z) (/ t (- a z))) (- x (* x (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -8e-66) || !(t <= 5.5e-62)) {
tmp = (y - z) * (t / (a - z));
} else {
tmp = x - (x * (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 ((t <= (-8d-66)) .or. (.not. (t <= 5.5d-62))) then
tmp = (y - z) * (t / (a - z))
else
tmp = x - (x * (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 ((t <= -8e-66) || !(t <= 5.5e-62)) {
tmp = (y - z) * (t / (a - z));
} else {
tmp = x - (x * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -8e-66) or not (t <= 5.5e-62): tmp = (y - z) * (t / (a - z)) else: tmp = x - (x * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -8e-66) || !(t <= 5.5e-62)) tmp = Float64(Float64(y - z) * Float64(t / Float64(a - z))); else tmp = Float64(x - Float64(x * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -8e-66) || ~((t <= 5.5e-62))) tmp = (y - z) * (t / (a - z)); else tmp = x - (x * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -8e-66], N[Not[LessEqual[t, 5.5e-62]], $MachinePrecision]], N[(N[(y - z), $MachinePrecision] * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8 \cdot 10^{-66} \lor \neg \left(t \leq 5.5 \cdot 10^{-62}\right):\\
\;\;\;\;\left(y - z\right) \cdot \frac{t}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x - x \cdot \frac{y}{a}\\
\end{array}
\end{array}
if t < -7.9999999999999998e-66 or 5.50000000000000022e-62 < t Initial program 81.3%
Taylor expanded in x around 0 50.9%
associate-/l*70.2%
associate-/r/67.7%
Simplified67.7%
if -7.9999999999999998e-66 < t < 5.50000000000000022e-62Initial program 73.7%
Taylor expanded in z around 0 56.1%
associate-/l*59.7%
Simplified59.7%
Taylor expanded in t around 0 50.9%
mul-1-neg50.9%
distribute-neg-frac50.9%
distribute-lft-neg-out50.9%
associate-*r/55.2%
distribute-lft-neg-out55.2%
distribute-rgt-neg-in55.2%
mul-1-neg55.2%
metadata-eval55.2%
times-frac55.2%
*-lft-identity55.2%
neg-mul-155.2%
Simplified55.2%
*-commutative55.2%
frac-2neg55.2%
remove-double-neg55.2%
distribute-frac-neg55.2%
add-sqr-sqrt29.4%
sqrt-unprod45.5%
sqr-neg45.5%
sqrt-unprod18.9%
add-sqr-sqrt43.2%
cancel-sign-sub-inv43.2%
*-commutative43.2%
add-sqr-sqrt18.9%
sqrt-unprod45.5%
sqr-neg45.5%
sqrt-unprod29.4%
add-sqr-sqrt55.2%
Applied egg-rr55.2%
Final simplification62.8%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.9e+37) t (if (<= z 1400000.0) x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.9e+37) {
tmp = t;
} else if (z <= 1400000.0) {
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 <= (-2.9d+37)) then
tmp = t
else if (z <= 1400000.0d0) 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 <= -2.9e+37) {
tmp = t;
} else if (z <= 1400000.0) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.9e+37: tmp = t elif z <= 1400000.0: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.9e+37) tmp = t; elseif (z <= 1400000.0) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.9e+37) tmp = t; elseif (z <= 1400000.0) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.9e+37], t, If[LessEqual[z, 1400000.0], x, t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.9 \cdot 10^{+37}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 1400000:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -2.89999999999999978e37 or 1.4e6 < z Initial program 63.0%
Taylor expanded in z around inf 49.3%
if -2.89999999999999978e37 < z < 1.4e6Initial program 91.4%
Taylor expanded in a around inf 36.0%
Final simplification42.1%
(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 78.3%
Taylor expanded in z around inf 26.7%
Final simplification26.7%
herbie shell --seed 2024024
(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)))))