
(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 (+ x (* (- t x) (/ (- y z) (- a z)))))
(t_2 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (<= t_2 -2e-112)
t_1
(if (<= t_2 1e-243) (+ t (* (- t x) (/ (- a y) z))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) * ((y - z) / (a - z)));
double t_2 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if (t_2 <= -2e-112) {
tmp = t_1;
} else if (t_2 <= 1e-243) {
tmp = t + ((t - x) * ((a - 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) :: t_2
real(8) :: tmp
t_1 = x + ((t - x) * ((y - z) / (a - z)))
t_2 = x + ((y - z) * ((t - x) / (a - z)))
if (t_2 <= (-2d-112)) then
tmp = t_1
else if (t_2 <= 1d-243) then
tmp = t + ((t - x) * ((a - 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 + ((t - x) * ((y - z) / (a - z)));
double t_2 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if (t_2 <= -2e-112) {
tmp = t_1;
} else if (t_2 <= 1e-243) {
tmp = t + ((t - x) * ((a - y) / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((t - x) * ((y - z) / (a - z))) t_2 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if t_2 <= -2e-112: tmp = t_1 elif t_2 <= 1e-243: tmp = t + ((t - x) * ((a - y) / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / Float64(a - z)))) t_2 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if (t_2 <= -2e-112) tmp = t_1; elseif (t_2 <= 1e-243) tmp = Float64(t + Float64(Float64(t - x) * Float64(Float64(a - y) / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((t - x) * ((y - z) / (a - z))); t_2 = x + ((y - z) * ((t - x) / (a - z))); tmp = 0.0; if (t_2 <= -2e-112) tmp = t_1; elseif (t_2 <= 1e-243) tmp = t + ((t - x) * ((a - y) / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e-112], t$95$1, If[LessEqual[t$95$2, 1e-243], N[(t + N[(N[(t - x), $MachinePrecision] * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(t - x\right) \cdot \frac{y - z}{a - z}\\
t_2 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{-112}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 10^{-243}:\\
\;\;\;\;t + \left(t - x\right) \cdot \frac{a - y}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.9999999999999999e-112 or 9.99999999999999995e-244 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 92.4%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6494.9%
Applied egg-rr94.9%
if -1.9999999999999999e-112 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 9.99999999999999995e-244Initial program 12.9%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
distribute-rgt-out--N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6490.8%
Simplified90.8%
Final simplification94.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= z -1.55e+164)
t_1
(if (<= z -3.7e+68)
(* x (/ y (- z a)))
(if (<= z -1.52e-65)
(/ (* (- y z) t) (- a z))
(if (<= z 1.95e-49)
(+ x (* (- t x) (/ y a)))
(if (<= z 1.8e+59) (/ (* y (- t x)) (- a z)) t_1)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -1.55e+164) {
tmp = t_1;
} else if (z <= -3.7e+68) {
tmp = x * (y / (z - a));
} else if (z <= -1.52e-65) {
tmp = ((y - z) * t) / (a - z);
} else if (z <= 1.95e-49) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 1.8e+59) {
tmp = (y * (t - x)) / (a - z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
if (z <= (-1.55d+164)) then
tmp = t_1
else if (z <= (-3.7d+68)) then
tmp = x * (y / (z - a))
else if (z <= (-1.52d-65)) then
tmp = ((y - z) * t) / (a - z)
else if (z <= 1.95d-49) then
tmp = x + ((t - x) * (y / a))
else if (z <= 1.8d+59) then
tmp = (y * (t - x)) / (a - z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -1.55e+164) {
tmp = t_1;
} else if (z <= -3.7e+68) {
tmp = x * (y / (z - a));
} else if (z <= -1.52e-65) {
tmp = ((y - z) * t) / (a - z);
} else if (z <= 1.95e-49) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 1.8e+59) {
tmp = (y * (t - x)) / (a - z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if z <= -1.55e+164: tmp = t_1 elif z <= -3.7e+68: tmp = x * (y / (z - a)) elif z <= -1.52e-65: tmp = ((y - z) * t) / (a - z) elif z <= 1.95e-49: tmp = x + ((t - x) * (y / a)) elif z <= 1.8e+59: tmp = (y * (t - x)) / (a - z) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -1.55e+164) tmp = t_1; elseif (z <= -3.7e+68) tmp = Float64(x * Float64(y / Float64(z - a))); elseif (z <= -1.52e-65) tmp = Float64(Float64(Float64(y - z) * t) / Float64(a - z)); elseif (z <= 1.95e-49) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (z <= 1.8e+59) tmp = Float64(Float64(y * Float64(t - x)) / Float64(a - z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (z <= -1.55e+164) tmp = t_1; elseif (z <= -3.7e+68) tmp = x * (y / (z - a)); elseif (z <= -1.52e-65) tmp = ((y - z) * t) / (a - z); elseif (z <= 1.95e-49) tmp = x + ((t - x) * (y / a)); elseif (z <= 1.8e+59) tmp = (y * (t - x)) / (a - z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.55e+164], t$95$1, If[LessEqual[z, -3.7e+68], N[(x * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.52e-65], N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.95e-49], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e+59], N[(N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -1.55 \cdot 10^{+164}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -3.7 \cdot 10^{+68}:\\
\;\;\;\;x \cdot \frac{y}{z - a}\\
\mathbf{elif}\;z \leq -1.52 \cdot 10^{-65}:\\
\;\;\;\;\frac{\left(y - z\right) \cdot t}{a - z}\\
\mathbf{elif}\;z \leq 1.95 \cdot 10^{-49}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+59}:\\
\;\;\;\;\frac{y \cdot \left(t - x\right)}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.5500000000000001e164 or 1.7999999999999999e59 < z Initial program 56.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6441.5%
Simplified41.5%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6466.5%
Applied egg-rr66.5%
if -1.5500000000000001e164 < z < -3.69999999999999998e68Initial program 63.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6450.7%
Simplified50.7%
Taylor expanded in y around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6473.8%
Simplified73.8%
if -3.69999999999999998e68 < z < -1.5199999999999999e-65Initial program 99.9%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6466.2%
Simplified66.2%
if -1.5199999999999999e-65 < z < 1.95000000000000006e-49Initial program 94.3%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6496.3%
Applied egg-rr96.3%
Taylor expanded in z around 0
/-lowering-/.f6480.2%
Simplified80.2%
if 1.95000000000000006e-49 < z < 1.7999999999999999e59Initial program 95.4%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6469.8%
Simplified69.8%
Final simplification72.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= z -1.35e+164)
t_1
(if (<= z -1.15e+78)
(* x (/ y (- z a)))
(if (<= z -1.8e-63)
(/ (* (- y z) t) (- a z))
(if (<= z 6.8e-47)
(+ x (* (- t x) (/ y a)))
(if (<= z 9.6e+61) (+ x (* y (/ (- x t) z))) t_1)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -1.35e+164) {
tmp = t_1;
} else if (z <= -1.15e+78) {
tmp = x * (y / (z - a));
} else if (z <= -1.8e-63) {
tmp = ((y - z) * t) / (a - z);
} else if (z <= 6.8e-47) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 9.6e+61) {
tmp = x + (y * ((x - t) / 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 = t * ((y - z) / (a - z))
if (z <= (-1.35d+164)) then
tmp = t_1
else if (z <= (-1.15d+78)) then
tmp = x * (y / (z - a))
else if (z <= (-1.8d-63)) then
tmp = ((y - z) * t) / (a - z)
else if (z <= 6.8d-47) then
tmp = x + ((t - x) * (y / a))
else if (z <= 9.6d+61) then
tmp = x + (y * ((x - t) / 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 = t * ((y - z) / (a - z));
double tmp;
if (z <= -1.35e+164) {
tmp = t_1;
} else if (z <= -1.15e+78) {
tmp = x * (y / (z - a));
} else if (z <= -1.8e-63) {
tmp = ((y - z) * t) / (a - z);
} else if (z <= 6.8e-47) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 9.6e+61) {
tmp = x + (y * ((x - t) / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if z <= -1.35e+164: tmp = t_1 elif z <= -1.15e+78: tmp = x * (y / (z - a)) elif z <= -1.8e-63: tmp = ((y - z) * t) / (a - z) elif z <= 6.8e-47: tmp = x + ((t - x) * (y / a)) elif z <= 9.6e+61: tmp = x + (y * ((x - t) / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -1.35e+164) tmp = t_1; elseif (z <= -1.15e+78) tmp = Float64(x * Float64(y / Float64(z - a))); elseif (z <= -1.8e-63) tmp = Float64(Float64(Float64(y - z) * t) / Float64(a - z)); elseif (z <= 6.8e-47) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (z <= 9.6e+61) tmp = Float64(x + Float64(y * Float64(Float64(x - t) / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (z <= -1.35e+164) tmp = t_1; elseif (z <= -1.15e+78) tmp = x * (y / (z - a)); elseif (z <= -1.8e-63) tmp = ((y - z) * t) / (a - z); elseif (z <= 6.8e-47) tmp = x + ((t - x) * (y / a)); elseif (z <= 9.6e+61) tmp = x + (y * ((x - t) / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.35e+164], t$95$1, If[LessEqual[z, -1.15e+78], N[(x * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.8e-63], N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.8e-47], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.6e+61], N[(x + N[(y * N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -1.35 \cdot 10^{+164}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{+78}:\\
\;\;\;\;x \cdot \frac{y}{z - a}\\
\mathbf{elif}\;z \leq -1.8 \cdot 10^{-63}:\\
\;\;\;\;\frac{\left(y - z\right) \cdot t}{a - z}\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{-47}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 9.6 \cdot 10^{+61}:\\
\;\;\;\;x + y \cdot \frac{x - t}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.35000000000000003e164 or 9.5999999999999995e61 < z Initial program 55.7%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6441.9%
Simplified41.9%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6467.1%
Applied egg-rr67.1%
if -1.35000000000000003e164 < z < -1.1500000000000001e78Initial program 63.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6450.7%
Simplified50.7%
Taylor expanded in y around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6473.8%
Simplified73.8%
if -1.1500000000000001e78 < z < -1.80000000000000004e-63Initial program 99.9%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6466.2%
Simplified66.2%
if -1.80000000000000004e-63 < z < 6.8000000000000003e-47Initial program 94.3%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6496.3%
Applied egg-rr96.3%
Taylor expanded in z around 0
/-lowering-/.f6480.2%
Simplified80.2%
if 6.8000000000000003e-47 < z < 9.5999999999999995e61Initial program 95.6%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6495.8%
Applied egg-rr95.8%
Taylor expanded in y around inf
Simplified83.6%
Taylor expanded in a around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6463.0%
Simplified63.0%
Final simplification72.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= z -1.4e+164)
t_1
(if (<= z -6.5e+77)
(* x (/ y (- z a)))
(if (<= z -3.55e-63)
t_1
(if (<= z 2.7e-51)
(+ x (* (- t x) (/ y a)))
(if (<= z 2.1e+62) (+ x (* y (/ (- x t) z))) t_1)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -1.4e+164) {
tmp = t_1;
} else if (z <= -6.5e+77) {
tmp = x * (y / (z - a));
} else if (z <= -3.55e-63) {
tmp = t_1;
} else if (z <= 2.7e-51) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 2.1e+62) {
tmp = x + (y * ((x - t) / 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 = t * ((y - z) / (a - z))
if (z <= (-1.4d+164)) then
tmp = t_1
else if (z <= (-6.5d+77)) then
tmp = x * (y / (z - a))
else if (z <= (-3.55d-63)) then
tmp = t_1
else if (z <= 2.7d-51) then
tmp = x + ((t - x) * (y / a))
else if (z <= 2.1d+62) then
tmp = x + (y * ((x - t) / 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 = t * ((y - z) / (a - z));
double tmp;
if (z <= -1.4e+164) {
tmp = t_1;
} else if (z <= -6.5e+77) {
tmp = x * (y / (z - a));
} else if (z <= -3.55e-63) {
tmp = t_1;
} else if (z <= 2.7e-51) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 2.1e+62) {
tmp = x + (y * ((x - t) / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if z <= -1.4e+164: tmp = t_1 elif z <= -6.5e+77: tmp = x * (y / (z - a)) elif z <= -3.55e-63: tmp = t_1 elif z <= 2.7e-51: tmp = x + ((t - x) * (y / a)) elif z <= 2.1e+62: tmp = x + (y * ((x - t) / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -1.4e+164) tmp = t_1; elseif (z <= -6.5e+77) tmp = Float64(x * Float64(y / Float64(z - a))); elseif (z <= -3.55e-63) tmp = t_1; elseif (z <= 2.7e-51) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (z <= 2.1e+62) tmp = Float64(x + Float64(y * Float64(Float64(x - t) / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (z <= -1.4e+164) tmp = t_1; elseif (z <= -6.5e+77) tmp = x * (y / (z - a)); elseif (z <= -3.55e-63) tmp = t_1; elseif (z <= 2.7e-51) tmp = x + ((t - x) * (y / a)); elseif (z <= 2.1e+62) tmp = x + (y * ((x - t) / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.4e+164], t$95$1, If[LessEqual[z, -6.5e+77], N[(x * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.55e-63], t$95$1, If[LessEqual[z, 2.7e-51], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.1e+62], N[(x + N[(y * N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -1.4 \cdot 10^{+164}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -6.5 \cdot 10^{+77}:\\
\;\;\;\;x \cdot \frac{y}{z - a}\\
\mathbf{elif}\;z \leq -3.55 \cdot 10^{-63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{-51}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{+62}:\\
\;\;\;\;x + y \cdot \frac{x - t}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.4000000000000001e164 or -6.5e77 < z < -3.5500000000000001e-63 or 2.1e62 < z Initial program 63.5%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6446.2%
Simplified46.2%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6467.0%
Applied egg-rr67.0%
if -1.4000000000000001e164 < z < -6.5e77Initial program 63.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6450.7%
Simplified50.7%
Taylor expanded in y around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6473.8%
Simplified73.8%
if -3.5500000000000001e-63 < z < 2.6999999999999997e-51Initial program 94.3%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6496.3%
Applied egg-rr96.3%
Taylor expanded in z around 0
/-lowering-/.f6480.2%
Simplified80.2%
if 2.6999999999999997e-51 < z < 2.1e62Initial program 95.6%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6495.8%
Applied egg-rr95.8%
Taylor expanded in y around inf
Simplified83.6%
Taylor expanded in a around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6463.0%
Simplified63.0%
Final simplification72.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (/ (- y a) z))))
(if (<= z -1.4e+164)
t
(if (<= z -3.3e+78)
t_1
(if (<= z -3.1e-296)
(* x (+ (/ (- z y) a) 1.0))
(if (<= z 1.68e-49)
(+ x (/ t (/ a y)))
(if (<= z 4.3e+153) t_1 t)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * ((y - a) / z);
double tmp;
if (z <= -1.4e+164) {
tmp = t;
} else if (z <= -3.3e+78) {
tmp = t_1;
} else if (z <= -3.1e-296) {
tmp = x * (((z - y) / a) + 1.0);
} else if (z <= 1.68e-49) {
tmp = x + (t / (a / y));
} else if (z <= 4.3e+153) {
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 * ((y - a) / z)
if (z <= (-1.4d+164)) then
tmp = t
else if (z <= (-3.3d+78)) then
tmp = t_1
else if (z <= (-3.1d-296)) then
tmp = x * (((z - y) / a) + 1.0d0)
else if (z <= 1.68d-49) then
tmp = x + (t / (a / y))
else if (z <= 4.3d+153) 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 * ((y - a) / z);
double tmp;
if (z <= -1.4e+164) {
tmp = t;
} else if (z <= -3.3e+78) {
tmp = t_1;
} else if (z <= -3.1e-296) {
tmp = x * (((z - y) / a) + 1.0);
} else if (z <= 1.68e-49) {
tmp = x + (t / (a / y));
} else if (z <= 4.3e+153) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * ((y - a) / z) tmp = 0 if z <= -1.4e+164: tmp = t elif z <= -3.3e+78: tmp = t_1 elif z <= -3.1e-296: tmp = x * (((z - y) / a) + 1.0) elif z <= 1.68e-49: tmp = x + (t / (a / y)) elif z <= 4.3e+153: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(Float64(y - a) / z)) tmp = 0.0 if (z <= -1.4e+164) tmp = t; elseif (z <= -3.3e+78) tmp = t_1; elseif (z <= -3.1e-296) tmp = Float64(x * Float64(Float64(Float64(z - y) / a) + 1.0)); elseif (z <= 1.68e-49) tmp = Float64(x + Float64(t / Float64(a / y))); elseif (z <= 4.3e+153) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * ((y - a) / z); tmp = 0.0; if (z <= -1.4e+164) tmp = t; elseif (z <= -3.3e+78) tmp = t_1; elseif (z <= -3.1e-296) tmp = x * (((z - y) / a) + 1.0); elseif (z <= 1.68e-49) tmp = x + (t / (a / y)); elseif (z <= 4.3e+153) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.4e+164], t, If[LessEqual[z, -3.3e+78], t$95$1, If[LessEqual[z, -3.1e-296], N[(x * N[(N[(N[(z - y), $MachinePrecision] / a), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.68e-49], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.3e+153], t$95$1, t]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{y - a}{z}\\
\mathbf{if}\;z \leq -1.4 \cdot 10^{+164}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -3.3 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -3.1 \cdot 10^{-296}:\\
\;\;\;\;x \cdot \left(\frac{z - y}{a} + 1\right)\\
\mathbf{elif}\;z \leq 1.68 \cdot 10^{-49}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 4.3 \cdot 10^{+153}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.4000000000000001e164 or 4.2999999999999998e153 < z Initial program 53.7%
Taylor expanded in z around inf
Simplified59.5%
if -1.4000000000000001e164 < z < -3.3e78 or 1.6800000000000001e-49 < z < 4.2999999999999998e153Initial program 74.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6445.6%
Simplified45.6%
Taylor expanded in z around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f6450.3%
Simplified50.3%
if -3.3e78 < z < -3.1000000000000002e-296Initial program 98.2%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6464.0%
Simplified64.0%
Taylor expanded in a around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6457.5%
Simplified57.5%
if -3.1000000000000002e-296 < z < 1.6800000000000001e-49Initial program 92.4%
Taylor expanded in t around inf
/-lowering-/.f64N/A
--lowering--.f6475.7%
Simplified75.7%
Taylor expanded in z around 0
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6458.9%
Simplified58.9%
+-commutativeN/A
+-lowering-+.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6463.2%
Applied egg-rr63.2%
Final simplification57.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (/ (- y a) z))))
(if (<= z -1.45e+164)
t
(if (<= z -2.2e+78)
t_1
(if (<= z -4e-70)
(* x (- 1.0 (/ y a)))
(if (<= z 7.5e-51)
(+ x (* t (/ y a)))
(if (<= z 1.08e+154) t_1 t)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * ((y - a) / z);
double tmp;
if (z <= -1.45e+164) {
tmp = t;
} else if (z <= -2.2e+78) {
tmp = t_1;
} else if (z <= -4e-70) {
tmp = x * (1.0 - (y / a));
} else if (z <= 7.5e-51) {
tmp = x + (t * (y / a));
} else if (z <= 1.08e+154) {
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 * ((y - a) / z)
if (z <= (-1.45d+164)) then
tmp = t
else if (z <= (-2.2d+78)) then
tmp = t_1
else if (z <= (-4d-70)) then
tmp = x * (1.0d0 - (y / a))
else if (z <= 7.5d-51) then
tmp = x + (t * (y / a))
else if (z <= 1.08d+154) 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 * ((y - a) / z);
double tmp;
if (z <= -1.45e+164) {
tmp = t;
} else if (z <= -2.2e+78) {
tmp = t_1;
} else if (z <= -4e-70) {
tmp = x * (1.0 - (y / a));
} else if (z <= 7.5e-51) {
tmp = x + (t * (y / a));
} else if (z <= 1.08e+154) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * ((y - a) / z) tmp = 0 if z <= -1.45e+164: tmp = t elif z <= -2.2e+78: tmp = t_1 elif z <= -4e-70: tmp = x * (1.0 - (y / a)) elif z <= 7.5e-51: tmp = x + (t * (y / a)) elif z <= 1.08e+154: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(Float64(y - a) / z)) tmp = 0.0 if (z <= -1.45e+164) tmp = t; elseif (z <= -2.2e+78) tmp = t_1; elseif (z <= -4e-70) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (z <= 7.5e-51) tmp = Float64(x + Float64(t * Float64(y / a))); elseif (z <= 1.08e+154) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * ((y - a) / z); tmp = 0.0; if (z <= -1.45e+164) tmp = t; elseif (z <= -2.2e+78) tmp = t_1; elseif (z <= -4e-70) tmp = x * (1.0 - (y / a)); elseif (z <= 7.5e-51) tmp = x + (t * (y / a)); elseif (z <= 1.08e+154) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.45e+164], t, If[LessEqual[z, -2.2e+78], t$95$1, If[LessEqual[z, -4e-70], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.5e-51], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.08e+154], t$95$1, t]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{y - a}{z}\\
\mathbf{if}\;z \leq -1.45 \cdot 10^{+164}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -2.2 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -4 \cdot 10^{-70}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{-51}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 1.08 \cdot 10^{+154}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.4499999999999999e164 or 1.08e154 < z Initial program 53.7%
Taylor expanded in z around inf
Simplified59.5%
if -1.4499999999999999e164 < z < -2.20000000000000014e78 or 7.49999999999999976e-51 < z < 1.08e154Initial program 74.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6445.6%
Simplified45.6%
Taylor expanded in z around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f6450.3%
Simplified50.3%
if -2.20000000000000014e78 < z < -3.99999999999999998e-70Initial program 99.8%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6499.9%
Applied egg-rr99.9%
Taylor expanded in z around 0
/-lowering-/.f6439.4%
Simplified39.4%
Taylor expanded in x around inf
mul-1-negN/A
sub-negN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f6444.2%
Simplified44.2%
if -3.99999999999999998e-70 < z < 7.49999999999999976e-51Initial program 94.3%
Taylor expanded in t around inf
/-lowering-/.f64N/A
--lowering--.f6470.9%
Simplified70.9%
Taylor expanded in z around 0
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6461.6%
Simplified61.6%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6463.2%
Applied egg-rr63.2%
Final simplification57.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (/ y z))))
(if (<= z -1.35e+164)
t
(if (<= z -1.2e+78)
t_1
(if (<= z -1e-72)
(* x (- 1.0 (/ y a)))
(if (<= z 3.5e-47)
(+ x (* t (/ y a)))
(if (<= z 3.3e+129) t_1 t)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (y / z);
double tmp;
if (z <= -1.35e+164) {
tmp = t;
} else if (z <= -1.2e+78) {
tmp = t_1;
} else if (z <= -1e-72) {
tmp = x * (1.0 - (y / a));
} else if (z <= 3.5e-47) {
tmp = x + (t * (y / a));
} else if (z <= 3.3e+129) {
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 * (y / z)
if (z <= (-1.35d+164)) then
tmp = t
else if (z <= (-1.2d+78)) then
tmp = t_1
else if (z <= (-1d-72)) then
tmp = x * (1.0d0 - (y / a))
else if (z <= 3.5d-47) then
tmp = x + (t * (y / a))
else if (z <= 3.3d+129) 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 * (y / z);
double tmp;
if (z <= -1.35e+164) {
tmp = t;
} else if (z <= -1.2e+78) {
tmp = t_1;
} else if (z <= -1e-72) {
tmp = x * (1.0 - (y / a));
} else if (z <= 3.5e-47) {
tmp = x + (t * (y / a));
} else if (z <= 3.3e+129) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (y / z) tmp = 0 if z <= -1.35e+164: tmp = t elif z <= -1.2e+78: tmp = t_1 elif z <= -1e-72: tmp = x * (1.0 - (y / a)) elif z <= 3.5e-47: tmp = x + (t * (y / a)) elif z <= 3.3e+129: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(y / z)) tmp = 0.0 if (z <= -1.35e+164) tmp = t; elseif (z <= -1.2e+78) tmp = t_1; elseif (z <= -1e-72) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (z <= 3.5e-47) tmp = Float64(x + Float64(t * Float64(y / a))); elseif (z <= 3.3e+129) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (y / z); tmp = 0.0; if (z <= -1.35e+164) tmp = t; elseif (z <= -1.2e+78) tmp = t_1; elseif (z <= -1e-72) tmp = x * (1.0 - (y / a)); elseif (z <= 3.5e-47) tmp = x + (t * (y / a)); elseif (z <= 3.3e+129) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.35e+164], t, If[LessEqual[z, -1.2e+78], t$95$1, If[LessEqual[z, -1e-72], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.5e-47], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.3e+129], t$95$1, t]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{y}{z}\\
\mathbf{if}\;z \leq -1.35 \cdot 10^{+164}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -1.2 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1 \cdot 10^{-72}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{-47}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 3.3 \cdot 10^{+129}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.35000000000000003e164 or 3.2999999999999999e129 < z Initial program 52.9%
Taylor expanded in z around inf
Simplified56.3%
if -1.35000000000000003e164 < z < -1.1999999999999999e78 or 3.4999999999999998e-47 < z < 3.2999999999999999e129Initial program 79.3%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6448.3%
Simplified48.3%
Taylor expanded in a around 0
/-lowering-/.f6450.1%
Simplified50.1%
if -1.1999999999999999e78 < z < -9.9999999999999997e-73Initial program 99.8%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6499.9%
Applied egg-rr99.9%
Taylor expanded in z around 0
/-lowering-/.f6439.4%
Simplified39.4%
Taylor expanded in x around inf
mul-1-negN/A
sub-negN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f6444.2%
Simplified44.2%
if -9.9999999999999997e-73 < z < 3.4999999999999998e-47Initial program 94.3%
Taylor expanded in t around inf
/-lowering-/.f64N/A
--lowering--.f6470.9%
Simplified70.9%
Taylor expanded in z around 0
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6461.6%
Simplified61.6%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6463.2%
Applied egg-rr63.2%
Final simplification56.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= z -1.35e+164)
t_1
(if (<= z -9e+75)
(* x (/ y (- z a)))
(if (<= z -3.1e-66)
t_1
(if (<= z 6.4e+60) (+ x (* (- t x) (/ y a))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -1.35e+164) {
tmp = t_1;
} else if (z <= -9e+75) {
tmp = x * (y / (z - a));
} else if (z <= -3.1e-66) {
tmp = t_1;
} else if (z <= 6.4e+60) {
tmp = x + ((t - x) * (y / a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
if (z <= (-1.35d+164)) then
tmp = t_1
else if (z <= (-9d+75)) then
tmp = x * (y / (z - a))
else if (z <= (-3.1d-66)) then
tmp = t_1
else if (z <= 6.4d+60) then
tmp = x + ((t - x) * (y / a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -1.35e+164) {
tmp = t_1;
} else if (z <= -9e+75) {
tmp = x * (y / (z - a));
} else if (z <= -3.1e-66) {
tmp = t_1;
} else if (z <= 6.4e+60) {
tmp = x + ((t - x) * (y / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if z <= -1.35e+164: tmp = t_1 elif z <= -9e+75: tmp = x * (y / (z - a)) elif z <= -3.1e-66: tmp = t_1 elif z <= 6.4e+60: tmp = x + ((t - x) * (y / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -1.35e+164) tmp = t_1; elseif (z <= -9e+75) tmp = Float64(x * Float64(y / Float64(z - a))); elseif (z <= -3.1e-66) tmp = t_1; elseif (z <= 6.4e+60) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (z <= -1.35e+164) tmp = t_1; elseif (z <= -9e+75) tmp = x * (y / (z - a)); elseif (z <= -3.1e-66) tmp = t_1; elseif (z <= 6.4e+60) tmp = x + ((t - x) * (y / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.35e+164], t$95$1, If[LessEqual[z, -9e+75], N[(x * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.1e-66], t$95$1, If[LessEqual[z, 6.4e+60], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -1.35 \cdot 10^{+164}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -9 \cdot 10^{+75}:\\
\;\;\;\;x \cdot \frac{y}{z - a}\\
\mathbf{elif}\;z \leq -3.1 \cdot 10^{-66}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6.4 \cdot 10^{+60}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.35000000000000003e164 or -9.0000000000000007e75 < z < -3.0999999999999997e-66 or 6.39999999999999982e60 < z Initial program 63.5%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6446.2%
Simplified46.2%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6467.0%
Applied egg-rr67.0%
if -1.35000000000000003e164 < z < -9.0000000000000007e75Initial program 63.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6450.7%
Simplified50.7%
Taylor expanded in y around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6473.8%
Simplified73.8%
if -3.0999999999999997e-66 < z < 6.39999999999999982e60Initial program 94.6%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6496.2%
Applied egg-rr96.2%
Taylor expanded in z around 0
/-lowering-/.f6472.4%
Simplified72.4%
Final simplification70.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (/ y z))))
(if (<= z -1.35e+164)
t
(if (<= z -4.4e+78)
t_1
(if (<= z 9e-46) (* x (- 1.0 (/ y a))) (if (<= z 1.02e+129) t_1 t))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (y / z);
double tmp;
if (z <= -1.35e+164) {
tmp = t;
} else if (z <= -4.4e+78) {
tmp = t_1;
} else if (z <= 9e-46) {
tmp = x * (1.0 - (y / a));
} else if (z <= 1.02e+129) {
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 * (y / z)
if (z <= (-1.35d+164)) then
tmp = t
else if (z <= (-4.4d+78)) then
tmp = t_1
else if (z <= 9d-46) then
tmp = x * (1.0d0 - (y / a))
else if (z <= 1.02d+129) 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 * (y / z);
double tmp;
if (z <= -1.35e+164) {
tmp = t;
} else if (z <= -4.4e+78) {
tmp = t_1;
} else if (z <= 9e-46) {
tmp = x * (1.0 - (y / a));
} else if (z <= 1.02e+129) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (y / z) tmp = 0 if z <= -1.35e+164: tmp = t elif z <= -4.4e+78: tmp = t_1 elif z <= 9e-46: tmp = x * (1.0 - (y / a)) elif z <= 1.02e+129: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(y / z)) tmp = 0.0 if (z <= -1.35e+164) tmp = t; elseif (z <= -4.4e+78) tmp = t_1; elseif (z <= 9e-46) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (z <= 1.02e+129) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (y / z); tmp = 0.0; if (z <= -1.35e+164) tmp = t; elseif (z <= -4.4e+78) tmp = t_1; elseif (z <= 9e-46) tmp = x * (1.0 - (y / a)); elseif (z <= 1.02e+129) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.35e+164], t, If[LessEqual[z, -4.4e+78], t$95$1, If[LessEqual[z, 9e-46], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.02e+129], t$95$1, t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{y}{z}\\
\mathbf{if}\;z \leq -1.35 \cdot 10^{+164}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -4.4 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9 \cdot 10^{-46}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;z \leq 1.02 \cdot 10^{+129}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.35000000000000003e164 or 1.01999999999999996e129 < z Initial program 52.9%
Taylor expanded in z around inf
Simplified56.3%
if -1.35000000000000003e164 < z < -4.40000000000000028e78 or 9.00000000000000001e-46 < z < 1.01999999999999996e129Initial program 79.3%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6448.3%
Simplified48.3%
Taylor expanded in a around 0
/-lowering-/.f6450.1%
Simplified50.1%
if -4.40000000000000028e78 < z < 9.00000000000000001e-46Initial program 95.3%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6496.9%
Applied egg-rr96.9%
Taylor expanded in z around 0
/-lowering-/.f6472.8%
Simplified72.8%
Taylor expanded in x around inf
mul-1-negN/A
sub-negN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f6454.4%
Simplified54.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= t -7e-61)
t_1
(if (<= t -1.1e-242)
(- x (/ y (/ a (- x t))))
(if (<= t 2.9e-98) (* x (/ (- y a) z)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (t <= -7e-61) {
tmp = t_1;
} else if (t <= -1.1e-242) {
tmp = x - (y / (a / (x - t)));
} else if (t <= 2.9e-98) {
tmp = x * ((y - 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 = t * ((y - z) / (a - z))
if (t <= (-7d-61)) then
tmp = t_1
else if (t <= (-1.1d-242)) then
tmp = x - (y / (a / (x - t)))
else if (t <= 2.9d-98) then
tmp = x * ((y - 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 = t * ((y - z) / (a - z));
double tmp;
if (t <= -7e-61) {
tmp = t_1;
} else if (t <= -1.1e-242) {
tmp = x - (y / (a / (x - t)));
} else if (t <= 2.9e-98) {
tmp = x * ((y - a) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if t <= -7e-61: tmp = t_1 elif t <= -1.1e-242: tmp = x - (y / (a / (x - t))) elif t <= 2.9e-98: tmp = x * ((y - a) / z) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (t <= -7e-61) tmp = t_1; elseif (t <= -1.1e-242) tmp = Float64(x - Float64(y / Float64(a / Float64(x - t)))); elseif (t <= 2.9e-98) tmp = Float64(x * Float64(Float64(y - a) / z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (t <= -7e-61) tmp = t_1; elseif (t <= -1.1e-242) tmp = x - (y / (a / (x - t))); elseif (t <= 2.9e-98) tmp = x * ((y - a) / z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7e-61], t$95$1, If[LessEqual[t, -1.1e-242], N[(x - N[(y / N[(a / N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e-98], N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;t \leq -7 \cdot 10^{-61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.1 \cdot 10^{-242}:\\
\;\;\;\;x - \frac{y}{\frac{a}{x - t}}\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{-98}:\\
\;\;\;\;x \cdot \frac{y - a}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -7.0000000000000006e-61 or 2.9e-98 < t Initial program 86.0%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6454.4%
Simplified54.4%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6470.3%
Applied egg-rr70.3%
if -7.0000000000000006e-61 < t < -1.10000000000000001e-242Initial program 78.1%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6478.2%
Applied egg-rr78.2%
Taylor expanded in y around inf
Simplified72.1%
Taylor expanded in a around inf
/-lowering-/.f64N/A
--lowering--.f6468.6%
Simplified68.6%
if -1.10000000000000001e-242 < t < 2.9e-98Initial program 60.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6459.8%
Simplified59.8%
Taylor expanded in z around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f6463.1%
Simplified63.1%
Final simplification68.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= t -4e-61)
t_1
(if (<= t -2.9e-240)
(+ x (* (- t x) (/ y a)))
(if (<= t 2e-99) (* x (/ (- y a) z)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (t <= -4e-61) {
tmp = t_1;
} else if (t <= -2.9e-240) {
tmp = x + ((t - x) * (y / a));
} else if (t <= 2e-99) {
tmp = x * ((y - 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 = t * ((y - z) / (a - z))
if (t <= (-4d-61)) then
tmp = t_1
else if (t <= (-2.9d-240)) then
tmp = x + ((t - x) * (y / a))
else if (t <= 2d-99) then
tmp = x * ((y - 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 = t * ((y - z) / (a - z));
double tmp;
if (t <= -4e-61) {
tmp = t_1;
} else if (t <= -2.9e-240) {
tmp = x + ((t - x) * (y / a));
} else if (t <= 2e-99) {
tmp = x * ((y - a) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if t <= -4e-61: tmp = t_1 elif t <= -2.9e-240: tmp = x + ((t - x) * (y / a)) elif t <= 2e-99: tmp = x * ((y - a) / z) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (t <= -4e-61) tmp = t_1; elseif (t <= -2.9e-240) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (t <= 2e-99) tmp = Float64(x * Float64(Float64(y - a) / z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (t <= -4e-61) tmp = t_1; elseif (t <= -2.9e-240) tmp = x + ((t - x) * (y / a)); elseif (t <= 2e-99) tmp = x * ((y - a) / z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4e-61], t$95$1, If[LessEqual[t, -2.9e-240], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e-99], N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;t \leq -4 \cdot 10^{-61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.9 \cdot 10^{-240}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-99}:\\
\;\;\;\;x \cdot \frac{y - a}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.0000000000000002e-61 or 2e-99 < t Initial program 86.0%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6454.4%
Simplified54.4%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6470.3%
Applied egg-rr70.3%
if -4.0000000000000002e-61 < t < -2.9000000000000002e-240Initial program 78.1%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6481.5%
Applied egg-rr81.5%
Taylor expanded in z around 0
/-lowering-/.f6468.5%
Simplified68.5%
if -2.9000000000000002e-240 < t < 2e-99Initial program 60.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6459.8%
Simplified59.8%
Taylor expanded in z around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f6463.1%
Simplified63.1%
Final simplification68.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= t -1.2e-59)
t_1
(if (<= t -1.7e-238)
(* x (- 1.0 (/ y a)))
(if (<= t 7e-99) (* x (/ (- y a) z)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (t <= -1.2e-59) {
tmp = t_1;
} else if (t <= -1.7e-238) {
tmp = x * (1.0 - (y / a));
} else if (t <= 7e-99) {
tmp = x * ((y - 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 = t * ((y - z) / (a - z))
if (t <= (-1.2d-59)) then
tmp = t_1
else if (t <= (-1.7d-238)) then
tmp = x * (1.0d0 - (y / a))
else if (t <= 7d-99) then
tmp = x * ((y - 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 = t * ((y - z) / (a - z));
double tmp;
if (t <= -1.2e-59) {
tmp = t_1;
} else if (t <= -1.7e-238) {
tmp = x * (1.0 - (y / a));
} else if (t <= 7e-99) {
tmp = x * ((y - a) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if t <= -1.2e-59: tmp = t_1 elif t <= -1.7e-238: tmp = x * (1.0 - (y / a)) elif t <= 7e-99: tmp = x * ((y - a) / z) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (t <= -1.2e-59) tmp = t_1; elseif (t <= -1.7e-238) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (t <= 7e-99) tmp = Float64(x * Float64(Float64(y - a) / z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (t <= -1.2e-59) tmp = t_1; elseif (t <= -1.7e-238) tmp = x * (1.0 - (y / a)); elseif (t <= 7e-99) tmp = x * ((y - a) / z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.2e-59], t$95$1, If[LessEqual[t, -1.7e-238], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7e-99], N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;t \leq -1.2 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.7 \cdot 10^{-238}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-99}:\\
\;\;\;\;x \cdot \frac{y - a}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.20000000000000008e-59 or 6.9999999999999997e-99 < t Initial program 86.0%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6454.4%
Simplified54.4%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6470.3%
Applied egg-rr70.3%
if -1.20000000000000008e-59 < t < -1.69999999999999992e-238Initial program 78.1%
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6481.5%
Applied egg-rr81.5%
Taylor expanded in z around 0
/-lowering-/.f6468.5%
Simplified68.5%
Taylor expanded in x around inf
mul-1-negN/A
sub-negN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f6466.0%
Simplified66.0%
if -1.69999999999999992e-238 < t < 6.9999999999999997e-99Initial program 60.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6459.8%
Simplified59.8%
Taylor expanded in z around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
mul-1-negN/A
sub-negN/A
--lowering--.f6463.1%
Simplified63.1%
Final simplification68.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* (- t x) (/ (- a y) z)))))
(if (<= z -2.7e+78)
t_1
(if (<= z 2.2e+76) (+ x (* (- y z) (/ (- t x) (- a z)))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((t - x) * ((a - y) / z));
double tmp;
if (z <= -2.7e+78) {
tmp = t_1;
} else if (z <= 2.2e+76) {
tmp = x + ((y - z) * ((t - x) / (a - z)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t + ((t - x) * ((a - y) / z))
if (z <= (-2.7d+78)) then
tmp = t_1
else if (z <= 2.2d+76) then
tmp = x + ((y - z) * ((t - x) / (a - z)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((t - x) * ((a - y) / z));
double tmp;
if (z <= -2.7e+78) {
tmp = t_1;
} else if (z <= 2.2e+76) {
tmp = x + ((y - z) * ((t - x) / (a - z)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((t - x) * ((a - y) / z)) tmp = 0 if z <= -2.7e+78: tmp = t_1 elif z <= 2.2e+76: tmp = x + ((y - z) * ((t - x) / (a - z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(t - x) * Float64(Float64(a - y) / z))) tmp = 0.0 if (z <= -2.7e+78) tmp = t_1; elseif (z <= 2.2e+76) tmp = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((t - x) * ((a - y) / z)); tmp = 0.0; if (z <= -2.7e+78) tmp = t_1; elseif (z <= 2.2e+76) tmp = x + ((y - z) * ((t - x) / (a - z))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(t - x), $MachinePrecision] * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.7e+78], t$95$1, If[LessEqual[z, 2.2e+76], N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \left(t - x\right) \cdot \frac{a - y}{z}\\
\mathbf{if}\;z \leq -2.7 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+76}:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.70000000000000004e78 or 2.2e76 < z Initial program 55.1%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
distribute-rgt-out--N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6489.5%
Simplified89.5%
if -2.70000000000000004e78 < z < 2.2e76Initial program 95.4%
Final simplification93.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* (- t x) (/ (- a y) z)))))
(if (<= z -4.5e+36)
t_1
(if (<= z 8.6e+70) (+ x (/ y (/ (- a z) (- t x)))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((t - x) * ((a - y) / z));
double tmp;
if (z <= -4.5e+36) {
tmp = t_1;
} else if (z <= 8.6e+70) {
tmp = x + (y / ((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 + ((t - x) * ((a - y) / z))
if (z <= (-4.5d+36)) then
tmp = t_1
else if (z <= 8.6d+70) then
tmp = x + (y / ((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 + ((t - x) * ((a - y) / z));
double tmp;
if (z <= -4.5e+36) {
tmp = t_1;
} else if (z <= 8.6e+70) {
tmp = x + (y / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((t - x) * ((a - y) / z)) tmp = 0 if z <= -4.5e+36: tmp = t_1 elif z <= 8.6e+70: tmp = x + (y / ((a - z) / (t - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(t - x) * Float64(Float64(a - y) / z))) tmp = 0.0 if (z <= -4.5e+36) tmp = t_1; elseif (z <= 8.6e+70) tmp = Float64(x + Float64(y / Float64(Float64(a - z) / Float64(t - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((t - x) * ((a - y) / z)); tmp = 0.0; if (z <= -4.5e+36) tmp = t_1; elseif (z <= 8.6e+70) tmp = x + (y / ((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[(t - x), $MachinePrecision] * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.5e+36], t$95$1, If[LessEqual[z, 8.6e+70], N[(x + N[(y / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \left(t - x\right) \cdot \frac{a - y}{z}\\
\mathbf{if}\;z \leq -4.5 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 8.6 \cdot 10^{+70}:\\
\;\;\;\;x + \frac{y}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.49999999999999997e36 or 8.6000000000000002e70 < z Initial program 58.7%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
distribute-rgt-out--N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6488.6%
Simplified88.6%
if -4.49999999999999997e36 < z < 8.6000000000000002e70Initial program 95.1%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6495.2%
Applied egg-rr95.2%
Taylor expanded in y around inf
Simplified84.9%
Final simplification86.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= z -1.35e+164)
t_1
(if (<= z 3.45e+69) (+ x (/ y (/ (- a z) (- t x)))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -1.35e+164) {
tmp = t_1;
} else if (z <= 3.45e+69) {
tmp = x + (y / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
if (z <= (-1.35d+164)) then
tmp = t_1
else if (z <= 3.45d+69) then
tmp = x + (y / ((a - z) / (t - x)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -1.35e+164) {
tmp = t_1;
} else if (z <= 3.45e+69) {
tmp = x + (y / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if z <= -1.35e+164: tmp = t_1 elif z <= 3.45e+69: tmp = x + (y / ((a - z) / (t - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -1.35e+164) tmp = t_1; elseif (z <= 3.45e+69) tmp = Float64(x + Float64(y / Float64(Float64(a - z) / Float64(t - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (z <= -1.35e+164) tmp = t_1; elseif (z <= 3.45e+69) tmp = x + (y / ((a - z) / (t - x))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.35e+164], t$95$1, If[LessEqual[z, 3.45e+69], N[(x + N[(y / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -1.35 \cdot 10^{+164}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.45 \cdot 10^{+69}:\\
\;\;\;\;x + \frac{y}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.35000000000000003e164 or 3.4500000000000001e69 < z Initial program 55.7%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6441.9%
Simplified41.9%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6467.1%
Applied egg-rr67.1%
if -1.35000000000000003e164 < z < 3.4500000000000001e69Initial program 92.4%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6492.5%
Applied egg-rr92.5%
Taylor expanded in y around inf
Simplified81.2%
Final simplification76.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= z -1.35e+164)
t_1
(if (<= z 1.22e+68) (+ x (* y (/ (- t x) (- a z)))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -1.35e+164) {
tmp = t_1;
} else if (z <= 1.22e+68) {
tmp = x + (y * ((t - x) / (a - z)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
if (z <= (-1.35d+164)) then
tmp = t_1
else if (z <= 1.22d+68) then
tmp = x + (y * ((t - x) / (a - z)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -1.35e+164) {
tmp = t_1;
} else if (z <= 1.22e+68) {
tmp = x + (y * ((t - x) / (a - z)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if z <= -1.35e+164: tmp = t_1 elif z <= 1.22e+68: tmp = x + (y * ((t - x) / (a - z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -1.35e+164) tmp = t_1; elseif (z <= 1.22e+68) tmp = Float64(x + Float64(y * Float64(Float64(t - x) / Float64(a - z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (z <= -1.35e+164) tmp = t_1; elseif (z <= 1.22e+68) tmp = x + (y * ((t - x) / (a - z))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.35e+164], t$95$1, If[LessEqual[z, 1.22e+68], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -1.35 \cdot 10^{+164}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.22 \cdot 10^{+68}:\\
\;\;\;\;x + y \cdot \frac{t - x}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.35000000000000003e164 or 1.22e68 < z Initial program 55.7%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6441.9%
Simplified41.9%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6467.1%
Applied egg-rr67.1%
if -1.35000000000000003e164 < z < 1.22e68Initial program 92.4%
Taylor expanded in y around inf
Simplified81.1%
Final simplification76.0%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* x (+ (/ (- y z) (- z a)) 1.0)))) (if (<= x -5.8e+39) t_1 (if (<= x 5.8e-9) (* t (/ (- y z) (- a z))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (((y - z) / (z - a)) + 1.0);
double tmp;
if (x <= -5.8e+39) {
tmp = t_1;
} else if (x <= 5.8e-9) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x * (((y - z) / (z - a)) + 1.0d0)
if (x <= (-5.8d+39)) then
tmp = t_1
else if (x <= 5.8d-9) then
tmp = t * ((y - z) / (a - z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (((y - z) / (z - a)) + 1.0);
double tmp;
if (x <= -5.8e+39) {
tmp = t_1;
} else if (x <= 5.8e-9) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (((y - z) / (z - a)) + 1.0) tmp = 0 if x <= -5.8e+39: tmp = t_1 elif x <= 5.8e-9: tmp = t * ((y - z) / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(Float64(Float64(y - z) / Float64(z - a)) + 1.0)) tmp = 0.0 if (x <= -5.8e+39) tmp = t_1; elseif (x <= 5.8e-9) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (((y - z) / (z - a)) + 1.0); tmp = 0.0; if (x <= -5.8e+39) tmp = t_1; elseif (x <= 5.8e-9) tmp = t * ((y - z) / (a - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(N[(N[(y - z), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.8e+39], t$95$1, If[LessEqual[x, 5.8e-9], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(\frac{y - z}{z - a} + 1\right)\\
\mathbf{if}\;x \leq -5.8 \cdot 10^{+39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{-9}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -5.80000000000000059e39 or 5.79999999999999982e-9 < x Initial program 74.8%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6465.1%
Simplified65.1%
if -5.80000000000000059e39 < x < 5.79999999999999982e-9Initial program 82.7%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6457.7%
Simplified57.7%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6471.9%
Applied egg-rr71.9%
Final simplification68.8%
(FPCore (x y z t a) :precision binary64 (if (<= a -3.8e+16) x (if (<= a 1.4e-183) (* x (/ y z)) (if (<= a 1.05e+184) (+ x t) x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.8e+16) {
tmp = x;
} else if (a <= 1.4e-183) {
tmp = x * (y / z);
} else if (a <= 1.05e+184) {
tmp = x + 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 <= (-3.8d+16)) then
tmp = x
else if (a <= 1.4d-183) then
tmp = x * (y / z)
else if (a <= 1.05d+184) then
tmp = x + 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 <= -3.8e+16) {
tmp = x;
} else if (a <= 1.4e-183) {
tmp = x * (y / z);
} else if (a <= 1.05e+184) {
tmp = x + t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.8e+16: tmp = x elif a <= 1.4e-183: tmp = x * (y / z) elif a <= 1.05e+184: tmp = x + t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.8e+16) tmp = x; elseif (a <= 1.4e-183) tmp = Float64(x * Float64(y / z)); elseif (a <= 1.05e+184) tmp = Float64(x + t); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3.8e+16) tmp = x; elseif (a <= 1.4e-183) tmp = x * (y / z); elseif (a <= 1.05e+184) tmp = x + t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.8e+16], x, If[LessEqual[a, 1.4e-183], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.05e+184], N[(x + t), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.8 \cdot 10^{+16}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{-183}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{+184}:\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -3.8e16 or 1.05e184 < a Initial program 83.1%
Taylor expanded in a around inf
Simplified44.6%
if -3.8e16 < a < 1.39999999999999992e-183Initial program 73.2%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6435.3%
Simplified35.3%
Taylor expanded in a around 0
/-lowering-/.f6443.4%
Simplified43.4%
if 1.39999999999999992e-183 < a < 1.05e184Initial program 82.4%
Taylor expanded in t around inf
/-lowering-/.f64N/A
--lowering--.f6466.1%
Simplified66.1%
Taylor expanded in z around inf
Simplified38.4%
(FPCore (x y z t a) :precision binary64 (if (<= z -3.15e+37) t (if (<= z 1.2e+71) x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.15e+37) {
tmp = t;
} else if (z <= 1.2e+71) {
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.15d+37)) then
tmp = t
else if (z <= 1.2d+71) 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.15e+37) {
tmp = t;
} else if (z <= 1.2e+71) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.15e+37: tmp = t elif z <= 1.2e+71: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.15e+37) tmp = t; elseif (z <= 1.2e+71) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.15e+37) tmp = t; elseif (z <= 1.2e+71) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.15e+37], t, If[LessEqual[z, 1.2e+71], x, t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.15 \cdot 10^{+37}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{+71}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -3.14999999999999992e37 or 1.1999999999999999e71 < z Initial program 58.7%
Taylor expanded in z around inf
Simplified46.4%
if -3.14999999999999992e37 < z < 1.1999999999999999e71Initial program 95.1%
Taylor expanded in a around inf
Simplified30.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 79.1%
Taylor expanded in z around inf
Simplified25.5%
herbie shell --seed 2024160
(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)))))