
(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 18 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + ((y - z) * ((t - x) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * ((t - x) / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -2e-259) (not (<= t_1 0.0)))
(fma (- t x) (/ (- y z) (- a z)) x)
(+ t (/ (- x t) (* z (/ 1.0 (- 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 <= -2e-259) || !(t_1 <= 0.0)) {
tmp = fma((t - x), ((y - z) / (a - z)), x);
} else {
tmp = t + ((x - t) / (z * (1.0 / (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 <= -2e-259) || !(t_1 <= 0.0)) tmp = fma(Float64(t - x), Float64(Float64(y - z) / Float64(a - z)), x); else tmp = Float64(t + Float64(Float64(x - t) / Float64(z * Float64(1.0 / Float64(y - a))))); end return 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, -2e-259], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z * N[(1.0 / N[(y - a), $MachinePrecision]), $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 -2 \cdot 10^{-259} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{z \cdot \frac{1}{y - a}}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -2.0000000000000001e-259 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 90.8%
+-commutative90.8%
associate-*r/79.8%
*-commutative79.8%
associate-*r/96.1%
fma-def96.1%
Simplified96.1%
if -2.0000000000000001e-259 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.7%
Taylor expanded in z around inf 88.6%
+-commutative88.6%
associate--l+88.6%
associate-*r/88.6%
associate-*r/88.6%
div-sub88.6%
distribute-lft-out--88.6%
mul-1-neg88.6%
distribute-neg-frac88.6%
unsub-neg88.6%
distribute-rgt-out--88.8%
Simplified88.8%
*-un-lft-identity88.8%
associate-/l*99.6%
Applied egg-rr99.6%
div-inv99.7%
Applied egg-rr99.7%
Final simplification96.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -2e-259) (not (<= t_1 5e-305)))
t_1
(+ t (/ (* x (- y a)) z)))))
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 <= -2e-259) || !(t_1 <= 5e-305)) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
if ((t_1 <= (-2d-259)) .or. (.not. (t_1 <= 5d-305))) then
tmp = t_1
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 t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if ((t_1 <= -2e-259) || !(t_1 <= 5e-305)) {
tmp = t_1;
} else {
tmp = t + ((x * (y - a)) / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if (t_1 <= -2e-259) or not (t_1 <= 5e-305): tmp = t_1 else: tmp = t + ((x * (y - a)) / z) 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 <= -2e-259) || !(t_1 <= 5e-305)) tmp = t_1; else tmp = Float64(t + Float64(Float64(x * Float64(y - a)) / z)); 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 <= -2e-259) || ~((t_1 <= 5e-305))) tmp = t_1; else tmp = t + ((x * (y - a)) / z); 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, -2e-259], N[Not[LessEqual[t$95$1, 5e-305]], $MachinePrecision]], t$95$1, N[(t + N[(N[(x * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $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 -2 \cdot 10^{-259} \lor \neg \left(t_1 \leq 5 \cdot 10^{-305}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x \cdot \left(y - a\right)}{z}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -2.0000000000000001e-259 or 4.99999999999999985e-305 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 91.2%
if -2.0000000000000001e-259 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 4.99999999999999985e-305Initial program 3.7%
Taylor expanded in z around inf 89.0%
+-commutative89.0%
associate--l+89.0%
associate-*r/89.0%
associate-*r/89.0%
div-sub89.0%
distribute-lft-out--89.0%
mul-1-neg89.0%
distribute-neg-frac89.0%
unsub-neg89.0%
distribute-rgt-out--89.2%
Simplified89.2%
Taylor expanded in t around 0 89.2%
mul-1-neg89.2%
distribute-rgt-neg-in89.2%
Simplified89.2%
Taylor expanded in t around 0 89.2%
Final simplification91.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -2e-259) (not (<= t_1 5e-305)))
t_1
(- t (/ (- t x) (/ 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 <= -2e-259) || !(t_1 <= 5e-305)) {
tmp = t_1;
} else {
tmp = t - ((t - x) / (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 <= (-2d-259)) .or. (.not. (t_1 <= 5d-305))) then
tmp = t_1
else
tmp = t - ((t - x) / (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 <= -2e-259) || !(t_1 <= 5e-305)) {
tmp = t_1;
} else {
tmp = t - ((t - x) / (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 <= -2e-259) or not (t_1 <= 5e-305): tmp = t_1 else: tmp = t - ((t - x) / (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 <= -2e-259) || !(t_1 <= 5e-305)) tmp = t_1; else tmp = Float64(t - Float64(Float64(t - x) / 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 <= -2e-259) || ~((t_1 <= 5e-305))) tmp = t_1; else tmp = t - ((t - x) / (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, -2e-259], N[Not[LessEqual[t$95$1, 5e-305]], $MachinePrecision]], t$95$1, N[(t - N[(N[(t - x), $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 -2 \cdot 10^{-259} \lor \neg \left(t_1 \leq 5 \cdot 10^{-305}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t - \frac{t - x}{\frac{z}{y - a}}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -2.0000000000000001e-259 or 4.99999999999999985e-305 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 91.2%
if -2.0000000000000001e-259 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 4.99999999999999985e-305Initial program 3.7%
Taylor expanded in z around inf 89.0%
+-commutative89.0%
associate--l+89.0%
associate-*r/89.0%
associate-*r/89.0%
div-sub89.0%
distribute-lft-out--89.0%
mul-1-neg89.0%
distribute-neg-frac89.0%
unsub-neg89.0%
distribute-rgt-out--89.2%
Simplified89.2%
*-un-lft-identity89.2%
associate-/l*99.6%
Applied egg-rr99.6%
Final simplification92.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -2e-259) (not (<= t_1 5e-305)))
t_1
(+ t (/ (- x t) (* z (/ 1.0 (- 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 <= -2e-259) || !(t_1 <= 5e-305)) {
tmp = t_1;
} else {
tmp = t + ((x - t) / (z * (1.0 / (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 <= (-2d-259)) .or. (.not. (t_1 <= 5d-305))) then
tmp = t_1
else
tmp = t + ((x - t) / (z * (1.0d0 / (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 <= -2e-259) || !(t_1 <= 5e-305)) {
tmp = t_1;
} else {
tmp = t + ((x - t) / (z * (1.0 / (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 <= -2e-259) or not (t_1 <= 5e-305): tmp = t_1 else: tmp = t + ((x - t) / (z * (1.0 / (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 <= -2e-259) || !(t_1 <= 5e-305)) tmp = t_1; else tmp = Float64(t + Float64(Float64(x - t) / Float64(z * Float64(1.0 / 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 <= -2e-259) || ~((t_1 <= 5e-305))) tmp = t_1; else tmp = t + ((x - t) / (z * (1.0 / (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, -2e-259], N[Not[LessEqual[t$95$1, 5e-305]], $MachinePrecision]], t$95$1, N[(t + N[(N[(x - t), $MachinePrecision] / N[(z * N[(1.0 / N[(y - a), $MachinePrecision]), $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 -2 \cdot 10^{-259} \lor \neg \left(t_1 \leq 5 \cdot 10^{-305}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{z \cdot \frac{1}{y - a}}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -2.0000000000000001e-259 or 4.99999999999999985e-305 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 91.2%
if -2.0000000000000001e-259 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 4.99999999999999985e-305Initial program 3.7%
Taylor expanded in z around inf 89.0%
+-commutative89.0%
associate--l+89.0%
associate-*r/89.0%
associate-*r/89.0%
div-sub89.0%
distribute-lft-out--89.0%
mul-1-neg89.0%
distribute-neg-frac89.0%
unsub-neg89.0%
distribute-rgt-out--89.2%
Simplified89.2%
*-un-lft-identity89.2%
associate-/l*99.6%
Applied egg-rr99.6%
div-inv99.7%
Applied egg-rr99.7%
Final simplification92.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ t (- a z))))))
(if (<= a -7.5e-102)
t_1
(if (<= a -3.8e-130)
(* x (- 1.0 (/ (- y z) (- a z))))
(if (<= a -3.8e-168)
(/ (- t) (/ z (- y z)))
(if (<= a 9.0) (- t (/ (* (- t x) (- y a)) z)) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * (t / (a - z)));
double tmp;
if (a <= -7.5e-102) {
tmp = t_1;
} else if (a <= -3.8e-130) {
tmp = x * (1.0 - ((y - z) / (a - z)));
} else if (a <= -3.8e-168) {
tmp = -t / (z / (y - z));
} else if (a <= 9.0) {
tmp = t - (((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 + ((y - z) * (t / (a - z)))
if (a <= (-7.5d-102)) then
tmp = t_1
else if (a <= (-3.8d-130)) then
tmp = x * (1.0d0 - ((y - z) / (a - z)))
else if (a <= (-3.8d-168)) then
tmp = -t / (z / (y - z))
else if (a <= 9.0d0) then
tmp = t - (((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 + ((y - z) * (t / (a - z)));
double tmp;
if (a <= -7.5e-102) {
tmp = t_1;
} else if (a <= -3.8e-130) {
tmp = x * (1.0 - ((y - z) / (a - z)));
} else if (a <= -3.8e-168) {
tmp = -t / (z / (y - z));
} else if (a <= 9.0) {
tmp = t - (((t - x) * (y - a)) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * (t / (a - z))) tmp = 0 if a <= -7.5e-102: tmp = t_1 elif a <= -3.8e-130: tmp = x * (1.0 - ((y - z) / (a - z))) elif a <= -3.8e-168: tmp = -t / (z / (y - z)) elif a <= 9.0: tmp = t - (((t - x) * (y - a)) / z) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(t / Float64(a - z)))) tmp = 0.0 if (a <= -7.5e-102) tmp = t_1; elseif (a <= -3.8e-130) tmp = Float64(x * Float64(1.0 - Float64(Float64(y - z) / Float64(a - z)))); elseif (a <= -3.8e-168) tmp = Float64(Float64(-t) / Float64(z / Float64(y - z))); elseif (a <= 9.0) tmp = Float64(t - Float64(Float64(Float64(t - x) * Float64(y - 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 / (a - z))); tmp = 0.0; if (a <= -7.5e-102) tmp = t_1; elseif (a <= -3.8e-130) tmp = x * (1.0 - ((y - z) / (a - z))); elseif (a <= -3.8e-168) tmp = -t / (z / (y - z)); elseif (a <= 9.0) tmp = t - (((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[(N[(y - z), $MachinePrecision] * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.5e-102], t$95$1, If[LessEqual[a, -3.8e-130], N[(x * N[(1.0 - N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.8e-168], N[((-t) / N[(z / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.0], N[(t - N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t}{a - z}\\
\mathbf{if}\;a \leq -7.5 \cdot 10^{-102}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-130}:\\
\;\;\;\;x \cdot \left(1 - \frac{y - z}{a - z}\right)\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-168}:\\
\;\;\;\;\frac{-t}{\frac{z}{y - z}}\\
\mathbf{elif}\;a \leq 9:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -7.5000000000000008e-102 or 9 < a Initial program 89.1%
Taylor expanded in t around inf 76.7%
if -7.5000000000000008e-102 < a < -3.7999999999999998e-130Initial program 89.5%
Taylor expanded in x around inf 99.8%
mul-1-neg99.8%
unsub-neg99.8%
Simplified99.8%
if -3.7999999999999998e-130 < a < -3.8e-168Initial program 99.7%
Taylor expanded in t around inf 80.0%
div-sub80.0%
Simplified80.0%
Taylor expanded in a around 0 44.0%
mul-1-neg44.0%
associate-/l*100.0%
distribute-neg-frac100.0%
Simplified100.0%
if -3.8e-168 < a < 9Initial program 69.5%
Taylor expanded in z around inf 81.4%
+-commutative81.4%
associate--l+81.4%
associate-*r/81.4%
associate-*r/81.4%
div-sub81.4%
distribute-lft-out--81.4%
mul-1-neg81.4%
distribute-neg-frac81.4%
unsub-neg81.4%
distribute-rgt-out--81.4%
Simplified81.4%
Final simplification79.7%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.8e+134)
(+ t (/ (* x (- y a)) z))
(if (<= z -4.5e+65)
(+ x (* (/ t z) (- z y)))
(if (or (<= z -3.9e-33) (not (<= z 1.25e-22)))
(+ t (* (/ y z) (- x t)))
(+ x (/ y (/ a (- t x))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.8e+134) {
tmp = t + ((x * (y - a)) / z);
} else if (z <= -4.5e+65) {
tmp = x + ((t / z) * (z - y));
} else if ((z <= -3.9e-33) || !(z <= 1.25e-22)) {
tmp = t + ((y / z) * (x - t));
} 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 <= (-1.8d+134)) then
tmp = t + ((x * (y - a)) / z)
else if (z <= (-4.5d+65)) then
tmp = x + ((t / z) * (z - y))
else if ((z <= (-3.9d-33)) .or. (.not. (z <= 1.25d-22))) then
tmp = t + ((y / z) * (x - t))
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 <= -1.8e+134) {
tmp = t + ((x * (y - a)) / z);
} else if (z <= -4.5e+65) {
tmp = x + ((t / z) * (z - y));
} else if ((z <= -3.9e-33) || !(z <= 1.25e-22)) {
tmp = t + ((y / z) * (x - t));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.8e+134: tmp = t + ((x * (y - a)) / z) elif z <= -4.5e+65: tmp = x + ((t / z) * (z - y)) elif (z <= -3.9e-33) or not (z <= 1.25e-22): tmp = t + ((y / z) * (x - t)) else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.8e+134) tmp = Float64(t + Float64(Float64(x * Float64(y - a)) / z)); elseif (z <= -4.5e+65) tmp = Float64(x + Float64(Float64(t / z) * Float64(z - y))); elseif ((z <= -3.9e-33) || !(z <= 1.25e-22)) tmp = Float64(t + Float64(Float64(y / z) * Float64(x - t))); 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 <= -1.8e+134) tmp = t + ((x * (y - a)) / z); elseif (z <= -4.5e+65) tmp = x + ((t / z) * (z - y)); elseif ((z <= -3.9e-33) || ~((z <= 1.25e-22))) tmp = t + ((y / z) * (x - t)); else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.8e+134], N[(t + N[(N[(x * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.5e+65], N[(x + N[(N[(t / z), $MachinePrecision] * N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -3.9e-33], N[Not[LessEqual[z, 1.25e-22]], $MachinePrecision]], N[(t + N[(N[(y / z), $MachinePrecision] * N[(x - t), $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 -1.8 \cdot 10^{+134}:\\
\;\;\;\;t + \frac{x \cdot \left(y - a\right)}{z}\\
\mathbf{elif}\;z \leq -4.5 \cdot 10^{+65}:\\
\;\;\;\;x + \frac{t}{z} \cdot \left(z - y\right)\\
\mathbf{elif}\;z \leq -3.9 \cdot 10^{-33} \lor \neg \left(z \leq 1.25 \cdot 10^{-22}\right):\\
\;\;\;\;t + \frac{y}{z} \cdot \left(x - t\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -1.79999999999999994e134Initial program 52.6%
Taylor expanded in z around inf 72.5%
+-commutative72.5%
associate--l+72.5%
associate-*r/72.5%
associate-*r/72.5%
div-sub72.5%
distribute-lft-out--72.5%
mul-1-neg72.5%
distribute-neg-frac72.5%
unsub-neg72.5%
distribute-rgt-out--72.8%
Simplified72.8%
Taylor expanded in t around 0 79.3%
mul-1-neg79.3%
distribute-rgt-neg-in79.3%
Simplified79.3%
Taylor expanded in t around 0 79.3%
if -1.79999999999999994e134 < z < -4.5e65Initial program 88.8%
Taylor expanded in t around inf 83.0%
Taylor expanded in a around 0 77.1%
associate-*r/77.1%
mul-1-neg77.1%
Simplified77.1%
if -4.5e65 < z < -3.89999999999999974e-33 or 1.24999999999999988e-22 < z Initial program 80.8%
Taylor expanded in z around inf 66.6%
+-commutative66.6%
associate--l+66.6%
associate-*r/66.6%
associate-*r/66.6%
div-sub66.6%
distribute-lft-out--66.6%
mul-1-neg66.6%
distribute-neg-frac66.6%
unsub-neg66.6%
distribute-rgt-out--66.8%
Simplified66.8%
*-un-lft-identity66.8%
associate-/l*75.2%
Applied egg-rr75.2%
Taylor expanded in a around 0 67.1%
associate-/l*68.8%
associate-/r/72.6%
Simplified72.6%
if -3.89999999999999974e-33 < z < 1.24999999999999988e-22Initial program 90.8%
Taylor expanded in z around 0 73.7%
+-commutative73.7%
associate-/l*77.2%
Simplified77.2%
Final simplification75.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ t (- a z))))))
(if (<= a -2.1e-109)
t_1
(if (<= a -3.8e-130)
(* x (- 1.0 (/ (- y z) (- a z))))
(if (<= a 15.5) (+ t (* (/ y z) (- x t))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * (t / (a - z)));
double tmp;
if (a <= -2.1e-109) {
tmp = t_1;
} else if (a <= -3.8e-130) {
tmp = x * (1.0 - ((y - z) / (a - z)));
} else if (a <= 15.5) {
tmp = t + ((y / z) * (x - 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 = x + ((y - z) * (t / (a - z)))
if (a <= (-2.1d-109)) then
tmp = t_1
else if (a <= (-3.8d-130)) then
tmp = x * (1.0d0 - ((y - z) / (a - z)))
else if (a <= 15.5d0) then
tmp = t + ((y / z) * (x - 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 = x + ((y - z) * (t / (a - z)));
double tmp;
if (a <= -2.1e-109) {
tmp = t_1;
} else if (a <= -3.8e-130) {
tmp = x * (1.0 - ((y - z) / (a - z)));
} else if (a <= 15.5) {
tmp = t + ((y / z) * (x - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * (t / (a - z))) tmp = 0 if a <= -2.1e-109: tmp = t_1 elif a <= -3.8e-130: tmp = x * (1.0 - ((y - z) / (a - z))) elif a <= 15.5: tmp = t + ((y / z) * (x - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(t / Float64(a - z)))) tmp = 0.0 if (a <= -2.1e-109) tmp = t_1; elseif (a <= -3.8e-130) tmp = Float64(x * Float64(1.0 - Float64(Float64(y - z) / Float64(a - z)))); elseif (a <= 15.5) tmp = Float64(t + Float64(Float64(y / z) * Float64(x - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * (t / (a - z))); tmp = 0.0; if (a <= -2.1e-109) tmp = t_1; elseif (a <= -3.8e-130) tmp = x * (1.0 - ((y - z) / (a - z))); elseif (a <= 15.5) tmp = t + ((y / z) * (x - t)); 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[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.1e-109], t$95$1, If[LessEqual[a, -3.8e-130], N[(x * N[(1.0 - N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 15.5], N[(t + N[(N[(y / z), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t}{a - z}\\
\mathbf{if}\;a \leq -2.1 \cdot 10^{-109}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-130}:\\
\;\;\;\;x \cdot \left(1 - \frac{y - z}{a - z}\right)\\
\mathbf{elif}\;a \leq 15.5:\\
\;\;\;\;t + \frac{y}{z} \cdot \left(x - t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -2.09999999999999996e-109 or 15.5 < a Initial program 89.1%
Taylor expanded in t around inf 76.7%
if -2.09999999999999996e-109 < a < -3.7999999999999998e-130Initial program 89.5%
Taylor expanded in x around inf 99.8%
mul-1-neg99.8%
unsub-neg99.8%
Simplified99.8%
if -3.7999999999999998e-130 < a < 15.5Initial program 71.0%
Taylor expanded in z around inf 80.4%
+-commutative80.4%
associate--l+80.4%
associate-*r/80.4%
associate-*r/80.4%
div-sub80.4%
distribute-lft-out--80.4%
mul-1-neg80.4%
distribute-neg-frac80.4%
unsub-neg80.4%
distribute-rgt-out--80.4%
Simplified80.4%
*-un-lft-identity80.4%
associate-/l*83.0%
Applied egg-rr83.0%
Taylor expanded in a around 0 76.3%
associate-/l*72.4%
associate-/r/79.0%
Simplified79.0%
Final simplification78.4%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.25e+125)
t
(if (<= z -3.6e+65)
x
(if (<= z -1.45e+20)
(* x (/ y z))
(if (<= z -6.2e-187) (* t (/ y (- a z))) (if (<= z 1.7e-37) x t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.25e+125) {
tmp = t;
} else if (z <= -3.6e+65) {
tmp = x;
} else if (z <= -1.45e+20) {
tmp = x * (y / z);
} else if (z <= -6.2e-187) {
tmp = t * (y / (a - z));
} else if (z <= 1.7e-37) {
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.25d+125)) then
tmp = t
else if (z <= (-3.6d+65)) then
tmp = x
else if (z <= (-1.45d+20)) then
tmp = x * (y / z)
else if (z <= (-6.2d-187)) then
tmp = t * (y / (a - z))
else if (z <= 1.7d-37) 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.25e+125) {
tmp = t;
} else if (z <= -3.6e+65) {
tmp = x;
} else if (z <= -1.45e+20) {
tmp = x * (y / z);
} else if (z <= -6.2e-187) {
tmp = t * (y / (a - z));
} else if (z <= 1.7e-37) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.25e+125: tmp = t elif z <= -3.6e+65: tmp = x elif z <= -1.45e+20: tmp = x * (y / z) elif z <= -6.2e-187: tmp = t * (y / (a - z)) elif z <= 1.7e-37: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.25e+125) tmp = t; elseif (z <= -3.6e+65) tmp = x; elseif (z <= -1.45e+20) tmp = Float64(x * Float64(y / z)); elseif (z <= -6.2e-187) tmp = Float64(t * Float64(y / Float64(a - z))); elseif (z <= 1.7e-37) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.25e+125) tmp = t; elseif (z <= -3.6e+65) tmp = x; elseif (z <= -1.45e+20) tmp = x * (y / z); elseif (z <= -6.2e-187) tmp = t * (y / (a - z)); elseif (z <= 1.7e-37) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.25e+125], t, If[LessEqual[z, -3.6e+65], x, If[LessEqual[z, -1.45e+20], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -6.2e-187], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e-37], x, t]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.25 \cdot 10^{+125}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -3.6 \cdot 10^{+65}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq -1.45 \cdot 10^{+20}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq -6.2 \cdot 10^{-187}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-37}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.24999999999999991e125 or 1.70000000000000009e-37 < z Initial program 71.2%
Taylor expanded in z around inf 46.1%
if -1.24999999999999991e125 < z < -3.59999999999999978e65 or -6.20000000000000039e-187 < z < 1.70000000000000009e-37Initial program 91.4%
Taylor expanded in a around inf 46.0%
if -3.59999999999999978e65 < z < -1.45e20Initial program 91.0%
Taylor expanded in y around inf 48.4%
div-sub48.4%
*-commutative48.4%
associate-*r/48.4%
associate-/l*48.4%
Simplified48.4%
Taylor expanded in t around 0 40.8%
associate-*r/40.8%
mul-1-neg40.8%
Simplified40.8%
Taylor expanded in a around 0 40.8%
associate-/l*40.8%
Simplified40.8%
associate-/r/40.8%
Applied egg-rr40.8%
if -1.45e20 < z < -6.20000000000000039e-187Initial program 88.9%
Taylor expanded in t around inf 43.3%
div-sub43.3%
Simplified43.3%
Taylor expanded in y around inf 29.5%
associate-/l*31.8%
associate-/r/34.0%
Simplified34.0%
Final simplification43.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (/ y (- z a)))))
(if (<= x -4.7e+81)
t_1
(if (<= x -3.5e-161)
x
(if (<= x -8.5e-289) (* t (/ y (- a z))) (if (<= x 5e+91) t t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (y / (z - a));
double tmp;
if (x <= -4.7e+81) {
tmp = t_1;
} else if (x <= -3.5e-161) {
tmp = x;
} else if (x <= -8.5e-289) {
tmp = t * (y / (a - z));
} else if (x <= 5e+91) {
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 = x * (y / (z - a))
if (x <= (-4.7d+81)) then
tmp = t_1
else if (x <= (-3.5d-161)) then
tmp = x
else if (x <= (-8.5d-289)) then
tmp = t * (y / (a - z))
else if (x <= 5d+91) 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 = x * (y / (z - a));
double tmp;
if (x <= -4.7e+81) {
tmp = t_1;
} else if (x <= -3.5e-161) {
tmp = x;
} else if (x <= -8.5e-289) {
tmp = t * (y / (a - z));
} else if (x <= 5e+91) {
tmp = t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (y / (z - a)) tmp = 0 if x <= -4.7e+81: tmp = t_1 elif x <= -3.5e-161: tmp = x elif x <= -8.5e-289: tmp = t * (y / (a - z)) elif x <= 5e+91: tmp = t else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(y / Float64(z - a))) tmp = 0.0 if (x <= -4.7e+81) tmp = t_1; elseif (x <= -3.5e-161) tmp = x; elseif (x <= -8.5e-289) tmp = Float64(t * Float64(y / Float64(a - z))); elseif (x <= 5e+91) tmp = t; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (y / (z - a)); tmp = 0.0; if (x <= -4.7e+81) tmp = t_1; elseif (x <= -3.5e-161) tmp = x; elseif (x <= -8.5e-289) tmp = t * (y / (a - z)); elseif (x <= 5e+91) tmp = t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.7e+81], t$95$1, If[LessEqual[x, -3.5e-161], x, If[LessEqual[x, -8.5e-289], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5e+91], t, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{y}{z - a}\\
\mathbf{if}\;x \leq -4.7 \cdot 10^{+81}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -3.5 \cdot 10^{-161}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq -8.5 \cdot 10^{-289}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{elif}\;x \leq 5 \cdot 10^{+91}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -4.7000000000000002e81 or 5.0000000000000002e91 < x Initial program 75.6%
Taylor expanded in y around inf 47.8%
div-sub47.8%
*-commutative47.8%
associate-*r/43.8%
associate-/l*47.7%
Simplified47.7%
Taylor expanded in t around 0 45.5%
associate-*r/45.5%
mul-1-neg45.5%
Simplified45.5%
Taylor expanded in y around 0 42.7%
associate-/l*45.5%
Simplified45.5%
associate-/r/49.8%
Applied egg-rr49.8%
if -4.7000000000000002e81 < x < -3.5000000000000002e-161Initial program 85.9%
Taylor expanded in a around inf 35.8%
if -3.5000000000000002e-161 < x < -8.49999999999999931e-289Initial program 93.8%
Taylor expanded in t around inf 92.7%
div-sub92.7%
Simplified92.7%
Taylor expanded in y around inf 51.8%
associate-/l*49.0%
associate-/r/51.8%
Simplified51.8%
if -8.49999999999999931e-289 < x < 5.0000000000000002e91Initial program 81.6%
Taylor expanded in z around inf 41.2%
Final simplification44.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -7.2e+15) (not (<= z 3.4e-16))) (+ t (/ y (/ z x))) (+ x (/ t (/ a (- y z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -7.2e+15) || !(z <= 3.4e-16)) {
tmp = t + (y / (z / x));
} else {
tmp = x + (t / (a / (y - z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-7.2d+15)) .or. (.not. (z <= 3.4d-16))) then
tmp = t + (y / (z / x))
else
tmp = x + (t / (a / (y - z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -7.2e+15) || !(z <= 3.4e-16)) {
tmp = t + (y / (z / x));
} else {
tmp = x + (t / (a / (y - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -7.2e+15) or not (z <= 3.4e-16): tmp = t + (y / (z / x)) else: tmp = x + (t / (a / (y - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -7.2e+15) || !(z <= 3.4e-16)) tmp = Float64(t + Float64(y / Float64(z / x))); else tmp = Float64(x + Float64(t / Float64(a / Float64(y - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -7.2e+15) || ~((z <= 3.4e-16))) tmp = t + (y / (z / x)); else tmp = x + (t / (a / (y - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -7.2e+15], N[Not[LessEqual[z, 3.4e-16]], $MachinePrecision]], N[(t + N[(y / N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.2 \cdot 10^{+15} \lor \neg \left(z \leq 3.4 \cdot 10^{-16}\right):\\
\;\;\;\;t + \frac{y}{\frac{z}{x}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y - z}}\\
\end{array}
\end{array}
if z < -7.2e15 or 3.4e-16 < z Initial program 74.3%
Taylor expanded in z around inf 67.7%
+-commutative67.7%
associate--l+67.7%
associate-*r/67.7%
associate-*r/67.7%
div-sub67.7%
distribute-lft-out--67.7%
mul-1-neg67.7%
distribute-neg-frac67.7%
unsub-neg67.7%
distribute-rgt-out--67.9%
Simplified67.9%
Taylor expanded in t around 0 64.4%
mul-1-neg64.4%
distribute-rgt-neg-in64.4%
Simplified64.4%
Taylor expanded in a around 0 60.7%
sub-neg60.7%
mul-1-neg60.7%
associate-*l/63.3%
remove-double-neg63.3%
associate-/r/62.0%
Simplified62.0%
if -7.2e15 < z < 3.4e-16Initial program 90.3%
Taylor expanded in t around inf 73.0%
Taylor expanded in a around inf 63.2%
associate-/l*64.6%
Simplified64.6%
Final simplification63.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.4e+14) (not (<= z 2.3e-22))) (+ t (/ y (/ z x))) (+ x (/ y (/ a (- t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.4e+14) || !(z <= 2.3e-22)) {
tmp = t + (y / (z / x));
} 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 <= (-2.4d+14)) .or. (.not. (z <= 2.3d-22))) then
tmp = t + (y / (z / x))
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 <= -2.4e+14) || !(z <= 2.3e-22)) {
tmp = t + (y / (z / x));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.4e+14) or not (z <= 2.3e-22): tmp = t + (y / (z / x)) else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.4e+14) || !(z <= 2.3e-22)) tmp = Float64(t + Float64(y / Float64(z / x))); 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 <= -2.4e+14) || ~((z <= 2.3e-22))) tmp = t + (y / (z / x)); else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.4e+14], N[Not[LessEqual[z, 2.3e-22]], $MachinePrecision]], N[(t + N[(y / N[(z / x), $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 -2.4 \cdot 10^{+14} \lor \neg \left(z \leq 2.3 \cdot 10^{-22}\right):\\
\;\;\;\;t + \frac{y}{\frac{z}{x}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -2.4e14 or 2.2999999999999998e-22 < z Initial program 74.7%
Taylor expanded in z around inf 67.5%
+-commutative67.5%
associate--l+67.5%
associate-*r/67.5%
associate-*r/67.5%
div-sub67.5%
distribute-lft-out--67.5%
mul-1-neg67.5%
distribute-neg-frac67.5%
unsub-neg67.5%
distribute-rgt-out--67.7%
Simplified67.7%
Taylor expanded in t around 0 64.2%
mul-1-neg64.2%
distribute-rgt-neg-in64.2%
Simplified64.2%
Taylor expanded in a around 0 60.6%
sub-neg60.6%
mul-1-neg60.6%
associate-*l/63.2%
remove-double-neg63.2%
associate-/r/61.9%
Simplified61.9%
if -2.4e14 < z < 2.2999999999999998e-22Initial program 90.1%
Taylor expanded in z around 0 69.3%
+-commutative69.3%
associate-/l*72.5%
Simplified72.5%
Final simplification66.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.7e-34) (not (<= z 2.8e-22))) (+ t (* (/ y z) (- x t))) (+ x (/ y (/ a (- t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.7e-34) || !(z <= 2.8e-22)) {
tmp = t + ((y / z) * (x - t));
} 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 <= (-2.7d-34)) .or. (.not. (z <= 2.8d-22))) then
tmp = t + ((y / z) * (x - t))
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 <= -2.7e-34) || !(z <= 2.8e-22)) {
tmp = t + ((y / z) * (x - t));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.7e-34) or not (z <= 2.8e-22): tmp = t + ((y / z) * (x - t)) else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.7e-34) || !(z <= 2.8e-22)) tmp = Float64(t + Float64(Float64(y / z) * Float64(x - t))); 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 <= -2.7e-34) || ~((z <= 2.8e-22))) tmp = t + ((y / z) * (x - t)); else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.7e-34], N[Not[LessEqual[z, 2.8e-22]], $MachinePrecision]], N[(t + N[(N[(y / z), $MachinePrecision] * N[(x - t), $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 -2.7 \cdot 10^{-34} \lor \neg \left(z \leq 2.8 \cdot 10^{-22}\right):\\
\;\;\;\;t + \frac{y}{z} \cdot \left(x - t\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -2.70000000000000017e-34 or 2.79999999999999995e-22 < z Initial program 75.5%
Taylor expanded in z around inf 67.0%
+-commutative67.0%
associate--l+67.0%
associate-*r/67.0%
associate-*r/67.0%
div-sub67.0%
distribute-lft-out--67.0%
mul-1-neg67.0%
distribute-neg-frac67.0%
unsub-neg67.0%
distribute-rgt-out--67.2%
Simplified67.2%
*-un-lft-identity67.2%
associate-/l*76.2%
Applied egg-rr76.2%
Taylor expanded in a around 0 64.0%
associate-/l*67.2%
associate-/r/70.4%
Simplified70.4%
if -2.70000000000000017e-34 < z < 2.79999999999999995e-22Initial program 90.8%
Taylor expanded in z around 0 73.7%
+-commutative73.7%
associate-/l*77.2%
Simplified77.2%
Final simplification73.3%
(FPCore (x y z t a) :precision binary64 (if (<= z -4.5e-33) (+ t (/ (* x (- y a)) z)) (if (<= z 2.2e-22) (+ x (/ y (/ a (- t x)))) (+ t (/ y (/ z x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.5e-33) {
tmp = t + ((x * (y - a)) / z);
} else if (z <= 2.2e-22) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t + (y / (z / 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 <= (-4.5d-33)) then
tmp = t + ((x * (y - a)) / z)
else if (z <= 2.2d-22) then
tmp = x + (y / (a / (t - x)))
else
tmp = t + (y / (z / 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 <= -4.5e-33) {
tmp = t + ((x * (y - a)) / z);
} else if (z <= 2.2e-22) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t + (y / (z / x));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -4.5e-33: tmp = t + ((x * (y - a)) / z) elif z <= 2.2e-22: tmp = x + (y / (a / (t - x))) else: tmp = t + (y / (z / x)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.5e-33) tmp = Float64(t + Float64(Float64(x * Float64(y - a)) / z)); elseif (z <= 2.2e-22) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); else tmp = Float64(t + Float64(y / Float64(z / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -4.5e-33) tmp = t + ((x * (y - a)) / z); elseif (z <= 2.2e-22) tmp = x + (y / (a / (t - x))); else tmp = t + (y / (z / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.5e-33], N[(t + N[(N[(x * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e-22], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(y / N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.5 \cdot 10^{-33}:\\
\;\;\;\;t + \frac{x \cdot \left(y - a\right)}{z}\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{-22}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{y}{\frac{z}{x}}\\
\end{array}
\end{array}
if z < -4.49999999999999991e-33Initial program 72.9%
Taylor expanded in z around inf 66.3%
+-commutative66.3%
associate--l+66.3%
associate-*r/66.3%
associate-*r/66.3%
div-sub66.3%
distribute-lft-out--66.3%
mul-1-neg66.3%
distribute-neg-frac66.3%
unsub-neg66.3%
distribute-rgt-out--66.4%
Simplified66.4%
Taylor expanded in t around 0 60.5%
mul-1-neg60.5%
distribute-rgt-neg-in60.5%
Simplified60.5%
Taylor expanded in t around 0 60.5%
if -4.49999999999999991e-33 < z < 2.2000000000000001e-22Initial program 90.8%
Taylor expanded in z around 0 73.7%
+-commutative73.7%
associate-/l*77.2%
Simplified77.2%
if 2.2000000000000001e-22 < z Initial program 78.3%
Taylor expanded in z around inf 67.8%
+-commutative67.8%
associate--l+67.8%
associate-*r/67.8%
associate-*r/67.8%
div-sub67.8%
distribute-lft-out--67.8%
mul-1-neg67.8%
distribute-neg-frac67.8%
unsub-neg67.8%
distribute-rgt-out--68.0%
Simplified68.0%
Taylor expanded in t around 0 63.9%
mul-1-neg63.9%
distribute-rgt-neg-in63.9%
Simplified63.9%
Taylor expanded in a around 0 64.2%
sub-neg64.2%
mul-1-neg64.2%
associate-*l/66.5%
remove-double-neg66.5%
associate-/r/64.0%
Simplified64.0%
Final simplification68.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -4.3e-98) (not (<= z 3.5e-36))) (+ t (/ y (/ z x))) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -4.3e-98) || !(z <= 3.5e-36)) {
tmp = t + (y / (z / x));
} 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 ((z <= (-4.3d-98)) .or. (.not. (z <= 3.5d-36))) then
tmp = t + (y / (z / x))
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 ((z <= -4.3e-98) || !(z <= 3.5e-36)) {
tmp = t + (y / (z / x));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -4.3e-98) or not (z <= 3.5e-36): tmp = t + (y / (z / x)) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -4.3e-98) || !(z <= 3.5e-36)) tmp = Float64(t + Float64(y / Float64(z / x))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -4.3e-98) || ~((z <= 3.5e-36))) tmp = t + (y / (z / x)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -4.3e-98], N[Not[LessEqual[z, 3.5e-36]], $MachinePrecision]], N[(t + N[(y / N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.3 \cdot 10^{-98} \lor \neg \left(z \leq 3.5 \cdot 10^{-36}\right):\\
\;\;\;\;t + \frac{y}{\frac{z}{x}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -4.29999999999999988e-98 or 3.5e-36 < z Initial program 76.0%
Taylor expanded in z around inf 65.5%
+-commutative65.5%
associate--l+65.5%
associate-*r/65.5%
associate-*r/65.5%
div-sub65.5%
distribute-lft-out--65.5%
mul-1-neg65.5%
distribute-neg-frac65.5%
unsub-neg65.5%
distribute-rgt-out--65.7%
Simplified65.7%
Taylor expanded in t around 0 60.6%
mul-1-neg60.6%
distribute-rgt-neg-in60.6%
Simplified60.6%
Taylor expanded in a around 0 55.4%
sub-neg55.4%
mul-1-neg55.4%
associate-*l/57.6%
remove-double-neg57.6%
associate-/r/55.9%
Simplified55.9%
if -4.29999999999999988e-98 < z < 3.5e-36Initial program 93.1%
Taylor expanded in a around inf 43.3%
Final simplification51.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.6e+18) (not (<= z 2.8e-22))) (+ t (/ y (/ z x))) (+ x (/ y (/ a t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.6e+18) || !(z <= 2.8e-22)) {
tmp = t + (y / (z / x));
} else {
tmp = x + (y / (a / 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.6d+18)) .or. (.not. (z <= 2.8d-22))) then
tmp = t + (y / (z / x))
else
tmp = x + (y / (a / 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.6e+18) || !(z <= 2.8e-22)) {
tmp = t + (y / (z / x));
} else {
tmp = x + (y / (a / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.6e+18) or not (z <= 2.8e-22): tmp = t + (y / (z / x)) else: tmp = x + (y / (a / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.6e+18) || !(z <= 2.8e-22)) tmp = Float64(t + Float64(y / Float64(z / x))); else tmp = Float64(x + Float64(y / Float64(a / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.6e+18) || ~((z <= 2.8e-22))) tmp = t + (y / (z / x)); else tmp = x + (y / (a / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.6e+18], N[Not[LessEqual[z, 2.8e-22]], $MachinePrecision]], N[(t + N[(y / N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.6 \cdot 10^{+18} \lor \neg \left(z \leq 2.8 \cdot 10^{-22}\right):\\
\;\;\;\;t + \frac{y}{\frac{z}{x}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\
\end{array}
\end{array}
if z < -1.6e18 or 2.79999999999999995e-22 < z Initial program 74.7%
Taylor expanded in z around inf 67.5%
+-commutative67.5%
associate--l+67.5%
associate-*r/67.5%
associate-*r/67.5%
div-sub67.5%
distribute-lft-out--67.5%
mul-1-neg67.5%
distribute-neg-frac67.5%
unsub-neg67.5%
distribute-rgt-out--67.7%
Simplified67.7%
Taylor expanded in t around 0 64.2%
mul-1-neg64.2%
distribute-rgt-neg-in64.2%
Simplified64.2%
Taylor expanded in a around 0 60.6%
sub-neg60.6%
mul-1-neg60.6%
associate-*l/63.2%
remove-double-neg63.2%
associate-/r/61.9%
Simplified61.9%
if -1.6e18 < z < 2.79999999999999995e-22Initial program 90.1%
Taylor expanded in t around inf 73.4%
Taylor expanded in z around 0 57.8%
associate-/l*59.4%
Simplified59.4%
Final simplification60.7%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.35e+125) t (if (<= z 2.45e-37) x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.35e+125) {
tmp = t;
} else if (z <= 2.45e-37) {
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.35d+125)) then
tmp = t
else if (z <= 2.45d-37) 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.35e+125) {
tmp = t;
} else if (z <= 2.45e-37) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.35e+125: tmp = t elif z <= 2.45e-37: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.35e+125) tmp = t; elseif (z <= 2.45e-37) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.35e+125) tmp = t; elseif (z <= 2.45e-37) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.35e+125], t, If[LessEqual[z, 2.45e-37], x, t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.35 \cdot 10^{+125}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 2.45 \cdot 10^{-37}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.3499999999999999e125 or 2.45000000000000009e-37 < z Initial program 71.2%
Taylor expanded in z around inf 46.1%
if -1.3499999999999999e125 < z < 2.45000000000000009e-37Initial program 90.6%
Taylor expanded in a around inf 38.5%
Final simplification41.9%
(FPCore (x y z t a) :precision binary64 0.0)
double code(double x, double y, double z, double t, double a) {
return 0.0;
}
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 = 0.0d0
end function
public static double code(double x, double y, double z, double t, double a) {
return 0.0;
}
def code(x, y, z, t, a): return 0.0
function code(x, y, z, t, a) return 0.0 end
function tmp = code(x, y, z, t, a) tmp = 0.0; end
code[x_, y_, z_, t_, a_] := 0.0
\begin{array}{l}
\\
0
\end{array}
Initial program 82.0%
Taylor expanded in t around 0 43.0%
neg-mul-143.0%
distribute-neg-frac43.0%
Simplified43.0%
Taylor expanded in z around inf 2.8%
distribute-lft1-in2.8%
metadata-eval2.8%
mul0-lft2.8%
Simplified2.8%
Final simplification2.8%
(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 82.0%
Taylor expanded in z around inf 25.7%
Final simplification25.7%
herbie shell --seed 2023230
(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)))))