
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - z) * (t - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * (t - x)) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - z) * (t - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * (t - x)) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (/ 1.0 (/ (/ z (- t x)) (- a y))))))
(if (<= z -6.8e+137)
t_1
(if (<= z 3.1e+157) (+ x (/ (- t x) (/ (- a z) (- y z)))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + (1.0 / ((z / (t - x)) / (a - y)));
double tmp;
if (z <= -6.8e+137) {
tmp = t_1;
} else if (z <= 3.1e+157) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t + (1.0d0 / ((z / (t - x)) / (a - y)))
if (z <= (-6.8d+137)) then
tmp = t_1
else if (z <= 3.1d+157) then
tmp = x + ((t - x) / ((a - z) / (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 = t + (1.0 / ((z / (t - x)) / (a - y)));
double tmp;
if (z <= -6.8e+137) {
tmp = t_1;
} else if (z <= 3.1e+157) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + (1.0 / ((z / (t - x)) / (a - y))) tmp = 0 if z <= -6.8e+137: tmp = t_1 elif z <= 3.1e+157: tmp = x + ((t - x) / ((a - z) / (y - z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(1.0 / Float64(Float64(z / Float64(t - x)) / Float64(a - y)))) tmp = 0.0 if (z <= -6.8e+137) tmp = t_1; elseif (z <= 3.1e+157) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + (1.0 / ((z / (t - x)) / (a - y))); tmp = 0.0; if (z <= -6.8e+137) tmp = t_1; elseif (z <= 3.1e+157) tmp = x + ((t - x) / ((a - z) / (y - z))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(1.0 / N[(N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.8e+137], t$95$1, If[LessEqual[z, 3.1e+157], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{1}{\frac{\frac{z}{t - x}}{a - y}}\\
\mathbf{if}\;z \leq -6.8 \cdot 10^{+137}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{+157}:\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -6.79999999999999973e137 or 3.0999999999999997e157 < z Initial program 21.6%
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
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6461.0%
Simplified61.0%
clear-numN/A
/-lowering-/.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6494.2%
Applied egg-rr94.2%
if -6.79999999999999973e137 < z < 3.0999999999999997e157Initial program 84.7%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f6484.7%
Applied egg-rr84.7%
associate-/r/N/A
/-rgt-identityN/A
*-commutativeN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6493.8%
Applied egg-rr93.8%
Final simplification93.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* (- t x) y) a)) (t_2 (- x (* t (/ z a)))))
(if (<= a -3.6e+43)
t_2
(if (<= a -3.7e-52)
t_1
(if (<= a -4.6e-284)
t
(if (<= a 5e-145)
(* x (/ (- y a) z))
(if (<= a 4200000000000.0) t (if (<= a 2.7e+107) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = ((t - x) * y) / a;
double t_2 = x - (t * (z / a));
double tmp;
if (a <= -3.6e+43) {
tmp = t_2;
} else if (a <= -3.7e-52) {
tmp = t_1;
} else if (a <= -4.6e-284) {
tmp = t;
} else if (a <= 5e-145) {
tmp = x * ((y - a) / z);
} else if (a <= 4200000000000.0) {
tmp = t;
} else if (a <= 2.7e+107) {
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
t_2 = x - (t * (z / a))
if (a <= (-3.6d+43)) then
tmp = t_2
else if (a <= (-3.7d-52)) then
tmp = t_1
else if (a <= (-4.6d-284)) then
tmp = t
else if (a <= 5d-145) then
tmp = x * ((y - a) / z)
else if (a <= 4200000000000.0d0) then
tmp = t
else if (a <= 2.7d+107) 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;
double t_2 = x - (t * (z / a));
double tmp;
if (a <= -3.6e+43) {
tmp = t_2;
} else if (a <= -3.7e-52) {
tmp = t_1;
} else if (a <= -4.6e-284) {
tmp = t;
} else if (a <= 5e-145) {
tmp = x * ((y - a) / z);
} else if (a <= 4200000000000.0) {
tmp = t;
} else if (a <= 2.7e+107) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = ((t - x) * y) / a t_2 = x - (t * (z / a)) tmp = 0 if a <= -3.6e+43: tmp = t_2 elif a <= -3.7e-52: tmp = t_1 elif a <= -4.6e-284: tmp = t elif a <= 5e-145: tmp = x * ((y - a) / z) elif a <= 4200000000000.0: tmp = t elif a <= 2.7e+107: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(Float64(t - x) * y) / a) t_2 = Float64(x - Float64(t * Float64(z / a))) tmp = 0.0 if (a <= -3.6e+43) tmp = t_2; elseif (a <= -3.7e-52) tmp = t_1; elseif (a <= -4.6e-284) tmp = t; elseif (a <= 5e-145) tmp = Float64(x * Float64(Float64(y - a) / z)); elseif (a <= 4200000000000.0) tmp = t; elseif (a <= 2.7e+107) 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; t_2 = x - (t * (z / a)); tmp = 0.0; if (a <= -3.6e+43) tmp = t_2; elseif (a <= -3.7e-52) tmp = t_1; elseif (a <= -4.6e-284) tmp = t; elseif (a <= 5e-145) tmp = x * ((y - a) / z); elseif (a <= 4200000000000.0) tmp = t; elseif (a <= 2.7e+107) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision] / a), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(t * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.6e+43], t$95$2, If[LessEqual[a, -3.7e-52], t$95$1, If[LessEqual[a, -4.6e-284], t, If[LessEqual[a, 5e-145], N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4200000000000.0], t, If[LessEqual[a, 2.7e+107], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\left(t - x\right) \cdot y}{a}\\
t_2 := x - t \cdot \frac{z}{a}\\
\mathbf{if}\;a \leq -3.6 \cdot 10^{+43}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -3.7 \cdot 10^{-52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -4.6 \cdot 10^{-284}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 5 \cdot 10^{-145}:\\
\;\;\;\;x \cdot \frac{y - a}{z}\\
\mathbf{elif}\;a \leq 4200000000000:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+107}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -3.6000000000000001e43 or 2.7000000000000001e107 < a Initial program 66.7%
Taylor expanded in y around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6457.1%
Simplified57.1%
Taylor expanded in a around inf
Simplified54.8%
Taylor expanded in t around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6460.5%
Simplified60.5%
if -3.6000000000000001e43 < a < -3.6999999999999997e-52 or 4.2e12 < a < 2.7000000000000001e107Initial program 78.2%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6454.6%
Simplified54.6%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6448.6%
Simplified48.6%
if -3.6999999999999997e-52 < a < -4.6e-284 or 4.9999999999999998e-145 < a < 4.2e12Initial program 73.5%
Taylor expanded in z around inf
Simplified41.6%
if -4.6e-284 < a < 4.9999999999999998e-145Initial program 73.8%
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
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6488.3%
Simplified88.3%
Taylor expanded in x around -inf
mul-1-negN/A
div-subN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
associate-*r/N/A
distribute-lft-out--N/A
/-lowering-/.f64N/A
mul-1-negN/A
cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
+-lowering-+.f64N/A
neg-sub0N/A
--lowering--.f6451.3%
Simplified51.3%
Final simplification51.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* t (/ z a)))))
(if (<= a -8e-57)
t_1
(if (<= a -4.7e-284)
t
(if (<= a 3e-144)
(/ (* x (- y a)) z)
(if (<= a 2.7e+107) (+ t (* a (/ t z))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (t * (z / a));
double tmp;
if (a <= -8e-57) {
tmp = t_1;
} else if (a <= -4.7e-284) {
tmp = t;
} else if (a <= 3e-144) {
tmp = (x * (y - a)) / z;
} else if (a <= 2.7e+107) {
tmp = t + (a * (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 = x - (t * (z / a))
if (a <= (-8d-57)) then
tmp = t_1
else if (a <= (-4.7d-284)) then
tmp = t
else if (a <= 3d-144) then
tmp = (x * (y - a)) / z
else if (a <= 2.7d+107) then
tmp = t + (a * (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 = x - (t * (z / a));
double tmp;
if (a <= -8e-57) {
tmp = t_1;
} else if (a <= -4.7e-284) {
tmp = t;
} else if (a <= 3e-144) {
tmp = (x * (y - a)) / z;
} else if (a <= 2.7e+107) {
tmp = t + (a * (t / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (t * (z / a)) tmp = 0 if a <= -8e-57: tmp = t_1 elif a <= -4.7e-284: tmp = t elif a <= 3e-144: tmp = (x * (y - a)) / z elif a <= 2.7e+107: tmp = t + (a * (t / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(t * Float64(z / a))) tmp = 0.0 if (a <= -8e-57) tmp = t_1; elseif (a <= -4.7e-284) tmp = t; elseif (a <= 3e-144) tmp = Float64(Float64(x * Float64(y - a)) / z); elseif (a <= 2.7e+107) tmp = Float64(t + Float64(a * Float64(t / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (t * (z / a)); tmp = 0.0; if (a <= -8e-57) tmp = t_1; elseif (a <= -4.7e-284) tmp = t; elseif (a <= 3e-144) tmp = (x * (y - a)) / z; elseif (a <= 2.7e+107) tmp = t + (a * (t / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(t * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8e-57], t$95$1, If[LessEqual[a, -4.7e-284], t, If[LessEqual[a, 3e-144], N[(N[(x * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[a, 2.7e+107], N[(t + N[(a * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - t \cdot \frac{z}{a}\\
\mathbf{if}\;a \leq -8 \cdot 10^{-57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -4.7 \cdot 10^{-284}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 3 \cdot 10^{-144}:\\
\;\;\;\;\frac{x \cdot \left(y - a\right)}{z}\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+107}:\\
\;\;\;\;t + a \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -7.99999999999999964e-57 or 2.7000000000000001e107 < a Initial program 69.7%
Taylor expanded in y around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6453.0%
Simplified53.0%
Taylor expanded in a around inf
Simplified49.6%
Taylor expanded in t around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6454.2%
Simplified54.2%
if -7.99999999999999964e-57 < a < -4.70000000000000022e-284Initial program 73.9%
Taylor expanded in z around inf
Simplified38.5%
if -4.70000000000000022e-284 < a < 2.9999999999999999e-144Initial program 73.8%
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
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6488.3%
Simplified88.3%
Taylor expanded in t around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6447.3%
Simplified47.3%
if 2.9999999999999999e-144 < a < 2.7000000000000001e107Initial program 72.9%
Taylor expanded in y around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6434.3%
Simplified34.3%
Taylor expanded in x around 0
mul-1-negN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
neg-lowering-neg.f64N/A
--lowering--.f6422.5%
Simplified22.5%
Taylor expanded in z around inf
+-lowering-+.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6436.7%
Simplified36.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* (- t x) (/ (- a y) z)))))
(if (<= z -2.8e-15)
t_1
(if (<= z -1.9e-94)
(* (- t x) (/ y (- a z)))
(if (<= z 1.65e+25) (+ x (/ (- t x) (/ a (- y 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.8e-15) {
tmp = t_1;
} else if (z <= -1.9e-94) {
tmp = (t - x) * (y / (a - z));
} else if (z <= 1.65e+25) {
tmp = x + ((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) :: tmp
t_1 = t + ((t - x) * ((a - y) / z))
if (z <= (-2.8d-15)) then
tmp = t_1
else if (z <= (-1.9d-94)) then
tmp = (t - x) * (y / (a - z))
else if (z <= 1.65d+25) then
tmp = x + ((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 = t + ((t - x) * ((a - y) / z));
double tmp;
if (z <= -2.8e-15) {
tmp = t_1;
} else if (z <= -1.9e-94) {
tmp = (t - x) * (y / (a - z));
} else if (z <= 1.65e+25) {
tmp = x + ((t - x) / (a / (y - 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.8e-15: tmp = t_1 elif z <= -1.9e-94: tmp = (t - x) * (y / (a - z)) elif z <= 1.65e+25: tmp = x + ((t - x) / (a / (y - 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.8e-15) tmp = t_1; elseif (z <= -1.9e-94) tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z))); elseif (z <= 1.65e+25) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - 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.8e-15) tmp = t_1; elseif (z <= -1.9e-94) tmp = (t - x) * (y / (a - z)); elseif (z <= 1.65e+25) tmp = x + ((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[(t + N[(N[(t - x), $MachinePrecision] * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.8e-15], t$95$1, If[LessEqual[z, -1.9e-94], N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.65e+25], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - 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.8 \cdot 10^{-15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.9 \cdot 10^{-94}:\\
\;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{+25}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.80000000000000014e-15 or 1.6500000000000001e25 < z Initial program 42.5%
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
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6462.3%
Simplified62.3%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6480.5%
Applied egg-rr80.5%
if -2.80000000000000014e-15 < z < -1.9e-94Initial program 91.0%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6478.2%
Simplified78.2%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6482.5%
Applied egg-rr82.5%
if -1.9e-94 < z < 1.6500000000000001e25Initial program 92.5%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f6492.5%
Applied egg-rr92.5%
associate-/r/N/A
/-rgt-identityN/A
*-commutativeN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6497.6%
Applied egg-rr97.6%
Taylor expanded in a around inf
/-lowering-/.f64N/A
--lowering--.f6482.8%
Simplified82.8%
Final simplification81.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* (- t x) (/ a z)))))
(if (<= z -5.6e-15)
t_1
(if (<= z -2.6e-97)
(* (- t x) (/ y (- a z)))
(if (<= z 1.8e+38) (+ x (/ (- t x) (/ a y))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((t - x) * (a / z));
double tmp;
if (z <= -5.6e-15) {
tmp = t_1;
} else if (z <= -2.6e-97) {
tmp = (t - x) * (y / (a - z));
} else if (z <= 1.8e+38) {
tmp = x + ((t - x) / (a / y));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t + ((t - x) * (a / z))
if (z <= (-5.6d-15)) then
tmp = t_1
else if (z <= (-2.6d-97)) then
tmp = (t - x) * (y / (a - z))
else if (z <= 1.8d+38) then
tmp = x + ((t - x) / (a / y))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((t - x) * (a / z));
double tmp;
if (z <= -5.6e-15) {
tmp = t_1;
} else if (z <= -2.6e-97) {
tmp = (t - x) * (y / (a - z));
} else if (z <= 1.8e+38) {
tmp = x + ((t - x) / (a / y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((t - x) * (a / z)) tmp = 0 if z <= -5.6e-15: tmp = t_1 elif z <= -2.6e-97: tmp = (t - x) * (y / (a - z)) elif z <= 1.8e+38: tmp = x + ((t - x) / (a / y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(t - x) * Float64(a / z))) tmp = 0.0 if (z <= -5.6e-15) tmp = t_1; elseif (z <= -2.6e-97) tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z))); elseif (z <= 1.8e+38) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((t - x) * (a / z)); tmp = 0.0; if (z <= -5.6e-15) tmp = t_1; elseif (z <= -2.6e-97) tmp = (t - x) * (y / (a - z)); elseif (z <= 1.8e+38) tmp = x + ((t - x) / (a / y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(t - x), $MachinePrecision] * N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.6e-15], t$95$1, If[LessEqual[z, -2.6e-97], N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e+38], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \left(t - x\right) \cdot \frac{a}{z}\\
\mathbf{if}\;z \leq -5.6 \cdot 10^{-15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{-97}:\\
\;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+38}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -5.60000000000000028e-15 or 1.79999999999999985e38 < z Initial program 42.0%
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
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6462.0%
Simplified62.0%
Taylor expanded in y around 0
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6446.3%
Simplified46.3%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f6455.5%
Applied egg-rr55.5%
if -5.60000000000000028e-15 < z < -2.60000000000000007e-97Initial program 91.0%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6478.2%
Simplified78.2%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6482.5%
Applied egg-rr82.5%
if -2.60000000000000007e-97 < z < 1.79999999999999985e38Initial program 92.6%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f6492.5%
Applied egg-rr92.5%
associate-/r/N/A
/-rgt-identityN/A
*-commutativeN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6497.6%
Applied egg-rr97.6%
Taylor expanded in z around 0
/-lowering-/.f6477.9%
Simplified77.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* (- t x) (/ a z)))))
(if (<= z -1.02e-13)
t_1
(if (<= z -2.8e-133)
(* (- t x) (/ y (- a z)))
(if (<= z 1.4e+34) (+ x (/ (* (- t x) y) a)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((t - x) * (a / z));
double tmp;
if (z <= -1.02e-13) {
tmp = t_1;
} else if (z <= -2.8e-133) {
tmp = (t - x) * (y / (a - z));
} else if (z <= 1.4e+34) {
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 + ((t - x) * (a / z))
if (z <= (-1.02d-13)) then
tmp = t_1
else if (z <= (-2.8d-133)) then
tmp = (t - x) * (y / (a - z))
else if (z <= 1.4d+34) 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 + ((t - x) * (a / z));
double tmp;
if (z <= -1.02e-13) {
tmp = t_1;
} else if (z <= -2.8e-133) {
tmp = (t - x) * (y / (a - z));
} else if (z <= 1.4e+34) {
tmp = x + (((t - x) * y) / a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((t - x) * (a / z)) tmp = 0 if z <= -1.02e-13: tmp = t_1 elif z <= -2.8e-133: tmp = (t - x) * (y / (a - z)) elif z <= 1.4e+34: 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(t - x) * Float64(a / z))) tmp = 0.0 if (z <= -1.02e-13) tmp = t_1; elseif (z <= -2.8e-133) tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z))); elseif (z <= 1.4e+34) tmp = Float64(x + Float64(Float64(Float64(t - x) * y) / a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((t - x) * (a / z)); tmp = 0.0; if (z <= -1.02e-13) tmp = t_1; elseif (z <= -2.8e-133) tmp = (t - x) * (y / (a - z)); elseif (z <= 1.4e+34) 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[(t - x), $MachinePrecision] * N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.02e-13], t$95$1, If[LessEqual[z, -2.8e-133], N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.4e+34], N[(x + N[(N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \left(t - x\right) \cdot \frac{a}{z}\\
\mathbf{if}\;z \leq -1.02 \cdot 10^{-13}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{-133}:\\
\;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{+34}:\\
\;\;\;\;x + \frac{\left(t - x\right) \cdot y}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.0199999999999999e-13 or 1.40000000000000004e34 < z Initial program 42.0%
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
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6462.0%
Simplified62.0%
Taylor expanded in y around 0
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6446.3%
Simplified46.3%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f6455.5%
Applied egg-rr55.5%
if -1.0199999999999999e-13 < z < -2.7999999999999999e-133Initial program 86.7%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6467.5%
Simplified67.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6477.0%
Applied egg-rr77.0%
if -2.7999999999999999e-133 < z < 1.40000000000000004e34Initial program 93.7%
Taylor expanded in z around 0
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6473.6%
Simplified73.6%
Final simplification66.6%
(FPCore (x y z t a)
:precision binary64
(if (<= y -1.95e-13)
(* y (/ (- t x) (- a z)))
(if (<= y -1.5e-129)
(- x (* t (/ z a)))
(if (<= y 3.3e-96) (+ t (* (- t x) (/ a z))) (* (- t x) (/ y (- a z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -1.95e-13) {
tmp = y * ((t - x) / (a - z));
} else if (y <= -1.5e-129) {
tmp = x - (t * (z / a));
} else if (y <= 3.3e-96) {
tmp = t + ((t - x) * (a / z));
} else {
tmp = (t - x) * (y / (a - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (y <= (-1.95d-13)) then
tmp = y * ((t - x) / (a - z))
else if (y <= (-1.5d-129)) then
tmp = x - (t * (z / a))
else if (y <= 3.3d-96) then
tmp = t + ((t - x) * (a / z))
else
tmp = (t - x) * (y / (a - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -1.95e-13) {
tmp = y * ((t - x) / (a - z));
} else if (y <= -1.5e-129) {
tmp = x - (t * (z / a));
} else if (y <= 3.3e-96) {
tmp = t + ((t - x) * (a / z));
} else {
tmp = (t - x) * (y / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -1.95e-13: tmp = y * ((t - x) / (a - z)) elif y <= -1.5e-129: tmp = x - (t * (z / a)) elif y <= 3.3e-96: tmp = t + ((t - x) * (a / z)) else: tmp = (t - x) * (y / (a - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -1.95e-13) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (y <= -1.5e-129) tmp = Float64(x - Float64(t * Float64(z / a))); elseif (y <= 3.3e-96) tmp = Float64(t + Float64(Float64(t - x) * Float64(a / z))); else tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -1.95e-13) tmp = y * ((t - x) / (a - z)); elseif (y <= -1.5e-129) tmp = x - (t * (z / a)); elseif (y <= 3.3e-96) tmp = t + ((t - x) * (a / z)); else tmp = (t - x) * (y / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -1.95e-13], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.5e-129], N[(x - N[(t * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e-96], N[(t + N[(N[(t - x), $MachinePrecision] * N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.95 \cdot 10^{-13}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;y \leq -1.5 \cdot 10^{-129}:\\
\;\;\;\;x - t \cdot \frac{z}{a}\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{-96}:\\
\;\;\;\;t + \left(t - x\right) \cdot \frac{a}{z}\\
\mathbf{else}:\\
\;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
\end{array}
\end{array}
if y < -1.95000000000000002e-13Initial program 66.9%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6453.8%
Simplified53.8%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6469.8%
Applied egg-rr69.8%
if -1.95000000000000002e-13 < y < -1.4999999999999999e-129Initial program 81.5%
Taylor expanded in y around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6454.4%
Simplified54.4%
Taylor expanded in a around inf
Simplified49.8%
Taylor expanded in t around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6453.1%
Simplified53.1%
if -1.4999999999999999e-129 < y < 3.2999999999999999e-96Initial program 63.5%
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
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6451.9%
Simplified51.9%
Taylor expanded in y around 0
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6452.0%
Simplified52.0%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f6458.1%
Applied egg-rr58.1%
if 3.2999999999999999e-96 < y Initial program 80.1%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6463.4%
Simplified63.4%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6470.6%
Applied egg-rr70.6%
Final simplification64.1%
(FPCore (x y z t a)
:precision binary64
(if (<= y -5e-13)
(* y (/ (- t x) (- a z)))
(if (<= y -5e-155)
(- x (* t (/ z a)))
(if (<= y 4e-82) t (* (- t x) (/ y (- a z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -5e-13) {
tmp = y * ((t - x) / (a - z));
} else if (y <= -5e-155) {
tmp = x - (t * (z / a));
} else if (y <= 4e-82) {
tmp = t;
} else {
tmp = (t - x) * (y / (a - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (y <= (-5d-13)) then
tmp = y * ((t - x) / (a - z))
else if (y <= (-5d-155)) then
tmp = x - (t * (z / a))
else if (y <= 4d-82) then
tmp = t
else
tmp = (t - x) * (y / (a - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -5e-13) {
tmp = y * ((t - x) / (a - z));
} else if (y <= -5e-155) {
tmp = x - (t * (z / a));
} else if (y <= 4e-82) {
tmp = t;
} else {
tmp = (t - x) * (y / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -5e-13: tmp = y * ((t - x) / (a - z)) elif y <= -5e-155: tmp = x - (t * (z / a)) elif y <= 4e-82: tmp = t else: tmp = (t - x) * (y / (a - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -5e-13) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (y <= -5e-155) tmp = Float64(x - Float64(t * Float64(z / a))); elseif (y <= 4e-82) tmp = t; else tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -5e-13) tmp = y * ((t - x) / (a - z)); elseif (y <= -5e-155) tmp = x - (t * (z / a)); elseif (y <= 4e-82) tmp = t; else tmp = (t - x) * (y / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -5e-13], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -5e-155], N[(x - N[(t * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4e-82], t, N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5 \cdot 10^{-13}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;y \leq -5 \cdot 10^{-155}:\\
\;\;\;\;x - t \cdot \frac{z}{a}\\
\mathbf{elif}\;y \leq 4 \cdot 10^{-82}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
\end{array}
\end{array}
if y < -4.9999999999999999e-13Initial program 66.9%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6453.8%
Simplified53.8%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6469.8%
Applied egg-rr69.8%
if -4.9999999999999999e-13 < y < -4.9999999999999999e-155Initial program 81.0%
Taylor expanded in y around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6456.6%
Simplified56.6%
Taylor expanded in a around inf
Simplified50.0%
Taylor expanded in t around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6452.9%
Simplified52.9%
if -4.9999999999999999e-155 < y < 4e-82Initial program 64.4%
Taylor expanded in z around inf
Simplified46.2%
if 4e-82 < y Initial program 79.8%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6465.7%
Simplified65.7%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6473.5%
Applied egg-rr73.5%
Final simplification60.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (- t x) (/ y (- a z)))))
(if (<= y -2.5e-11)
t_1
(if (<= y -2.4e-153) (- x (* t (/ z a))) (if (<= y 2.5e-82) 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 (y <= -2.5e-11) {
tmp = t_1;
} else if (y <= -2.4e-153) {
tmp = x - (t * (z / a));
} else if (y <= 2.5e-82) {
tmp = 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 (y <= (-2.5d-11)) then
tmp = t_1
else if (y <= (-2.4d-153)) then
tmp = x - (t * (z / a))
else if (y <= 2.5d-82) then
tmp = 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 (y <= -2.5e-11) {
tmp = t_1;
} else if (y <= -2.4e-153) {
tmp = x - (t * (z / a));
} else if (y <= 2.5e-82) {
tmp = t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (t - x) * (y / (a - z)) tmp = 0 if y <= -2.5e-11: tmp = t_1 elif y <= -2.4e-153: tmp = x - (t * (z / a)) elif y <= 2.5e-82: tmp = t else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(t - x) * Float64(y / Float64(a - z))) tmp = 0.0 if (y <= -2.5e-11) tmp = t_1; elseif (y <= -2.4e-153) tmp = Float64(x - Float64(t * Float64(z / a))); elseif (y <= 2.5e-82) tmp = 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 (y <= -2.5e-11) tmp = t_1; elseif (y <= -2.4e-153) tmp = x - (t * (z / a)); elseif (y <= 2.5e-82) tmp = t; else tmp = t_1; 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]}, If[LessEqual[y, -2.5e-11], t$95$1, If[LessEqual[y, -2.4e-153], N[(x - N[(t * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.5e-82], t, t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t - x\right) \cdot \frac{y}{a - z}\\
\mathbf{if}\;y \leq -2.5 \cdot 10^{-11}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.4 \cdot 10^{-153}:\\
\;\;\;\;x - t \cdot \frac{z}{a}\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{-82}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.50000000000000009e-11 or 2.4999999999999999e-82 < y Initial program 73.7%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6460.1%
Simplified60.1%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6471.1%
Applied egg-rr71.1%
if -2.50000000000000009e-11 < y < -2.4000000000000002e-153Initial program 81.0%
Taylor expanded in y around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6456.6%
Simplified56.6%
Taylor expanded in a around inf
Simplified50.0%
Taylor expanded in t around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6452.9%
Simplified52.9%
if -2.4000000000000002e-153 < y < 2.4999999999999999e-82Initial program 64.4%
Taylor expanded in z around inf
Simplified46.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* (- t x) (/ (- a y) z)))))
(if (<= z -1.02e+138)
t_1
(if (<= z 2.3e+153) (+ x (/ (- t x) (/ (- a z) (- y 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 <= -1.02e+138) {
tmp = t_1;
} else if (z <= 2.3e+153) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t + ((t - x) * ((a - y) / z))
if (z <= (-1.02d+138)) then
tmp = t_1
else if (z <= 2.3d+153) then
tmp = x + ((t - x) / ((a - z) / (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 = t + ((t - x) * ((a - y) / z));
double tmp;
if (z <= -1.02e+138) {
tmp = t_1;
} else if (z <= 2.3e+153) {
tmp = x + ((t - x) / ((a - z) / (y - 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 <= -1.02e+138: tmp = t_1 elif z <= 2.3e+153: tmp = x + ((t - x) / ((a - z) / (y - 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 <= -1.02e+138) tmp = t_1; elseif (z <= 2.3e+153) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - 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 <= -1.02e+138) tmp = t_1; elseif (z <= 2.3e+153) tmp = x + ((t - x) / ((a - z) / (y - 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, -1.02e+138], t$95$1, If[LessEqual[z, 2.3e+153], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - 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 -1.02 \cdot 10^{+138}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{+153}:\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.02e138 or 2.3000000000000001e153 < z Initial program 21.6%
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
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6461.0%
Simplified61.0%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6494.0%
Applied egg-rr94.0%
if -1.02e138 < z < 2.3000000000000001e153Initial program 84.7%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f6484.7%
Applied egg-rr84.7%
associate-/r/N/A
/-rgt-identityN/A
*-commutativeN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6493.8%
Applied egg-rr93.8%
Final simplification93.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* (- t x) (/ (- a y) z)))))
(if (<= z -6.7e+137)
t_1
(if (<= z 3.4e+129) (+ 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 <= -6.7e+137) {
tmp = t_1;
} else if (z <= 3.4e+129) {
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 <= (-6.7d+137)) then
tmp = t_1
else if (z <= 3.4d+129) 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 <= -6.7e+137) {
tmp = t_1;
} else if (z <= 3.4e+129) {
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 <= -6.7e+137: tmp = t_1 elif z <= 3.4e+129: 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 <= -6.7e+137) tmp = t_1; elseif (z <= 3.4e+129) 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 <= -6.7e+137) tmp = t_1; elseif (z <= 3.4e+129) 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, -6.7e+137], t$95$1, If[LessEqual[z, 3.4e+129], 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 -6.7 \cdot 10^{+137}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{+129}:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -6.6999999999999999e137 or 3.40000000000000018e129 < z Initial program 24.2%
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
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6463.1%
Simplified63.1%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6494.3%
Applied egg-rr94.3%
if -6.6999999999999999e137 < z < 3.40000000000000018e129Initial program 85.0%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
--lowering--.f6491.0%
Applied egg-rr91.0%
Final simplification91.7%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.85e-15)
t
(if (<= z 7.5e-42)
(/ (* (- t x) y) a)
(if (<= z 2.1e+129) (- x (* t (/ z a))) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.85e-15) {
tmp = t;
} else if (z <= 7.5e-42) {
tmp = ((t - x) * y) / a;
} else if (z <= 2.1e+129) {
tmp = x - (t * (z / 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.85d-15)) then
tmp = t
else if (z <= 7.5d-42) then
tmp = ((t - x) * y) / a
else if (z <= 2.1d+129) then
tmp = x - (t * (z / 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.85e-15) {
tmp = t;
} else if (z <= 7.5e-42) {
tmp = ((t - x) * y) / a;
} else if (z <= 2.1e+129) {
tmp = x - (t * (z / a));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.85e-15: tmp = t elif z <= 7.5e-42: tmp = ((t - x) * y) / a elif z <= 2.1e+129: tmp = x - (t * (z / a)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.85e-15) tmp = t; elseif (z <= 7.5e-42) tmp = Float64(Float64(Float64(t - x) * y) / a); elseif (z <= 2.1e+129) tmp = Float64(x - Float64(t * Float64(z / a))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.85e-15) tmp = t; elseif (z <= 7.5e-42) tmp = ((t - x) * y) / a; elseif (z <= 2.1e+129) tmp = x - (t * (z / a)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.85e-15], t, If[LessEqual[z, 7.5e-42], N[(N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[z, 2.1e+129], N[(x - N[(t * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.85 \cdot 10^{-15}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{-42}:\\
\;\;\;\;\frac{\left(t - x\right) \cdot y}{a}\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{+129}:\\
\;\;\;\;x - t \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -2.8500000000000002e-15 or 2.09999999999999997e129 < z Initial program 37.4%
Taylor expanded in z around inf
Simplified50.5%
if -2.8500000000000002e-15 < z < 7.49999999999999972e-42Initial program 92.8%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6457.7%
Simplified57.7%
Taylor expanded in a around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6443.5%
Simplified43.5%
if 7.49999999999999972e-42 < z < 2.09999999999999997e129Initial program 71.2%
Taylor expanded in y around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6449.3%
Simplified49.3%
Taylor expanded in a around inf
Simplified39.4%
Taylor expanded in t around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6444.6%
Simplified44.6%
Final simplification45.9%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* t (/ y (- a z))))) (if (<= y -9e+56) t_1 (if (<= y -1.35e-154) x (if (<= y 6.6e-60) t t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (y / (a - z));
double tmp;
if (y <= -9e+56) {
tmp = t_1;
} else if (y <= -1.35e-154) {
tmp = x;
} else if (y <= 6.6e-60) {
tmp = 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 * (y / (a - z))
if (y <= (-9d+56)) then
tmp = t_1
else if (y <= (-1.35d-154)) then
tmp = x
else if (y <= 6.6d-60) then
tmp = 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 * (y / (a - z));
double tmp;
if (y <= -9e+56) {
tmp = t_1;
} else if (y <= -1.35e-154) {
tmp = x;
} else if (y <= 6.6e-60) {
tmp = t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (y / (a - z)) tmp = 0 if y <= -9e+56: tmp = t_1 elif y <= -1.35e-154: tmp = x elif y <= 6.6e-60: tmp = t else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(y / Float64(a - z))) tmp = 0.0 if (y <= -9e+56) tmp = t_1; elseif (y <= -1.35e-154) tmp = x; elseif (y <= 6.6e-60) tmp = t; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (y / (a - z)); tmp = 0.0; if (y <= -9e+56) tmp = t_1; elseif (y <= -1.35e-154) tmp = x; elseif (y <= 6.6e-60) tmp = t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9e+56], t$95$1, If[LessEqual[y, -1.35e-154], x, If[LessEqual[y, 6.6e-60], t, t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y}{a - z}\\
\mathbf{if}\;y \leq -9 \cdot 10^{+56}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.35 \cdot 10^{-154}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 6.6 \cdot 10^{-60}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -9.0000000000000006e56 or 6.5999999999999996e-60 < y Initial program 72.4%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6463.6%
Simplified63.6%
Taylor expanded in t around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6440.2%
Simplified40.2%
if -9.0000000000000006e56 < y < -1.34999999999999995e-154Initial program 79.5%
Taylor expanded in a around inf
Simplified42.5%
if -1.34999999999999995e-154 < y < 6.5999999999999996e-60Initial program 66.1%
Taylor expanded in z around inf
Simplified45.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* (- t x) (/ a z)))))
(if (<= z -5.6e+76)
t_1
(if (<= z 2.25e+36) (+ x (/ (- t x) (/ a (- y z)))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((t - x) * (a / z));
double tmp;
if (z <= -5.6e+76) {
tmp = t_1;
} else if (z <= 2.25e+36) {
tmp = x + ((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) :: tmp
t_1 = t + ((t - x) * (a / z))
if (z <= (-5.6d+76)) then
tmp = t_1
else if (z <= 2.25d+36) then
tmp = x + ((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 = t + ((t - x) * (a / z));
double tmp;
if (z <= -5.6e+76) {
tmp = t_1;
} else if (z <= 2.25e+36) {
tmp = x + ((t - x) / (a / (y - z)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((t - x) * (a / z)) tmp = 0 if z <= -5.6e+76: tmp = t_1 elif z <= 2.25e+36: tmp = x + ((t - x) / (a / (y - z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(t - x) * Float64(a / z))) tmp = 0.0 if (z <= -5.6e+76) tmp = t_1; elseif (z <= 2.25e+36) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((t - x) * (a / z)); tmp = 0.0; if (z <= -5.6e+76) tmp = t_1; elseif (z <= 2.25e+36) tmp = x + ((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[(t + N[(N[(t - x), $MachinePrecision] * N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.6e+76], t$95$1, If[LessEqual[z, 2.25e+36], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \left(t - x\right) \cdot \frac{a}{z}\\
\mathbf{if}\;z \leq -5.6 \cdot 10^{+76}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.25 \cdot 10^{+36}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -5.5999999999999997e76 or 2.24999999999999998e36 < z Initial program 35.5%
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
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6463.1%
Simplified63.1%
Taylor expanded in y around 0
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6448.3%
Simplified48.3%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f6459.7%
Applied egg-rr59.7%
if -5.5999999999999997e76 < z < 2.24999999999999998e36Initial program 89.7%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f6489.6%
Applied egg-rr89.6%
associate-/r/N/A
/-rgt-identityN/A
*-commutativeN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6496.7%
Applied egg-rr96.7%
Taylor expanded in a around inf
/-lowering-/.f64N/A
--lowering--.f6475.2%
Simplified75.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* (- t x) (/ a z)))))
(if (<= z -1.3e+89)
t_1
(if (<= z 2.2e+34) (+ x (* (- t x) (/ (- y z) a))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((t - x) * (a / z));
double tmp;
if (z <= -1.3e+89) {
tmp = t_1;
} else if (z <= 2.2e+34) {
tmp = x + ((t - x) * ((y - z) / 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 + ((t - x) * (a / z))
if (z <= (-1.3d+89)) then
tmp = t_1
else if (z <= 2.2d+34) then
tmp = x + ((t - x) * ((y - z) / 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 + ((t - x) * (a / z));
double tmp;
if (z <= -1.3e+89) {
tmp = t_1;
} else if (z <= 2.2e+34) {
tmp = x + ((t - x) * ((y - z) / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t + ((t - x) * (a / z)) tmp = 0 if z <= -1.3e+89: tmp = t_1 elif z <= 2.2e+34: tmp = x + ((t - x) * ((y - z) / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(t - x) * Float64(a / z))) tmp = 0.0 if (z <= -1.3e+89) tmp = t_1; elseif (z <= 2.2e+34) tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t + ((t - x) * (a / z)); tmp = 0.0; if (z <= -1.3e+89) tmp = t_1; elseif (z <= 2.2e+34) tmp = x + ((t - x) * ((y - z) / a)); 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[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.3e+89], t$95$1, If[LessEqual[z, 2.2e+34], N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \left(t - x\right) \cdot \frac{a}{z}\\
\mathbf{if}\;z \leq -1.3 \cdot 10^{+89}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+34}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.3e89 or 2.2000000000000002e34 < z Initial program 35.5%
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
/-lowering-/.f64N/A
distribute-rgt-out--N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6463.1%
Simplified63.1%
Taylor expanded in y around 0
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6448.3%
Simplified48.3%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f6459.7%
Applied egg-rr59.7%
if -1.3e89 < z < 2.2000000000000002e34Initial program 89.7%
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
fma-defineN/A
fma-lowering-fma.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6496.6%
Applied egg-rr96.6%
Taylor expanded in a around inf
+-lowering-+.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6475.2%
Simplified75.2%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (+ x (/ t (/ a (- y z)))))) (if (<= a -1.15e+102) t_1 (if (<= a 1e-53) (* (- t x) (/ y (- a z))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t / (a / (y - z)));
double tmp;
if (a <= -1.15e+102) {
tmp = t_1;
} else if (a <= 1e-53) {
tmp = (t - 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 = x + (t / (a / (y - z)))
if (a <= (-1.15d+102)) then
tmp = t_1
else if (a <= 1d-53) then
tmp = (t - 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 = x + (t / (a / (y - z)));
double tmp;
if (a <= -1.15e+102) {
tmp = t_1;
} else if (a <= 1e-53) {
tmp = (t - x) * (y / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t / (a / (y - z))) tmp = 0 if a <= -1.15e+102: tmp = t_1 elif a <= 1e-53: tmp = (t - x) * (y / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t / Float64(a / Float64(y - z)))) tmp = 0.0 if (a <= -1.15e+102) tmp = t_1; elseif (a <= 1e-53) tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t / (a / (y - z))); tmp = 0.0; if (a <= -1.15e+102) tmp = t_1; elseif (a <= 1e-53) tmp = (t - x) * (y / (a - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.15e+102], t$95$1, If[LessEqual[a, 1e-53], N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{t}{\frac{a}{y - z}}\\
\mathbf{if}\;a \leq -1.15 \cdot 10^{+102}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 10^{-53}:\\
\;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.1499999999999999e102 or 1.00000000000000003e-53 < a Initial program 67.3%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f6467.4%
Applied egg-rr67.4%
associate-/r/N/A
/-rgt-identityN/A
*-commutativeN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6488.0%
Applied egg-rr88.0%
Taylor expanded in a around inf
/-lowering-/.f64N/A
--lowering--.f6477.8%
Simplified77.8%
Taylor expanded in t around inf
Simplified70.6%
if -1.1499999999999999e102 < a < 1.00000000000000003e-53Initial program 75.6%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6456.6%
Simplified56.6%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6459.2%
Applied egg-rr59.2%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (- x (* t (/ z a))))) (if (<= a -1.15e-45) t_1 (if (<= a 2.7e+107) (+ t (* a (/ t z))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (t * (z / a));
double tmp;
if (a <= -1.15e-45) {
tmp = t_1;
} else if (a <= 2.7e+107) {
tmp = t + (a * (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 = x - (t * (z / a))
if (a <= (-1.15d-45)) then
tmp = t_1
else if (a <= 2.7d+107) then
tmp = t + (a * (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 = x - (t * (z / a));
double tmp;
if (a <= -1.15e-45) {
tmp = t_1;
} else if (a <= 2.7e+107) {
tmp = t + (a * (t / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (t * (z / a)) tmp = 0 if a <= -1.15e-45: tmp = t_1 elif a <= 2.7e+107: tmp = t + (a * (t / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(t * Float64(z / a))) tmp = 0.0 if (a <= -1.15e-45) tmp = t_1; elseif (a <= 2.7e+107) tmp = Float64(t + Float64(a * Float64(t / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (t * (z / a)); tmp = 0.0; if (a <= -1.15e-45) tmp = t_1; elseif (a <= 2.7e+107) tmp = t + (a * (t / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(t * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.15e-45], t$95$1, If[LessEqual[a, 2.7e+107], N[(t + N[(a * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - t \cdot \frac{z}{a}\\
\mathbf{if}\;a \leq -1.15 \cdot 10^{-45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+107}:\\
\;\;\;\;t + a \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.14999999999999996e-45 or 2.7000000000000001e107 < a Initial program 70.3%
Taylor expanded in y around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6454.0%
Simplified54.0%
Taylor expanded in a around inf
Simplified50.4%
Taylor expanded in t around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6455.2%
Simplified55.2%
if -1.14999999999999996e-45 < a < 2.7000000000000001e107Initial program 73.0%
Taylor expanded in y around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6425.3%
Simplified25.3%
Taylor expanded in x around 0
mul-1-negN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
neg-lowering-neg.f64N/A
--lowering--.f6424.9%
Simplified24.9%
Taylor expanded in z around inf
+-lowering-+.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6434.7%
Simplified34.7%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.08e-39) x (if (<= a 3e+17) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.08e-39) {
tmp = x;
} else if (a <= 3e+17) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.08d-39)) then
tmp = x
else if (a <= 3d+17) then
tmp = t
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.08e-39) {
tmp = x;
} else if (a <= 3e+17) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.08e-39: tmp = x elif a <= 3e+17: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.08e-39) tmp = x; elseif (a <= 3e+17) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.08e-39) tmp = x; elseif (a <= 3e+17) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.08e-39], x, If[LessEqual[a, 3e+17], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.08 \cdot 10^{-39}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 3 \cdot 10^{+17}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.08e-39 or 3e17 < a Initial program 70.3%
Taylor expanded in a around inf
Simplified42.1%
if -1.08e-39 < a < 3e17Initial program 73.5%
Taylor expanded in z around inf
Simplified36.2%
(FPCore (x y z t a) :precision binary64 t)
double code(double x, double y, double z, double t, double a) {
return t;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = t
end function
public static double code(double x, double y, double z, double t, double a) {
return t;
}
def code(x, y, z, t, a): return t
function code(x, y, z, t, a) return t end
function tmp = code(x, y, z, t, a) tmp = t; end
code[x_, y_, z_, t_, a_] := t
\begin{array}{l}
\\
t
\end{array}
Initial program 71.9%
Taylor expanded in z around inf
Simplified23.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* (/ y z) (- t x)))))
(if (< z -1.2536131056095036e+188)
t_1
(if (< z 4.446702369113811e+64)
(+ x (/ (- y z) (/ (- a z) (- t x))))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = t - ((y / z) * (t - x))
if (z < (-1.2536131056095036d+188)) then
tmp = t_1
else if (z < 4.446702369113811d+64) then
tmp = x + ((y - z) / ((a - z) / (t - x)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - ((y / z) * (t - x)) tmp = 0 if z < -1.2536131056095036e+188: tmp = t_1 elif z < 4.446702369113811e+64: tmp = x + ((y - z) / ((a - z) / (t - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(y / z) * Float64(t - x))) tmp = 0.0 if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - ((y / z) * (t - x)); tmp = 0.0; if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = x + ((y - z) / ((a - z) / (t - x))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y / z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -1.2536131056095036e+188], t$95$1, If[Less[z, 4.446702369113811e+64], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\
\mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024161
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:alt
(! :herbie-platform default (if (< z -125361310560950360000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- t (* (/ y z) (- t x))) (if (< z 44467023691138110000000000000000000000000000000000000000000000000) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x))))))
(+ x (/ (* (- y z) (- t x)) (- a z))))