
(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 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + ((y - z) * ((t - x) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * ((t - x) / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (- t x) (- a z))) (t_2 (+ x (* (- y z) t_1))))
(if (<= t_2 -4e-222)
t_2
(if (<= t_2 0.0)
(+ t (/ (- x t) (/ z (- y a))))
(if (<= t_2 5e+16)
(+ (- x (* x (/ (- y z) (- a z)))) (/ (* (- y z) t) (- a z)))
(fma (- y z) t_1 x))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (t - x) / (a - z);
double t_2 = x + ((y - z) * t_1);
double tmp;
if (t_2 <= -4e-222) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = t + ((x - t) / (z / (y - a)));
} else if (t_2 <= 5e+16) {
tmp = (x - (x * ((y - z) / (a - z)))) + (((y - z) * t) / (a - z));
} else {
tmp = fma((y - z), t_1, x);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(t - x) / Float64(a - z)) t_2 = Float64(x + Float64(Float64(y - z) * t_1)) tmp = 0.0 if (t_2 <= -4e-222) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); elseif (t_2 <= 5e+16) tmp = Float64(Float64(x - Float64(x * Float64(Float64(y - z) / Float64(a - z)))) + Float64(Float64(Float64(y - z) * t) / Float64(a - z))); else tmp = fma(Float64(y - z), t_1, x); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -4e-222], t$95$2, If[LessEqual[t$95$2, 0.0], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+16], N[(N[(x - N[(x * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y - z), $MachinePrecision] * t$95$1 + x), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - x}{a - z}\\
t_2 := x + \left(y - z\right) \cdot t_1\\
\mathbf{if}\;t_2 \leq -4 \cdot 10^{-222}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_2 \leq 0:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{elif}\;t_2 \leq 5 \cdot 10^{+16}:\\
\;\;\;\;\left(x - x \cdot \frac{y - z}{a - z}\right) + \frac{\left(y - z\right) \cdot t}{a - z}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y - z, t_1, x\right)\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.00000000000000019e-222Initial program 88.1%
if -4.00000000000000019e-222 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 4.1%
Taylor expanded in z around inf 75.4%
associate--l+75.4%
distribute-lft-out--75.4%
div-sub75.4%
mul-1-neg75.4%
unsub-neg75.4%
distribute-rgt-out--75.4%
associate-/l*96.3%
Simplified96.3%
if 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 5e16Initial program 63.5%
Taylor expanded in x around 0 93.5%
distribute-rgt-in93.6%
*-un-lft-identity93.6%
mul-1-neg93.6%
Applied egg-rr93.6%
if 5e16 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 98.6%
+-commutative98.6%
fma-def98.7%
Simplified98.7%
Final simplification93.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (<= t_1 -4e-222)
t_1
(if (<= t_1 0.0)
(+ t (/ (- x t) (/ z (- y a))))
(if (<= t_1 5e+16)
(+ (- x (* x (/ (- y z) (- a z)))) (/ (* (- y z) t) (- a z)))
t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if (t_1 <= -4e-222) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = t + ((x - t) / (z / (y - a)));
} else if (t_1 <= 5e+16) {
tmp = (x - (x * ((y - z) / (a - z)))) + (((y - z) * t) / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
if (t_1 <= (-4d-222)) then
tmp = t_1
else if (t_1 <= 0.0d0) then
tmp = t + ((x - t) / (z / (y - a)))
else if (t_1 <= 5d+16) then
tmp = (x - (x * ((y - z) / (a - z)))) + (((y - z) * t) / (a - z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if (t_1 <= -4e-222) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = t + ((x - t) / (z / (y - a)));
} else if (t_1 <= 5e+16) {
tmp = (x - (x * ((y - z) / (a - z)))) + (((y - z) * t) / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if t_1 <= -4e-222: tmp = t_1 elif t_1 <= 0.0: tmp = t + ((x - t) / (z / (y - a))) elif t_1 <= 5e+16: tmp = (x - (x * ((y - z) / (a - z)))) + (((y - z) * t) / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if (t_1 <= -4e-222) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); elseif (t_1 <= 5e+16) tmp = Float64(Float64(x - Float64(x * Float64(Float64(y - z) / Float64(a - z)))) + Float64(Float64(Float64(y - z) * t) / 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) * ((t - x) / (a - z))); tmp = 0.0; if (t_1 <= -4e-222) tmp = t_1; elseif (t_1 <= 0.0) tmp = t + ((x - t) / (z / (y - a))); elseif (t_1 <= 5e+16) tmp = (x - (x * ((y - z) / (a - z)))) + (((y - z) * t) / (a - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -4e-222], t$95$1, If[LessEqual[t$95$1, 0.0], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+16], N[(N[(x - N[(x * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t_1 \leq -4 \cdot 10^{-222}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_1 \leq 0:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{elif}\;t_1 \leq 5 \cdot 10^{+16}:\\
\;\;\;\;\left(x - x \cdot \frac{y - z}{a - z}\right) + \frac{\left(y - z\right) \cdot t}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.00000000000000019e-222 or 5e16 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 92.6%
if -4.00000000000000019e-222 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 4.1%
Taylor expanded in z around inf 75.4%
associate--l+75.4%
distribute-lft-out--75.4%
div-sub75.4%
mul-1-neg75.4%
unsub-neg75.4%
distribute-rgt-out--75.4%
associate-/l*96.3%
Simplified96.3%
if 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 5e16Initial program 63.5%
Taylor expanded in x around 0 93.5%
distribute-rgt-in93.6%
*-un-lft-identity93.6%
mul-1-neg93.6%
Applied egg-rr93.6%
Final simplification93.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -4e-222) (not (<= t_1 1e-114)))
t_1
(+ t (/ (- x t) (/ z (- y a)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if ((t_1 <= -4e-222) || !(t_1 <= 1e-114)) {
tmp = t_1;
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
if ((t_1 <= (-4d-222)) .or. (.not. (t_1 <= 1d-114))) then
tmp = t_1
else
tmp = t + ((x - t) / (z / (y - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if ((t_1 <= -4e-222) || !(t_1 <= 1e-114)) {
tmp = t_1;
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if (t_1 <= -4e-222) or not (t_1 <= 1e-114): tmp = t_1 else: tmp = t + ((x - t) / (z / (y - a))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if ((t_1 <= -4e-222) || !(t_1 <= 1e-114)) tmp = t_1; else tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * ((t - x) / (a - z))); tmp = 0.0; if ((t_1 <= -4e-222) || ~((t_1 <= 1e-114))) tmp = t_1; else tmp = t + ((x - t) / (z / (y - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -4e-222], N[Not[LessEqual[t$95$1, 1e-114]], $MachinePrecision]], t$95$1, N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t_1 \leq -4 \cdot 10^{-222} \lor \neg \left(t_1 \leq 10^{-114}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.00000000000000019e-222 or 1.0000000000000001e-114 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 91.4%
if -4.00000000000000019e-222 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1.0000000000000001e-114Initial program 14.0%
Taylor expanded in z around inf 72.9%
associate--l+72.9%
distribute-lft-out--72.9%
div-sub72.9%
mul-1-neg72.9%
unsub-neg72.9%
distribute-rgt-out--72.9%
associate-/l*87.4%
Simplified87.4%
Final simplification90.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (- y z) (/ t a))))
(if (<= z -3.2e+66)
t
(if (<= z -5.4e-166)
x
(if (<= z 6.2e-278)
t_1
(if (<= z 2.4e+28) x (if (<= z 8.5e+84) t_1 t)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y - z) * (t / a);
double tmp;
if (z <= -3.2e+66) {
tmp = t;
} else if (z <= -5.4e-166) {
tmp = x;
} else if (z <= 6.2e-278) {
tmp = t_1;
} else if (z <= 2.4e+28) {
tmp = x;
} else if (z <= 8.5e+84) {
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 = (y - z) * (t / a)
if (z <= (-3.2d+66)) then
tmp = t
else if (z <= (-5.4d-166)) then
tmp = x
else if (z <= 6.2d-278) then
tmp = t_1
else if (z <= 2.4d+28) then
tmp = x
else if (z <= 8.5d+84) then
tmp = t_1
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (y - z) * (t / a);
double tmp;
if (z <= -3.2e+66) {
tmp = t;
} else if (z <= -5.4e-166) {
tmp = x;
} else if (z <= 6.2e-278) {
tmp = t_1;
} else if (z <= 2.4e+28) {
tmp = x;
} else if (z <= 8.5e+84) {
tmp = t_1;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y - z) * (t / a) tmp = 0 if z <= -3.2e+66: tmp = t elif z <= -5.4e-166: tmp = x elif z <= 6.2e-278: tmp = t_1 elif z <= 2.4e+28: tmp = x elif z <= 8.5e+84: tmp = t_1 else: tmp = t return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y - z) * Float64(t / a)) tmp = 0.0 if (z <= -3.2e+66) tmp = t; elseif (z <= -5.4e-166) tmp = x; elseif (z <= 6.2e-278) tmp = t_1; elseif (z <= 2.4e+28) tmp = x; elseif (z <= 8.5e+84) tmp = t_1; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y - z) * (t / a); tmp = 0.0; if (z <= -3.2e+66) tmp = t; elseif (z <= -5.4e-166) tmp = x; elseif (z <= 6.2e-278) tmp = t_1; elseif (z <= 2.4e+28) tmp = x; elseif (z <= 8.5e+84) tmp = t_1; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * N[(t / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.2e+66], t, If[LessEqual[z, -5.4e-166], x, If[LessEqual[z, 6.2e-278], t$95$1, If[LessEqual[z, 2.4e+28], x, If[LessEqual[z, 8.5e+84], t$95$1, t]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - z\right) \cdot \frac{t}{a}\\
\mathbf{if}\;z \leq -3.2 \cdot 10^{+66}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -5.4 \cdot 10^{-166}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-278}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{+28}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{+84}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -3.2e66 or 8.5000000000000008e84 < z Initial program 64.1%
Taylor expanded in z around inf 50.4%
if -3.2e66 < z < -5.40000000000000013e-166 or 6.19999999999999983e-278 < z < 2.39999999999999981e28Initial program 86.8%
Taylor expanded in a around inf 37.2%
if -5.40000000000000013e-166 < z < 6.19999999999999983e-278 or 2.39999999999999981e28 < z < 8.5000000000000008e84Initial program 92.3%
Taylor expanded in x around 0 46.0%
associate-/l*48.6%
associate-/r/51.0%
Simplified51.0%
Taylor expanded in a around inf 51.5%
Final simplification44.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (- y z) (/ t (- a z)))))
(if (<= t -4e-26)
t_1
(if (<= t 7.5e-280)
(+ t (* x (/ y z)))
(if (<= t 8.5e-203) x (if (<= t 5.7e-8) (+ t (/ x (/ z y))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y - z) * (t / (a - z));
double tmp;
if (t <= -4e-26) {
tmp = t_1;
} else if (t <= 7.5e-280) {
tmp = t + (x * (y / z));
} else if (t <= 8.5e-203) {
tmp = x;
} else if (t <= 5.7e-8) {
tmp = t + (x / (z / 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 = (y - z) * (t / (a - z))
if (t <= (-4d-26)) then
tmp = t_1
else if (t <= 7.5d-280) then
tmp = t + (x * (y / z))
else if (t <= 8.5d-203) then
tmp = x
else if (t <= 5.7d-8) then
tmp = t + (x / (z / 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 = (y - z) * (t / (a - z));
double tmp;
if (t <= -4e-26) {
tmp = t_1;
} else if (t <= 7.5e-280) {
tmp = t + (x * (y / z));
} else if (t <= 8.5e-203) {
tmp = x;
} else if (t <= 5.7e-8) {
tmp = t + (x / (z / y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y - z) * (t / (a - z)) tmp = 0 if t <= -4e-26: tmp = t_1 elif t <= 7.5e-280: tmp = t + (x * (y / z)) elif t <= 8.5e-203: tmp = x elif t <= 5.7e-8: tmp = t + (x / (z / y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y - z) * Float64(t / Float64(a - z))) tmp = 0.0 if (t <= -4e-26) tmp = t_1; elseif (t <= 7.5e-280) tmp = Float64(t + Float64(x * Float64(y / z))); elseif (t <= 8.5e-203) tmp = x; elseif (t <= 5.7e-8) tmp = Float64(t + Float64(x / Float64(z / y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y - z) * (t / (a - z)); tmp = 0.0; if (t <= -4e-26) tmp = t_1; elseif (t <= 7.5e-280) tmp = t + (x * (y / z)); elseif (t <= 8.5e-203) tmp = x; elseif (t <= 5.7e-8) tmp = t + (x / (z / y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4e-26], t$95$1, If[LessEqual[t, 7.5e-280], N[(t + N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e-203], x, If[LessEqual[t, 5.7e-8], N[(t + N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - z\right) \cdot \frac{t}{a - z}\\
\mathbf{if}\;t \leq -4 \cdot 10^{-26}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-280}:\\
\;\;\;\;t + x \cdot \frac{y}{z}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-203}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 5.7 \cdot 10^{-8}:\\
\;\;\;\;t + \frac{x}{\frac{z}{y}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -4.0000000000000002e-26 or 5.70000000000000009e-8 < t Initial program 90.9%
Taylor expanded in x around 0 45.6%
associate-/l*68.8%
associate-/r/66.6%
Simplified66.6%
if -4.0000000000000002e-26 < t < 7.4999999999999999e-280Initial program 60.7%
Taylor expanded in z around inf 55.5%
associate--l+55.5%
distribute-lft-out--55.5%
div-sub55.5%
mul-1-neg55.5%
unsub-neg55.5%
distribute-rgt-out--55.7%
associate-/l*62.1%
Simplified62.1%
Taylor expanded in t around 0 52.2%
associate-*r/52.2%
mul-1-neg52.2%
Simplified52.2%
Taylor expanded in a around 0 48.9%
sub-neg48.9%
mul-1-neg48.9%
remove-double-neg48.9%
associate-/l*55.0%
Simplified55.0%
Taylor expanded in x around 0 48.9%
associate-*r/55.0%
Simplified55.0%
if 7.4999999999999999e-280 < t < 8.50000000000000031e-203Initial program 76.5%
Taylor expanded in a around inf 42.3%
if 8.50000000000000031e-203 < t < 5.70000000000000009e-8Initial program 69.7%
Taylor expanded in z around inf 52.0%
associate--l+52.0%
distribute-lft-out--52.0%
div-sub52.2%
mul-1-neg52.2%
unsub-neg52.2%
distribute-rgt-out--52.2%
associate-/l*60.0%
Simplified60.0%
Taylor expanded in t around 0 47.3%
associate-*r/47.3%
mul-1-neg47.3%
Simplified47.3%
Taylor expanded in a around 0 42.2%
sub-neg42.2%
mul-1-neg42.2%
remove-double-neg42.2%
associate-/l*50.0%
Simplified50.0%
Final simplification59.6%
(FPCore (x y z t a)
:precision binary64
(if (<= x -1.12e+293)
x
(if (<= x -1.4e+260)
(+ t (/ x (/ z y)))
(if (<= x -4.6e+58)
x
(if (<= x 6.6e-28)
(* (- y z) (/ t (- a z)))
(* (- t x) (/ y (- a z))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -1.12e+293) {
tmp = x;
} else if (x <= -1.4e+260) {
tmp = t + (x / (z / y));
} else if (x <= -4.6e+58) {
tmp = x;
} else if (x <= 6.6e-28) {
tmp = (y - z) * (t / (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 (x <= (-1.12d+293)) then
tmp = x
else if (x <= (-1.4d+260)) then
tmp = t + (x / (z / y))
else if (x <= (-4.6d+58)) then
tmp = x
else if (x <= 6.6d-28) then
tmp = (y - z) * (t / (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 (x <= -1.12e+293) {
tmp = x;
} else if (x <= -1.4e+260) {
tmp = t + (x / (z / y));
} else if (x <= -4.6e+58) {
tmp = x;
} else if (x <= 6.6e-28) {
tmp = (y - z) * (t / (a - z));
} else {
tmp = (t - x) * (y / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -1.12e+293: tmp = x elif x <= -1.4e+260: tmp = t + (x / (z / y)) elif x <= -4.6e+58: tmp = x elif x <= 6.6e-28: tmp = (y - z) * (t / (a - z)) else: tmp = (t - x) * (y / (a - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -1.12e+293) tmp = x; elseif (x <= -1.4e+260) tmp = Float64(t + Float64(x / Float64(z / y))); elseif (x <= -4.6e+58) tmp = x; elseif (x <= 6.6e-28) tmp = Float64(Float64(y - z) * Float64(t / 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 (x <= -1.12e+293) tmp = x; elseif (x <= -1.4e+260) tmp = t + (x / (z / y)); elseif (x <= -4.6e+58) tmp = x; elseif (x <= 6.6e-28) tmp = (y - z) * (t / (a - z)); else tmp = (t - x) * (y / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -1.12e+293], x, If[LessEqual[x, -1.4e+260], N[(t + N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4.6e+58], x, If[LessEqual[x, 6.6e-28], N[(N[(y - z), $MachinePrecision] * N[(t / 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}\;x \leq -1.12 \cdot 10^{+293}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -1.4 \cdot 10^{+260}:\\
\;\;\;\;t + \frac{x}{\frac{z}{y}}\\
\mathbf{elif}\;x \leq -4.6 \cdot 10^{+58}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 6.6 \cdot 10^{-28}:\\
\;\;\;\;\left(y - z\right) \cdot \frac{t}{a - z}\\
\mathbf{else}:\\
\;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
\end{array}
\end{array}
if x < -1.1200000000000001e293 or -1.3999999999999999e260 < x < -4.60000000000000005e58Initial program 80.8%
Taylor expanded in a around inf 53.6%
if -1.1200000000000001e293 < x < -1.3999999999999999e260Initial program 49.1%
Taylor expanded in z around inf 52.7%
associate--l+52.7%
distribute-lft-out--52.7%
div-sub52.7%
mul-1-neg52.7%
unsub-neg52.7%
distribute-rgt-out--62.7%
associate-/l*93.4%
Simplified93.4%
Taylor expanded in t around 0 62.7%
associate-*r/62.7%
mul-1-neg62.7%
Simplified62.7%
Taylor expanded in a around 0 62.1%
sub-neg62.1%
mul-1-neg62.1%
remove-double-neg62.1%
associate-/l*89.8%
Simplified89.8%
if -4.60000000000000005e58 < x < 6.6000000000000003e-28Initial program 81.4%
Taylor expanded in x around 0 57.1%
associate-/l*73.1%
associate-/r/64.3%
Simplified64.3%
if 6.6000000000000003e-28 < x Initial program 79.9%
Taylor expanded in y around inf 56.2%
div-sub56.2%
associate-*r/46.9%
associate-/l*56.1%
associate-/r/56.1%
Simplified56.1%
Final simplification61.2%
(FPCore (x y z t a)
:precision binary64
(if (<= a -9.5e+191)
x
(if (<= a -8.5e+167)
(/ t (/ (- a z) y))
(if (<= a -2e+63) x (if (<= a 6.5e+89) (+ t (* x (/ y z))) x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.5e+191) {
tmp = x;
} else if (a <= -8.5e+167) {
tmp = t / ((a - z) / y);
} else if (a <= -2e+63) {
tmp = x;
} else if (a <= 6.5e+89) {
tmp = t + (x * (y / z));
} 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 <= (-9.5d+191)) then
tmp = x
else if (a <= (-8.5d+167)) then
tmp = t / ((a - z) / y)
else if (a <= (-2d+63)) then
tmp = x
else if (a <= 6.5d+89) then
tmp = t + (x * (y / z))
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 <= -9.5e+191) {
tmp = x;
} else if (a <= -8.5e+167) {
tmp = t / ((a - z) / y);
} else if (a <= -2e+63) {
tmp = x;
} else if (a <= 6.5e+89) {
tmp = t + (x * (y / z));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -9.5e+191: tmp = x elif a <= -8.5e+167: tmp = t / ((a - z) / y) elif a <= -2e+63: tmp = x elif a <= 6.5e+89: tmp = t + (x * (y / z)) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -9.5e+191) tmp = x; elseif (a <= -8.5e+167) tmp = Float64(t / Float64(Float64(a - z) / y)); elseif (a <= -2e+63) tmp = x; elseif (a <= 6.5e+89) tmp = Float64(t + Float64(x * Float64(y / z))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -9.5e+191) tmp = x; elseif (a <= -8.5e+167) tmp = t / ((a - z) / y); elseif (a <= -2e+63) tmp = x; elseif (a <= 6.5e+89) tmp = t + (x * (y / z)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -9.5e+191], x, If[LessEqual[a, -8.5e+167], N[(t / N[(N[(a - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2e+63], x, If[LessEqual[a, 6.5e+89], N[(t + N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.5 \cdot 10^{+191}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -8.5 \cdot 10^{+167}:\\
\;\;\;\;\frac{t}{\frac{a - z}{y}}\\
\mathbf{elif}\;a \leq -2 \cdot 10^{+63}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{+89}:\\
\;\;\;\;t + x \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -9.4999999999999998e191 or -8.50000000000000007e167 < a < -2.00000000000000012e63 or 6.4999999999999996e89 < a Initial program 89.8%
Taylor expanded in a around inf 53.2%
if -9.4999999999999998e191 < a < -8.50000000000000007e167Initial program 99.6%
Taylor expanded in x around 0 31.7%
associate-/l*77.9%
Simplified77.9%
Taylor expanded in y around inf 64.2%
if -2.00000000000000012e63 < a < 6.4999999999999996e89Initial program 72.6%
Taylor expanded in z around inf 60.9%
associate--l+60.9%
distribute-lft-out--60.9%
div-sub62.2%
mul-1-neg62.2%
unsub-neg62.2%
distribute-rgt-out--63.0%
associate-/l*70.7%
Simplified70.7%
Taylor expanded in t around 0 55.0%
associate-*r/55.0%
mul-1-neg55.0%
Simplified55.0%
Taylor expanded in a around 0 52.0%
sub-neg52.0%
mul-1-neg52.0%
remove-double-neg52.0%
associate-/l*56.7%
Simplified56.7%
Taylor expanded in x around 0 52.0%
associate-*r/56.7%
Simplified56.7%
Final simplification55.6%
(FPCore (x y z t a)
:precision binary64
(if (<= a -9.5e+191)
x
(if (<= a -8.4e+167)
(/ (- t x) (/ a y))
(if (<= a -9.5e+63) x (if (<= a 9e+89) (+ t (* x (/ y z))) x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.5e+191) {
tmp = x;
} else if (a <= -8.4e+167) {
tmp = (t - x) / (a / y);
} else if (a <= -9.5e+63) {
tmp = x;
} else if (a <= 9e+89) {
tmp = t + (x * (y / z));
} 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 <= (-9.5d+191)) then
tmp = x
else if (a <= (-8.4d+167)) then
tmp = (t - x) / (a / y)
else if (a <= (-9.5d+63)) then
tmp = x
else if (a <= 9d+89) then
tmp = t + (x * (y / z))
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 <= -9.5e+191) {
tmp = x;
} else if (a <= -8.4e+167) {
tmp = (t - x) / (a / y);
} else if (a <= -9.5e+63) {
tmp = x;
} else if (a <= 9e+89) {
tmp = t + (x * (y / z));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -9.5e+191: tmp = x elif a <= -8.4e+167: tmp = (t - x) / (a / y) elif a <= -9.5e+63: tmp = x elif a <= 9e+89: tmp = t + (x * (y / z)) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -9.5e+191) tmp = x; elseif (a <= -8.4e+167) tmp = Float64(Float64(t - x) / Float64(a / y)); elseif (a <= -9.5e+63) tmp = x; elseif (a <= 9e+89) tmp = Float64(t + Float64(x * Float64(y / z))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -9.5e+191) tmp = x; elseif (a <= -8.4e+167) tmp = (t - x) / (a / y); elseif (a <= -9.5e+63) tmp = x; elseif (a <= 9e+89) tmp = t + (x * (y / z)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -9.5e+191], x, If[LessEqual[a, -8.4e+167], N[(N[(t - x), $MachinePrecision] / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -9.5e+63], x, If[LessEqual[a, 9e+89], N[(t + N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.5 \cdot 10^{+191}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -8.4 \cdot 10^{+167}:\\
\;\;\;\;\frac{t - x}{\frac{a}{y}}\\
\mathbf{elif}\;a \leq -9.5 \cdot 10^{+63}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 9 \cdot 10^{+89}:\\
\;\;\;\;t + x \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -9.4999999999999998e191 or -8.3999999999999997e167 < a < -9.5000000000000003e63 or 9e89 < a Initial program 89.8%
Taylor expanded in a around inf 53.2%
if -9.4999999999999998e191 < a < -8.3999999999999997e167Initial program 99.6%
*-commutative99.6%
sub-neg99.6%
distribute-lft-in99.6%
Applied egg-rr99.6%
Taylor expanded in y around -inf 45.2%
*-commutative45.2%
associate-/l*78.3%
Simplified78.3%
Taylor expanded in a around inf 65.0%
if -9.5000000000000003e63 < a < 9e89Initial program 72.6%
Taylor expanded in z around inf 60.9%
associate--l+60.9%
distribute-lft-out--60.9%
div-sub62.2%
mul-1-neg62.2%
unsub-neg62.2%
distribute-rgt-out--63.0%
associate-/l*70.7%
Simplified70.7%
Taylor expanded in t around 0 55.0%
associate-*r/55.0%
mul-1-neg55.0%
Simplified55.0%
Taylor expanded in a around 0 52.0%
sub-neg52.0%
mul-1-neg52.0%
remove-double-neg52.0%
associate-/l*56.7%
Simplified56.7%
Taylor expanded in x around 0 52.0%
associate-*r/56.7%
Simplified56.7%
Final simplification55.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -5.8e+21) (not (<= z 3e+67))) (- t (/ (- t x) (/ z y))) (+ x (* (- y z) (/ (- t x) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -5.8e+21) || !(z <= 3e+67)) {
tmp = t - ((t - x) / (z / y));
} else {
tmp = x + ((y - z) * ((t - x) / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-5.8d+21)) .or. (.not. (z <= 3d+67))) then
tmp = t - ((t - x) / (z / y))
else
tmp = x + ((y - z) * ((t - x) / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -5.8e+21) || !(z <= 3e+67)) {
tmp = t - ((t - x) / (z / y));
} else {
tmp = x + ((y - z) * ((t - x) / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -5.8e+21) or not (z <= 3e+67): tmp = t - ((t - x) / (z / y)) else: tmp = x + ((y - z) * ((t - x) / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -5.8e+21) || !(z <= 3e+67)) tmp = Float64(t - Float64(Float64(t - x) / Float64(z / y))); else tmp = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -5.8e+21) || ~((z <= 3e+67))) tmp = t - ((t - x) / (z / y)); else tmp = x + ((y - z) * ((t - x) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -5.8e+21], N[Not[LessEqual[z, 3e+67]], $MachinePrecision]], N[(t - N[(N[(t - x), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.8 \cdot 10^{+21} \lor \neg \left(z \leq 3 \cdot 10^{+67}\right):\\
\;\;\;\;t - \frac{t - x}{\frac{z}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t - x}{a}\\
\end{array}
\end{array}
if z < -5.8e21 or 3.0000000000000001e67 < z Initial program 67.9%
Taylor expanded in z around inf 57.2%
associate--l+57.2%
distribute-lft-out--57.2%
div-sub57.2%
mul-1-neg57.2%
unsub-neg57.2%
distribute-rgt-out--57.5%
associate-/l*78.0%
Simplified78.0%
Taylor expanded in y around inf 74.4%
if -5.8e21 < z < 3.0000000000000001e67Initial program 88.4%
Taylor expanded in a around inf 69.3%
associate-/l*74.4%
associate-/r/75.0%
Simplified75.0%
Final simplification74.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.3e+19) (not (<= z 1.65e+66))) (+ t (/ (- x t) (/ z (- y a)))) (+ x (* (- y z) (/ (- t x) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.3e+19) || !(z <= 1.65e+66)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((y - z) * ((t - x) / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-2.3d+19)) .or. (.not. (z <= 1.65d+66))) then
tmp = t + ((x - t) / (z / (y - a)))
else
tmp = x + ((y - z) * ((t - x) / a))
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.3e+19) || !(z <= 1.65e+66)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((y - z) * ((t - x) / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.3e+19) or not (z <= 1.65e+66): tmp = t + ((x - t) / (z / (y - a))) else: tmp = x + ((y - z) * ((t - x) / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.3e+19) || !(z <= 1.65e+66)) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.3e+19) || ~((z <= 1.65e+66))) tmp = t + ((x - t) / (z / (y - a))); else tmp = x + ((y - z) * ((t - x) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.3e+19], N[Not[LessEqual[z, 1.65e+66]], $MachinePrecision]], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.3 \cdot 10^{+19} \lor \neg \left(z \leq 1.65 \cdot 10^{+66}\right):\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t - x}{a}\\
\end{array}
\end{array}
if z < -2.3e19 or 1.6500000000000001e66 < z Initial program 67.9%
Taylor expanded in z around inf 57.2%
associate--l+57.2%
distribute-lft-out--57.2%
div-sub57.2%
mul-1-neg57.2%
unsub-neg57.2%
distribute-rgt-out--57.5%
associate-/l*78.0%
Simplified78.0%
if -2.3e19 < z < 1.6500000000000001e66Initial program 88.4%
Taylor expanded in a around inf 69.3%
associate-/l*74.4%
associate-/r/75.0%
Simplified75.0%
Final simplification76.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -5e+21) (not (<= z 3.7e-22))) (- t (/ (- t x) (/ z y))) (+ x (/ y (/ a (- t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -5e+21) || !(z <= 3.7e-22)) {
tmp = t - ((t - x) / (z / y));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-5d+21)) .or. (.not. (z <= 3.7d-22))) then
tmp = t - ((t - x) / (z / y))
else
tmp = x + (y / (a / (t - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -5e+21) || !(z <= 3.7e-22)) {
tmp = t - ((t - x) / (z / y));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -5e+21) or not (z <= 3.7e-22): tmp = t - ((t - x) / (z / y)) else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -5e+21) || !(z <= 3.7e-22)) tmp = Float64(t - Float64(Float64(t - x) / Float64(z / y))); else tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -5e+21) || ~((z <= 3.7e-22))) tmp = t - ((t - x) / (z / y)); else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -5e+21], N[Not[LessEqual[z, 3.7e-22]], $MachinePrecision]], N[(t - N[(N[(t - x), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5 \cdot 10^{+21} \lor \neg \left(z \leq 3.7 \cdot 10^{-22}\right):\\
\;\;\;\;t - \frac{t - x}{\frac{z}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -5e21 or 3.7e-22 < z Initial program 70.5%
Taylor expanded in z around inf 55.8%
associate--l+55.8%
distribute-lft-out--55.8%
div-sub55.8%
mul-1-neg55.8%
unsub-neg55.8%
distribute-rgt-out--56.8%
associate-/l*74.1%
Simplified74.1%
Taylor expanded in y around inf 70.4%
if -5e21 < z < 3.7e-22Initial program 89.2%
Taylor expanded in z around 0 68.0%
associate-/l*73.8%
Simplified73.8%
Final simplification72.0%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.6e+86) (+ t (/ x (/ z y))) (if (<= z 2.65e+66) (+ x (* (- t x) (/ y a))) (+ t (* x (/ y z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.6e+86) {
tmp = t + (x / (z / y));
} else if (z <= 2.65e+66) {
tmp = x + ((t - x) * (y / a));
} else {
tmp = t + (x * (y / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.6d+86)) then
tmp = t + (x / (z / y))
else if (z <= 2.65d+66) then
tmp = x + ((t - x) * (y / a))
else
tmp = t + (x * (y / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.6e+86) {
tmp = t + (x / (z / y));
} else if (z <= 2.65e+66) {
tmp = x + ((t - x) * (y / a));
} else {
tmp = t + (x * (y / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.6e+86: tmp = t + (x / (z / y)) elif z <= 2.65e+66: tmp = x + ((t - x) * (y / a)) else: tmp = t + (x * (y / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.6e+86) tmp = Float64(t + Float64(x / Float64(z / y))); elseif (z <= 2.65e+66) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); else tmp = Float64(t + Float64(x * Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.6e+86) tmp = t + (x / (z / y)); elseif (z <= 2.65e+66) tmp = x + ((t - x) * (y / a)); else tmp = t + (x * (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.6e+86], N[(t + N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.65e+66], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.6 \cdot 10^{+86}:\\
\;\;\;\;t + \frac{x}{\frac{z}{y}}\\
\mathbf{elif}\;z \leq 2.65 \cdot 10^{+66}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t + x \cdot \frac{y}{z}\\
\end{array}
\end{array}
if z < -2.5999999999999998e86Initial program 62.3%
Taylor expanded in z around inf 55.9%
associate--l+55.9%
distribute-lft-out--55.9%
div-sub55.9%
mul-1-neg55.9%
unsub-neg55.9%
distribute-rgt-out--56.4%
associate-/l*86.3%
Simplified86.3%
Taylor expanded in t around 0 64.7%
associate-*r/64.7%
mul-1-neg64.7%
Simplified64.7%
Taylor expanded in a around 0 62.0%
sub-neg62.0%
mul-1-neg62.0%
remove-double-neg62.0%
associate-/l*75.1%
Simplified75.1%
if -2.5999999999999998e86 < z < 2.6499999999999998e66Initial program 88.6%
Taylor expanded in z around 0 61.5%
associate-/l*67.7%
associate-/r/67.2%
Simplified67.2%
if 2.6499999999999998e66 < z Initial program 64.6%
Taylor expanded in z around inf 58.0%
associate--l+58.0%
distribute-lft-out--58.0%
div-sub58.0%
mul-1-neg58.0%
unsub-neg58.0%
distribute-rgt-out--58.4%
associate-/l*79.3%
Simplified79.3%
Taylor expanded in t around 0 60.0%
associate-*r/60.0%
mul-1-neg60.0%
Simplified60.0%
Taylor expanded in a around 0 59.5%
sub-neg59.5%
mul-1-neg59.5%
remove-double-neg59.5%
associate-/l*66.4%
Simplified66.4%
Taylor expanded in x around 0 59.5%
associate-*r/66.4%
Simplified66.4%
Final simplification68.1%
(FPCore (x y z t a) :precision binary64 (if (<= z -3.4e+88) (+ t (/ x (/ z y))) (if (<= z 1.35e+68) (+ x (/ y (/ a (- t x)))) (+ t (* x (/ y z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.4e+88) {
tmp = t + (x / (z / y));
} else if (z <= 1.35e+68) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t + (x * (y / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-3.4d+88)) then
tmp = t + (x / (z / y))
else if (z <= 1.35d+68) then
tmp = x + (y / (a / (t - x)))
else
tmp = t + (x * (y / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.4e+88) {
tmp = t + (x / (z / y));
} else if (z <= 1.35e+68) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t + (x * (y / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.4e+88: tmp = t + (x / (z / y)) elif z <= 1.35e+68: tmp = x + (y / (a / (t - x))) else: tmp = t + (x * (y / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.4e+88) tmp = Float64(t + Float64(x / Float64(z / y))); elseif (z <= 1.35e+68) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); else tmp = Float64(t + Float64(x * Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.4e+88) tmp = t + (x / (z / y)); elseif (z <= 1.35e+68) tmp = x + (y / (a / (t - x))); else tmp = t + (x * (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.4e+88], N[(t + N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.35e+68], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.4 \cdot 10^{+88}:\\
\;\;\;\;t + \frac{x}{\frac{z}{y}}\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{+68}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t + x \cdot \frac{y}{z}\\
\end{array}
\end{array}
if z < -3.40000000000000004e88Initial program 62.3%
Taylor expanded in z around inf 55.9%
associate--l+55.9%
distribute-lft-out--55.9%
div-sub55.9%
mul-1-neg55.9%
unsub-neg55.9%
distribute-rgt-out--56.4%
associate-/l*86.3%
Simplified86.3%
Taylor expanded in t around 0 64.7%
associate-*r/64.7%
mul-1-neg64.7%
Simplified64.7%
Taylor expanded in a around 0 62.0%
sub-neg62.0%
mul-1-neg62.0%
remove-double-neg62.0%
associate-/l*75.1%
Simplified75.1%
if -3.40000000000000004e88 < z < 1.34999999999999995e68Initial program 88.6%
Taylor expanded in z around 0 61.5%
associate-/l*67.7%
Simplified67.7%
if 1.34999999999999995e68 < z Initial program 64.6%
Taylor expanded in z around inf 58.0%
associate--l+58.0%
distribute-lft-out--58.0%
div-sub58.0%
mul-1-neg58.0%
unsub-neg58.0%
distribute-rgt-out--58.4%
associate-/l*79.3%
Simplified79.3%
Taylor expanded in t around 0 60.0%
associate-*r/60.0%
mul-1-neg60.0%
Simplified60.0%
Taylor expanded in a around 0 59.5%
sub-neg59.5%
mul-1-neg59.5%
remove-double-neg59.5%
associate-/l*66.4%
Simplified66.4%
Taylor expanded in x around 0 59.5%
associate-*r/66.4%
Simplified66.4%
Final simplification68.5%
(FPCore (x y z t a)
:precision binary64
(if (<= z -8.8e+77)
t
(if (<= z -3.2e-166)
x
(if (<= z 1.12e-277) (* y (/ t a)) (if (<= z 1.66e+67) x t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8.8e+77) {
tmp = t;
} else if (z <= -3.2e-166) {
tmp = x;
} else if (z <= 1.12e-277) {
tmp = y * (t / a);
} else if (z <= 1.66e+67) {
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 <= (-8.8d+77)) then
tmp = t
else if (z <= (-3.2d-166)) then
tmp = x
else if (z <= 1.12d-277) then
tmp = y * (t / a)
else if (z <= 1.66d+67) 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 <= -8.8e+77) {
tmp = t;
} else if (z <= -3.2e-166) {
tmp = x;
} else if (z <= 1.12e-277) {
tmp = y * (t / a);
} else if (z <= 1.66e+67) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -8.8e+77: tmp = t elif z <= -3.2e-166: tmp = x elif z <= 1.12e-277: tmp = y * (t / a) elif z <= 1.66e+67: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -8.8e+77) tmp = t; elseif (z <= -3.2e-166) tmp = x; elseif (z <= 1.12e-277) tmp = Float64(y * Float64(t / a)); elseif (z <= 1.66e+67) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -8.8e+77) tmp = t; elseif (z <= -3.2e-166) tmp = x; elseif (z <= 1.12e-277) tmp = y * (t / a); elseif (z <= 1.66e+67) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -8.8e+77], t, If[LessEqual[z, -3.2e-166], x, If[LessEqual[z, 1.12e-277], N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.66e+67], x, t]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.8 \cdot 10^{+77}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -3.2 \cdot 10^{-166}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.12 \cdot 10^{-277}:\\
\;\;\;\;y \cdot \frac{t}{a}\\
\mathbf{elif}\;z \leq 1.66 \cdot 10^{+67}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -8.8000000000000002e77 or 1.66e67 < z Initial program 64.8%
Taylor expanded in z around inf 49.4%
if -8.8000000000000002e77 < z < -3.20000000000000001e-166 or 1.12000000000000003e-277 < z < 1.66e67Initial program 85.9%
Taylor expanded in a around inf 35.2%
if -3.20000000000000001e-166 < z < 1.12000000000000003e-277Initial program 97.2%
Taylor expanded in x around 0 49.1%
associate-/l*50.2%
Simplified50.2%
Taylor expanded in z around 0 44.0%
associate-/l*45.0%
Simplified45.0%
associate-/r/51.8%
Applied egg-rr51.8%
Final simplification42.8%
(FPCore (x y z t a) :precision binary64 (if (<= a -3.9e+63) x (if (<= a 1.35e+91) (+ t (* x (/ y z))) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.9e+63) {
tmp = x;
} else if (a <= 1.35e+91) {
tmp = t + (x * (y / z));
} 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.9d+63)) then
tmp = x
else if (a <= 1.35d+91) then
tmp = t + (x * (y / z))
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.9e+63) {
tmp = x;
} else if (a <= 1.35e+91) {
tmp = t + (x * (y / z));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.9e+63: tmp = x elif a <= 1.35e+91: tmp = t + (x * (y / z)) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.9e+63) tmp = x; elseif (a <= 1.35e+91) tmp = Float64(t + Float64(x * Float64(y / z))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3.9e+63) tmp = x; elseif (a <= 1.35e+91) tmp = t + (x * (y / z)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.9e+63], x, If[LessEqual[a, 1.35e+91], N[(t + N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.9 \cdot 10^{+63}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{+91}:\\
\;\;\;\;t + x \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -3.9e63 or 1.35e91 < a Initial program 90.4%
Taylor expanded in a around inf 49.9%
if -3.9e63 < a < 1.35e91Initial program 72.6%
Taylor expanded in z around inf 60.9%
associate--l+60.9%
distribute-lft-out--60.9%
div-sub62.2%
mul-1-neg62.2%
unsub-neg62.2%
distribute-rgt-out--63.0%
associate-/l*70.7%
Simplified70.7%
Taylor expanded in t around 0 55.0%
associate-*r/55.0%
mul-1-neg55.0%
Simplified55.0%
Taylor expanded in a around 0 52.0%
sub-neg52.0%
mul-1-neg52.0%
remove-double-neg52.0%
associate-/l*56.7%
Simplified56.7%
Taylor expanded in x around 0 52.0%
associate-*r/56.7%
Simplified56.7%
Final simplification54.0%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.45e+75) t (if (<= z 1.28e+70) x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.45e+75) {
tmp = t;
} else if (z <= 1.28e+70) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.45d+75)) then
tmp = t
else if (z <= 1.28d+70) then
tmp = x
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.45e+75) {
tmp = t;
} else if (z <= 1.28e+70) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.45e+75: tmp = t elif z <= 1.28e+70: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.45e+75) tmp = t; elseif (z <= 1.28e+70) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.45e+75) tmp = t; elseif (z <= 1.28e+70) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.45e+75], t, If[LessEqual[z, 1.28e+70], x, t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{+75}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 1.28 \cdot 10^{+70}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.4499999999999999e75 or 1.27999999999999994e70 < z Initial program 64.8%
Taylor expanded in z around inf 49.4%
if -1.4499999999999999e75 < z < 1.27999999999999994e70Initial program 88.4%
Taylor expanded in a around inf 33.0%
Final simplification39.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.6%
Taylor expanded in z around inf 24.5%
Final simplification24.5%
herbie shell --seed 2023310
(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)))))