
(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 21 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 -1e-296)
t_2
(if (<= t_2 1e-284)
(+ 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 <= -1e-296) {
tmp = t_2;
} else if (t_2 <= 1e-284) {
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 <= -1e-296) tmp = t_2; elseif (t_2 <= 1e-284) 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, -1e-296], t$95$2, If[LessEqual[t$95$2, 1e-284], 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 -1 \cdot 10^{-296}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 10^{-284}:\\
\;\;\;\;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)))) < -1e-296Initial program 89.5%
if -1e-296 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1.00000000000000004e-284Initial program 3.6%
Taylor expanded in z around inf 85.8%
associate--l+85.8%
distribute-lft-out--85.8%
div-sub85.8%
mul-1-neg85.8%
unsub-neg85.8%
distribute-rgt-out--85.8%
associate-/l*97.2%
Simplified97.2%
if 1.00000000000000004e-284 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 91.4%
+-commutative91.4%
fma-def91.4%
Simplified91.4%
Final simplification91.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (- t x) (/ y (- a z)))) (t_2 (* t (/ (- z) (- a z)))))
(if (<= z -1.75e+114)
t_2
(if (<= z -1.6e+59)
t_1
(if (<= z -1.85e-44)
(/ (* t (- z y)) z)
(if (<= z -4.1e-143)
t_1
(if (<= z -4.1e-238)
(+ x (* t (/ y a)))
(if (<= z 3.6e-301)
(- x (/ x (/ a y)))
(if (<= z 2.05e-57)
(+ x (/ (* y t) a))
(if (<= z 5.5e+149) t_1 t_2))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (t - x) * (y / (a - z));
double t_2 = t * (-z / (a - z));
double tmp;
if (z <= -1.75e+114) {
tmp = t_2;
} else if (z <= -1.6e+59) {
tmp = t_1;
} else if (z <= -1.85e-44) {
tmp = (t * (z - y)) / z;
} else if (z <= -4.1e-143) {
tmp = t_1;
} else if (z <= -4.1e-238) {
tmp = x + (t * (y / a));
} else if (z <= 3.6e-301) {
tmp = x - (x / (a / y));
} else if (z <= 2.05e-57) {
tmp = x + ((y * t) / a);
} else if (z <= 5.5e+149) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (t - x) * (y / (a - z))
t_2 = t * (-z / (a - z))
if (z <= (-1.75d+114)) then
tmp = t_2
else if (z <= (-1.6d+59)) then
tmp = t_1
else if (z <= (-1.85d-44)) then
tmp = (t * (z - y)) / z
else if (z <= (-4.1d-143)) then
tmp = t_1
else if (z <= (-4.1d-238)) then
tmp = x + (t * (y / a))
else if (z <= 3.6d-301) then
tmp = x - (x / (a / y))
else if (z <= 2.05d-57) then
tmp = x + ((y * t) / a)
else if (z <= 5.5d+149) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (t - x) * (y / (a - z));
double t_2 = t * (-z / (a - z));
double tmp;
if (z <= -1.75e+114) {
tmp = t_2;
} else if (z <= -1.6e+59) {
tmp = t_1;
} else if (z <= -1.85e-44) {
tmp = (t * (z - y)) / z;
} else if (z <= -4.1e-143) {
tmp = t_1;
} else if (z <= -4.1e-238) {
tmp = x + (t * (y / a));
} else if (z <= 3.6e-301) {
tmp = x - (x / (a / y));
} else if (z <= 2.05e-57) {
tmp = x + ((y * t) / a);
} else if (z <= 5.5e+149) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (t - x) * (y / (a - z)) t_2 = t * (-z / (a - z)) tmp = 0 if z <= -1.75e+114: tmp = t_2 elif z <= -1.6e+59: tmp = t_1 elif z <= -1.85e-44: tmp = (t * (z - y)) / z elif z <= -4.1e-143: tmp = t_1 elif z <= -4.1e-238: tmp = x + (t * (y / a)) elif z <= 3.6e-301: tmp = x - (x / (a / y)) elif z <= 2.05e-57: tmp = x + ((y * t) / a) elif z <= 5.5e+149: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(t - x) * Float64(y / Float64(a - z))) t_2 = Float64(t * Float64(Float64(-z) / Float64(a - z))) tmp = 0.0 if (z <= -1.75e+114) tmp = t_2; elseif (z <= -1.6e+59) tmp = t_1; elseif (z <= -1.85e-44) tmp = Float64(Float64(t * Float64(z - y)) / z); elseif (z <= -4.1e-143) tmp = t_1; elseif (z <= -4.1e-238) tmp = Float64(x + Float64(t * Float64(y / a))); elseif (z <= 3.6e-301) tmp = Float64(x - Float64(x / Float64(a / y))); elseif (z <= 2.05e-57) tmp = Float64(x + Float64(Float64(y * t) / a)); elseif (z <= 5.5e+149) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (t - x) * (y / (a - z)); t_2 = t * (-z / (a - z)); tmp = 0.0; if (z <= -1.75e+114) tmp = t_2; elseif (z <= -1.6e+59) tmp = t_1; elseif (z <= -1.85e-44) tmp = (t * (z - y)) / z; elseif (z <= -4.1e-143) tmp = t_1; elseif (z <= -4.1e-238) tmp = x + (t * (y / a)); elseif (z <= 3.6e-301) tmp = x - (x / (a / y)); elseif (z <= 2.05e-57) tmp = x + ((y * t) / a); elseif (z <= 5.5e+149) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[((-z) / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.75e+114], t$95$2, If[LessEqual[z, -1.6e+59], t$95$1, If[LessEqual[z, -1.85e-44], N[(N[(t * N[(z - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, -4.1e-143], t$95$1, If[LessEqual[z, -4.1e-238], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.6e-301], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.05e-57], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.5e+149], t$95$1, t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t - x\right) \cdot \frac{y}{a - z}\\
t_2 := t \cdot \frac{-z}{a - z}\\
\mathbf{if}\;z \leq -1.75 \cdot 10^{+114}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.6 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.85 \cdot 10^{-44}:\\
\;\;\;\;\frac{t \cdot \left(z - y\right)}{z}\\
\mathbf{elif}\;z \leq -4.1 \cdot 10^{-143}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -4.1 \cdot 10^{-238}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{-301}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{-57}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{+149}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -1.75e114 or 5.49999999999999999e149 < z Initial program 62.4%
Taylor expanded in x around 0 39.6%
Taylor expanded in y around 0 38.0%
mul-1-neg38.0%
associate-*r/66.6%
distribute-rgt-neg-in66.6%
distribute-neg-frac66.6%
Simplified66.6%
if -1.75e114 < z < -1.59999999999999991e59 or -1.85e-44 < z < -4.1e-143 or 2.0500000000000001e-57 < z < 5.49999999999999999e149Initial program 81.3%
Taylor expanded in y around inf 56.7%
div-sub56.7%
associate-*r/59.5%
associate-/l*56.6%
associate-/r/60.9%
Simplified60.9%
if -1.59999999999999991e59 < z < -1.85e-44Initial program 73.8%
Taylor expanded in x around 0 51.7%
Taylor expanded in a around 0 52.1%
associate-*r/52.1%
neg-mul-152.1%
*-commutative52.1%
distribute-rgt-neg-out52.1%
Simplified52.1%
if -4.1e-143 < z < -4.1000000000000001e-238Initial program 96.4%
Taylor expanded in z around 0 79.0%
associate-/l*93.0%
associate-/r/92.7%
Simplified92.7%
Taylor expanded in t around inf 79.2%
associate-*r/89.2%
Simplified89.2%
if -4.1000000000000001e-238 < z < 3.60000000000000007e-301Initial program 100.0%
Taylor expanded in z around 0 86.6%
associate-/l*99.9%
associate-/r/93.0%
Simplified93.0%
Taylor expanded in t around 0 86.6%
mul-1-neg86.6%
associate-/l*93.1%
Simplified93.1%
if 3.60000000000000007e-301 < z < 2.0500000000000001e-57Initial program 86.6%
Taylor expanded in z around 0 81.1%
associate-/l*78.3%
associate-/r/81.0%
Simplified81.0%
Taylor expanded in t around inf 73.1%
Final simplification69.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -1e-296) (not (<= t_1 1e-284)))
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 <= -1e-296) || !(t_1 <= 1e-284)) {
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 <= (-1d-296)) .or. (.not. (t_1 <= 1d-284))) 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 <= -1e-296) || !(t_1 <= 1e-284)) {
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 <= -1e-296) or not (t_1 <= 1e-284): 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 <= -1e-296) || !(t_1 <= 1e-284)) 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 <= -1e-296) || ~((t_1 <= 1e-284))) 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, -1e-296], N[Not[LessEqual[t$95$1, 1e-284]], $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 -1 \cdot 10^{-296} \lor \neg \left(t\_1 \leq 10^{-284}\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)))) < -1e-296 or 1.00000000000000004e-284 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 90.4%
if -1e-296 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1.00000000000000004e-284Initial program 3.6%
Taylor expanded in z around inf 85.8%
associate--l+85.8%
distribute-lft-out--85.8%
div-sub85.8%
mul-1-neg85.8%
unsub-neg85.8%
distribute-rgt-out--85.8%
associate-/l*97.2%
Simplified97.2%
Final simplification91.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (- y) (/ z (- t x)))) (t_2 (+ x (* t (/ y a)))))
(if (<= z -2.7e+14)
t
(if (<= z -6.5e-238)
t_2
(if (<= z 4.4e-306)
(* x (- 1.0 (/ y a)))
(if (<= z 2.05e-79)
(+ x (/ (* y t) a))
(if (<= z 1.15e-31)
t_1
(if (<= z 4.7e+58) t_2 (if (<= z 1.15e+138) t_1 t)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -y / (z / (t - x));
double t_2 = x + (t * (y / a));
double tmp;
if (z <= -2.7e+14) {
tmp = t;
} else if (z <= -6.5e-238) {
tmp = t_2;
} else if (z <= 4.4e-306) {
tmp = x * (1.0 - (y / a));
} else if (z <= 2.05e-79) {
tmp = x + ((y * t) / a);
} else if (z <= 1.15e-31) {
tmp = t_1;
} else if (z <= 4.7e+58) {
tmp = t_2;
} else if (z <= 1.15e+138) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = -y / (z / (t - x))
t_2 = x + (t * (y / a))
if (z <= (-2.7d+14)) then
tmp = t
else if (z <= (-6.5d-238)) then
tmp = t_2
else if (z <= 4.4d-306) then
tmp = x * (1.0d0 - (y / a))
else if (z <= 2.05d-79) then
tmp = x + ((y * t) / a)
else if (z <= 1.15d-31) then
tmp = t_1
else if (z <= 4.7d+58) then
tmp = t_2
else if (z <= 1.15d+138) then
tmp = t_1
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = -y / (z / (t - x));
double t_2 = x + (t * (y / a));
double tmp;
if (z <= -2.7e+14) {
tmp = t;
} else if (z <= -6.5e-238) {
tmp = t_2;
} else if (z <= 4.4e-306) {
tmp = x * (1.0 - (y / a));
} else if (z <= 2.05e-79) {
tmp = x + ((y * t) / a);
} else if (z <= 1.15e-31) {
tmp = t_1;
} else if (z <= 4.7e+58) {
tmp = t_2;
} else if (z <= 1.15e+138) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = -y / (z / (t - x)) t_2 = x + (t * (y / a)) tmp = 0 if z <= -2.7e+14: tmp = t elif z <= -6.5e-238: tmp = t_2 elif z <= 4.4e-306: tmp = x * (1.0 - (y / a)) elif z <= 2.05e-79: tmp = x + ((y * t) / a) elif z <= 1.15e-31: tmp = t_1 elif z <= 4.7e+58: tmp = t_2 elif z <= 1.15e+138: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(-y) / Float64(z / Float64(t - x))) t_2 = Float64(x + Float64(t * Float64(y / a))) tmp = 0.0 if (z <= -2.7e+14) tmp = t; elseif (z <= -6.5e-238) tmp = t_2; elseif (z <= 4.4e-306) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (z <= 2.05e-79) tmp = Float64(x + Float64(Float64(y * t) / a)); elseif (z <= 1.15e-31) tmp = t_1; elseif (z <= 4.7e+58) tmp = t_2; elseif (z <= 1.15e+138) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = -y / (z / (t - x)); t_2 = x + (t * (y / a)); tmp = 0.0; if (z <= -2.7e+14) tmp = t; elseif (z <= -6.5e-238) tmp = t_2; elseif (z <= 4.4e-306) tmp = x * (1.0 - (y / a)); elseif (z <= 2.05e-79) tmp = x + ((y * t) / a); elseif (z <= 1.15e-31) tmp = t_1; elseif (z <= 4.7e+58) tmp = t_2; elseif (z <= 1.15e+138) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[((-y) / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.7e+14], t, If[LessEqual[z, -6.5e-238], t$95$2, If[LessEqual[z, 4.4e-306], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.05e-79], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.15e-31], t$95$1, If[LessEqual[z, 4.7e+58], t$95$2, If[LessEqual[z, 1.15e+138], t$95$1, t]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{-y}{\frac{z}{t - x}}\\
t_2 := x + t \cdot \frac{y}{a}\\
\mathbf{if}\;z \leq -2.7 \cdot 10^{+14}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -6.5 \cdot 10^{-238}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 4.4 \cdot 10^{-306}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{-79}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{-31}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.7 \cdot 10^{+58}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{+138}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -2.7e14 or 1.15000000000000004e138 < z Initial program 61.7%
Taylor expanded in z around inf 55.2%
if -2.7e14 < z < -6.5000000000000006e-238 or 1.1499999999999999e-31 < z < 4.69999999999999972e58Initial program 92.2%
Taylor expanded in z around 0 62.9%
associate-/l*70.6%
associate-/r/70.4%
Simplified70.4%
Taylor expanded in t around inf 60.1%
associate-*r/63.7%
Simplified63.7%
if -6.5000000000000006e-238 < z < 4.40000000000000031e-306Initial program 100.0%
Taylor expanded in z around 0 86.6%
associate-/l*99.9%
associate-/r/93.0%
Simplified93.0%
Taylor expanded in x around inf 93.0%
mul-1-neg93.0%
unsub-neg93.0%
Simplified93.0%
if 4.40000000000000031e-306 < z < 2.04999999999999997e-79Initial program 85.8%
Taylor expanded in z around 0 81.7%
associate-/l*78.7%
associate-/r/81.7%
Simplified81.7%
Taylor expanded in t around inf 73.5%
if 2.04999999999999997e-79 < z < 1.1499999999999999e-31 or 4.69999999999999972e58 < z < 1.15000000000000004e138Initial program 78.8%
Taylor expanded in y around -inf 61.0%
Taylor expanded in a around 0 60.2%
mul-1-neg60.2%
associate-/l*64.5%
Simplified64.5%
Final simplification64.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* t (/ y a))))
(t_2 (/ (- y) (/ z (- t x))))
(t_3 (* t (/ (- z) (- a z)))))
(if (<= z -2.75e+14)
t_3
(if (<= z -2.55e-238)
t_1
(if (<= z 1.3e-306)
(* x (- 1.0 (/ y a)))
(if (<= z 2.1e-76)
(+ x (/ (* y t) a))
(if (<= z 6e-30)
t_2
(if (<= z 2.2e+58) t_1 (if (<= z 4.5e+135) t_2 t_3)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / a));
double t_2 = -y / (z / (t - x));
double t_3 = t * (-z / (a - z));
double tmp;
if (z <= -2.75e+14) {
tmp = t_3;
} else if (z <= -2.55e-238) {
tmp = t_1;
} else if (z <= 1.3e-306) {
tmp = x * (1.0 - (y / a));
} else if (z <= 2.1e-76) {
tmp = x + ((y * t) / a);
} else if (z <= 6e-30) {
tmp = t_2;
} else if (z <= 2.2e+58) {
tmp = t_1;
} else if (z <= 4.5e+135) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x + (t * (y / a))
t_2 = -y / (z / (t - x))
t_3 = t * (-z / (a - z))
if (z <= (-2.75d+14)) then
tmp = t_3
else if (z <= (-2.55d-238)) then
tmp = t_1
else if (z <= 1.3d-306) then
tmp = x * (1.0d0 - (y / a))
else if (z <= 2.1d-76) then
tmp = x + ((y * t) / a)
else if (z <= 6d-30) then
tmp = t_2
else if (z <= 2.2d+58) then
tmp = t_1
else if (z <= 4.5d+135) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / a));
double t_2 = -y / (z / (t - x));
double t_3 = t * (-z / (a - z));
double tmp;
if (z <= -2.75e+14) {
tmp = t_3;
} else if (z <= -2.55e-238) {
tmp = t_1;
} else if (z <= 1.3e-306) {
tmp = x * (1.0 - (y / a));
} else if (z <= 2.1e-76) {
tmp = x + ((y * t) / a);
} else if (z <= 6e-30) {
tmp = t_2;
} else if (z <= 2.2e+58) {
tmp = t_1;
} else if (z <= 4.5e+135) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t * (y / a)) t_2 = -y / (z / (t - x)) t_3 = t * (-z / (a - z)) tmp = 0 if z <= -2.75e+14: tmp = t_3 elif z <= -2.55e-238: tmp = t_1 elif z <= 1.3e-306: tmp = x * (1.0 - (y / a)) elif z <= 2.1e-76: tmp = x + ((y * t) / a) elif z <= 6e-30: tmp = t_2 elif z <= 2.2e+58: tmp = t_1 elif z <= 4.5e+135: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t * Float64(y / a))) t_2 = Float64(Float64(-y) / Float64(z / Float64(t - x))) t_3 = Float64(t * Float64(Float64(-z) / Float64(a - z))) tmp = 0.0 if (z <= -2.75e+14) tmp = t_3; elseif (z <= -2.55e-238) tmp = t_1; elseif (z <= 1.3e-306) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (z <= 2.1e-76) tmp = Float64(x + Float64(Float64(y * t) / a)); elseif (z <= 6e-30) tmp = t_2; elseif (z <= 2.2e+58) tmp = t_1; elseif (z <= 4.5e+135) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t * (y / a)); t_2 = -y / (z / (t - x)); t_3 = t * (-z / (a - z)); tmp = 0.0; if (z <= -2.75e+14) tmp = t_3; elseif (z <= -2.55e-238) tmp = t_1; elseif (z <= 1.3e-306) tmp = x * (1.0 - (y / a)); elseif (z <= 2.1e-76) tmp = x + ((y * t) / a); elseif (z <= 6e-30) tmp = t_2; elseif (z <= 2.2e+58) tmp = t_1; elseif (z <= 4.5e+135) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-y) / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[((-z) / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.75e+14], t$95$3, If[LessEqual[z, -2.55e-238], t$95$1, If[LessEqual[z, 1.3e-306], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.1e-76], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6e-30], t$95$2, If[LessEqual[z, 2.2e+58], t$95$1, If[LessEqual[z, 4.5e+135], t$95$2, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + t \cdot \frac{y}{a}\\
t_2 := \frac{-y}{\frac{z}{t - x}}\\
t_3 := t \cdot \frac{-z}{a - z}\\
\mathbf{if}\;z \leq -2.75 \cdot 10^{+14}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -2.55 \cdot 10^{-238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{-306}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-76}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{elif}\;z \leq 6 \cdot 10^{-30}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{+135}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -2.75e14 or 4.50000000000000007e135 < z Initial program 61.7%
Taylor expanded in x around 0 41.6%
Taylor expanded in y around 0 38.7%
mul-1-neg38.7%
associate-*r/60.7%
distribute-rgt-neg-in60.7%
distribute-neg-frac60.7%
Simplified60.7%
if -2.75e14 < z < -2.55e-238 or 5.9999999999999998e-30 < z < 2.2000000000000001e58Initial program 92.2%
Taylor expanded in z around 0 62.9%
associate-/l*70.6%
associate-/r/70.4%
Simplified70.4%
Taylor expanded in t around inf 60.1%
associate-*r/63.7%
Simplified63.7%
if -2.55e-238 < z < 1.3e-306Initial program 100.0%
Taylor expanded in z around 0 86.6%
associate-/l*99.9%
associate-/r/93.0%
Simplified93.0%
Taylor expanded in x around inf 93.0%
mul-1-neg93.0%
unsub-neg93.0%
Simplified93.0%
if 1.3e-306 < z < 2.09999999999999992e-76Initial program 85.8%
Taylor expanded in z around 0 81.7%
associate-/l*78.7%
associate-/r/81.7%
Simplified81.7%
Taylor expanded in t around inf 73.5%
if 2.09999999999999992e-76 < z < 5.9999999999999998e-30 or 2.2000000000000001e58 < z < 4.50000000000000007e135Initial program 78.8%
Taylor expanded in y around -inf 61.0%
Taylor expanded in a around 0 60.2%
mul-1-neg60.2%
associate-/l*64.5%
Simplified64.5%
Final simplification66.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* t (/ y a))))
(t_2 (/ (- y) (/ z (- t x))))
(t_3 (* t (/ (- z) (- a z)))))
(if (<= z -2.8e+14)
t_3
(if (<= z -6.5e-238)
t_1
(if (<= z 7e-294)
(- x (/ x (/ a y)))
(if (<= z 1.25e-75)
(+ x (/ (* y t) a))
(if (<= z 1.3e-31)
t_2
(if (<= z 1.26e+57) t_1 (if (<= z 1.45e+141) t_2 t_3)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / a));
double t_2 = -y / (z / (t - x));
double t_3 = t * (-z / (a - z));
double tmp;
if (z <= -2.8e+14) {
tmp = t_3;
} else if (z <= -6.5e-238) {
tmp = t_1;
} else if (z <= 7e-294) {
tmp = x - (x / (a / y));
} else if (z <= 1.25e-75) {
tmp = x + ((y * t) / a);
} else if (z <= 1.3e-31) {
tmp = t_2;
} else if (z <= 1.26e+57) {
tmp = t_1;
} else if (z <= 1.45e+141) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x + (t * (y / a))
t_2 = -y / (z / (t - x))
t_3 = t * (-z / (a - z))
if (z <= (-2.8d+14)) then
tmp = t_3
else if (z <= (-6.5d-238)) then
tmp = t_1
else if (z <= 7d-294) then
tmp = x - (x / (a / y))
else if (z <= 1.25d-75) then
tmp = x + ((y * t) / a)
else if (z <= 1.3d-31) then
tmp = t_2
else if (z <= 1.26d+57) then
tmp = t_1
else if (z <= 1.45d+141) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / a));
double t_2 = -y / (z / (t - x));
double t_3 = t * (-z / (a - z));
double tmp;
if (z <= -2.8e+14) {
tmp = t_3;
} else if (z <= -6.5e-238) {
tmp = t_1;
} else if (z <= 7e-294) {
tmp = x - (x / (a / y));
} else if (z <= 1.25e-75) {
tmp = x + ((y * t) / a);
} else if (z <= 1.3e-31) {
tmp = t_2;
} else if (z <= 1.26e+57) {
tmp = t_1;
} else if (z <= 1.45e+141) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t * (y / a)) t_2 = -y / (z / (t - x)) t_3 = t * (-z / (a - z)) tmp = 0 if z <= -2.8e+14: tmp = t_3 elif z <= -6.5e-238: tmp = t_1 elif z <= 7e-294: tmp = x - (x / (a / y)) elif z <= 1.25e-75: tmp = x + ((y * t) / a) elif z <= 1.3e-31: tmp = t_2 elif z <= 1.26e+57: tmp = t_1 elif z <= 1.45e+141: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t * Float64(y / a))) t_2 = Float64(Float64(-y) / Float64(z / Float64(t - x))) t_3 = Float64(t * Float64(Float64(-z) / Float64(a - z))) tmp = 0.0 if (z <= -2.8e+14) tmp = t_3; elseif (z <= -6.5e-238) tmp = t_1; elseif (z <= 7e-294) tmp = Float64(x - Float64(x / Float64(a / y))); elseif (z <= 1.25e-75) tmp = Float64(x + Float64(Float64(y * t) / a)); elseif (z <= 1.3e-31) tmp = t_2; elseif (z <= 1.26e+57) tmp = t_1; elseif (z <= 1.45e+141) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t * (y / a)); t_2 = -y / (z / (t - x)); t_3 = t * (-z / (a - z)); tmp = 0.0; if (z <= -2.8e+14) tmp = t_3; elseif (z <= -6.5e-238) tmp = t_1; elseif (z <= 7e-294) tmp = x - (x / (a / y)); elseif (z <= 1.25e-75) tmp = x + ((y * t) / a); elseif (z <= 1.3e-31) tmp = t_2; elseif (z <= 1.26e+57) tmp = t_1; elseif (z <= 1.45e+141) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-y) / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[((-z) / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.8e+14], t$95$3, If[LessEqual[z, -6.5e-238], t$95$1, If[LessEqual[z, 7e-294], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.25e-75], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.3e-31], t$95$2, If[LessEqual[z, 1.26e+57], t$95$1, If[LessEqual[z, 1.45e+141], t$95$2, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + t \cdot \frac{y}{a}\\
t_2 := \frac{-y}{\frac{z}{t - x}}\\
t_3 := t \cdot \frac{-z}{a - z}\\
\mathbf{if}\;z \leq -2.8 \cdot 10^{+14}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -6.5 \cdot 10^{-238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 7 \cdot 10^{-294}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-75}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{-31}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.26 \cdot 10^{+57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{+141}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -2.8e14 or 1.45000000000000003e141 < z Initial program 61.7%
Taylor expanded in x around 0 41.6%
Taylor expanded in y around 0 38.7%
mul-1-neg38.7%
associate-*r/60.7%
distribute-rgt-neg-in60.7%
distribute-neg-frac60.7%
Simplified60.7%
if -2.8e14 < z < -6.5000000000000006e-238 or 1.29999999999999998e-31 < z < 1.26e57Initial program 92.2%
Taylor expanded in z around 0 62.9%
associate-/l*70.6%
associate-/r/70.4%
Simplified70.4%
Taylor expanded in t around inf 60.1%
associate-*r/63.7%
Simplified63.7%
if -6.5000000000000006e-238 < z < 7.00000000000000064e-294Initial program 100.0%
Taylor expanded in z around 0 86.6%
associate-/l*99.9%
associate-/r/93.0%
Simplified93.0%
Taylor expanded in t around 0 86.6%
mul-1-neg86.6%
associate-/l*93.1%
Simplified93.1%
if 7.00000000000000064e-294 < z < 1.24999999999999995e-75Initial program 85.8%
Taylor expanded in z around 0 81.7%
associate-/l*78.7%
associate-/r/81.7%
Simplified81.7%
Taylor expanded in t around inf 73.5%
if 1.24999999999999995e-75 < z < 1.29999999999999998e-31 or 1.26e57 < z < 1.45000000000000003e141Initial program 78.8%
Taylor expanded in y around -inf 61.0%
Taylor expanded in a around 0 60.2%
mul-1-neg60.2%
associate-/l*64.5%
Simplified64.5%
Final simplification66.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (- t x) (/ y (- a z)))) (t_2 (* t (/ (- z) (- a z)))))
(if (<= z -8.5e+113)
t_2
(if (<= z -3.8e+58)
t_1
(if (<= z -9.8e-40)
(/ (* t (- z y)) z)
(if (<= z 1.06e-55)
(+ x (* (- t x) (/ y a)))
(if (<= z 3.5e+150) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (t - x) * (y / (a - z));
double t_2 = t * (-z / (a - z));
double tmp;
if (z <= -8.5e+113) {
tmp = t_2;
} else if (z <= -3.8e+58) {
tmp = t_1;
} else if (z <= -9.8e-40) {
tmp = (t * (z - y)) / z;
} else if (z <= 1.06e-55) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 3.5e+150) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (t - x) * (y / (a - z))
t_2 = t * (-z / (a - z))
if (z <= (-8.5d+113)) then
tmp = t_2
else if (z <= (-3.8d+58)) then
tmp = t_1
else if (z <= (-9.8d-40)) then
tmp = (t * (z - y)) / z
else if (z <= 1.06d-55) then
tmp = x + ((t - x) * (y / a))
else if (z <= 3.5d+150) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (t - x) * (y / (a - z));
double t_2 = t * (-z / (a - z));
double tmp;
if (z <= -8.5e+113) {
tmp = t_2;
} else if (z <= -3.8e+58) {
tmp = t_1;
} else if (z <= -9.8e-40) {
tmp = (t * (z - y)) / z;
} else if (z <= 1.06e-55) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 3.5e+150) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (t - x) * (y / (a - z)) t_2 = t * (-z / (a - z)) tmp = 0 if z <= -8.5e+113: tmp = t_2 elif z <= -3.8e+58: tmp = t_1 elif z <= -9.8e-40: tmp = (t * (z - y)) / z elif z <= 1.06e-55: tmp = x + ((t - x) * (y / a)) elif z <= 3.5e+150: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(t - x) * Float64(y / Float64(a - z))) t_2 = Float64(t * Float64(Float64(-z) / Float64(a - z))) tmp = 0.0 if (z <= -8.5e+113) tmp = t_2; elseif (z <= -3.8e+58) tmp = t_1; elseif (z <= -9.8e-40) tmp = Float64(Float64(t * Float64(z - y)) / z); elseif (z <= 1.06e-55) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (z <= 3.5e+150) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (t - x) * (y / (a - z)); t_2 = t * (-z / (a - z)); tmp = 0.0; if (z <= -8.5e+113) tmp = t_2; elseif (z <= -3.8e+58) tmp = t_1; elseif (z <= -9.8e-40) tmp = (t * (z - y)) / z; elseif (z <= 1.06e-55) tmp = x + ((t - x) * (y / a)); elseif (z <= 3.5e+150) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[((-z) / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.5e+113], t$95$2, If[LessEqual[z, -3.8e+58], t$95$1, If[LessEqual[z, -9.8e-40], N[(N[(t * N[(z - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, 1.06e-55], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.5e+150], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t - x\right) \cdot \frac{y}{a - z}\\
t_2 := t \cdot \frac{-z}{a - z}\\
\mathbf{if}\;z \leq -8.5 \cdot 10^{+113}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -3.8 \cdot 10^{+58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -9.8 \cdot 10^{-40}:\\
\;\;\;\;\frac{t \cdot \left(z - y\right)}{z}\\
\mathbf{elif}\;z \leq 1.06 \cdot 10^{-55}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{+150}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -8.5000000000000001e113 or 3.49999999999999984e150 < z Initial program 62.4%
Taylor expanded in x around 0 39.6%
Taylor expanded in y around 0 38.0%
mul-1-neg38.0%
associate-*r/66.6%
distribute-rgt-neg-in66.6%
distribute-neg-frac66.6%
Simplified66.6%
if -8.5000000000000001e113 < z < -3.7999999999999999e58 or 1.06e-55 < z < 3.49999999999999984e150Initial program 75.7%
Taylor expanded in y around inf 53.5%
div-sub53.5%
associate-*r/57.3%
associate-/l*53.3%
associate-/r/57.3%
Simplified57.3%
if -3.7999999999999999e58 < z < -9.7999999999999995e-40Initial program 72.6%
Taylor expanded in x around 0 54.0%
Taylor expanded in a around 0 54.3%
associate-*r/54.3%
neg-mul-154.3%
*-commutative54.3%
distribute-rgt-neg-out54.3%
Simplified54.3%
if -9.7999999999999995e-40 < z < 1.06e-55Initial program 91.9%
Taylor expanded in z around 0 78.6%
associate-/l*82.8%
associate-/r/83.3%
Simplified83.3%
Final simplification71.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (- t x) (/ y (- a z)))) (t_2 (+ t (* t (/ (- a y) z)))))
(if (<= z -1.25e+84)
t_2
(if (<= z -4.8e+58)
t_1
(if (<= z -1.75e-38)
t_2
(if (<= z 1.36e-55)
(+ x (* (- t x) (/ y a)))
(if (<= z 1.45e+151) t_1 (* t (/ (- z) (- a z))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (t - x) * (y / (a - z));
double t_2 = t + (t * ((a - y) / z));
double tmp;
if (z <= -1.25e+84) {
tmp = t_2;
} else if (z <= -4.8e+58) {
tmp = t_1;
} else if (z <= -1.75e-38) {
tmp = t_2;
} else if (z <= 1.36e-55) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 1.45e+151) {
tmp = t_1;
} else {
tmp = t * (-z / (a - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (t - x) * (y / (a - z))
t_2 = t + (t * ((a - y) / z))
if (z <= (-1.25d+84)) then
tmp = t_2
else if (z <= (-4.8d+58)) then
tmp = t_1
else if (z <= (-1.75d-38)) then
tmp = t_2
else if (z <= 1.36d-55) then
tmp = x + ((t - x) * (y / a))
else if (z <= 1.45d+151) then
tmp = t_1
else
tmp = t * (-z / (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 = (t - x) * (y / (a - z));
double t_2 = t + (t * ((a - y) / z));
double tmp;
if (z <= -1.25e+84) {
tmp = t_2;
} else if (z <= -4.8e+58) {
tmp = t_1;
} else if (z <= -1.75e-38) {
tmp = t_2;
} else if (z <= 1.36e-55) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 1.45e+151) {
tmp = t_1;
} else {
tmp = t * (-z / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (t - x) * (y / (a - z)) t_2 = t + (t * ((a - y) / z)) tmp = 0 if z <= -1.25e+84: tmp = t_2 elif z <= -4.8e+58: tmp = t_1 elif z <= -1.75e-38: tmp = t_2 elif z <= 1.36e-55: tmp = x + ((t - x) * (y / a)) elif z <= 1.45e+151: tmp = t_1 else: tmp = t * (-z / (a - z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(t - x) * Float64(y / Float64(a - z))) t_2 = Float64(t + Float64(t * Float64(Float64(a - y) / z))) tmp = 0.0 if (z <= -1.25e+84) tmp = t_2; elseif (z <= -4.8e+58) tmp = t_1; elseif (z <= -1.75e-38) tmp = t_2; elseif (z <= 1.36e-55) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (z <= 1.45e+151) tmp = t_1; else tmp = Float64(t * Float64(Float64(-z) / Float64(a - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (t - x) * (y / (a - z)); t_2 = t + (t * ((a - y) / z)); tmp = 0.0; if (z <= -1.25e+84) tmp = t_2; elseif (z <= -4.8e+58) tmp = t_1; elseif (z <= -1.75e-38) tmp = t_2; elseif (z <= 1.36e-55) tmp = x + ((t - x) * (y / a)); elseif (z <= 1.45e+151) tmp = t_1; else tmp = t * (-z / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t + N[(t * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.25e+84], t$95$2, If[LessEqual[z, -4.8e+58], t$95$1, If[LessEqual[z, -1.75e-38], t$95$2, If[LessEqual[z, 1.36e-55], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.45e+151], t$95$1, N[(t * N[((-z) / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t - x\right) \cdot \frac{y}{a - z}\\
t_2 := t + t \cdot \frac{a - y}{z}\\
\mathbf{if}\;z \leq -1.25 \cdot 10^{+84}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -4.8 \cdot 10^{+58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.75 \cdot 10^{-38}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.36 \cdot 10^{-55}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{+151}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{-z}{a - z}\\
\end{array}
\end{array}
if z < -1.25e84 or -4.8e58 < z < -1.7500000000000001e-38Initial program 70.1%
Taylor expanded in z around inf 67.4%
associate--l+67.4%
distribute-lft-out--67.4%
div-sub67.4%
mul-1-neg67.4%
unsub-neg67.4%
distribute-rgt-out--67.6%
associate-/l*78.2%
Simplified78.2%
Taylor expanded in t around inf 53.7%
associate-*r/57.4%
Simplified57.4%
if -1.25e84 < z < -4.8e58 or 1.35999999999999993e-55 < z < 1.45000000000000009e151Initial program 74.6%
Taylor expanded in y around inf 52.4%
div-sub52.4%
associate-*r/56.7%
associate-/l*52.1%
associate-/r/56.7%
Simplified56.7%
if -1.7500000000000001e-38 < z < 1.35999999999999993e-55Initial program 91.9%
Taylor expanded in z around 0 78.6%
associate-/l*82.8%
associate-/r/83.3%
Simplified83.3%
if 1.45000000000000009e151 < z Initial program 59.8%
Taylor expanded in x around 0 46.5%
Taylor expanded in y around 0 43.9%
mul-1-neg43.9%
associate-*r/72.6%
distribute-rgt-neg-in72.6%
distribute-neg-frac72.6%
Simplified72.6%
Final simplification71.6%
(FPCore (x y z t a)
:precision binary64
(if (or (<= z -3.7e-39)
(not (or (<= z 4.7e-87) (and (not (<= z 6.8e-29)) (<= z 6.5e+36)))))
(- t (/ (- t x) (/ z (- y a))))
(+ x (/ (- t x) (/ a (- y z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3.7e-39) || !((z <= 4.7e-87) || (!(z <= 6.8e-29) && (z <= 6.5e+36)))) {
tmp = t - ((t - x) / (z / (y - a)));
} else {
tmp = x + ((t - x) / (a / (y - z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-3.7d-39)) .or. (.not. (z <= 4.7d-87) .or. (.not. (z <= 6.8d-29)) .and. (z <= 6.5d+36))) then
tmp = t - ((t - x) / (z / (y - a)))
else
tmp = x + ((t - x) / (a / (y - z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3.7e-39) || !((z <= 4.7e-87) || (!(z <= 6.8e-29) && (z <= 6.5e+36)))) {
tmp = t - ((t - x) / (z / (y - a)));
} else {
tmp = x + ((t - x) / (a / (y - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -3.7e-39) or not ((z <= 4.7e-87) or (not (z <= 6.8e-29) and (z <= 6.5e+36))): tmp = t - ((t - x) / (z / (y - a))) else: tmp = x + ((t - x) / (a / (y - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -3.7e-39) || !((z <= 4.7e-87) || (!(z <= 6.8e-29) && (z <= 6.5e+36)))) tmp = Float64(t - Float64(Float64(t - x) / Float64(z / Float64(y - a)))); else tmp = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -3.7e-39) || ~(((z <= 4.7e-87) || (~((z <= 6.8e-29)) && (z <= 6.5e+36))))) tmp = t - ((t - x) / (z / (y - a))); else tmp = x + ((t - x) / (a / (y - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -3.7e-39], N[Not[Or[LessEqual[z, 4.7e-87], And[N[Not[LessEqual[z, 6.8e-29]], $MachinePrecision], LessEqual[z, 6.5e+36]]]], $MachinePrecision]], N[(t - N[(N[(t - x), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.7 \cdot 10^{-39} \lor \neg \left(z \leq 4.7 \cdot 10^{-87} \lor \neg \left(z \leq 6.8 \cdot 10^{-29}\right) \land z \leq 6.5 \cdot 10^{+36}\right):\\
\;\;\;\;t - \frac{t - x}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y - z}}\\
\end{array}
\end{array}
if z < -3.70000000000000015e-39 or 4.7000000000000001e-87 < z < 6.79999999999999945e-29 or 6.4999999999999998e36 < z Initial program 66.8%
Taylor expanded in z around inf 68.4%
associate--l+68.4%
distribute-lft-out--68.4%
div-sub68.4%
mul-1-neg68.4%
unsub-neg68.4%
distribute-rgt-out--68.5%
associate-/l*77.5%
Simplified77.5%
if -3.70000000000000015e-39 < z < 4.7000000000000001e-87 or 6.79999999999999945e-29 < z < 6.4999999999999998e36Initial program 92.9%
Taylor expanded in a around inf 82.5%
associate-/l*87.1%
Simplified87.1%
Final simplification82.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- t x) (/ a (- y z))))) (t_2 (+ t (* x (/ (- y a) z)))))
(if (<= z -1.95e-38)
t_2
(if (<= z 1.7e-55)
t_1
(if (<= z 3.2e-31)
(/ y (/ (- a z) (- t x)))
(if (<= z 7.9e+37) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) / (a / (y - z)));
double t_2 = t + (x * ((y - a) / z));
double tmp;
if (z <= -1.95e-38) {
tmp = t_2;
} else if (z <= 1.7e-55) {
tmp = t_1;
} else if (z <= 3.2e-31) {
tmp = y / ((a - z) / (t - x));
} else if (z <= 7.9e+37) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + ((t - x) / (a / (y - z)))
t_2 = t + (x * ((y - a) / z))
if (z <= (-1.95d-38)) then
tmp = t_2
else if (z <= 1.7d-55) then
tmp = t_1
else if (z <= 3.2d-31) then
tmp = y / ((a - z) / (t - x))
else if (z <= 7.9d+37) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) / (a / (y - z)));
double t_2 = t + (x * ((y - a) / z));
double tmp;
if (z <= -1.95e-38) {
tmp = t_2;
} else if (z <= 1.7e-55) {
tmp = t_1;
} else if (z <= 3.2e-31) {
tmp = y / ((a - z) / (t - x));
} else if (z <= 7.9e+37) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((t - x) / (a / (y - z))) t_2 = t + (x * ((y - a) / z)) tmp = 0 if z <= -1.95e-38: tmp = t_2 elif z <= 1.7e-55: tmp = t_1 elif z <= 3.2e-31: tmp = y / ((a - z) / (t - x)) elif z <= 7.9e+37: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))) t_2 = Float64(t + Float64(x * Float64(Float64(y - a) / z))) tmp = 0.0 if (z <= -1.95e-38) tmp = t_2; elseif (z <= 1.7e-55) tmp = t_1; elseif (z <= 3.2e-31) tmp = Float64(y / Float64(Float64(a - z) / Float64(t - x))); elseif (z <= 7.9e+37) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((t - x) / (a / (y - z))); t_2 = t + (x * ((y - a) / z)); tmp = 0.0; if (z <= -1.95e-38) tmp = t_2; elseif (z <= 1.7e-55) tmp = t_1; elseif (z <= 3.2e-31) tmp = y / ((a - z) / (t - x)); elseif (z <= 7.9e+37) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t + N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.95e-38], t$95$2, If[LessEqual[z, 1.7e-55], t$95$1, If[LessEqual[z, 3.2e-31], N[(y / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.9e+37], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{t - x}{\frac{a}{y - z}}\\
t_2 := t + x \cdot \frac{y - a}{z}\\
\mathbf{if}\;z \leq -1.95 \cdot 10^{-38}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{-31}:\\
\;\;\;\;\frac{y}{\frac{a - z}{t - x}}\\
\mathbf{elif}\;z \leq 7.9 \cdot 10^{+37}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -1.95e-38 or 7.9000000000000001e37 < z Initial program 65.3%
Taylor expanded in z around inf 67.3%
associate--l+67.3%
distribute-lft-out--67.3%
div-sub67.3%
mul-1-neg67.3%
unsub-neg67.3%
distribute-rgt-out--67.4%
associate-/l*78.6%
Simplified78.6%
Taylor expanded in t around 0 64.6%
mul-1-neg64.6%
associate-*r/70.1%
distribute-rgt-neg-in70.1%
distribute-neg-frac70.1%
neg-sub070.1%
associate--r-70.1%
neg-sub070.1%
Simplified70.1%
if -1.95e-38 < z < 1.69999999999999986e-55 or 3.20000000000000018e-31 < z < 7.9000000000000001e37Initial program 91.1%
Taylor expanded in a around inf 80.5%
associate-/l*84.8%
Simplified84.8%
if 1.69999999999999986e-55 < z < 3.20000000000000018e-31Initial program 99.1%
Taylor expanded in y around inf 85.5%
div-sub85.5%
associate-*r/85.9%
associate-/l*86.4%
Simplified86.4%
Final simplification77.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- t x) (/ y a)))) (t_2 (/ t (/ (- a z) (- y z)))))
(if (<= z -6.2e-80)
t_2
(if (<= z 1.7e-55)
t_1
(if (<= z 9.4e-32)
(/ (- y) (/ z (- t x)))
(if (<= z 2.05e+37) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * (y / a));
double t_2 = t / ((a - z) / (y - z));
double tmp;
if (z <= -6.2e-80) {
tmp = t_2;
} else if (z <= 1.7e-55) {
tmp = t_1;
} else if (z <= 9.4e-32) {
tmp = -y / (z / (t - x));
} else if (z <= 2.05e+37) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + ((t - x) * (y / a))
t_2 = t / ((a - z) / (y - z))
if (z <= (-6.2d-80)) then
tmp = t_2
else if (z <= 1.7d-55) then
tmp = t_1
else if (z <= 9.4d-32) then
tmp = -y / (z / (t - x))
else if (z <= 2.05d+37) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * (y / a));
double t_2 = t / ((a - z) / (y - z));
double tmp;
if (z <= -6.2e-80) {
tmp = t_2;
} else if (z <= 1.7e-55) {
tmp = t_1;
} else if (z <= 9.4e-32) {
tmp = -y / (z / (t - x));
} else if (z <= 2.05e+37) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((t - x) * (y / a)) t_2 = t / ((a - z) / (y - z)) tmp = 0 if z <= -6.2e-80: tmp = t_2 elif z <= 1.7e-55: tmp = t_1 elif z <= 9.4e-32: tmp = -y / (z / (t - x)) elif z <= 2.05e+37: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(t - x) * Float64(y / a))) t_2 = Float64(t / Float64(Float64(a - z) / Float64(y - z))) tmp = 0.0 if (z <= -6.2e-80) tmp = t_2; elseif (z <= 1.7e-55) tmp = t_1; elseif (z <= 9.4e-32) tmp = Float64(Float64(-y) / Float64(z / Float64(t - x))); elseif (z <= 2.05e+37) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((t - x) * (y / a)); t_2 = t / ((a - z) / (y - z)); tmp = 0.0; if (z <= -6.2e-80) tmp = t_2; elseif (z <= 1.7e-55) tmp = t_1; elseif (z <= 9.4e-32) tmp = -y / (z / (t - x)); elseif (z <= 2.05e+37) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.2e-80], t$95$2, If[LessEqual[z, 1.7e-55], t$95$1, If[LessEqual[z, 9.4e-32], N[((-y) / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.05e+37], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(t - x\right) \cdot \frac{y}{a}\\
t_2 := \frac{t}{\frac{a - z}{y - z}}\\
\mathbf{if}\;z \leq -6.2 \cdot 10^{-80}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9.4 \cdot 10^{-32}:\\
\;\;\;\;\frac{-y}{\frac{z}{t - x}}\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+37}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -6.20000000000000032e-80 or 2.0499999999999999e37 < z Initial program 67.2%
Taylor expanded in x around 0 41.7%
associate-/l*61.6%
Simplified61.6%
if -6.20000000000000032e-80 < z < 1.69999999999999986e-55 or 9.40000000000000039e-32 < z < 2.0499999999999999e37Initial program 90.5%
Taylor expanded in z around 0 80.2%
associate-/l*84.2%
associate-/r/84.6%
Simplified84.6%
if 1.69999999999999986e-55 < z < 9.40000000000000039e-32Initial program 99.1%
Taylor expanded in y around -inf 85.9%
Taylor expanded in a around 0 83.6%
mul-1-neg83.6%
associate-/l*83.8%
Simplified83.8%
Final simplification73.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- t x) (/ y a)))) (t_2 (/ t (/ (- a z) (- y z)))))
(if (<= z -7.6e-81)
t_2
(if (<= z 1.65e-55)
t_1
(if (<= z 1.25e-30)
(/ y (/ (- a z) (- t x)))
(if (<= z 7e+36) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * (y / a));
double t_2 = t / ((a - z) / (y - z));
double tmp;
if (z <= -7.6e-81) {
tmp = t_2;
} else if (z <= 1.65e-55) {
tmp = t_1;
} else if (z <= 1.25e-30) {
tmp = y / ((a - z) / (t - x));
} else if (z <= 7e+36) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + ((t - x) * (y / a))
t_2 = t / ((a - z) / (y - z))
if (z <= (-7.6d-81)) then
tmp = t_2
else if (z <= 1.65d-55) then
tmp = t_1
else if (z <= 1.25d-30) then
tmp = y / ((a - z) / (t - x))
else if (z <= 7d+36) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * (y / a));
double t_2 = t / ((a - z) / (y - z));
double tmp;
if (z <= -7.6e-81) {
tmp = t_2;
} else if (z <= 1.65e-55) {
tmp = t_1;
} else if (z <= 1.25e-30) {
tmp = y / ((a - z) / (t - x));
} else if (z <= 7e+36) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((t - x) * (y / a)) t_2 = t / ((a - z) / (y - z)) tmp = 0 if z <= -7.6e-81: tmp = t_2 elif z <= 1.65e-55: tmp = t_1 elif z <= 1.25e-30: tmp = y / ((a - z) / (t - x)) elif z <= 7e+36: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(t - x) * Float64(y / a))) t_2 = Float64(t / Float64(Float64(a - z) / Float64(y - z))) tmp = 0.0 if (z <= -7.6e-81) tmp = t_2; elseif (z <= 1.65e-55) tmp = t_1; elseif (z <= 1.25e-30) tmp = Float64(y / Float64(Float64(a - z) / Float64(t - x))); elseif (z <= 7e+36) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((t - x) * (y / a)); t_2 = t / ((a - z) / (y - z)); tmp = 0.0; if (z <= -7.6e-81) tmp = t_2; elseif (z <= 1.65e-55) tmp = t_1; elseif (z <= 1.25e-30) tmp = y / ((a - z) / (t - x)); elseif (z <= 7e+36) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.6e-81], t$95$2, If[LessEqual[z, 1.65e-55], t$95$1, If[LessEqual[z, 1.25e-30], N[(y / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7e+36], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(t - x\right) \cdot \frac{y}{a}\\
t_2 := \frac{t}{\frac{a - z}{y - z}}\\
\mathbf{if}\;z \leq -7.6 \cdot 10^{-81}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{-55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-30}:\\
\;\;\;\;\frac{y}{\frac{a - z}{t - x}}\\
\mathbf{elif}\;z \leq 7 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -7.5999999999999997e-81 or 6.9999999999999996e36 < z Initial program 67.2%
Taylor expanded in x around 0 41.7%
associate-/l*61.6%
Simplified61.6%
if -7.5999999999999997e-81 < z < 1.65e-55 or 1.24999999999999993e-30 < z < 6.9999999999999996e36Initial program 90.5%
Taylor expanded in z around 0 80.2%
associate-/l*84.2%
associate-/r/84.6%
Simplified84.6%
if 1.65e-55 < z < 1.24999999999999993e-30Initial program 99.1%
Taylor expanded in y around inf 85.5%
div-sub85.5%
associate-*r/85.9%
associate-/l*86.4%
Simplified86.4%
Final simplification73.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ t (/ (- a z) (- y z)))))
(if (<= z -1.1e-81)
t_1
(if (<= z 1.75e-56)
(+ x (* (- t x) (/ y a)))
(if (<= z 5.6e+89)
(/ y (/ (- a z) (- t x)))
(if (<= z 6.6e+160) (+ t (/ a (/ z (- t x)))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t / ((a - z) / (y - z));
double tmp;
if (z <= -1.1e-81) {
tmp = t_1;
} else if (z <= 1.75e-56) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 5.6e+89) {
tmp = y / ((a - z) / (t - x));
} else if (z <= 6.6e+160) {
tmp = t + (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 / ((a - z) / (y - z))
if (z <= (-1.1d-81)) then
tmp = t_1
else if (z <= 1.75d-56) then
tmp = x + ((t - x) * (y / a))
else if (z <= 5.6d+89) then
tmp = y / ((a - z) / (t - x))
else if (z <= 6.6d+160) then
tmp = t + (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 / ((a - z) / (y - z));
double tmp;
if (z <= -1.1e-81) {
tmp = t_1;
} else if (z <= 1.75e-56) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 5.6e+89) {
tmp = y / ((a - z) / (t - x));
} else if (z <= 6.6e+160) {
tmp = t + (a / (z / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t / ((a - z) / (y - z)) tmp = 0 if z <= -1.1e-81: tmp = t_1 elif z <= 1.75e-56: tmp = x + ((t - x) * (y / a)) elif z <= 5.6e+89: tmp = y / ((a - z) / (t - x)) elif z <= 6.6e+160: tmp = t + (a / (z / (t - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t / Float64(Float64(a - z) / Float64(y - z))) tmp = 0.0 if (z <= -1.1e-81) tmp = t_1; elseif (z <= 1.75e-56) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (z <= 5.6e+89) tmp = Float64(y / Float64(Float64(a - z) / Float64(t - x))); elseif (z <= 6.6e+160) tmp = Float64(t + Float64(a / Float64(z / Float64(t - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t / ((a - z) / (y - z)); tmp = 0.0; if (z <= -1.1e-81) tmp = t_1; elseif (z <= 1.75e-56) tmp = x + ((t - x) * (y / a)); elseif (z <= 5.6e+89) tmp = y / ((a - z) / (t - x)); elseif (z <= 6.6e+160) tmp = t + (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[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.1e-81], t$95$1, If[LessEqual[z, 1.75e-56], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.6e+89], N[(y / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.6e+160], N[(t + N[(a / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{\frac{a - z}{y - z}}\\
\mathbf{if}\;z \leq -1.1 \cdot 10^{-81}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.75 \cdot 10^{-56}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{+89}:\\
\;\;\;\;\frac{y}{\frac{a - z}{t - x}}\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{+160}:\\
\;\;\;\;t + \frac{a}{\frac{z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.1e-81 or 6.5999999999999994e160 < z Initial program 68.0%
Taylor expanded in x around 0 43.9%
associate-/l*64.9%
Simplified64.9%
if -1.1e-81 < z < 1.7499999999999999e-56Initial program 91.3%
Taylor expanded in z around 0 80.8%
associate-/l*85.3%
associate-/r/85.7%
Simplified85.7%
if 1.7499999999999999e-56 < z < 5.5999999999999996e89Initial program 84.0%
Taylor expanded in y around inf 58.7%
div-sub58.7%
associate-*r/58.7%
associate-/l*58.9%
Simplified58.9%
if 5.5999999999999996e89 < z < 6.5999999999999994e160Initial program 48.6%
Taylor expanded in z around inf 78.9%
associate--l+78.9%
distribute-lft-out--78.9%
div-sub78.9%
mul-1-neg78.9%
unsub-neg78.9%
distribute-rgt-out--78.9%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in y around 0 57.3%
mul-1-neg57.3%
associate-/l*68.6%
Simplified68.6%
Final simplification73.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* x (/ (- y a) z)))))
(if (<= z -2e-38)
t_1
(if (<= z 1.7e-55)
(+ x (* (- t x) (/ y a)))
(if (<= z 7.6e+34)
(/ y (/ (- a z) (- t x)))
(if (<= z 7.5e+56) (- x (/ z (/ (- a z) t))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + (x * ((y - a) / z));
double tmp;
if (z <= -2e-38) {
tmp = t_1;
} else if (z <= 1.7e-55) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 7.6e+34) {
tmp = y / ((a - z) / (t - x));
} else if (z <= 7.5e+56) {
tmp = x - (z / ((a - z) / 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 = t + (x * ((y - a) / z))
if (z <= (-2d-38)) then
tmp = t_1
else if (z <= 1.7d-55) then
tmp = x + ((t - x) * (y / a))
else if (z <= 7.6d+34) then
tmp = y / ((a - z) / (t - x))
else if (z <= 7.5d+56) then
tmp = x - (z / ((a - z) / 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 = t + (x * ((y - a) / z));
double tmp;
if (z <= -2e-38) {
tmp = t_1;
} else if (z <= 1.7e-55) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 7.6e+34) {
tmp = y / ((a - z) / (t - x));
} else if (z <= 7.5e+56) {
tmp = x - (z / ((a - z) / t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + (x * ((y - a) / z)) tmp = 0 if z <= -2e-38: tmp = t_1 elif z <= 1.7e-55: tmp = x + ((t - x) * (y / a)) elif z <= 7.6e+34: tmp = y / ((a - z) / (t - x)) elif z <= 7.5e+56: tmp = x - (z / ((a - z) / t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(x * Float64(Float64(y - a) / z))) tmp = 0.0 if (z <= -2e-38) tmp = t_1; elseif (z <= 1.7e-55) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (z <= 7.6e+34) tmp = Float64(y / Float64(Float64(a - z) / Float64(t - x))); elseif (z <= 7.5e+56) tmp = Float64(x - Float64(z / Float64(Float64(a - z) / t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + (x * ((y - a) / z)); tmp = 0.0; if (z <= -2e-38) tmp = t_1; elseif (z <= 1.7e-55) tmp = x + ((t - x) * (y / a)); elseif (z <= 7.6e+34) tmp = y / ((a - z) / (t - x)); elseif (z <= 7.5e+56) tmp = x - (z / ((a - z) / t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2e-38], t$95$1, If[LessEqual[z, 1.7e-55], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.6e+34], N[(y / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.5e+56], N[(x - N[(z / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + x \cdot \frac{y - a}{z}\\
\mathbf{if}\;z \leq -2 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-55}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 7.6 \cdot 10^{+34}:\\
\;\;\;\;\frac{y}{\frac{a - z}{t - x}}\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{+56}:\\
\;\;\;\;x - \frac{z}{\frac{a - z}{t}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.9999999999999999e-38 or 7.4999999999999999e56 < z Initial program 64.1%
Taylor expanded in z around inf 67.6%
associate--l+67.6%
distribute-lft-out--67.6%
div-sub67.6%
mul-1-neg67.6%
unsub-neg67.6%
distribute-rgt-out--67.7%
associate-/l*79.3%
Simplified79.3%
Taylor expanded in t around 0 65.7%
mul-1-neg65.7%
associate-*r/71.4%
distribute-rgt-neg-in71.4%
distribute-neg-frac71.4%
neg-sub071.4%
associate--r-71.4%
neg-sub071.4%
Simplified71.4%
if -1.9999999999999999e-38 < z < 1.69999999999999986e-55Initial program 91.9%
Taylor expanded in z around 0 78.6%
associate-/l*82.8%
associate-/r/83.3%
Simplified83.3%
if 1.69999999999999986e-55 < z < 7.6000000000000003e34Initial program 87.5%
Taylor expanded in y around inf 70.3%
div-sub70.3%
associate-*r/70.4%
associate-/l*70.7%
Simplified70.7%
if 7.6000000000000003e34 < z < 7.4999999999999999e56Initial program 99.7%
Taylor expanded in y around 0 69.2%
mul-1-neg69.2%
associate-/l*83.6%
Simplified83.6%
Taylor expanded in t around inf 83.6%
Final simplification77.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= z -3e+14)
t
(if (<= z -3.4e-220)
t_1
(if (<= z -7.2e-238) (* t (/ y (- a z))) (if (<= z 3.5e+90) t_1 t))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -3e+14) {
tmp = t;
} else if (z <= -3.4e-220) {
tmp = t_1;
} else if (z <= -7.2e-238) {
tmp = t * (y / (a - z));
} else if (z <= 3.5e+90) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
if (z <= (-3d+14)) then
tmp = t
else if (z <= (-3.4d-220)) then
tmp = t_1
else if (z <= (-7.2d-238)) then
tmp = t * (y / (a - z))
else if (z <= 3.5d+90) then
tmp = t_1
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (z <= -3e+14) {
tmp = t;
} else if (z <= -3.4e-220) {
tmp = t_1;
} else if (z <= -7.2e-238) {
tmp = t * (y / (a - z));
} else if (z <= 3.5e+90) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if z <= -3e+14: tmp = t elif z <= -3.4e-220: tmp = t_1 elif z <= -7.2e-238: tmp = t * (y / (a - z)) elif z <= 3.5e+90: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (z <= -3e+14) tmp = t; elseif (z <= -3.4e-220) tmp = t_1; elseif (z <= -7.2e-238) tmp = Float64(t * Float64(y / Float64(a - z))); elseif (z <= 3.5e+90) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (z <= -3e+14) tmp = t; elseif (z <= -3.4e-220) tmp = t_1; elseif (z <= -7.2e-238) tmp = t * (y / (a - z)); elseif (z <= 3.5e+90) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3e+14], t, If[LessEqual[z, -3.4e-220], t$95$1, If[LessEqual[z, -7.2e-238], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.5e+90], t$95$1, t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;z \leq -3 \cdot 10^{+14}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -3.4 \cdot 10^{-220}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -7.2 \cdot 10^{-238}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -3e14 or 3.4999999999999998e90 < z Initial program 61.6%
Taylor expanded in z around inf 53.6%
if -3e14 < z < -3.39999999999999993e-220 or -7.20000000000000021e-238 < z < 3.4999999999999998e90Initial program 89.6%
Taylor expanded in z around 0 67.3%
associate-/l*71.2%
associate-/r/71.5%
Simplified71.5%
Taylor expanded in x around inf 52.5%
mul-1-neg52.5%
unsub-neg52.5%
Simplified52.5%
if -3.39999999999999993e-220 < z < -7.20000000000000021e-238Initial program 99.1%
Taylor expanded in x around 0 89.4%
Taylor expanded in y around inf 89.4%
associate-/l*89.4%
Simplified89.4%
clear-num89.4%
associate-/r/89.1%
clear-num89.1%
Applied egg-rr89.1%
Final simplification53.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* t (/ y a)))))
(if (<= z -3e+14)
t
(if (<= z -2.3e-238)
t_1
(if (<= z 5.5e-298) (* x (- 1.0 (/ y a))) (if (<= z 2.8e+90) t_1 t))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / a));
double tmp;
if (z <= -3e+14) {
tmp = t;
} else if (z <= -2.3e-238) {
tmp = t_1;
} else if (z <= 5.5e-298) {
tmp = x * (1.0 - (y / a));
} else if (z <= 2.8e+90) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (t * (y / a))
if (z <= (-3d+14)) then
tmp = t
else if (z <= (-2.3d-238)) then
tmp = t_1
else if (z <= 5.5d-298) then
tmp = x * (1.0d0 - (y / a))
else if (z <= 2.8d+90) then
tmp = t_1
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / a));
double tmp;
if (z <= -3e+14) {
tmp = t;
} else if (z <= -2.3e-238) {
tmp = t_1;
} else if (z <= 5.5e-298) {
tmp = x * (1.0 - (y / a));
} else if (z <= 2.8e+90) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t * (y / a)) tmp = 0 if z <= -3e+14: tmp = t elif z <= -2.3e-238: tmp = t_1 elif z <= 5.5e-298: tmp = x * (1.0 - (y / a)) elif z <= 2.8e+90: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t * Float64(y / a))) tmp = 0.0 if (z <= -3e+14) tmp = t; elseif (z <= -2.3e-238) tmp = t_1; elseif (z <= 5.5e-298) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (z <= 2.8e+90) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t * (y / a)); tmp = 0.0; if (z <= -3e+14) tmp = t; elseif (z <= -2.3e-238) tmp = t_1; elseif (z <= 5.5e-298) tmp = x * (1.0 - (y / a)); elseif (z <= 2.8e+90) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3e+14], t, If[LessEqual[z, -2.3e-238], t$95$1, If[LessEqual[z, 5.5e-298], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e+90], t$95$1, t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + t \cdot \frac{y}{a}\\
\mathbf{if}\;z \leq -3 \cdot 10^{+14}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -2.3 \cdot 10^{-238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{-298}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -3e14 or 2.8e90 < z Initial program 61.6%
Taylor expanded in z around inf 53.6%
if -3e14 < z < -2.30000000000000005e-238 or 5.4999999999999996e-298 < z < 2.8e90Initial program 88.9%
Taylor expanded in z around 0 65.9%
associate-/l*68.7%
associate-/r/69.7%
Simplified69.7%
Taylor expanded in t around inf 60.8%
associate-*r/62.6%
Simplified62.6%
if -2.30000000000000005e-238 < z < 5.4999999999999996e-298Initial program 100.0%
Taylor expanded in z around 0 86.6%
associate-/l*99.9%
associate-/r/93.0%
Simplified93.0%
Taylor expanded in x around inf 93.0%
mul-1-neg93.0%
unsub-neg93.0%
Simplified93.0%
Final simplification60.9%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.7e+14) t (if (<= z 1.85e+84) (* x (- 1.0 (/ y a))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.7e+14) {
tmp = t;
} else if (z <= 1.85e+84) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.7d+14)) then
tmp = t
else if (z <= 1.85d+84) then
tmp = x * (1.0d0 - (y / a))
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.7e+14) {
tmp = t;
} else if (z <= 1.85e+84) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.7e+14: tmp = t elif z <= 1.85e+84: tmp = x * (1.0 - (y / a)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.7e+14) tmp = t; elseif (z <= 1.85e+84) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.7e+14) tmp = t; elseif (z <= 1.85e+84) tmp = x * (1.0 - (y / a)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.7e+14], t, If[LessEqual[z, 1.85e+84], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{+14}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{+84}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -2.7e14 or 1.85e84 < z Initial program 61.6%
Taylor expanded in z around inf 53.6%
if -2.7e14 < z < 1.85e84Initial program 89.9%
Taylor expanded in z around 0 67.7%
associate-/l*71.5%
associate-/r/71.7%
Simplified71.7%
Taylor expanded in x around inf 51.0%
mul-1-neg51.0%
unsub-neg51.0%
Simplified51.0%
Final simplification52.0%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.9e+25) x (if (<= a -1.56e-46) (/ t (/ a y)) (if (<= a 3.8e-48) t x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.9e+25) {
tmp = x;
} else if (a <= -1.56e-46) {
tmp = t / (a / y);
} else if (a <= 3.8e-48) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.9d+25)) then
tmp = x
else if (a <= (-1.56d-46)) then
tmp = t / (a / y)
else if (a <= 3.8d-48) then
tmp = t
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.9e+25) {
tmp = x;
} else if (a <= -1.56e-46) {
tmp = t / (a / y);
} else if (a <= 3.8e-48) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.9e+25: tmp = x elif a <= -1.56e-46: tmp = t / (a / y) elif a <= 3.8e-48: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.9e+25) tmp = x; elseif (a <= -1.56e-46) tmp = Float64(t / Float64(a / y)); elseif (a <= 3.8e-48) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.9e+25) tmp = x; elseif (a <= -1.56e-46) tmp = t / (a / y); elseif (a <= 3.8e-48) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.9e+25], x, If[LessEqual[a, -1.56e-46], N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.8e-48], t, x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.9 \cdot 10^{+25}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.56 \cdot 10^{-46}:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{-48}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.9e25 or 3.80000000000000002e-48 < a Initial program 88.7%
Taylor expanded in a around inf 45.6%
if -1.9e25 < a < -1.55999999999999991e-46Initial program 89.1%
Taylor expanded in x around 0 56.4%
associate-/l*62.0%
Simplified62.0%
Taylor expanded in z around 0 44.8%
if -1.55999999999999991e-46 < a < 3.80000000000000002e-48Initial program 66.0%
Taylor expanded in z around inf 42.1%
Final simplification44.1%
(FPCore (x y z t a) :precision binary64 (if (<= a -5.7e+32) x (if (<= a -3.1e-46) (/ (- x) (/ a y)) (if (<= a 1.15e-46) t x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -5.7e+32) {
tmp = x;
} else if (a <= -3.1e-46) {
tmp = -x / (a / y);
} else if (a <= 1.15e-46) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-5.7d+32)) then
tmp = x
else if (a <= (-3.1d-46)) then
tmp = -x / (a / y)
else if (a <= 1.15d-46) then
tmp = t
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -5.7e+32) {
tmp = x;
} else if (a <= -3.1e-46) {
tmp = -x / (a / y);
} else if (a <= 1.15e-46) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -5.7e+32: tmp = x elif a <= -3.1e-46: tmp = -x / (a / y) elif a <= 1.15e-46: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -5.7e+32) tmp = x; elseif (a <= -3.1e-46) tmp = Float64(Float64(-x) / Float64(a / y)); elseif (a <= 1.15e-46) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -5.7e+32) tmp = x; elseif (a <= -3.1e-46) tmp = -x / (a / y); elseif (a <= 1.15e-46) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -5.7e+32], x, If[LessEqual[a, -3.1e-46], N[((-x) / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.15e-46], t, x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.7 \cdot 10^{+32}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -3.1 \cdot 10^{-46}:\\
\;\;\;\;\frac{-x}{\frac{a}{y}}\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{-46}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -5.7e32 or 1.15e-46 < a Initial program 89.9%
Taylor expanded in a around inf 46.5%
if -5.7e32 < a < -3.1000000000000001e-46Initial program 81.1%
Taylor expanded in z around 0 62.2%
associate-/l*66.4%
associate-/r/66.3%
Simplified66.3%
Taylor expanded in y around inf 60.7%
Taylor expanded in t around 0 56.6%
associate-*r/56.6%
mul-1-neg56.6%
distribute-lft-neg-out56.6%
associate-*l/60.7%
associate-*l/60.7%
distribute-rgt-in60.7%
+-commutative60.7%
distribute-frac-neg60.7%
sub-neg60.7%
div-sub60.7%
associate-*r/56.6%
Simplified56.6%
Taylor expanded in t around 0 33.7%
mul-1-neg33.7%
associate-/l*42.6%
distribute-neg-frac42.6%
Simplified42.6%
if -3.1000000000000001e-46 < a < 1.15e-46Initial program 66.0%
Taylor expanded in z around inf 42.1%
Final simplification44.3%
(FPCore (x y z t a) :precision binary64 (if (<= a -4.8e+28) x (if (<= a 2.6e-47) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.8e+28) {
tmp = x;
} else if (a <= 2.6e-47) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-4.8d+28)) then
tmp = x
else if (a <= 2.6d-47) then
tmp = t
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.8e+28) {
tmp = x;
} else if (a <= 2.6e-47) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.8e+28: tmp = x elif a <= 2.6e-47: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.8e+28) tmp = x; elseif (a <= 2.6e-47) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4.8e+28) tmp = x; elseif (a <= 2.6e-47) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.8e+28], x, If[LessEqual[a, 2.6e-47], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.8 \cdot 10^{+28}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-47}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -4.79999999999999962e28 or 2.6e-47 < a Initial program 90.0%
Taylor expanded in a around inf 46.1%
if -4.79999999999999962e28 < a < 2.6e-47Initial program 68.1%
Taylor expanded in z around inf 38.5%
Final simplification42.4%
(FPCore (x y z t a) :precision binary64 t)
double code(double x, double y, double z, double t, double a) {
return t;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = t
end function
public static double code(double x, double y, double z, double t, double a) {
return t;
}
def code(x, y, z, t, a): return t
function code(x, y, z, t, a) return t end
function tmp = code(x, y, z, t, a) tmp = t; end
code[x_, y_, z_, t_, a_] := t
\begin{array}{l}
\\
t
\end{array}
Initial program 79.2%
Taylor expanded in z around inf 25.5%
Final simplification25.5%
herbie shell --seed 2024031
(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)))))