
(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 22 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 (* (- z y) (/ (- x t) (- a z))))))
(if (or (<= t_1 -2e-279) (not (<= t_1 0.0)))
(fma (/ (- y z) (- a z)) (- t x) x)
(- t (* x (/ (- a y) z))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - y) * ((x - t) / (a - z)));
double tmp;
if ((t_1 <= -2e-279) || !(t_1 <= 0.0)) {
tmp = fma(((y - z) / (a - z)), (t - x), x);
} else {
tmp = t - (x * ((a - y) / z));
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(z - y) * Float64(Float64(x - t) / Float64(a - z)))) tmp = 0.0 if ((t_1 <= -2e-279) || !(t_1 <= 0.0)) tmp = fma(Float64(Float64(y - z) / Float64(a - z)), Float64(t - x), x); else tmp = Float64(t - Float64(x * Float64(Float64(a - y) / z))); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(z - y), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -2e-279], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], N[(t - N[(x * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(z - y\right) \cdot \frac{x - t}{a - z}\\
\mathbf{if}\;t_1 \leq -2 \cdot 10^{-279} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)\\
\mathbf{else}:\\
\;\;\;\;t - x \cdot \frac{a - y}{z}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -2.00000000000000011e-279 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 91.9%
+-commutative91.9%
remove-double-neg91.9%
unsub-neg91.9%
associate-*r/76.1%
associate-/l*91.6%
associate-/r/95.4%
fma-neg95.4%
remove-double-neg95.4%
Simplified95.4%
if -2.00000000000000011e-279 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.0%
Taylor expanded in z around inf 76.1%
associate--l+76.1%
associate-*r/76.1%
associate-*r/76.1%
div-sub76.1%
distribute-lft-out--76.1%
associate-*r/76.1%
mul-1-neg76.1%
unsub-neg76.1%
distribute-rgt-out--76.4%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in t around 0 76.4%
associate-*r/99.8%
neg-mul-199.8%
distribute-rgt-neg-in99.8%
distribute-neg-frac99.8%
Simplified99.8%
Final simplification95.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- z y) (/ (- x t) (- a z))))))
(if (<= t_1 -5e-246)
(fma (- y z) (/ (- t x) (- a z)) x)
(if (<= t_1 2e-264)
(+ t (/ (- x t) (/ z (- y a))))
(+ x (/ (- y z) (/ (- a z) (- t x))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - y) * ((x - t) / (a - z)));
double tmp;
if (t_1 <= -5e-246) {
tmp = fma((y - z), ((t - x) / (a - z)), x);
} else if (t_1 <= 2e-264) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((y - z) / ((a - z) / (t - x)));
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(z - y) * Float64(Float64(x - t) / Float64(a - z)))) tmp = 0.0 if (t_1 <= -5e-246) tmp = fma(Float64(y - z), Float64(Float64(t - x) / Float64(a - z)), x); elseif (t_1 <= 2e-264) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(z - y), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e-246], N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[t$95$1, 2e-264], 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[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(z - y\right) \cdot \frac{x - t}{a - z}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{-246}:\\
\;\;\;\;\mathsf{fma}\left(y - z, \frac{t - x}{a - z}, x\right)\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{-264}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.9999999999999997e-246Initial program 93.5%
+-commutative93.5%
fma-def93.5%
Simplified93.5%
if -4.9999999999999997e-246 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 2e-264Initial program 3.5%
Taylor expanded in z around inf 78.8%
associate--l+78.8%
associate-*r/78.8%
associate-*r/78.8%
div-sub78.8%
distribute-lft-out--78.8%
associate-*r/78.8%
mul-1-neg78.8%
unsub-neg78.8%
distribute-rgt-out--79.0%
associate-/l*99.7%
Simplified99.7%
if 2e-264 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 93.5%
associate-*r/82.1%
associate-/l*93.5%
Applied egg-rr93.5%
Final simplification94.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- z y) (/ (- x t) (- a z))))))
(if (or (<= t_1 -5e-246) (not (<= t_1 2e-264)))
t_1
(+ t (/ (- x t) (/ z (- y a)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - y) * ((x - t) / (a - z)));
double tmp;
if ((t_1 <= -5e-246) || !(t_1 <= 2e-264)) {
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 + ((z - y) * ((x - t) / (a - z)))
if ((t_1 <= (-5d-246)) .or. (.not. (t_1 <= 2d-264))) 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 + ((z - y) * ((x - t) / (a - z)));
double tmp;
if ((t_1 <= -5e-246) || !(t_1 <= 2e-264)) {
tmp = t_1;
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((z - y) * ((x - t) / (a - z))) tmp = 0 if (t_1 <= -5e-246) or not (t_1 <= 2e-264): 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(z - y) * Float64(Float64(x - t) / Float64(a - z)))) tmp = 0.0 if ((t_1 <= -5e-246) || !(t_1 <= 2e-264)) 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 + ((z - y) * ((x - t) / (a - z))); tmp = 0.0; if ((t_1 <= -5e-246) || ~((t_1 <= 2e-264))) 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[(z - y), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-246], N[Not[LessEqual[t$95$1, 2e-264]], $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(z - y\right) \cdot \frac{x - t}{a - z}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{-246} \lor \neg \left(t_1 \leq 2 \cdot 10^{-264}\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.9999999999999997e-246 or 2e-264 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 93.5%
if -4.9999999999999997e-246 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 2e-264Initial program 3.5%
Taylor expanded in z around inf 78.8%
associate--l+78.8%
associate-*r/78.8%
associate-*r/78.8%
div-sub78.8%
distribute-lft-out--78.8%
associate-*r/78.8%
mul-1-neg78.8%
unsub-neg78.8%
distribute-rgt-out--79.0%
associate-/l*99.7%
Simplified99.7%
Final simplification94.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- z y) (/ (- x t) (- a z))))))
(if (<= t_1 -5e-246)
t_1
(if (<= t_1 2e-264)
(+ t (/ (- x t) (/ z (- y a))))
(+ x (/ (- y z) (/ (- a z) (- t x))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - y) * ((x - t) / (a - z)));
double tmp;
if (t_1 <= -5e-246) {
tmp = t_1;
} else if (t_1 <= 2e-264) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((y - z) / ((a - z) / (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) :: t_1
real(8) :: tmp
t_1 = x + ((z - y) * ((x - t) / (a - z)))
if (t_1 <= (-5d-246)) then
tmp = t_1
else if (t_1 <= 2d-264) then
tmp = t + ((x - t) / (z / (y - a)))
else
tmp = x + ((y - z) / ((a - z) / (t - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((z - y) * ((x - t) / (a - z)));
double tmp;
if (t_1 <= -5e-246) {
tmp = t_1;
} else if (t_1 <= 2e-264) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((y - z) / ((a - z) / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((z - y) * ((x - t) / (a - z))) tmp = 0 if t_1 <= -5e-246: tmp = t_1 elif t_1 <= 2e-264: tmp = t + ((x - t) / (z / (y - a))) else: tmp = x + ((y - z) / ((a - z) / (t - x))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(z - y) * Float64(Float64(x - t) / Float64(a - z)))) tmp = 0.0 if (t_1 <= -5e-246) tmp = t_1; elseif (t_1 <= 2e-264) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((z - y) * ((x - t) / (a - z))); tmp = 0.0; if (t_1 <= -5e-246) tmp = t_1; elseif (t_1 <= 2e-264) tmp = t + ((x - t) / (z / (y - a))); else tmp = x + ((y - z) / ((a - z) / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(z - y), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e-246], t$95$1, If[LessEqual[t$95$1, 2e-264], 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[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(z - y\right) \cdot \frac{x - t}{a - z}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{-246}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{-264}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.9999999999999997e-246Initial program 93.5%
if -4.9999999999999997e-246 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 2e-264Initial program 3.5%
Taylor expanded in z around inf 78.8%
associate--l+78.8%
associate-*r/78.8%
associate-*r/78.8%
div-sub78.8%
distribute-lft-out--78.8%
associate-*r/78.8%
mul-1-neg78.8%
unsub-neg78.8%
distribute-rgt-out--79.0%
associate-/l*99.7%
Simplified99.7%
if 2e-264 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 93.5%
associate-*r/82.1%
associate-/l*93.5%
Applied egg-rr93.5%
Final simplification94.4%
(FPCore (x y z t a)
:precision binary64
(if (<= z -3.5e+25)
t
(if (<= z -2.1e-92)
x
(if (<= z 3.6e-220)
(* t (/ (- y z) a))
(if (<= z 1.95e+32)
x
(if (<= z 1.6e+77)
(+ t (+ x x))
(if (<= z 3.9e+80)
(/ y (/ (- z) t))
(if (<= z 4.1e+108) (* x (/ (- y a) z)) t))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.5e+25) {
tmp = t;
} else if (z <= -2.1e-92) {
tmp = x;
} else if (z <= 3.6e-220) {
tmp = t * ((y - z) / a);
} else if (z <= 1.95e+32) {
tmp = x;
} else if (z <= 1.6e+77) {
tmp = t + (x + x);
} else if (z <= 3.9e+80) {
tmp = y / (-z / t);
} else if (z <= 4.1e+108) {
tmp = x * ((y - a) / z);
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-3.5d+25)) then
tmp = t
else if (z <= (-2.1d-92)) then
tmp = x
else if (z <= 3.6d-220) then
tmp = t * ((y - z) / a)
else if (z <= 1.95d+32) then
tmp = x
else if (z <= 1.6d+77) then
tmp = t + (x + x)
else if (z <= 3.9d+80) then
tmp = y / (-z / t)
else if (z <= 4.1d+108) then
tmp = x * ((y - a) / z)
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.5e+25) {
tmp = t;
} else if (z <= -2.1e-92) {
tmp = x;
} else if (z <= 3.6e-220) {
tmp = t * ((y - z) / a);
} else if (z <= 1.95e+32) {
tmp = x;
} else if (z <= 1.6e+77) {
tmp = t + (x + x);
} else if (z <= 3.9e+80) {
tmp = y / (-z / t);
} else if (z <= 4.1e+108) {
tmp = x * ((y - a) / z);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.5e+25: tmp = t elif z <= -2.1e-92: tmp = x elif z <= 3.6e-220: tmp = t * ((y - z) / a) elif z <= 1.95e+32: tmp = x elif z <= 1.6e+77: tmp = t + (x + x) elif z <= 3.9e+80: tmp = y / (-z / t) elif z <= 4.1e+108: tmp = x * ((y - a) / z) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.5e+25) tmp = t; elseif (z <= -2.1e-92) tmp = x; elseif (z <= 3.6e-220) tmp = Float64(t * Float64(Float64(y - z) / a)); elseif (z <= 1.95e+32) tmp = x; elseif (z <= 1.6e+77) tmp = Float64(t + Float64(x + x)); elseif (z <= 3.9e+80) tmp = Float64(y / Float64(Float64(-z) / t)); elseif (z <= 4.1e+108) tmp = Float64(x * Float64(Float64(y - a) / z)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.5e+25) tmp = t; elseif (z <= -2.1e-92) tmp = x; elseif (z <= 3.6e-220) tmp = t * ((y - z) / a); elseif (z <= 1.95e+32) tmp = x; elseif (z <= 1.6e+77) tmp = t + (x + x); elseif (z <= 3.9e+80) tmp = y / (-z / t); elseif (z <= 4.1e+108) tmp = x * ((y - a) / z); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.5e+25], t, If[LessEqual[z, -2.1e-92], x, If[LessEqual[z, 3.6e-220], N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.95e+32], x, If[LessEqual[z, 1.6e+77], N[(t + N[(x + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.9e+80], N[(y / N[((-z) / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.1e+108], N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.5 \cdot 10^{+25}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -2.1 \cdot 10^{-92}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{-220}:\\
\;\;\;\;t \cdot \frac{y - z}{a}\\
\mathbf{elif}\;z \leq 1.95 \cdot 10^{+32}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{+77}:\\
\;\;\;\;t + \left(x + x\right)\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{+80}:\\
\;\;\;\;\frac{y}{\frac{-z}{t}}\\
\mathbf{elif}\;z \leq 4.1 \cdot 10^{+108}:\\
\;\;\;\;x \cdot \frac{y - a}{z}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -3.49999999999999999e25 or 4.0999999999999999e108 < z Initial program 65.9%
Taylor expanded in z around inf 53.8%
if -3.49999999999999999e25 < z < -2.1e-92 or 3.60000000000000021e-220 < z < 1.95e32Initial program 92.9%
Taylor expanded in a around inf 43.6%
if -2.1e-92 < z < 3.60000000000000021e-220Initial program 96.3%
Taylor expanded in a around inf 83.7%
associate-/l*85.6%
Simplified85.6%
Taylor expanded in t around inf 47.3%
div-sub47.3%
Simplified47.3%
if 1.95e32 < z < 1.6000000000000001e77Initial program 83.8%
Taylor expanded in z around inf 51.4%
expm1-log1p-u39.7%
expm1-udef31.8%
sub-neg31.8%
add-sqr-sqrt7.9%
sqrt-unprod33.6%
sqr-neg33.6%
sqrt-unprod25.8%
add-sqr-sqrt32.8%
Applied egg-rr32.8%
expm1-def40.7%
expm1-log1p53.3%
+-commutative53.3%
associate-+l+53.3%
Simplified53.3%
if 1.6000000000000001e77 < z < 3.89999999999999999e80Initial program 99.5%
associate-*r/71.0%
associate-/l*100.0%
Applied egg-rr100.0%
Taylor expanded in y around -inf 38.9%
associate-/l*67.9%
Simplified67.9%
Taylor expanded in t around inf 38.5%
*-commutative38.5%
associate-/l*67.5%
Simplified67.5%
Taylor expanded in a around 0 68.2%
neg-mul-168.2%
distribute-neg-frac68.2%
Simplified68.2%
if 3.89999999999999999e80 < z < 4.0999999999999999e108Initial program 57.7%
Taylor expanded in z around inf 33.6%
associate--l+33.6%
associate-*r/33.6%
associate-*r/33.6%
div-sub33.6%
distribute-lft-out--33.6%
associate-*r/33.6%
mul-1-neg33.6%
unsub-neg33.6%
distribute-rgt-out--33.6%
associate-/l*85.6%
Simplified85.6%
Taylor expanded in t around 0 32.5%
associate-*r/58.3%
Simplified58.3%
Final simplification49.8%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1e+26)
t
(if (<= z -5e-32)
x
(if (<= z 2e-149)
(* y (/ (- t x) a))
(if (<= z 6.5e+35)
x
(if (<= z 1.35e+77)
(+ t (+ x x))
(if (<= z 3.9e+80)
(/ y (/ (- z) t))
(if (<= z 3e+108) (* x (/ (- y a) z)) t))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1e+26) {
tmp = t;
} else if (z <= -5e-32) {
tmp = x;
} else if (z <= 2e-149) {
tmp = y * ((t - x) / a);
} else if (z <= 6.5e+35) {
tmp = x;
} else if (z <= 1.35e+77) {
tmp = t + (x + x);
} else if (z <= 3.9e+80) {
tmp = y / (-z / t);
} else if (z <= 3e+108) {
tmp = x * ((y - a) / z);
} 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 <= (-1d+26)) then
tmp = t
else if (z <= (-5d-32)) then
tmp = x
else if (z <= 2d-149) then
tmp = y * ((t - x) / a)
else if (z <= 6.5d+35) then
tmp = x
else if (z <= 1.35d+77) then
tmp = t + (x + x)
else if (z <= 3.9d+80) then
tmp = y / (-z / t)
else if (z <= 3d+108) then
tmp = x * ((y - a) / z)
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 <= -1e+26) {
tmp = t;
} else if (z <= -5e-32) {
tmp = x;
} else if (z <= 2e-149) {
tmp = y * ((t - x) / a);
} else if (z <= 6.5e+35) {
tmp = x;
} else if (z <= 1.35e+77) {
tmp = t + (x + x);
} else if (z <= 3.9e+80) {
tmp = y / (-z / t);
} else if (z <= 3e+108) {
tmp = x * ((y - a) / z);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1e+26: tmp = t elif z <= -5e-32: tmp = x elif z <= 2e-149: tmp = y * ((t - x) / a) elif z <= 6.5e+35: tmp = x elif z <= 1.35e+77: tmp = t + (x + x) elif z <= 3.9e+80: tmp = y / (-z / t) elif z <= 3e+108: tmp = x * ((y - a) / z) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1e+26) tmp = t; elseif (z <= -5e-32) tmp = x; elseif (z <= 2e-149) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= 6.5e+35) tmp = x; elseif (z <= 1.35e+77) tmp = Float64(t + Float64(x + x)); elseif (z <= 3.9e+80) tmp = Float64(y / Float64(Float64(-z) / t)); elseif (z <= 3e+108) tmp = Float64(x * Float64(Float64(y - a) / z)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1e+26) tmp = t; elseif (z <= -5e-32) tmp = x; elseif (z <= 2e-149) tmp = y * ((t - x) / a); elseif (z <= 6.5e+35) tmp = x; elseif (z <= 1.35e+77) tmp = t + (x + x); elseif (z <= 3.9e+80) tmp = y / (-z / t); elseif (z <= 3e+108) tmp = x * ((y - a) / z); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1e+26], t, If[LessEqual[z, -5e-32], x, If[LessEqual[z, 2e-149], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e+35], x, If[LessEqual[z, 1.35e+77], N[(t + N[(x + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.9e+80], N[(y / N[((-z) / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3e+108], N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{+26}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -5 \cdot 10^{-32}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-149}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{+35}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{+77}:\\
\;\;\;\;t + \left(x + x\right)\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{+80}:\\
\;\;\;\;\frac{y}{\frac{-z}{t}}\\
\mathbf{elif}\;z \leq 3 \cdot 10^{+108}:\\
\;\;\;\;x \cdot \frac{y - a}{z}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.00000000000000005e26 or 2.99999999999999984e108 < z Initial program 65.9%
Taylor expanded in z around inf 53.8%
if -1.00000000000000005e26 < z < -5e-32 or 1.99999999999999996e-149 < z < 6.5000000000000003e35Initial program 89.7%
Taylor expanded in a around inf 44.9%
if -5e-32 < z < 1.99999999999999996e-149Initial program 97.4%
Taylor expanded in z around 0 81.2%
associate-/l*86.2%
Simplified86.2%
Taylor expanded in y around inf 55.4%
div-sub55.4%
Simplified55.4%
if 6.5000000000000003e35 < z < 1.3499999999999999e77Initial program 83.8%
Taylor expanded in z around inf 51.4%
expm1-log1p-u39.7%
expm1-udef31.8%
sub-neg31.8%
add-sqr-sqrt7.9%
sqrt-unprod33.6%
sqr-neg33.6%
sqrt-unprod25.8%
add-sqr-sqrt32.8%
Applied egg-rr32.8%
expm1-def40.7%
expm1-log1p53.3%
+-commutative53.3%
associate-+l+53.3%
Simplified53.3%
if 1.3499999999999999e77 < z < 3.89999999999999999e80Initial program 99.5%
associate-*r/71.0%
associate-/l*100.0%
Applied egg-rr100.0%
Taylor expanded in y around -inf 38.9%
associate-/l*67.9%
Simplified67.9%
Taylor expanded in t around inf 38.5%
*-commutative38.5%
associate-/l*67.5%
Simplified67.5%
Taylor expanded in a around 0 68.2%
neg-mul-168.2%
distribute-neg-frac68.2%
Simplified68.2%
if 3.89999999999999999e80 < z < 2.99999999999999984e108Initial program 57.7%
Taylor expanded in z around inf 33.6%
associate--l+33.6%
associate-*r/33.6%
associate-*r/33.6%
div-sub33.6%
distribute-lft-out--33.6%
associate-*r/33.6%
mul-1-neg33.6%
unsub-neg33.6%
distribute-rgt-out--33.6%
associate-/l*85.6%
Simplified85.6%
Taylor expanded in t around 0 32.5%
associate-*r/58.3%
Simplified58.3%
Final simplification52.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (- t x) (/ a (- y z))))))
(if (<= a -3900000000.0)
t_1
(if (<= a 1.75e-116)
(- t (/ (- t x) (/ z y)))
(if (or (<= a 1.65e+85) (not (<= a 4.6e+153)))
t_1
(- t (* x (/ (- a y) z))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) / (a / (y - z)));
double tmp;
if (a <= -3900000000.0) {
tmp = t_1;
} else if (a <= 1.75e-116) {
tmp = t - ((t - x) / (z / y));
} else if ((a <= 1.65e+85) || !(a <= 4.6e+153)) {
tmp = t_1;
} else {
tmp = t - (x * ((a - y) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + ((t - x) / (a / (y - z)))
if (a <= (-3900000000.0d0)) then
tmp = t_1
else if (a <= 1.75d-116) then
tmp = t - ((t - x) / (z / y))
else if ((a <= 1.65d+85) .or. (.not. (a <= 4.6d+153))) then
tmp = t_1
else
tmp = t - (x * ((a - y) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - x) / (a / (y - z)));
double tmp;
if (a <= -3900000000.0) {
tmp = t_1;
} else if (a <= 1.75e-116) {
tmp = t - ((t - x) / (z / y));
} else if ((a <= 1.65e+85) || !(a <= 4.6e+153)) {
tmp = t_1;
} else {
tmp = t - (x * ((a - y) / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((t - x) / (a / (y - z))) tmp = 0 if a <= -3900000000.0: tmp = t_1 elif a <= 1.75e-116: tmp = t - ((t - x) / (z / y)) elif (a <= 1.65e+85) or not (a <= 4.6e+153): tmp = t_1 else: tmp = t - (x * ((a - y) / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))) tmp = 0.0 if (a <= -3900000000.0) tmp = t_1; elseif (a <= 1.75e-116) tmp = Float64(t - Float64(Float64(t - x) / Float64(z / y))); elseif ((a <= 1.65e+85) || !(a <= 4.6e+153)) tmp = t_1; else tmp = Float64(t - Float64(x * Float64(Float64(a - y) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((t - x) / (a / (y - z))); tmp = 0.0; if (a <= -3900000000.0) tmp = t_1; elseif (a <= 1.75e-116) tmp = t - ((t - x) / (z / y)); elseif ((a <= 1.65e+85) || ~((a <= 4.6e+153))) tmp = t_1; else tmp = t - (x * ((a - y) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3900000000.0], t$95$1, If[LessEqual[a, 1.75e-116], N[(t - N[(N[(t - x), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, 1.65e+85], N[Not[LessEqual[a, 4.6e+153]], $MachinePrecision]], t$95$1, N[(t - N[(x * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{t - x}{\frac{a}{y - z}}\\
\mathbf{if}\;a \leq -3900000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{-116}:\\
\;\;\;\;t - \frac{t - x}{\frac{z}{y}}\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{+85} \lor \neg \left(a \leq 4.6 \cdot 10^{+153}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t - x \cdot \frac{a - y}{z}\\
\end{array}
\end{array}
if a < -3.9e9 or 1.74999999999999992e-116 < a < 1.65e85 or 4.6000000000000003e153 < a Initial program 88.7%
Taylor expanded in a around inf 61.5%
associate-/l*75.5%
Simplified75.5%
if -3.9e9 < a < 1.74999999999999992e-116Initial program 72.1%
Taylor expanded in z around inf 79.0%
associate--l+79.0%
associate-*r/79.0%
associate-*r/79.0%
div-sub79.0%
distribute-lft-out--79.0%
associate-*r/79.0%
mul-1-neg79.0%
unsub-neg79.0%
distribute-rgt-out--79.0%
associate-/l*89.6%
Simplified89.6%
Taylor expanded in y around inf 89.6%
if 1.65e85 < a < 4.6000000000000003e153Initial program 71.7%
Taylor expanded in z around inf 59.4%
associate--l+59.4%
associate-*r/59.4%
associate-*r/59.4%
div-sub59.4%
distribute-lft-out--59.4%
associate-*r/59.4%
mul-1-neg59.4%
unsub-neg59.4%
distribute-rgt-out--59.4%
associate-/l*79.7%
Simplified79.7%
Taylor expanded in t around 0 59.5%
associate-*r/73.2%
neg-mul-173.2%
distribute-rgt-neg-in73.2%
distribute-neg-frac73.2%
Simplified73.2%
Final simplification81.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1e+26) (not (<= z 8e+36))) (+ t (/ (- x t) (/ z (- y a)))) (+ x (/ (- t x) (/ a (- y z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1e+26) || !(z <= 8e+36)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((t - x) / (a / (y - z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-1d+26)) .or. (.not. (z <= 8d+36))) then
tmp = t + ((x - t) / (z / (y - a)))
else
tmp = x + ((t - x) / (a / (y - z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1e+26) || !(z <= 8e+36)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((t - x) / (a / (y - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1e+26) or not (z <= 8e+36): tmp = t + ((x - t) / (z / (y - a))) else: tmp = x + ((t - x) / (a / (y - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1e+26) || !(z <= 8e+36)) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1e+26) || ~((z <= 8e+36))) tmp = t + ((x - t) / (z / (y - a))); else tmp = x + ((t - x) / (a / (y - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1e+26], N[Not[LessEqual[z, 8e+36]], $MachinePrecision]], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{+26} \lor \neg \left(z \leq 8 \cdot 10^{+36}\right):\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y - z}}\\
\end{array}
\end{array}
if z < -1.00000000000000005e26 or 8.00000000000000034e36 < z Initial program 67.7%
Taylor expanded in z around inf 61.4%
associate--l+61.4%
associate-*r/61.4%
associate-*r/61.4%
div-sub61.4%
distribute-lft-out--61.4%
associate-*r/61.4%
mul-1-neg61.4%
unsub-neg61.4%
distribute-rgt-out--62.3%
associate-/l*81.6%
Simplified81.6%
if -1.00000000000000005e26 < z < 8.00000000000000034e36Initial program 94.4%
Taylor expanded in a around inf 74.0%
associate-/l*79.2%
Simplified79.2%
Final simplification80.4%
(FPCore (x y z t a)
:precision binary64
(if (<= z -7.5e+25)
t
(if (<= z -1.9e-95)
x
(if (<= z 3.1e-221) (* t (/ (- y z) a)) (if (<= z 9.2e+58) x t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -7.5e+25) {
tmp = t;
} else if (z <= -1.9e-95) {
tmp = x;
} else if (z <= 3.1e-221) {
tmp = t * ((y - z) / a);
} else if (z <= 9.2e+58) {
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 <= (-7.5d+25)) then
tmp = t
else if (z <= (-1.9d-95)) then
tmp = x
else if (z <= 3.1d-221) then
tmp = t * ((y - z) / a)
else if (z <= 9.2d+58) 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 <= -7.5e+25) {
tmp = t;
} else if (z <= -1.9e-95) {
tmp = x;
} else if (z <= 3.1e-221) {
tmp = t * ((y - z) / a);
} else if (z <= 9.2e+58) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -7.5e+25: tmp = t elif z <= -1.9e-95: tmp = x elif z <= 3.1e-221: tmp = t * ((y - z) / a) elif z <= 9.2e+58: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -7.5e+25) tmp = t; elseif (z <= -1.9e-95) tmp = x; elseif (z <= 3.1e-221) tmp = Float64(t * Float64(Float64(y - z) / a)); elseif (z <= 9.2e+58) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -7.5e+25) tmp = t; elseif (z <= -1.9e-95) tmp = x; elseif (z <= 3.1e-221) tmp = t * ((y - z) / a); elseif (z <= 9.2e+58) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -7.5e+25], t, If[LessEqual[z, -1.9e-95], x, If[LessEqual[z, 3.1e-221], N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.2e+58], x, t]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{+25}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -1.9 \cdot 10^{-95}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{-221}:\\
\;\;\;\;t \cdot \frac{y - z}{a}\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{+58}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -7.49999999999999993e25 or 9.2000000000000001e58 < z Initial program 67.4%
Taylor expanded in z around inf 51.6%
if -7.49999999999999993e25 < z < -1.8999999999999999e-95 or 3.0999999999999999e-221 < z < 9.2000000000000001e58Initial program 92.1%
Taylor expanded in a around inf 42.2%
if -1.8999999999999999e-95 < z < 3.0999999999999999e-221Initial program 96.3%
Taylor expanded in a around inf 83.7%
associate-/l*85.6%
Simplified85.6%
Taylor expanded in t around inf 47.3%
div-sub47.3%
Simplified47.3%
Final simplification47.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -6.5e+24) (not (<= z 7e-14))) (* t (/ (- y z) (- a z))) (+ x (/ t (/ a y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -6.5e+24) || !(z <= 7e-14)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x + (t / (a / y));
}
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 <= (-6.5d+24)) .or. (.not. (z <= 7d-14))) then
tmp = t * ((y - z) / (a - z))
else
tmp = x + (t / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -6.5e+24) || !(z <= 7e-14)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -6.5e+24) or not (z <= 7e-14): tmp = t * ((y - z) / (a - z)) else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -6.5e+24) || !(z <= 7e-14)) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = Float64(x + Float64(t / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -6.5e+24) || ~((z <= 7e-14))) tmp = t * ((y - z) / (a - z)); else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -6.5e+24], N[Not[LessEqual[z, 7e-14]], $MachinePrecision]], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.5 \cdot 10^{+24} \lor \neg \left(z \leq 7 \cdot 10^{-14}\right):\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if z < -6.4999999999999996e24 or 7.0000000000000005e-14 < z Initial program 68.2%
Taylor expanded in x around 0 42.8%
associate-*r/65.0%
Simplified65.0%
if -6.4999999999999996e24 < z < 7.0000000000000005e-14Initial program 96.3%
Taylor expanded in z around 0 73.4%
associate-/l*79.0%
Simplified79.0%
Taylor expanded in t around inf 60.4%
associate-/l*66.1%
Simplified66.1%
Final simplification65.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.3e+36) (not (<= z 6.2e-15))) (* t (/ (- y z) (- a z))) (+ x (/ y (/ a (- t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.3e+36) || !(z <= 6.2e-15)) {
tmp = t * ((y - z) / (a - z));
} 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.3d+36)) .or. (.not. (z <= 6.2d-15))) then
tmp = t * ((y - z) / (a - z))
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.3e+36) || !(z <= 6.2e-15)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.3e+36) or not (z <= 6.2e-15): tmp = t * ((y - z) / (a - z)) else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.3e+36) || !(z <= 6.2e-15)) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); 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.3e+36) || ~((z <= 6.2e-15))) tmp = t * ((y - z) / (a - z)); else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.3e+36], N[Not[LessEqual[z, 6.2e-15]], $MachinePrecision]], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $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.3 \cdot 10^{+36} \lor \neg \left(z \leq 6.2 \cdot 10^{-15}\right):\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -2.29999999999999996e36 or 6.1999999999999998e-15 < z Initial program 67.2%
Taylor expanded in x around 0 43.3%
associate-*r/66.1%
Simplified66.1%
if -2.29999999999999996e36 < z < 6.1999999999999998e-15Initial program 96.5%
Taylor expanded in z around 0 72.6%
associate-/l*78.1%
Simplified78.1%
Final simplification71.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.9e+25) (not (<= z 9.5e+36))) (+ t (/ (- x t) (/ z y))) (+ x (/ y (/ a (- t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.9e+25) || !(z <= 9.5e+36)) {
tmp = t + ((x - t) / (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 <= (-1.9d+25)) .or. (.not. (z <= 9.5d+36))) then
tmp = t + ((x - t) / (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 <= -1.9e+25) || !(z <= 9.5e+36)) {
tmp = t + ((x - t) / (z / y));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.9e+25) or not (z <= 9.5e+36): tmp = t + ((x - t) / (z / y)) else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.9e+25) || !(z <= 9.5e+36)) tmp = Float64(t + Float64(Float64(x - t) / 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 <= -1.9e+25) || ~((z <= 9.5e+36))) tmp = t + ((x - t) / (z / y)); else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.9e+25], N[Not[LessEqual[z, 9.5e+36]], $MachinePrecision]], N[(t + N[(N[(x - t), $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 -1.9 \cdot 10^{+25} \lor \neg \left(z \leq 9.5 \cdot 10^{+36}\right):\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -1.9e25 or 9.49999999999999974e36 < z Initial program 67.7%
Taylor expanded in z around inf 61.4%
associate--l+61.4%
associate-*r/61.4%
associate-*r/61.4%
div-sub61.4%
distribute-lft-out--61.4%
associate-*r/61.4%
mul-1-neg61.4%
unsub-neg61.4%
distribute-rgt-out--62.3%
associate-/l*81.6%
Simplified81.6%
Taylor expanded in y around inf 75.3%
if -1.9e25 < z < 9.49999999999999974e36Initial program 94.4%
Taylor expanded in z around 0 71.2%
associate-/l*76.3%
Simplified76.3%
Final simplification75.8%
(FPCore (x y z t a) :precision binary64 (if (<= z -1e+25) (- t (* x (/ (- a y) z))) (if (<= z 1.05e+37) (+ x (/ y (/ a (- t x)))) (- t (/ (- t x) (/ z y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1e+25) {
tmp = t - (x * ((a - y) / z));
} else if (z <= 1.05e+37) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t - ((t - x) / (z / y));
}
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 <= (-1d+25)) then
tmp = t - (x * ((a - y) / z))
else if (z <= 1.05d+37) then
tmp = x + (y / (a / (t - x)))
else
tmp = t - ((t - x) / (z / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1e+25) {
tmp = t - (x * ((a - y) / z));
} else if (z <= 1.05e+37) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t - ((t - x) / (z / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1e+25: tmp = t - (x * ((a - y) / z)) elif z <= 1.05e+37: tmp = x + (y / (a / (t - x))) else: tmp = t - ((t - x) / (z / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1e+25) tmp = Float64(t - Float64(x * Float64(Float64(a - y) / z))); elseif (z <= 1.05e+37) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); else tmp = Float64(t - Float64(Float64(t - x) / Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1e+25) tmp = t - (x * ((a - y) / z)); elseif (z <= 1.05e+37) tmp = x + (y / (a / (t - x))); else tmp = t - ((t - x) / (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1e+25], N[(t - N[(x * N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05e+37], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(N[(t - x), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{+25}:\\
\;\;\;\;t - x \cdot \frac{a - y}{z}\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{+37}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t - \frac{t - x}{\frac{z}{y}}\\
\end{array}
\end{array}
if z < -1.00000000000000009e25Initial program 68.5%
Taylor expanded in z around inf 68.9%
associate--l+68.9%
associate-*r/68.9%
associate-*r/68.9%
div-sub68.9%
distribute-lft-out--68.9%
associate-*r/68.9%
mul-1-neg68.9%
unsub-neg68.9%
distribute-rgt-out--70.8%
associate-/l*82.0%
Simplified82.0%
Taylor expanded in t around 0 70.1%
associate-*r/76.4%
neg-mul-176.4%
distribute-rgt-neg-in76.4%
distribute-neg-frac76.4%
Simplified76.4%
if -1.00000000000000009e25 < z < 1.0500000000000001e37Initial program 94.4%
Taylor expanded in z around 0 71.2%
associate-/l*76.3%
Simplified76.3%
if 1.0500000000000001e37 < z Initial program 67.0%
Taylor expanded in z around inf 55.0%
associate--l+55.0%
associate-*r/55.0%
associate-*r/55.0%
div-sub55.0%
distribute-lft-out--55.0%
associate-*r/55.0%
mul-1-neg55.0%
unsub-neg55.0%
distribute-rgt-out--55.0%
associate-/l*81.2%
Simplified81.2%
Taylor expanded in y around inf 76.1%
Final simplification76.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -3.1e+25) (not (<= z 5.4e+56))) (/ t (/ (- z) (- y z))) (+ x (/ t (/ a y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3.1e+25) || !(z <= 5.4e+56)) {
tmp = t / (-z / (y - z));
} else {
tmp = x + (t / (a / y));
}
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.1d+25)) .or. (.not. (z <= 5.4d+56))) then
tmp = t / (-z / (y - z))
else
tmp = x + (t / (a / y))
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.1e+25) || !(z <= 5.4e+56)) {
tmp = t / (-z / (y - z));
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -3.1e+25) or not (z <= 5.4e+56): tmp = t / (-z / (y - z)) else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -3.1e+25) || !(z <= 5.4e+56)) tmp = Float64(t / Float64(Float64(-z) / Float64(y - z))); else tmp = Float64(x + Float64(t / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -3.1e+25) || ~((z <= 5.4e+56))) tmp = t / (-z / (y - z)); else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -3.1e+25], N[Not[LessEqual[z, 5.4e+56]], $MachinePrecision]], N[(t / N[((-z) / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.1 \cdot 10^{+25} \lor \neg \left(z \leq 5.4 \cdot 10^{+56}\right):\\
\;\;\;\;\frac{t}{\frac{-z}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if z < -3.0999999999999998e25 or 5.40000000000000019e56 < z Initial program 67.7%
associate-*r/44.4%
associate-/l*67.1%
Applied egg-rr67.1%
Taylor expanded in x around 0 42.3%
associate-/l*66.9%
Simplified66.9%
Taylor expanded in a around 0 59.3%
mul-1-neg59.3%
distribute-neg-frac59.3%
Simplified59.3%
if -3.0999999999999998e25 < z < 5.40000000000000019e56Initial program 93.8%
Taylor expanded in z around 0 70.3%
associate-/l*75.4%
Simplified75.4%
Taylor expanded in t around inf 58.8%
associate-/l*63.9%
Simplified63.9%
Final simplification61.6%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.55e+25)
t
(if (<= z -9e-93)
x
(if (<= z 3.2e-223) (/ t (/ a y)) (if (<= z 4e+58) x t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.55e+25) {
tmp = t;
} else if (z <= -9e-93) {
tmp = x;
} else if (z <= 3.2e-223) {
tmp = t / (a / y);
} else if (z <= 4e+58) {
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.55d+25)) then
tmp = t
else if (z <= (-9d-93)) then
tmp = x
else if (z <= 3.2d-223) then
tmp = t / (a / y)
else if (z <= 4d+58) 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.55e+25) {
tmp = t;
} else if (z <= -9e-93) {
tmp = x;
} else if (z <= 3.2e-223) {
tmp = t / (a / y);
} else if (z <= 4e+58) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.55e+25: tmp = t elif z <= -9e-93: tmp = x elif z <= 3.2e-223: tmp = t / (a / y) elif z <= 4e+58: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.55e+25) tmp = t; elseif (z <= -9e-93) tmp = x; elseif (z <= 3.2e-223) tmp = Float64(t / Float64(a / y)); elseif (z <= 4e+58) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.55e+25) tmp = t; elseif (z <= -9e-93) tmp = x; elseif (z <= 3.2e-223) tmp = t / (a / y); elseif (z <= 4e+58) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.55e+25], t, If[LessEqual[z, -9e-93], x, If[LessEqual[z, 3.2e-223], N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4e+58], x, t]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.55 \cdot 10^{+25}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -9 \cdot 10^{-93}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{-223}:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq 4 \cdot 10^{+58}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.5499999999999999e25 or 3.99999999999999978e58 < z Initial program 67.4%
Taylor expanded in z around inf 51.6%
if -1.5499999999999999e25 < z < -9.0000000000000004e-93 or 3.2000000000000001e-223 < z < 3.99999999999999978e58Initial program 92.1%
Taylor expanded in a around inf 42.2%
if -9.0000000000000004e-93 < z < 3.2000000000000001e-223Initial program 96.3%
associate-*r/96.1%
associate-/l*96.3%
Applied egg-rr96.3%
Taylor expanded in x around 0 52.7%
associate-/l*52.6%
Simplified52.6%
Taylor expanded in z around 0 43.7%
Final simplification47.2%
(FPCore (x y z t a)
:precision binary64
(if (<= z -4.1e+26)
t
(if (<= z -1.15e-95)
x
(if (<= z 1.9e-231) (/ (* y t) a) (if (<= z 2.1e+58) x t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.1e+26) {
tmp = t;
} else if (z <= -1.15e-95) {
tmp = x;
} else if (z <= 1.9e-231) {
tmp = (y * t) / a;
} else if (z <= 2.1e+58) {
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 <= (-4.1d+26)) then
tmp = t
else if (z <= (-1.15d-95)) then
tmp = x
else if (z <= 1.9d-231) then
tmp = (y * t) / a
else if (z <= 2.1d+58) 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 <= -4.1e+26) {
tmp = t;
} else if (z <= -1.15e-95) {
tmp = x;
} else if (z <= 1.9e-231) {
tmp = (y * t) / a;
} else if (z <= 2.1e+58) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -4.1e+26: tmp = t elif z <= -1.15e-95: tmp = x elif z <= 1.9e-231: tmp = (y * t) / a elif z <= 2.1e+58: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.1e+26) tmp = t; elseif (z <= -1.15e-95) tmp = x; elseif (z <= 1.9e-231) tmp = Float64(Float64(y * t) / a); elseif (z <= 2.1e+58) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -4.1e+26) tmp = t; elseif (z <= -1.15e-95) tmp = x; elseif (z <= 1.9e-231) tmp = (y * t) / a; elseif (z <= 2.1e+58) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.1e+26], t, If[LessEqual[z, -1.15e-95], x, If[LessEqual[z, 1.9e-231], N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[z, 2.1e+58], x, t]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.1 \cdot 10^{+26}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{-95}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{-231}:\\
\;\;\;\;\frac{y \cdot t}{a}\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{+58}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -4.09999999999999983e26 or 2.10000000000000012e58 < z Initial program 67.4%
Taylor expanded in z around inf 51.6%
if -4.09999999999999983e26 < z < -1.15e-95 or 1.90000000000000007e-231 < z < 2.10000000000000012e58Initial program 92.1%
Taylor expanded in a around inf 42.2%
if -1.15e-95 < z < 1.90000000000000007e-231Initial program 96.3%
associate-*r/96.1%
associate-/l*96.3%
Applied egg-rr96.3%
Taylor expanded in x around 0 52.7%
associate-/l*52.6%
Simplified52.6%
Taylor expanded in z around 0 43.7%
Final simplification47.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.15e+26) (not (<= z 3.5e+63))) (/ t (- 1.0 (/ a z))) (+ x (/ t (/ a y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.15e+26) || !(z <= 3.5e+63)) {
tmp = t / (1.0 - (a / z));
} else {
tmp = x + (t / (a / y));
}
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.15d+26)) .or. (.not. (z <= 3.5d+63))) then
tmp = t / (1.0d0 - (a / z))
else
tmp = x + (t / (a / y))
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.15e+26) || !(z <= 3.5e+63)) {
tmp = t / (1.0 - (a / z));
} else {
tmp = x + (t / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.15e+26) or not (z <= 3.5e+63): tmp = t / (1.0 - (a / z)) else: tmp = x + (t / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.15e+26) || !(z <= 3.5e+63)) tmp = Float64(t / Float64(1.0 - Float64(a / z))); else tmp = Float64(x + Float64(t / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.15e+26) || ~((z <= 3.5e+63))) tmp = t / (1.0 - (a / z)); else tmp = x + (t / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.15e+26], N[Not[LessEqual[z, 3.5e+63]], $MachinePrecision]], N[(t / N[(1.0 - N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.15 \cdot 10^{+26} \lor \neg \left(z \leq 3.5 \cdot 10^{+63}\right):\\
\;\;\;\;\frac{t}{1 - \frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\end{array}
\end{array}
if z < -1.15e26 or 3.50000000000000029e63 < z Initial program 67.4%
associate-*r/43.4%
associate-/l*66.8%
Applied egg-rr66.8%
Taylor expanded in x around 0 42.0%
associate-/l*67.4%
Simplified67.4%
Taylor expanded in y around 0 58.7%
mul-1-neg58.7%
neg-sub058.7%
div-sub58.7%
*-inverses58.7%
associate-+l-58.7%
neg-sub058.7%
neg-mul-158.7%
+-commutative58.7%
neg-mul-158.7%
unsub-neg58.7%
Simplified58.7%
if -1.15e26 < z < 3.50000000000000029e63Initial program 93.2%
Taylor expanded in z around 0 69.8%
associate-/l*74.7%
Simplified74.7%
Taylor expanded in t around inf 58.6%
associate-/l*63.6%
Simplified63.6%
Final simplification61.2%
(FPCore (x y z t a) :precision binary64 (if (<= z -4.2e+26) t (if (<= z 1.8e+59) (+ x (* y (/ t a))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.2e+26) {
tmp = t;
} else if (z <= 1.8e+59) {
tmp = x + (y * (t / a));
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-4.2d+26)) then
tmp = t
else if (z <= 1.8d+59) then
tmp = x + (y * (t / a))
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.2e+26) {
tmp = t;
} else if (z <= 1.8e+59) {
tmp = x + (y * (t / a));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -4.2e+26: tmp = t elif z <= 1.8e+59: tmp = x + (y * (t / a)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.2e+26) tmp = t; elseif (z <= 1.8e+59) tmp = Float64(x + Float64(y * Float64(t / a))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -4.2e+26) tmp = t; elseif (z <= 1.8e+59) tmp = x + (y * (t / a)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.2e+26], t, If[LessEqual[z, 1.8e+59], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.2 \cdot 10^{+26}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+59}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -4.2000000000000002e26 or 1.7999999999999999e59 < z Initial program 67.4%
Taylor expanded in z around inf 51.6%
if -4.2000000000000002e26 < z < 1.7999999999999999e59Initial program 93.8%
Taylor expanded in z around 0 70.6%
associate-/l*75.6%
Simplified75.6%
Taylor expanded in t around inf 62.7%
Taylor expanded in y around 0 59.1%
*-commutative59.1%
associate-*r/62.8%
Simplified62.8%
Final simplification57.3%
(FPCore (x y z t a) :precision binary64 (if (<= z -3.1e+26) t (if (<= z 8e+58) (+ x (/ t (/ a y))) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.1e+26) {
tmp = t;
} else if (z <= 8e+58) {
tmp = x + (t / (a / y));
} else {
tmp = t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-3.1d+26)) then
tmp = t
else if (z <= 8d+58) then
tmp = x + (t / (a / y))
else
tmp = t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.1e+26) {
tmp = t;
} else if (z <= 8e+58) {
tmp = x + (t / (a / y));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.1e+26: tmp = t elif z <= 8e+58: tmp = x + (t / (a / y)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.1e+26) tmp = t; elseif (z <= 8e+58) tmp = Float64(x + Float64(t / Float64(a / y))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.1e+26) tmp = t; elseif (z <= 8e+58) tmp = x + (t / (a / y)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.1e+26], t, If[LessEqual[z, 8e+58], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.1 \cdot 10^{+26}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 8 \cdot 10^{+58}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -3.1e26 or 7.99999999999999955e58 < z Initial program 67.4%
Taylor expanded in z around inf 51.6%
if -3.1e26 < z < 7.99999999999999955e58Initial program 93.8%
Taylor expanded in z around 0 70.6%
associate-/l*75.6%
Simplified75.6%
Taylor expanded in t around inf 59.1%
associate-/l*64.2%
Simplified64.2%
Final simplification58.0%
(FPCore (x y z t a) :precision binary64 (if (<= z -3e+25) t (if (<= z 2.1e+58) x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3e+25) {
tmp = t;
} else if (z <= 2.1e+58) {
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 <= (-3d+25)) then
tmp = t
else if (z <= 2.1d+58) 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 <= -3e+25) {
tmp = t;
} else if (z <= 2.1e+58) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3e+25: tmp = t elif z <= 2.1e+58: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3e+25) tmp = t; elseif (z <= 2.1e+58) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3e+25) tmp = t; elseif (z <= 2.1e+58) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3e+25], t, If[LessEqual[z, 2.1e+58], x, t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{+25}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{+58}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -3.00000000000000006e25 or 2.10000000000000012e58 < z Initial program 67.4%
Taylor expanded in z around inf 51.6%
if -3.00000000000000006e25 < z < 2.10000000000000012e58Initial program 93.8%
Taylor expanded in a around inf 37.0%
Final simplification44.2%
(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 80.8%
Taylor expanded in t around 0 35.3%
associate-*r/35.3%
mul-1-neg35.3%
distribute-lft-neg-out35.3%
associate-*r/39.9%
*-commutative39.9%
Simplified39.9%
Taylor expanded in z around inf 2.7%
distribute-rgt1-in2.7%
metadata-eval2.7%
mul0-lft2.7%
Simplified2.7%
Final simplification2.7%
(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 80.8%
Taylor expanded in z around inf 30.5%
Final simplification30.5%
herbie shell --seed 2023297
(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)))))