
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - 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 = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - 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 = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_1 -1e-225)
(- x (/ (- x y) (/ (- a t) (- z t))))
(if (<= t_1 0.0)
(- y (/ (* (- x y) (- a z)) t))
(fma (/ (- z t) (- a t)) (- y x) x)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_1 <= -1e-225) {
tmp = x - ((x - y) / ((a - t) / (z - t)));
} else if (t_1 <= 0.0) {
tmp = y - (((x - y) * (a - z)) / t);
} else {
tmp = fma(((z - t) / (a - t)), (y - x), x);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_1 <= -1e-225) tmp = Float64(x - Float64(Float64(x - y) / Float64(Float64(a - t) / Float64(z - t)))); elseif (t_1 <= 0.0) tmp = Float64(y - Float64(Float64(Float64(x - y) * Float64(a - z)) / t)); else tmp = fma(Float64(Float64(z - t) / Float64(a - t)), Float64(y - x), x); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e-225], N[(x - N[(N[(x - y), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(y - N[(N[(N[(x - y), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -1 \cdot 10^{-225}:\\
\;\;\;\;x - \frac{x - y}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;t_1 \leq 0:\\
\;\;\;\;y - \frac{\left(x - y\right) \cdot \left(a - z\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -9.9999999999999996e-226Initial program 74.5%
associate-/l*93.8%
Simplified93.8%
if -9.9999999999999996e-226 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 19.9%
associate-/l*20.2%
Simplified20.2%
Taylor expanded in t around -inf 99.7%
mul-1-neg99.7%
unsub-neg99.7%
div-sub99.7%
*-commutative99.7%
div-sub99.7%
distribute-rgt-out--99.7%
Simplified99.7%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 79.3%
+-commutative79.3%
associate-*r/94.4%
*-commutative94.4%
fma-def94.5%
Simplified94.5%
Final simplification94.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ 1.0 (/ (/ (- a t) z) (- y x)))))
(t_2 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -1e-225)
t_2
(if (<= t_2 0.0)
(- y (/ (* (- x y) (- a z)) t))
(if (<= t_2 2e+279) t_2 t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (1.0 / (((a - t) / z) / (y - x)));
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -1e-225) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = y - (((x - y) * (a - z)) / t);
} else if (t_2 <= 2e+279) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (1.0 / (((a - t) / z) / (y - x)));
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_2 <= -1e-225) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = y - (((x - y) * (a - z)) / t);
} else if (t_2 <= 2e+279) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (1.0 / (((a - t) / z) / (y - x))) t_2 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if t_2 <= -math.inf: tmp = t_1 elif t_2 <= -1e-225: tmp = t_2 elif t_2 <= 0.0: tmp = y - (((x - y) * (a - z)) / t) elif t_2 <= 2e+279: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(1.0 / Float64(Float64(Float64(a - t) / z) / Float64(y - x)))) t_2 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -1e-225) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(y - Float64(Float64(Float64(x - y) * Float64(a - z)) / t)); elseif (t_2 <= 2e+279) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (1.0 / (((a - t) / z) / (y - x))); t_2 = x + (((y - x) * (z - t)) / (a - t)); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1; elseif (t_2 <= -1e-225) tmp = t_2; elseif (t_2 <= 0.0) tmp = y - (((x - y) * (a - z)) / t); elseif (t_2 <= 2e+279) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(1.0 / N[(N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision] / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -1e-225], t$95$2, If[LessEqual[t$95$2, 0.0], N[(y - N[(N[(N[(x - y), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+279], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{1}{\frac{\frac{a - t}{z}}{y - x}}\\
t_2 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq -1 \cdot 10^{-225}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_2 \leq 0:\\
\;\;\;\;y - \frac{\left(x - y\right) \cdot \left(a - z\right)}{t}\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{+279}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0 or 2.00000000000000012e279 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 41.7%
associate-/l*89.7%
Simplified89.7%
associate-/l*41.7%
clear-num41.7%
inv-pow41.7%
Applied egg-rr41.7%
unpow-141.7%
associate-/r*89.5%
Simplified89.5%
Taylor expanded in z around inf 44.5%
associate-/r*67.9%
Simplified67.9%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -9.9999999999999996e-226 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 2.00000000000000012e279Initial program 96.6%
if -9.9999999999999996e-226 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 19.9%
associate-/l*20.2%
Simplified20.2%
Taylor expanded in t around -inf 99.7%
mul-1-neg99.7%
unsub-neg99.7%
div-sub99.7%
*-commutative99.7%
div-sub99.7%
distribute-rgt-out--99.7%
Simplified99.7%
Final simplification87.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (or (<= t_1 -1e-225) (not (<= t_1 0.0)))
(- x (/ (- x y) (/ (- a t) (- z t))))
(- y (/ (* (- x y) (- a z)) t)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if ((t_1 <= -1e-225) || !(t_1 <= 0.0)) {
tmp = x - ((x - y) / ((a - t) / (z - t)));
} else {
tmp = y - (((x - y) * (a - z)) / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y - x) * (z - t)) / (a - t))
if ((t_1 <= (-1d-225)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x - ((x - y) / ((a - t) / (z - t)))
else
tmp = y - (((x - y) * (a - z)) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if ((t_1 <= -1e-225) || !(t_1 <= 0.0)) {
tmp = x - ((x - y) / ((a - t) / (z - t)));
} else {
tmp = y - (((x - y) * (a - z)) / t);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if (t_1 <= -1e-225) or not (t_1 <= 0.0): tmp = x - ((x - y) / ((a - t) / (z - t))) else: tmp = y - (((x - y) * (a - z)) / t) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if ((t_1 <= -1e-225) || !(t_1 <= 0.0)) tmp = Float64(x - Float64(Float64(x - y) / Float64(Float64(a - t) / Float64(z - t)))); else tmp = Float64(y - Float64(Float64(Float64(x - y) * Float64(a - z)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) * (z - t)) / (a - t)); tmp = 0.0; if ((t_1 <= -1e-225) || ~((t_1 <= 0.0))) tmp = x - ((x - y) / ((a - t) / (z - t))); else tmp = y - (((x - y) * (a - z)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -1e-225], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x - N[(N[(x - y), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y - N[(N[(N[(x - y), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -1 \cdot 10^{-225} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;x - \frac{x - y}{\frac{a - t}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;y - \frac{\left(x - y\right) \cdot \left(a - z\right)}{t}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -9.9999999999999996e-226 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 77.1%
associate-/l*94.1%
Simplified94.1%
if -9.9999999999999996e-226 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 19.9%
associate-/l*20.2%
Simplified20.2%
Taylor expanded in t around -inf 99.7%
mul-1-neg99.7%
unsub-neg99.7%
div-sub99.7%
*-commutative99.7%
div-sub99.7%
distribute-rgt-out--99.7%
Simplified99.7%
Final simplification94.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ 1.0 (/ (/ (- a t) z) (- y x))))))
(if (<= z -5.8e-31)
t_1
(if (<= z 1.7e-202)
(+ x (/ (- y x) (/ (- t a) t)))
(if (<= z 3e-116)
(- y (/ (* (- x y) (- a z)) t))
(if (<= z 1.05e+69) (+ x (/ 1.0 (/ (- a t) (* y (- z t))))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (1.0 / (((a - t) / z) / (y - x)));
double tmp;
if (z <= -5.8e-31) {
tmp = t_1;
} else if (z <= 1.7e-202) {
tmp = x + ((y - x) / ((t - a) / t));
} else if (z <= 3e-116) {
tmp = y - (((x - y) * (a - z)) / t);
} else if (z <= 1.05e+69) {
tmp = x + (1.0 / ((a - t) / (y * (z - 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 + (1.0d0 / (((a - t) / z) / (y - x)))
if (z <= (-5.8d-31)) then
tmp = t_1
else if (z <= 1.7d-202) then
tmp = x + ((y - x) / ((t - a) / t))
else if (z <= 3d-116) then
tmp = y - (((x - y) * (a - z)) / t)
else if (z <= 1.05d+69) then
tmp = x + (1.0d0 / ((a - t) / (y * (z - 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 + (1.0 / (((a - t) / z) / (y - x)));
double tmp;
if (z <= -5.8e-31) {
tmp = t_1;
} else if (z <= 1.7e-202) {
tmp = x + ((y - x) / ((t - a) / t));
} else if (z <= 3e-116) {
tmp = y - (((x - y) * (a - z)) / t);
} else if (z <= 1.05e+69) {
tmp = x + (1.0 / ((a - t) / (y * (z - t))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (1.0 / (((a - t) / z) / (y - x))) tmp = 0 if z <= -5.8e-31: tmp = t_1 elif z <= 1.7e-202: tmp = x + ((y - x) / ((t - a) / t)) elif z <= 3e-116: tmp = y - (((x - y) * (a - z)) / t) elif z <= 1.05e+69: tmp = x + (1.0 / ((a - t) / (y * (z - t)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(1.0 / Float64(Float64(Float64(a - t) / z) / Float64(y - x)))) tmp = 0.0 if (z <= -5.8e-31) tmp = t_1; elseif (z <= 1.7e-202) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(t - a) / t))); elseif (z <= 3e-116) tmp = Float64(y - Float64(Float64(Float64(x - y) * Float64(a - z)) / t)); elseif (z <= 1.05e+69) tmp = Float64(x + Float64(1.0 / Float64(Float64(a - t) / Float64(y * Float64(z - t))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (1.0 / (((a - t) / z) / (y - x))); tmp = 0.0; if (z <= -5.8e-31) tmp = t_1; elseif (z <= 1.7e-202) tmp = x + ((y - x) / ((t - a) / t)); elseif (z <= 3e-116) tmp = y - (((x - y) * (a - z)) / t); elseif (z <= 1.05e+69) tmp = x + (1.0 / ((a - t) / (y * (z - t)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(1.0 / N[(N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision] / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.8e-31], t$95$1, If[LessEqual[z, 1.7e-202], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(t - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3e-116], N[(y - N[(N[(N[(x - y), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05e+69], N[(x + N[(1.0 / N[(N[(a - t), $MachinePrecision] / N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{1}{\frac{\frac{a - t}{z}}{y - x}}\\
\mathbf{if}\;z \leq -5.8 \cdot 10^{-31}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-202}:\\
\;\;\;\;x + \frac{y - x}{\frac{t - a}{t}}\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-116}:\\
\;\;\;\;y - \frac{\left(x - y\right) \cdot \left(a - z\right)}{t}\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{+69}:\\
\;\;\;\;x + \frac{1}{\frac{a - t}{y \cdot \left(z - t\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -5.8000000000000001e-31 or 1.05000000000000008e69 < z Initial program 71.4%
associate-/l*95.3%
Simplified95.3%
associate-/l*71.4%
clear-num71.3%
inv-pow71.3%
Applied egg-rr71.3%
unpow-171.3%
associate-/r*91.5%
Simplified91.5%
Taylor expanded in z around inf 67.3%
associate-/r*82.9%
Simplified82.9%
if -5.8000000000000001e-31 < z < 1.70000000000000006e-202Initial program 77.4%
associate-/l*88.4%
Simplified88.4%
Taylor expanded in z around 0 78.5%
associate-*r/78.5%
neg-mul-178.5%
Simplified78.5%
if 1.70000000000000006e-202 < z < 3.00000000000000026e-116Initial program 39.4%
associate-/l*39.9%
Simplified39.9%
Taylor expanded in t around -inf 75.5%
mul-1-neg75.5%
unsub-neg75.5%
div-sub74.8%
*-commutative74.8%
div-sub75.5%
distribute-rgt-out--75.5%
Simplified75.5%
if 3.00000000000000026e-116 < z < 1.05000000000000008e69Initial program 82.1%
associate-/l*86.9%
Simplified86.9%
associate-/l*82.1%
clear-num82.0%
inv-pow82.0%
Applied egg-rr82.0%
unpow-182.0%
associate-/r*82.2%
Simplified82.2%
Taylor expanded in y around inf 75.8%
*-commutative75.8%
Simplified75.8%
Final simplification80.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ z a)))))
(if (<= t -6e+130)
y
(if (<= t -5e-218)
t_1
(if (<= t -7.8e-247)
(* y (/ z a))
(if (<= t 6.5e-254)
t_1
(if (<= t 6.5e-197) (/ y (/ a z)) (if (<= t 5.3e+136) t_1 y))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (t <= -6e+130) {
tmp = y;
} else if (t <= -5e-218) {
tmp = t_1;
} else if (t <= -7.8e-247) {
tmp = y * (z / a);
} else if (t <= 6.5e-254) {
tmp = t_1;
} else if (t <= 6.5e-197) {
tmp = y / (a / z);
} else if (t <= 5.3e+136) {
tmp = t_1;
} else {
tmp = 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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (z / a))
if (t <= (-6d+130)) then
tmp = y
else if (t <= (-5d-218)) then
tmp = t_1
else if (t <= (-7.8d-247)) then
tmp = y * (z / a)
else if (t <= 6.5d-254) then
tmp = t_1
else if (t <= 6.5d-197) then
tmp = y / (a / z)
else if (t <= 5.3d+136) then
tmp = t_1
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (t <= -6e+130) {
tmp = y;
} else if (t <= -5e-218) {
tmp = t_1;
} else if (t <= -7.8e-247) {
tmp = y * (z / a);
} else if (t <= 6.5e-254) {
tmp = t_1;
} else if (t <= 6.5e-197) {
tmp = y / (a / z);
} else if (t <= 5.3e+136) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (z / a)) tmp = 0 if t <= -6e+130: tmp = y elif t <= -5e-218: tmp = t_1 elif t <= -7.8e-247: tmp = y * (z / a) elif t <= 6.5e-254: tmp = t_1 elif t <= 6.5e-197: tmp = y / (a / z) elif t <= 5.3e+136: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(z / a))) tmp = 0.0 if (t <= -6e+130) tmp = y; elseif (t <= -5e-218) tmp = t_1; elseif (t <= -7.8e-247) tmp = Float64(y * Float64(z / a)); elseif (t <= 6.5e-254) tmp = t_1; elseif (t <= 6.5e-197) tmp = Float64(y / Float64(a / z)); elseif (t <= 5.3e+136) tmp = t_1; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (z / a)); tmp = 0.0; if (t <= -6e+130) tmp = y; elseif (t <= -5e-218) tmp = t_1; elseif (t <= -7.8e-247) tmp = y * (z / a); elseif (t <= 6.5e-254) tmp = t_1; elseif (t <= 6.5e-197) tmp = y / (a / z); elseif (t <= 5.3e+136) tmp = t_1; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6e+130], y, If[LessEqual[t, -5e-218], t$95$1, If[LessEqual[t, -7.8e-247], N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e-254], t$95$1, If[LessEqual[t, 6.5e-197], N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.3e+136], t$95$1, y]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -6 \cdot 10^{+130}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -5 \cdot 10^{-218}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -7.8 \cdot 10^{-247}:\\
\;\;\;\;y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-254}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-197}:\\
\;\;\;\;\frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 5.3 \cdot 10^{+136}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -5.9999999999999999e130 or 5.3000000000000003e136 < t Initial program 34.3%
associate-/l*73.0%
Simplified73.0%
Taylor expanded in t around inf 54.6%
if -5.9999999999999999e130 < t < -5.00000000000000041e-218 or -7.8000000000000006e-247 < t < 6.5e-254 or 6.4999999999999995e-197 < t < 5.3000000000000003e136Initial program 86.0%
associate-/l*95.0%
Simplified95.0%
Taylor expanded in t around 0 64.5%
Taylor expanded in x around inf 51.0%
*-commutative51.0%
mul-1-neg51.0%
unsub-neg51.0%
Simplified51.0%
if -5.00000000000000041e-218 < t < -7.8000000000000006e-247Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around inf 85.5%
Taylor expanded in y around inf 99.8%
div-sub99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in z around inf 99.8%
if 6.5e-254 < t < 6.4999999999999995e-197Initial program 83.0%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in a around inf 99.9%
Taylor expanded in y around inf 82.3%
div-sub82.3%
*-commutative82.3%
Simplified82.3%
Taylor expanded in z around inf 56.8%
associate-/l*73.6%
Simplified73.6%
Final simplification54.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ z a)))))
(if (<= t -1.22e+131)
y
(if (<= t -2.6e-222)
t_1
(if (<= t -7.8e-247)
(* y (/ z a))
(if (<= t 8.5e-255)
t_1
(if (<= t 2.15e-197)
(* y (/ (- z t) a))
(if (<= t 5.2e+136) t_1 y))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (t <= -1.22e+131) {
tmp = y;
} else if (t <= -2.6e-222) {
tmp = t_1;
} else if (t <= -7.8e-247) {
tmp = y * (z / a);
} else if (t <= 8.5e-255) {
tmp = t_1;
} else if (t <= 2.15e-197) {
tmp = y * ((z - t) / a);
} else if (t <= 5.2e+136) {
tmp = t_1;
} else {
tmp = 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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (z / a))
if (t <= (-1.22d+131)) then
tmp = y
else if (t <= (-2.6d-222)) then
tmp = t_1
else if (t <= (-7.8d-247)) then
tmp = y * (z / a)
else if (t <= 8.5d-255) then
tmp = t_1
else if (t <= 2.15d-197) then
tmp = y * ((z - t) / a)
else if (t <= 5.2d+136) then
tmp = t_1
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (t <= -1.22e+131) {
tmp = y;
} else if (t <= -2.6e-222) {
tmp = t_1;
} else if (t <= -7.8e-247) {
tmp = y * (z / a);
} else if (t <= 8.5e-255) {
tmp = t_1;
} else if (t <= 2.15e-197) {
tmp = y * ((z - t) / a);
} else if (t <= 5.2e+136) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (z / a)) tmp = 0 if t <= -1.22e+131: tmp = y elif t <= -2.6e-222: tmp = t_1 elif t <= -7.8e-247: tmp = y * (z / a) elif t <= 8.5e-255: tmp = t_1 elif t <= 2.15e-197: tmp = y * ((z - t) / a) elif t <= 5.2e+136: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(z / a))) tmp = 0.0 if (t <= -1.22e+131) tmp = y; elseif (t <= -2.6e-222) tmp = t_1; elseif (t <= -7.8e-247) tmp = Float64(y * Float64(z / a)); elseif (t <= 8.5e-255) tmp = t_1; elseif (t <= 2.15e-197) tmp = Float64(y * Float64(Float64(z - t) / a)); elseif (t <= 5.2e+136) tmp = t_1; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (z / a)); tmp = 0.0; if (t <= -1.22e+131) tmp = y; elseif (t <= -2.6e-222) tmp = t_1; elseif (t <= -7.8e-247) tmp = y * (z / a); elseif (t <= 8.5e-255) tmp = t_1; elseif (t <= 2.15e-197) tmp = y * ((z - t) / a); elseif (t <= 5.2e+136) tmp = t_1; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.22e+131], y, If[LessEqual[t, -2.6e-222], t$95$1, If[LessEqual[t, -7.8e-247], N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e-255], t$95$1, If[LessEqual[t, 2.15e-197], N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.2e+136], t$95$1, y]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -1.22 \cdot 10^{+131}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -2.6 \cdot 10^{-222}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -7.8 \cdot 10^{-247}:\\
\;\;\;\;y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-255}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.15 \cdot 10^{-197}:\\
\;\;\;\;y \cdot \frac{z - t}{a}\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+136}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.22e131 or 5.2000000000000003e136 < t Initial program 34.3%
associate-/l*73.0%
Simplified73.0%
Taylor expanded in t around inf 54.6%
if -1.22e131 < t < -2.5999999999999998e-222 or -7.8000000000000006e-247 < t < 8.49999999999999982e-255 or 2.15e-197 < t < 5.2000000000000003e136Initial program 86.0%
associate-/l*95.0%
Simplified95.0%
Taylor expanded in t around 0 64.5%
Taylor expanded in x around inf 51.0%
*-commutative51.0%
mul-1-neg51.0%
unsub-neg51.0%
Simplified51.0%
if -2.5999999999999998e-222 < t < -7.8000000000000006e-247Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around inf 85.5%
Taylor expanded in y around inf 99.8%
div-sub99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in z around inf 99.8%
if 8.49999999999999982e-255 < t < 2.15e-197Initial program 83.0%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in a around inf 99.9%
Taylor expanded in y around inf 82.3%
div-sub82.3%
*-commutative82.3%
Simplified82.3%
Final simplification54.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))) (t_2 (+ x (/ (- y x) (/ a (- z t))))))
(if (<= a -2.75e+25)
t_2
(if (<= a -2.1e-200)
t_1
(if (<= a 3.1e-190)
(* (- y x) (/ z (- a t)))
(if (<= a 4.2) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x + ((y - x) / (a / (z - t)));
double tmp;
if (a <= -2.75e+25) {
tmp = t_2;
} else if (a <= -2.1e-200) {
tmp = t_1;
} else if (a <= 3.1e-190) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 4.2) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
t_2 = x + ((y - x) / (a / (z - t)))
if (a <= (-2.75d+25)) then
tmp = t_2
else if (a <= (-2.1d-200)) then
tmp = t_1
else if (a <= 3.1d-190) then
tmp = (y - x) * (z / (a - t))
else if (a <= 4.2d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x + ((y - x) / (a / (z - t)));
double tmp;
if (a <= -2.75e+25) {
tmp = t_2;
} else if (a <= -2.1e-200) {
tmp = t_1;
} else if (a <= 3.1e-190) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 4.2) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) t_2 = x + ((y - x) / (a / (z - t))) tmp = 0 if a <= -2.75e+25: tmp = t_2 elif a <= -2.1e-200: tmp = t_1 elif a <= 3.1e-190: tmp = (y - x) * (z / (a - t)) elif a <= 4.2: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) t_2 = Float64(x + Float64(Float64(y - x) / Float64(a / Float64(z - t)))) tmp = 0.0 if (a <= -2.75e+25) tmp = t_2; elseif (a <= -2.1e-200) tmp = t_1; elseif (a <= 3.1e-190) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); elseif (a <= 4.2) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); t_2 = x + ((y - x) / (a / (z - t))); tmp = 0.0; if (a <= -2.75e+25) tmp = t_2; elseif (a <= -2.1e-200) tmp = t_1; elseif (a <= 3.1e-190) tmp = (y - x) * (z / (a - t)); elseif (a <= 4.2) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.75e+25], t$95$2, If[LessEqual[a, -2.1e-200], t$95$1, If[LessEqual[a, 3.1e-190], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.2], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
t_2 := x + \frac{y - x}{\frac{a}{z - t}}\\
\mathbf{if}\;a \leq -2.75 \cdot 10^{+25}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -2.1 \cdot 10^{-200}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{-190}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{elif}\;a \leq 4.2:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -2.75000000000000009e25 or 4.20000000000000018 < a Initial program 73.4%
associate-/l*93.7%
Simplified93.7%
Taylor expanded in a around inf 80.5%
if -2.75000000000000009e25 < a < -2.0999999999999999e-200 or 3.09999999999999993e-190 < a < 4.20000000000000018Initial program 74.9%
associate-/l*85.2%
Simplified85.2%
Taylor expanded in x around 0 61.6%
associate-*r/72.0%
Simplified72.0%
if -2.0999999999999999e-200 < a < 3.09999999999999993e-190Initial program 74.1%
associate-/l*87.0%
Simplified87.0%
associate-/l*74.1%
clear-num74.0%
inv-pow74.0%
Applied egg-rr74.0%
unpow-174.0%
associate-/r*74.4%
Simplified74.4%
Taylor expanded in z around -inf 67.2%
associate-/l*64.6%
Simplified64.6%
associate-/r/75.0%
Applied egg-rr75.0%
Final simplification77.1%
(FPCore (x y z t a)
:precision binary64
(if (<= t -7.5e+128)
y
(if (<= t -1.5e-116)
(* x (- 1.0 (/ z a)))
(if (<= t -1.46e-207)
(/ z (/ a (- y x)))
(if (<= t 1.15e-59)
(+ x (/ y (/ a z)))
(if (<= t 6.3e+136) (- x (/ (* y t) a)) y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -7.5e+128) {
tmp = y;
} else if (t <= -1.5e-116) {
tmp = x * (1.0 - (z / a));
} else if (t <= -1.46e-207) {
tmp = z / (a / (y - x));
} else if (t <= 1.15e-59) {
tmp = x + (y / (a / z));
} else if (t <= 6.3e+136) {
tmp = x - ((y * t) / a);
} else {
tmp = 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 (t <= (-7.5d+128)) then
tmp = y
else if (t <= (-1.5d-116)) then
tmp = x * (1.0d0 - (z / a))
else if (t <= (-1.46d-207)) then
tmp = z / (a / (y - x))
else if (t <= 1.15d-59) then
tmp = x + (y / (a / z))
else if (t <= 6.3d+136) then
tmp = x - ((y * t) / a)
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -7.5e+128) {
tmp = y;
} else if (t <= -1.5e-116) {
tmp = x * (1.0 - (z / a));
} else if (t <= -1.46e-207) {
tmp = z / (a / (y - x));
} else if (t <= 1.15e-59) {
tmp = x + (y / (a / z));
} else if (t <= 6.3e+136) {
tmp = x - ((y * t) / a);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -7.5e+128: tmp = y elif t <= -1.5e-116: tmp = x * (1.0 - (z / a)) elif t <= -1.46e-207: tmp = z / (a / (y - x)) elif t <= 1.15e-59: tmp = x + (y / (a / z)) elif t <= 6.3e+136: tmp = x - ((y * t) / a) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -7.5e+128) tmp = y; elseif (t <= -1.5e-116) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (t <= -1.46e-207) tmp = Float64(z / Float64(a / Float64(y - x))); elseif (t <= 1.15e-59) tmp = Float64(x + Float64(y / Float64(a / z))); elseif (t <= 6.3e+136) tmp = Float64(x - Float64(Float64(y * t) / a)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -7.5e+128) tmp = y; elseif (t <= -1.5e-116) tmp = x * (1.0 - (z / a)); elseif (t <= -1.46e-207) tmp = z / (a / (y - x)); elseif (t <= 1.15e-59) tmp = x + (y / (a / z)); elseif (t <= 6.3e+136) tmp = x - ((y * t) / a); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -7.5e+128], y, If[LessEqual[t, -1.5e-116], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.46e-207], N[(z / N[(a / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.15e-59], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.3e+136], N[(x - N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], y]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.5 \cdot 10^{+128}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -1.5 \cdot 10^{-116}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;t \leq -1.46 \cdot 10^{-207}:\\
\;\;\;\;\frac{z}{\frac{a}{y - x}}\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-59}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 6.3 \cdot 10^{+136}:\\
\;\;\;\;x - \frac{y \cdot t}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -7.50000000000000076e128 or 6.2999999999999997e136 < t Initial program 34.3%
associate-/l*73.0%
Simplified73.0%
Taylor expanded in t around inf 54.6%
if -7.50000000000000076e128 < t < -1.50000000000000013e-116Initial program 78.2%
associate-/l*93.3%
Simplified93.3%
Taylor expanded in t around 0 47.9%
Taylor expanded in x around inf 45.4%
*-commutative45.4%
mul-1-neg45.4%
unsub-neg45.4%
Simplified45.4%
if -1.50000000000000013e-116 < t < -1.46e-207Initial program 88.5%
associate-/l*94.3%
Simplified94.3%
associate-/l*88.5%
clear-num88.5%
inv-pow88.5%
Applied egg-rr88.5%
unpow-188.5%
associate-/r*88.7%
Simplified88.7%
Taylor expanded in z around -inf 67.6%
associate-/l*67.7%
Simplified67.7%
Taylor expanded in a around inf 67.7%
if -1.46e-207 < t < 1.1499999999999999e-59Initial program 92.7%
associate-/l*98.6%
Simplified98.6%
Taylor expanded in t around 0 83.0%
Taylor expanded in y around inf 64.6%
associate-/l*70.5%
Simplified70.5%
if 1.1499999999999999e-59 < t < 6.2999999999999997e136Initial program 80.6%
associate-/l*90.1%
Simplified90.1%
Taylor expanded in z around 0 60.1%
fma-def60.1%
associate-*r/60.3%
fma-def60.3%
neg-mul-160.3%
+-commutative60.3%
unsub-neg60.3%
Simplified60.3%
Taylor expanded in y around inf 59.6%
Taylor expanded in t around 0 52.9%
Final simplification59.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -7e+128)
t_1
(if (<= t -2.1e+79)
(* (- y x) (/ z (- a t)))
(if (or (<= t -7.1e-43) (not (<= t 1.82e-31)))
t_1
(- x (/ (- x y) (/ a z))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -7e+128) {
tmp = t_1;
} else if (t <= -2.1e+79) {
tmp = (y - x) * (z / (a - t));
} else if ((t <= -7.1e-43) || !(t <= 1.82e-31)) {
tmp = t_1;
} else {
tmp = x - ((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 = y * ((z - t) / (a - t))
if (t <= (-7d+128)) then
tmp = t_1
else if (t <= (-2.1d+79)) then
tmp = (y - x) * (z / (a - t))
else if ((t <= (-7.1d-43)) .or. (.not. (t <= 1.82d-31))) then
tmp = t_1
else
tmp = x - ((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 = y * ((z - t) / (a - t));
double tmp;
if (t <= -7e+128) {
tmp = t_1;
} else if (t <= -2.1e+79) {
tmp = (y - x) * (z / (a - t));
} else if ((t <= -7.1e-43) || !(t <= 1.82e-31)) {
tmp = t_1;
} else {
tmp = x - ((x - y) / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -7e+128: tmp = t_1 elif t <= -2.1e+79: tmp = (y - x) * (z / (a - t)) elif (t <= -7.1e-43) or not (t <= 1.82e-31): tmp = t_1 else: tmp = x - ((x - y) / (a / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (t <= -7e+128) tmp = t_1; elseif (t <= -2.1e+79) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); elseif ((t <= -7.1e-43) || !(t <= 1.82e-31)) tmp = t_1; else tmp = Float64(x - Float64(Float64(x - y) / Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (t <= -7e+128) tmp = t_1; elseif (t <= -2.1e+79) tmp = (y - x) * (z / (a - t)); elseif ((t <= -7.1e-43) || ~((t <= 1.82e-31))) tmp = t_1; else tmp = x - ((x - y) / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7e+128], t$95$1, If[LessEqual[t, -2.1e+79], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -7.1e-43], N[Not[LessEqual[t, 1.82e-31]], $MachinePrecision]], t$95$1, N[(x - N[(N[(x - y), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -7 \cdot 10^{+128}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.1 \cdot 10^{+79}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{elif}\;t \leq -7.1 \cdot 10^{-43} \lor \neg \left(t \leq 1.82 \cdot 10^{-31}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x - y}{\frac{a}{z}}\\
\end{array}
\end{array}
if t < -6.99999999999999937e128 or -2.10000000000000008e79 < t < -7.10000000000000025e-43 or 1.8199999999999999e-31 < t Initial program 57.0%
associate-/l*81.9%
Simplified81.9%
Taylor expanded in x around 0 44.8%
associate-*r/62.5%
Simplified62.5%
if -6.99999999999999937e128 < t < -2.10000000000000008e79Initial program 52.8%
associate-/l*83.7%
Simplified83.7%
associate-/l*52.8%
clear-num52.7%
inv-pow52.7%
Applied egg-rr52.7%
unpow-152.7%
associate-/r*76.2%
Simplified76.2%
Taylor expanded in z around -inf 41.6%
associate-/l*56.7%
Simplified56.7%
associate-/r/64.6%
Applied egg-rr64.6%
if -7.10000000000000025e-43 < t < 1.8199999999999999e-31Initial program 91.6%
associate-/l*98.2%
Simplified98.2%
Taylor expanded in t around 0 83.8%
Final simplification73.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -5e+129)
t_1
(if (<= t -1.55e+110)
(* x (+ (/ (- t z) (- a t)) 1.0))
(if (or (<= t -8.8e-43) (not (<= t 4e-31)))
t_1
(- x (/ (- x y) (/ a z))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -5e+129) {
tmp = t_1;
} else if (t <= -1.55e+110) {
tmp = x * (((t - z) / (a - t)) + 1.0);
} else if ((t <= -8.8e-43) || !(t <= 4e-31)) {
tmp = t_1;
} else {
tmp = x - ((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 = y * ((z - t) / (a - t))
if (t <= (-5d+129)) then
tmp = t_1
else if (t <= (-1.55d+110)) then
tmp = x * (((t - z) / (a - t)) + 1.0d0)
else if ((t <= (-8.8d-43)) .or. (.not. (t <= 4d-31))) then
tmp = t_1
else
tmp = x - ((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 = y * ((z - t) / (a - t));
double tmp;
if (t <= -5e+129) {
tmp = t_1;
} else if (t <= -1.55e+110) {
tmp = x * (((t - z) / (a - t)) + 1.0);
} else if ((t <= -8.8e-43) || !(t <= 4e-31)) {
tmp = t_1;
} else {
tmp = x - ((x - y) / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -5e+129: tmp = t_1 elif t <= -1.55e+110: tmp = x * (((t - z) / (a - t)) + 1.0) elif (t <= -8.8e-43) or not (t <= 4e-31): tmp = t_1 else: tmp = x - ((x - y) / (a / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (t <= -5e+129) tmp = t_1; elseif (t <= -1.55e+110) tmp = Float64(x * Float64(Float64(Float64(t - z) / Float64(a - t)) + 1.0)); elseif ((t <= -8.8e-43) || !(t <= 4e-31)) tmp = t_1; else tmp = Float64(x - Float64(Float64(x - y) / Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (t <= -5e+129) tmp = t_1; elseif (t <= -1.55e+110) tmp = x * (((t - z) / (a - t)) + 1.0); elseif ((t <= -8.8e-43) || ~((t <= 4e-31))) tmp = t_1; else tmp = x - ((x - y) / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5e+129], t$95$1, If[LessEqual[t, -1.55e+110], N[(x * N[(N[(N[(t - z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -8.8e-43], N[Not[LessEqual[t, 4e-31]], $MachinePrecision]], t$95$1, N[(x - N[(N[(x - y), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -5 \cdot 10^{+129}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.55 \cdot 10^{+110}:\\
\;\;\;\;x \cdot \left(\frac{t - z}{a - t} + 1\right)\\
\mathbf{elif}\;t \leq -8.8 \cdot 10^{-43} \lor \neg \left(t \leq 4 \cdot 10^{-31}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x - y}{\frac{a}{z}}\\
\end{array}
\end{array}
if t < -5.0000000000000003e129 or -1.55000000000000009e110 < t < -8.79999999999999989e-43 or 4e-31 < t Initial program 56.4%
associate-/l*81.4%
Simplified81.4%
Taylor expanded in x around 0 43.3%
associate-*r/61.5%
Simplified61.5%
if -5.0000000000000003e129 < t < -1.55000000000000009e110Initial program 62.4%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in x around inf 99.4%
mul-1-neg99.4%
unsub-neg99.4%
Simplified99.4%
if -8.79999999999999989e-43 < t < 4e-31Initial program 91.6%
associate-/l*98.2%
Simplified98.2%
Taylor expanded in t around 0 83.8%
Final simplification73.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))) (t_2 (+ x (/ y (/ a z)))))
(if (<= a -7.9e+24)
t_2
(if (<= a 8.8e-287)
t_1
(if (<= a 7.8e-192) (/ z (/ (- t a) x)) (if (<= a 9.5e+96) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x + (y / (a / z));
double tmp;
if (a <= -7.9e+24) {
tmp = t_2;
} else if (a <= 8.8e-287) {
tmp = t_1;
} else if (a <= 7.8e-192) {
tmp = z / ((t - a) / x);
} else if (a <= 9.5e+96) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
t_2 = x + (y / (a / z))
if (a <= (-7.9d+24)) then
tmp = t_2
else if (a <= 8.8d-287) then
tmp = t_1
else if (a <= 7.8d-192) then
tmp = z / ((t - a) / x)
else if (a <= 9.5d+96) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x + (y / (a / z));
double tmp;
if (a <= -7.9e+24) {
tmp = t_2;
} else if (a <= 8.8e-287) {
tmp = t_1;
} else if (a <= 7.8e-192) {
tmp = z / ((t - a) / x);
} else if (a <= 9.5e+96) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) t_2 = x + (y / (a / z)) tmp = 0 if a <= -7.9e+24: tmp = t_2 elif a <= 8.8e-287: tmp = t_1 elif a <= 7.8e-192: tmp = z / ((t - a) / x) elif a <= 9.5e+96: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) t_2 = Float64(x + Float64(y / Float64(a / z))) tmp = 0.0 if (a <= -7.9e+24) tmp = t_2; elseif (a <= 8.8e-287) tmp = t_1; elseif (a <= 7.8e-192) tmp = Float64(z / Float64(Float64(t - a) / x)); elseif (a <= 9.5e+96) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); t_2 = x + (y / (a / z)); tmp = 0.0; if (a <= -7.9e+24) tmp = t_2; elseif (a <= 8.8e-287) tmp = t_1; elseif (a <= 7.8e-192) tmp = z / ((t - a) / x); elseif (a <= 9.5e+96) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.9e+24], t$95$2, If[LessEqual[a, 8.8e-287], t$95$1, If[LessEqual[a, 7.8e-192], N[(z / N[(N[(t - a), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e+96], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
t_2 := x + \frac{y}{\frac{a}{z}}\\
\mathbf{if}\;a \leq -7.9 \cdot 10^{+24}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 8.8 \cdot 10^{-287}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 7.8 \cdot 10^{-192}:\\
\;\;\;\;\frac{z}{\frac{t - a}{x}}\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{+96}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -7.8999999999999997e24 or 9.50000000000000089e96 < a Initial program 76.4%
associate-/l*94.2%
Simplified94.2%
Taylor expanded in t around 0 74.6%
Taylor expanded in y around inf 59.8%
associate-/l*64.7%
Simplified64.7%
if -7.8999999999999997e24 < a < 8.8000000000000001e-287 or 7.8000000000000005e-192 < a < 9.50000000000000089e96Initial program 73.1%
associate-/l*87.4%
Simplified87.4%
Taylor expanded in x around 0 55.0%
associate-*r/68.6%
Simplified68.6%
if 8.8000000000000001e-287 < a < 7.8000000000000005e-192Initial program 62.1%
associate-/l*80.3%
Simplified80.3%
associate-/l*62.1%
clear-num62.0%
inv-pow62.0%
Applied egg-rr62.0%
unpow-162.0%
associate-/r*68.3%
Simplified68.3%
Taylor expanded in z around -inf 61.6%
associate-/l*67.6%
Simplified67.6%
Taylor expanded in y around 0 60.9%
associate-*r/60.9%
neg-mul-160.9%
Simplified60.9%
Taylor expanded in a around 0 60.9%
+-commutative60.9%
mul-1-neg60.9%
sub-neg60.9%
div-sub60.9%
Simplified60.9%
Final simplification66.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))) (t_2 (+ x (/ y (/ a z)))))
(if (<= a -6.8e+25)
t_2
(if (<= a 6.4e-287)
t_1
(if (<= a 3.2e-189)
(* z (/ (- y x) (- a t)))
(if (<= a 1.6e+96) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x + (y / (a / z));
double tmp;
if (a <= -6.8e+25) {
tmp = t_2;
} else if (a <= 6.4e-287) {
tmp = t_1;
} else if (a <= 3.2e-189) {
tmp = z * ((y - x) / (a - t));
} else if (a <= 1.6e+96) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
t_2 = x + (y / (a / z))
if (a <= (-6.8d+25)) then
tmp = t_2
else if (a <= 6.4d-287) then
tmp = t_1
else if (a <= 3.2d-189) then
tmp = z * ((y - x) / (a - t))
else if (a <= 1.6d+96) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x + (y / (a / z));
double tmp;
if (a <= -6.8e+25) {
tmp = t_2;
} else if (a <= 6.4e-287) {
tmp = t_1;
} else if (a <= 3.2e-189) {
tmp = z * ((y - x) / (a - t));
} else if (a <= 1.6e+96) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) t_2 = x + (y / (a / z)) tmp = 0 if a <= -6.8e+25: tmp = t_2 elif a <= 6.4e-287: tmp = t_1 elif a <= 3.2e-189: tmp = z * ((y - x) / (a - t)) elif a <= 1.6e+96: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) t_2 = Float64(x + Float64(y / Float64(a / z))) tmp = 0.0 if (a <= -6.8e+25) tmp = t_2; elseif (a <= 6.4e-287) tmp = t_1; elseif (a <= 3.2e-189) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif (a <= 1.6e+96) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); t_2 = x + (y / (a / z)); tmp = 0.0; if (a <= -6.8e+25) tmp = t_2; elseif (a <= 6.4e-287) tmp = t_1; elseif (a <= 3.2e-189) tmp = z * ((y - x) / (a - t)); elseif (a <= 1.6e+96) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.8e+25], t$95$2, If[LessEqual[a, 6.4e-287], t$95$1, If[LessEqual[a, 3.2e-189], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e+96], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
t_2 := x + \frac{y}{\frac{a}{z}}\\
\mathbf{if}\;a \leq -6.8 \cdot 10^{+25}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 6.4 \cdot 10^{-287}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-189}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{+96}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -6.79999999999999967e25 or 1.60000000000000003e96 < a Initial program 76.4%
associate-/l*94.2%
Simplified94.2%
Taylor expanded in t around 0 74.6%
Taylor expanded in y around inf 59.8%
associate-/l*64.7%
Simplified64.7%
if -6.79999999999999967e25 < a < 6.40000000000000037e-287 or 3.2000000000000001e-189 < a < 1.60000000000000003e96Initial program 73.1%
associate-/l*87.4%
Simplified87.4%
Taylor expanded in x around 0 55.0%
associate-*r/68.6%
Simplified68.6%
if 6.40000000000000037e-287 < a < 3.2000000000000001e-189Initial program 62.1%
associate-/l*80.3%
Simplified80.3%
Taylor expanded in z around inf 67.6%
div-sub67.6%
Simplified67.6%
Final simplification66.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))) (t_2 (+ x (/ y (/ a z)))))
(if (<= a -5.3e+25)
t_2
(if (<= a -3.6e-200)
t_1
(if (<= a 3.9e-191)
(* (- y x) (/ z (- a t)))
(if (<= a 4e+96) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x + (y / (a / z));
double tmp;
if (a <= -5.3e+25) {
tmp = t_2;
} else if (a <= -3.6e-200) {
tmp = t_1;
} else if (a <= 3.9e-191) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 4e+96) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
t_2 = x + (y / (a / z))
if (a <= (-5.3d+25)) then
tmp = t_2
else if (a <= (-3.6d-200)) then
tmp = t_1
else if (a <= 3.9d-191) then
tmp = (y - x) * (z / (a - t))
else if (a <= 4d+96) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x + (y / (a / z));
double tmp;
if (a <= -5.3e+25) {
tmp = t_2;
} else if (a <= -3.6e-200) {
tmp = t_1;
} else if (a <= 3.9e-191) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 4e+96) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) t_2 = x + (y / (a / z)) tmp = 0 if a <= -5.3e+25: tmp = t_2 elif a <= -3.6e-200: tmp = t_1 elif a <= 3.9e-191: tmp = (y - x) * (z / (a - t)) elif a <= 4e+96: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) t_2 = Float64(x + Float64(y / Float64(a / z))) tmp = 0.0 if (a <= -5.3e+25) tmp = t_2; elseif (a <= -3.6e-200) tmp = t_1; elseif (a <= 3.9e-191) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); elseif (a <= 4e+96) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); t_2 = x + (y / (a / z)); tmp = 0.0; if (a <= -5.3e+25) tmp = t_2; elseif (a <= -3.6e-200) tmp = t_1; elseif (a <= 3.9e-191) tmp = (y - x) * (z / (a - t)); elseif (a <= 4e+96) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.3e+25], t$95$2, If[LessEqual[a, -3.6e-200], t$95$1, If[LessEqual[a, 3.9e-191], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4e+96], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
t_2 := x + \frac{y}{\frac{a}{z}}\\
\mathbf{if}\;a \leq -5.3 \cdot 10^{+25}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -3.6 \cdot 10^{-200}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.9 \cdot 10^{-191}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{elif}\;a \leq 4 \cdot 10^{+96}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -5.29999999999999986e25 or 4.0000000000000002e96 < a Initial program 76.4%
associate-/l*94.2%
Simplified94.2%
Taylor expanded in t around 0 74.6%
Taylor expanded in y around inf 59.8%
associate-/l*64.7%
Simplified64.7%
if -5.29999999999999986e25 < a < -3.6000000000000002e-200 or 3.8999999999999999e-191 < a < 4.0000000000000002e96Initial program 71.1%
associate-/l*86.5%
Simplified86.5%
Taylor expanded in x around 0 54.8%
associate-*r/69.3%
Simplified69.3%
if -3.6000000000000002e-200 < a < 3.8999999999999999e-191Initial program 74.1%
associate-/l*87.0%
Simplified87.0%
associate-/l*74.1%
clear-num74.0%
inv-pow74.0%
Applied egg-rr74.0%
unpow-174.0%
associate-/r*74.4%
Simplified74.4%
Taylor expanded in z around -inf 67.2%
associate-/l*64.6%
Simplified64.6%
associate-/r/75.0%
Applied egg-rr75.0%
Final simplification68.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))) (t_2 (+ x (/ z (/ a (- y x))))))
(if (<= a -3.7e+25)
t_2
(if (<= a -1.26e-198)
t_1
(if (<= a 1.85e-191)
(* (- y x) (/ z (- a t)))
(if (<= a 3.6e+48) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x + (z / (a / (y - x)));
double tmp;
if (a <= -3.7e+25) {
tmp = t_2;
} else if (a <= -1.26e-198) {
tmp = t_1;
} else if (a <= 1.85e-191) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 3.6e+48) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
t_2 = x + (z / (a / (y - x)))
if (a <= (-3.7d+25)) then
tmp = t_2
else if (a <= (-1.26d-198)) then
tmp = t_1
else if (a <= 1.85d-191) then
tmp = (y - x) * (z / (a - t))
else if (a <= 3.6d+48) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double t_2 = x + (z / (a / (y - x)));
double tmp;
if (a <= -3.7e+25) {
tmp = t_2;
} else if (a <= -1.26e-198) {
tmp = t_1;
} else if (a <= 1.85e-191) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 3.6e+48) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) t_2 = x + (z / (a / (y - x))) tmp = 0 if a <= -3.7e+25: tmp = t_2 elif a <= -1.26e-198: tmp = t_1 elif a <= 1.85e-191: tmp = (y - x) * (z / (a - t)) elif a <= 3.6e+48: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) t_2 = Float64(x + Float64(z / Float64(a / Float64(y - x)))) tmp = 0.0 if (a <= -3.7e+25) tmp = t_2; elseif (a <= -1.26e-198) tmp = t_1; elseif (a <= 1.85e-191) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); elseif (a <= 3.6e+48) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); t_2 = x + (z / (a / (y - x))); tmp = 0.0; if (a <= -3.7e+25) tmp = t_2; elseif (a <= -1.26e-198) tmp = t_1; elseif (a <= 1.85e-191) tmp = (y - x) * (z / (a - t)); elseif (a <= 3.6e+48) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(z / N[(a / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.7e+25], t$95$2, If[LessEqual[a, -1.26e-198], t$95$1, If[LessEqual[a, 1.85e-191], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.6e+48], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
t_2 := x + \frac{z}{\frac{a}{y - x}}\\
\mathbf{if}\;a \leq -3.7 \cdot 10^{+25}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -1.26 \cdot 10^{-198}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{-191}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{elif}\;a \leq 3.6 \cdot 10^{+48}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -3.6999999999999999e25 or 3.59999999999999983e48 < a Initial program 73.8%
associate-/l*93.4%
Simplified93.4%
Taylor expanded in t around 0 63.1%
+-commutative63.1%
*-commutative63.1%
associate-/l*70.6%
Simplified70.6%
if -3.6999999999999999e25 < a < -1.25999999999999992e-198 or 1.8499999999999998e-191 < a < 3.59999999999999983e48Initial program 74.2%
associate-/l*86.1%
Simplified86.1%
Taylor expanded in x around 0 60.4%
associate-*r/71.3%
Simplified71.3%
if -1.25999999999999992e-198 < a < 1.8499999999999998e-191Initial program 74.1%
associate-/l*87.0%
Simplified87.0%
associate-/l*74.1%
clear-num74.0%
inv-pow74.0%
Applied egg-rr74.0%
unpow-174.0%
associate-/r*74.4%
Simplified74.4%
Taylor expanded in z around -inf 67.2%
associate-/l*64.6%
Simplified64.6%
associate-/r/75.0%
Applied egg-rr75.0%
Final simplification71.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= a -2.02e+24)
(+ x (/ z (/ a (- y x))))
(if (<= a -3.9e-199)
t_1
(if (<= a 3.5e-191)
(* (- y x) (/ z (- a t)))
(if (<= a 1.85e+96) t_1 (- x (/ (* y (- t z)) a))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (a <= -2.02e+24) {
tmp = x + (z / (a / (y - x)));
} else if (a <= -3.9e-199) {
tmp = t_1;
} else if (a <= 3.5e-191) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 1.85e+96) {
tmp = t_1;
} else {
tmp = x - ((y * (t - z)) / 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 = y * ((z - t) / (a - t))
if (a <= (-2.02d+24)) then
tmp = x + (z / (a / (y - x)))
else if (a <= (-3.9d-199)) then
tmp = t_1
else if (a <= 3.5d-191) then
tmp = (y - x) * (z / (a - t))
else if (a <= 1.85d+96) then
tmp = t_1
else
tmp = x - ((y * (t - z)) / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (a <= -2.02e+24) {
tmp = x + (z / (a / (y - x)));
} else if (a <= -3.9e-199) {
tmp = t_1;
} else if (a <= 3.5e-191) {
tmp = (y - x) * (z / (a - t));
} else if (a <= 1.85e+96) {
tmp = t_1;
} else {
tmp = x - ((y * (t - z)) / a);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if a <= -2.02e+24: tmp = x + (z / (a / (y - x))) elif a <= -3.9e-199: tmp = t_1 elif a <= 3.5e-191: tmp = (y - x) * (z / (a - t)) elif a <= 1.85e+96: tmp = t_1 else: tmp = x - ((y * (t - z)) / a) return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (a <= -2.02e+24) tmp = Float64(x + Float64(z / Float64(a / Float64(y - x)))); elseif (a <= -3.9e-199) tmp = t_1; elseif (a <= 3.5e-191) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); elseif (a <= 1.85e+96) tmp = t_1; else tmp = Float64(x - Float64(Float64(y * Float64(t - z)) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (a <= -2.02e+24) tmp = x + (z / (a / (y - x))); elseif (a <= -3.9e-199) tmp = t_1; elseif (a <= 3.5e-191) tmp = (y - x) * (z / (a - t)); elseif (a <= 1.85e+96) tmp = t_1; else tmp = x - ((y * (t - z)) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.02e+24], N[(x + N[(z / N[(a / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.9e-199], t$95$1, If[LessEqual[a, 3.5e-191], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.85e+96], t$95$1, N[(x - N[(N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;a \leq -2.02 \cdot 10^{+24}:\\
\;\;\;\;x + \frac{z}{\frac{a}{y - x}}\\
\mathbf{elif}\;a \leq -3.9 \cdot 10^{-199}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{-191}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{+96}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y \cdot \left(t - z\right)}{a}\\
\end{array}
\end{array}
if a < -2.0199999999999999e24Initial program 67.7%
associate-/l*92.8%
Simplified92.8%
Taylor expanded in t around 0 59.1%
+-commutative59.1%
*-commutative59.1%
associate-/l*68.9%
Simplified68.9%
if -2.0199999999999999e24 < a < -3.9000000000000001e-199 or 3.50000000000000007e-191 < a < 1.84999999999999996e96Initial program 71.1%
associate-/l*86.5%
Simplified86.5%
Taylor expanded in x around 0 54.8%
associate-*r/69.3%
Simplified69.3%
if -3.9000000000000001e-199 < a < 3.50000000000000007e-191Initial program 74.1%
associate-/l*87.0%
Simplified87.0%
associate-/l*74.1%
clear-num74.0%
inv-pow74.0%
Applied egg-rr74.0%
unpow-174.0%
associate-/r*74.4%
Simplified74.4%
Taylor expanded in z around -inf 67.2%
associate-/l*64.6%
Simplified64.6%
associate-/r/75.0%
Applied egg-rr75.0%
if 1.84999999999999996e96 < a Initial program 88.2%
associate-/l*96.0%
Simplified96.0%
Taylor expanded in a around inf 90.4%
Taylor expanded in x around 0 81.0%
Final simplification72.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ z a))))
(if (<= t -1.55e-31)
y
(if (<= t -6.3e-115)
x
(if (<= t -3.8e-247)
t_1
(if (<= t 1.25e-258)
x
(if (<= t 3.4e-143) t_1 (if (<= t 5.2e+136) x y))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (z / a);
double tmp;
if (t <= -1.55e-31) {
tmp = y;
} else if (t <= -6.3e-115) {
tmp = x;
} else if (t <= -3.8e-247) {
tmp = t_1;
} else if (t <= 1.25e-258) {
tmp = x;
} else if (t <= 3.4e-143) {
tmp = t_1;
} else if (t <= 5.2e+136) {
tmp = x;
} else {
tmp = 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) :: t_1
real(8) :: tmp
t_1 = y * (z / a)
if (t <= (-1.55d-31)) then
tmp = y
else if (t <= (-6.3d-115)) then
tmp = x
else if (t <= (-3.8d-247)) then
tmp = t_1
else if (t <= 1.25d-258) then
tmp = x
else if (t <= 3.4d-143) then
tmp = t_1
else if (t <= 5.2d+136) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * (z / a);
double tmp;
if (t <= -1.55e-31) {
tmp = y;
} else if (t <= -6.3e-115) {
tmp = x;
} else if (t <= -3.8e-247) {
tmp = t_1;
} else if (t <= 1.25e-258) {
tmp = x;
} else if (t <= 3.4e-143) {
tmp = t_1;
} else if (t <= 5.2e+136) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (z / a) tmp = 0 if t <= -1.55e-31: tmp = y elif t <= -6.3e-115: tmp = x elif t <= -3.8e-247: tmp = t_1 elif t <= 1.25e-258: tmp = x elif t <= 3.4e-143: tmp = t_1 elif t <= 5.2e+136: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(z / a)) tmp = 0.0 if (t <= -1.55e-31) tmp = y; elseif (t <= -6.3e-115) tmp = x; elseif (t <= -3.8e-247) tmp = t_1; elseif (t <= 1.25e-258) tmp = x; elseif (t <= 3.4e-143) tmp = t_1; elseif (t <= 5.2e+136) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (z / a); tmp = 0.0; if (t <= -1.55e-31) tmp = y; elseif (t <= -6.3e-115) tmp = x; elseif (t <= -3.8e-247) tmp = t_1; elseif (t <= 1.25e-258) tmp = x; elseif (t <= 3.4e-143) tmp = t_1; elseif (t <= 5.2e+136) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.55e-31], y, If[LessEqual[t, -6.3e-115], x, If[LessEqual[t, -3.8e-247], t$95$1, If[LessEqual[t, 1.25e-258], x, If[LessEqual[t, 3.4e-143], t$95$1, If[LessEqual[t, 5.2e+136], x, y]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z}{a}\\
\mathbf{if}\;t \leq -1.55 \cdot 10^{-31}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -6.3 \cdot 10^{-115}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq -3.8 \cdot 10^{-247}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-258}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{-143}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+136}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.55e-31 or 5.2000000000000003e136 < t Initial program 50.4%
associate-/l*80.5%
Simplified80.5%
Taylor expanded in t around inf 40.2%
if -1.55e-31 < t < -6.2999999999999996e-115 or -3.79999999999999988e-247 < t < 1.25e-258 or 3.39999999999999983e-143 < t < 5.2000000000000003e136Initial program 90.2%
associate-/l*95.8%
Simplified95.8%
Taylor expanded in a around inf 44.6%
if -6.2999999999999996e-115 < t < -3.79999999999999988e-247 or 1.25e-258 < t < 3.39999999999999983e-143Initial program 89.0%
associate-/l*98.0%
Simplified98.0%
Taylor expanded in a around inf 88.9%
Taylor expanded in y around inf 57.5%
div-sub57.5%
*-commutative57.5%
Simplified57.5%
Taylor expanded in z around inf 52.0%
Final simplification44.3%
(FPCore (x y z t a)
:precision binary64
(if (<= t -9.8e-32)
y
(if (<= t -1.5e-116)
x
(if (<= t -6.5e-247)
(/ y (/ a z))
(if (<= t 4.8e-258)
x
(if (<= t 2e-147) (* y (/ z a)) (if (<= t 4.6e+136) x y)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -9.8e-32) {
tmp = y;
} else if (t <= -1.5e-116) {
tmp = x;
} else if (t <= -6.5e-247) {
tmp = y / (a / z);
} else if (t <= 4.8e-258) {
tmp = x;
} else if (t <= 2e-147) {
tmp = y * (z / a);
} else if (t <= 4.6e+136) {
tmp = x;
} else {
tmp = 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 (t <= (-9.8d-32)) then
tmp = y
else if (t <= (-1.5d-116)) then
tmp = x
else if (t <= (-6.5d-247)) then
tmp = y / (a / z)
else if (t <= 4.8d-258) then
tmp = x
else if (t <= 2d-147) then
tmp = y * (z / a)
else if (t <= 4.6d+136) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -9.8e-32) {
tmp = y;
} else if (t <= -1.5e-116) {
tmp = x;
} else if (t <= -6.5e-247) {
tmp = y / (a / z);
} else if (t <= 4.8e-258) {
tmp = x;
} else if (t <= 2e-147) {
tmp = y * (z / a);
} else if (t <= 4.6e+136) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -9.8e-32: tmp = y elif t <= -1.5e-116: tmp = x elif t <= -6.5e-247: tmp = y / (a / z) elif t <= 4.8e-258: tmp = x elif t <= 2e-147: tmp = y * (z / a) elif t <= 4.6e+136: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -9.8e-32) tmp = y; elseif (t <= -1.5e-116) tmp = x; elseif (t <= -6.5e-247) tmp = Float64(y / Float64(a / z)); elseif (t <= 4.8e-258) tmp = x; elseif (t <= 2e-147) tmp = Float64(y * Float64(z / a)); elseif (t <= 4.6e+136) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -9.8e-32) tmp = y; elseif (t <= -1.5e-116) tmp = x; elseif (t <= -6.5e-247) tmp = y / (a / z); elseif (t <= 4.8e-258) tmp = x; elseif (t <= 2e-147) tmp = y * (z / a); elseif (t <= 4.6e+136) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -9.8e-32], y, If[LessEqual[t, -1.5e-116], x, If[LessEqual[t, -6.5e-247], N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.8e-258], x, If[LessEqual[t, 2e-147], N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.6e+136], x, y]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.8 \cdot 10^{-32}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -1.5 \cdot 10^{-116}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq -6.5 \cdot 10^{-247}:\\
\;\;\;\;\frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{-258}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-147}:\\
\;\;\;\;y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{+136}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -9.7999999999999996e-32 or 4.6e136 < t Initial program 50.4%
associate-/l*80.5%
Simplified80.5%
Taylor expanded in t around inf 40.2%
if -9.7999999999999996e-32 < t < -1.50000000000000013e-116 or -6.4999999999999996e-247 < t < 4.8000000000000003e-258 or 1.9999999999999999e-147 < t < 4.6e136Initial program 90.2%
associate-/l*95.8%
Simplified95.8%
Taylor expanded in a around inf 44.6%
if -1.50000000000000013e-116 < t < -6.4999999999999996e-247Initial program 89.8%
associate-/l*96.6%
Simplified96.6%
Taylor expanded in a around inf 86.6%
Taylor expanded in y around inf 56.6%
div-sub56.6%
*-commutative56.6%
Simplified56.6%
Taylor expanded in z around inf 50.0%
associate-/l*53.3%
Simplified53.3%
if 4.8000000000000003e-258 < t < 1.9999999999999999e-147Initial program 88.0%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in a around inf 91.8%
Taylor expanded in y around inf 58.8%
div-sub58.8%
*-commutative58.8%
Simplified58.8%
Taylor expanded in z around inf 50.4%
Final simplification44.3%
(FPCore (x y z t a)
:precision binary64
(if (<= t -4.1e+124)
y
(if (<= t -8.8e-43)
(/ z (/ (- t) (- y x)))
(if (<= t 9e-60)
(+ x (/ y (/ a z)))
(if (<= t 4.6e+136) (- x (/ (* y t) a)) y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4.1e+124) {
tmp = y;
} else if (t <= -8.8e-43) {
tmp = z / (-t / (y - x));
} else if (t <= 9e-60) {
tmp = x + (y / (a / z));
} else if (t <= 4.6e+136) {
tmp = x - ((y * t) / a);
} else {
tmp = 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 (t <= (-4.1d+124)) then
tmp = y
else if (t <= (-8.8d-43)) then
tmp = z / (-t / (y - x))
else if (t <= 9d-60) then
tmp = x + (y / (a / z))
else if (t <= 4.6d+136) then
tmp = x - ((y * t) / a)
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4.1e+124) {
tmp = y;
} else if (t <= -8.8e-43) {
tmp = z / (-t / (y - x));
} else if (t <= 9e-60) {
tmp = x + (y / (a / z));
} else if (t <= 4.6e+136) {
tmp = x - ((y * t) / a);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -4.1e+124: tmp = y elif t <= -8.8e-43: tmp = z / (-t / (y - x)) elif t <= 9e-60: tmp = x + (y / (a / z)) elif t <= 4.6e+136: tmp = x - ((y * t) / a) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -4.1e+124) tmp = y; elseif (t <= -8.8e-43) tmp = Float64(z / Float64(Float64(-t) / Float64(y - x))); elseif (t <= 9e-60) tmp = Float64(x + Float64(y / Float64(a / z))); elseif (t <= 4.6e+136) tmp = Float64(x - Float64(Float64(y * t) / a)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -4.1e+124) tmp = y; elseif (t <= -8.8e-43) tmp = z / (-t / (y - x)); elseif (t <= 9e-60) tmp = x + (y / (a / z)); elseif (t <= 4.6e+136) tmp = x - ((y * t) / a); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -4.1e+124], y, If[LessEqual[t, -8.8e-43], N[(z / N[((-t) / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9e-60], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.6e+136], N[(x - N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], y]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.1 \cdot 10^{+124}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -8.8 \cdot 10^{-43}:\\
\;\;\;\;\frac{z}{\frac{-t}{y - x}}\\
\mathbf{elif}\;t \leq 9 \cdot 10^{-60}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{+136}:\\
\;\;\;\;x - \frac{y \cdot t}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -4.10000000000000001e124 or 4.6e136 < t Initial program 34.9%
associate-/l*73.9%
Simplified73.9%
Taylor expanded in t around inf 53.0%
if -4.10000000000000001e124 < t < -8.79999999999999989e-43Initial program 75.5%
associate-/l*91.1%
Simplified91.1%
associate-/l*75.5%
clear-num75.4%
inv-pow75.4%
Applied egg-rr75.4%
unpow-175.4%
associate-/r*88.8%
Simplified88.8%
Taylor expanded in z around -inf 42.4%
associate-/l*57.7%
Simplified57.7%
Taylor expanded in a around 0 48.1%
neg-mul-148.1%
distribute-neg-frac48.1%
Simplified48.1%
if -8.79999999999999989e-43 < t < 9.00000000000000001e-60Initial program 92.0%
associate-/l*98.1%
Simplified98.1%
Taylor expanded in t around 0 83.9%
Taylor expanded in y around inf 64.4%
associate-/l*69.7%
Simplified69.7%
if 9.00000000000000001e-60 < t < 4.6e136Initial program 80.6%
associate-/l*90.1%
Simplified90.1%
Taylor expanded in z around 0 60.1%
fma-def60.1%
associate-*r/60.3%
fma-def60.3%
neg-mul-160.3%
+-commutative60.3%
unsub-neg60.3%
Simplified60.3%
Taylor expanded in y around inf 59.6%
Taylor expanded in t around 0 52.9%
Final simplification60.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -0.19) (not (<= a 6.5e-63))) (+ x (/ (- y x) (/ a (- z t)))) (- y (/ (* (- x y) (- a z)) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -0.19) || !(a <= 6.5e-63)) {
tmp = x + ((y - x) / (a / (z - t)));
} else {
tmp = y - (((x - y) * (a - z)) / 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 ((a <= (-0.19d0)) .or. (.not. (a <= 6.5d-63))) then
tmp = x + ((y - x) / (a / (z - t)))
else
tmp = y - (((x - y) * (a - z)) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -0.19) || !(a <= 6.5e-63)) {
tmp = x + ((y - x) / (a / (z - t)));
} else {
tmp = y - (((x - y) * (a - z)) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -0.19) or not (a <= 6.5e-63): tmp = x + ((y - x) / (a / (z - t))) else: tmp = y - (((x - y) * (a - z)) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -0.19) || !(a <= 6.5e-63)) tmp = Float64(x + Float64(Float64(y - x) / Float64(a / Float64(z - t)))); else tmp = Float64(y - Float64(Float64(Float64(x - y) * Float64(a - z)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -0.19) || ~((a <= 6.5e-63))) tmp = x + ((y - x) / (a / (z - t))); else tmp = y - (((x - y) * (a - z)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -0.19], N[Not[LessEqual[a, 6.5e-63]], $MachinePrecision]], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y - N[(N[(N[(x - y), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -0.19 \lor \neg \left(a \leq 6.5 \cdot 10^{-63}\right):\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;y - \frac{\left(x - y\right) \cdot \left(a - z\right)}{t}\\
\end{array}
\end{array}
if a < -0.19 or 6.4999999999999998e-63 < a Initial program 74.0%
associate-/l*93.6%
Simplified93.6%
Taylor expanded in a around inf 77.5%
if -0.19 < a < 6.4999999999999998e-63Initial program 73.8%
associate-/l*84.8%
Simplified84.8%
Taylor expanded in t around -inf 73.4%
mul-1-neg73.4%
unsub-neg73.4%
div-sub72.4%
*-commutative72.4%
div-sub73.4%
distribute-rgt-out--73.4%
Simplified73.4%
Final simplification75.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (- y) (/ (- a t) t))))
(if (<= t -1.7e+127)
t_1
(if (<= t -8.8e-43)
(/ z (/ (- t) (- y x)))
(if (<= t 5.5e-31) (+ x (/ y (/ a z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -y / ((a - t) / t);
double tmp;
if (t <= -1.7e+127) {
tmp = t_1;
} else if (t <= -8.8e-43) {
tmp = z / (-t / (y - x));
} else if (t <= 5.5e-31) {
tmp = x + (y / (a / z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = -y / ((a - t) / t)
if (t <= (-1.7d+127)) then
tmp = t_1
else if (t <= (-8.8d-43)) then
tmp = z / (-t / (y - x))
else if (t <= 5.5d-31) then
tmp = x + (y / (a / z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = -y / ((a - t) / t);
double tmp;
if (t <= -1.7e+127) {
tmp = t_1;
} else if (t <= -8.8e-43) {
tmp = z / (-t / (y - x));
} else if (t <= 5.5e-31) {
tmp = x + (y / (a / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = -y / ((a - t) / t) tmp = 0 if t <= -1.7e+127: tmp = t_1 elif t <= -8.8e-43: tmp = z / (-t / (y - x)) elif t <= 5.5e-31: tmp = x + (y / (a / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(-y) / Float64(Float64(a - t) / t)) tmp = 0.0 if (t <= -1.7e+127) tmp = t_1; elseif (t <= -8.8e-43) tmp = Float64(z / Float64(Float64(-t) / Float64(y - x))); elseif (t <= 5.5e-31) tmp = Float64(x + Float64(y / Float64(a / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = -y / ((a - t) / t); tmp = 0.0; if (t <= -1.7e+127) tmp = t_1; elseif (t <= -8.8e-43) tmp = z / (-t / (y - x)); elseif (t <= 5.5e-31) tmp = x + (y / (a / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[((-y) / N[(N[(a - t), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.7e+127], t$95$1, If[LessEqual[t, -8.8e-43], N[(z / N[((-t) / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e-31], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{-y}{\frac{a - t}{t}}\\
\mathbf{if}\;t \leq -1.7 \cdot 10^{+127}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -8.8 \cdot 10^{-43}:\\
\;\;\;\;\frac{z}{\frac{-t}{y - x}}\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-31}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.69999999999999989e127 or 5.49999999999999958e-31 < t Initial program 48.3%
associate-/l*77.7%
Simplified77.7%
Taylor expanded in z around 0 34.7%
fma-def34.7%
associate-*r/51.4%
fma-def51.4%
neg-mul-151.4%
+-commutative51.4%
unsub-neg51.4%
Simplified51.4%
Taylor expanded in x around 0 32.7%
mul-1-neg32.7%
associate-/l*51.7%
distribute-neg-frac51.7%
Simplified51.7%
if -1.69999999999999989e127 < t < -8.79999999999999989e-43Initial program 73.8%
associate-/l*91.3%
Simplified91.3%
associate-/l*73.8%
clear-num73.7%
inv-pow73.7%
Applied egg-rr73.7%
unpow-173.7%
associate-/r*89.1%
Simplified89.1%
Taylor expanded in z around -inf 41.4%
associate-/l*56.4%
Simplified56.4%
Taylor expanded in a around 0 47.1%
neg-mul-147.1%
distribute-neg-frac47.1%
Simplified47.1%
if -8.79999999999999989e-43 < t < 5.49999999999999958e-31Initial program 91.6%
associate-/l*98.2%
Simplified98.2%
Taylor expanded in t around 0 83.8%
Taylor expanded in y around inf 64.3%
associate-/l*69.4%
Simplified69.4%
Final simplification59.7%
(FPCore (x y z t a)
:precision binary64
(if (<= t -9.6e+128)
y
(if (<= t 8e-60)
(+ x (/ y (/ a z)))
(if (<= t 8.4e+136) (- x (/ (* y t) a)) y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -9.6e+128) {
tmp = y;
} else if (t <= 8e-60) {
tmp = x + (y / (a / z));
} else if (t <= 8.4e+136) {
tmp = x - ((y * t) / a);
} else {
tmp = 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 (t <= (-9.6d+128)) then
tmp = y
else if (t <= 8d-60) then
tmp = x + (y / (a / z))
else if (t <= 8.4d+136) then
tmp = x - ((y * t) / a)
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -9.6e+128) {
tmp = y;
} else if (t <= 8e-60) {
tmp = x + (y / (a / z));
} else if (t <= 8.4e+136) {
tmp = x - ((y * t) / a);
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -9.6e+128: tmp = y elif t <= 8e-60: tmp = x + (y / (a / z)) elif t <= 8.4e+136: tmp = x - ((y * t) / a) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -9.6e+128) tmp = y; elseif (t <= 8e-60) tmp = Float64(x + Float64(y / Float64(a / z))); elseif (t <= 8.4e+136) tmp = Float64(x - Float64(Float64(y * t) / a)); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -9.6e+128) tmp = y; elseif (t <= 8e-60) tmp = x + (y / (a / z)); elseif (t <= 8.4e+136) tmp = x - ((y * t) / a); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -9.6e+128], y, If[LessEqual[t, 8e-60], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.4e+136], N[(x - N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.6 \cdot 10^{+128}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 8 \cdot 10^{-60}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 8.4 \cdot 10^{+136}:\\
\;\;\;\;x - \frac{y \cdot t}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -9.6000000000000007e128 or 8.3999999999999996e136 < t Initial program 34.3%
associate-/l*73.0%
Simplified73.0%
Taylor expanded in t around inf 54.6%
if -9.6000000000000007e128 < t < 7.9999999999999998e-60Initial program 87.4%
associate-/l*96.4%
Simplified96.4%
Taylor expanded in t around 0 71.4%
Taylor expanded in y around inf 54.1%
associate-/l*59.1%
Simplified59.1%
if 7.9999999999999998e-60 < t < 8.3999999999999996e136Initial program 80.6%
associate-/l*90.1%
Simplified90.1%
Taylor expanded in z around 0 60.1%
fma-def60.1%
associate-*r/60.3%
fma-def60.3%
neg-mul-160.3%
+-commutative60.3%
unsub-neg60.3%
Simplified60.3%
Taylor expanded in y around inf 59.6%
Taylor expanded in t around 0 52.9%
Final simplification57.3%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.22e+131) y (if (<= t 4.6e+136) (+ x (* z (/ y a))) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.22e+131) {
tmp = y;
} else if (t <= 4.6e+136) {
tmp = x + (z * (y / a));
} else {
tmp = 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 (t <= (-1.22d+131)) then
tmp = y
else if (t <= 4.6d+136) then
tmp = x + (z * (y / a))
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.22e+131) {
tmp = y;
} else if (t <= 4.6e+136) {
tmp = x + (z * (y / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.22e+131: tmp = y elif t <= 4.6e+136: tmp = x + (z * (y / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.22e+131) tmp = y; elseif (t <= 4.6e+136) tmp = Float64(x + Float64(z * Float64(y / a))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.22e+131) tmp = y; elseif (t <= 4.6e+136) tmp = x + (z * (y / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.22e+131], y, If[LessEqual[t, 4.6e+136], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.22 \cdot 10^{+131}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{+136}:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.22e131 or 4.6e136 < t Initial program 34.3%
associate-/l*73.0%
Simplified73.0%
Taylor expanded in t around inf 54.6%
if -1.22e131 < t < 4.6e136Initial program 86.4%
associate-/l*95.4%
Simplified95.4%
Taylor expanded in t around 0 66.8%
Taylor expanded in y around inf 50.5%
associate-/l*55.7%
associate-/r/53.4%
Simplified53.4%
Final simplification53.7%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.32e+132) y (if (<= t 7.5e+136) (+ x (/ y (/ a z))) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.32e+132) {
tmp = y;
} else if (t <= 7.5e+136) {
tmp = x + (y / (a / z));
} else {
tmp = 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 (t <= (-1.32d+132)) then
tmp = y
else if (t <= 7.5d+136) then
tmp = x + (y / (a / z))
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.32e+132) {
tmp = y;
} else if (t <= 7.5e+136) {
tmp = x + (y / (a / z));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.32e+132: tmp = y elif t <= 7.5e+136: tmp = x + (y / (a / z)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.32e+132) tmp = y; elseif (t <= 7.5e+136) tmp = Float64(x + Float64(y / Float64(a / z))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.32e+132) tmp = y; elseif (t <= 7.5e+136) tmp = x + (y / (a / z)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.32e+132], y, If[LessEqual[t, 7.5e+136], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.32 \cdot 10^{+132}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{+136}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.3199999999999999e132 or 7.5000000000000002e136 < t Initial program 34.3%
associate-/l*73.0%
Simplified73.0%
Taylor expanded in t around inf 54.6%
if -1.3199999999999999e132 < t < 7.5000000000000002e136Initial program 86.4%
associate-/l*95.4%
Simplified95.4%
Taylor expanded in t around 0 66.8%
Taylor expanded in y around inf 50.5%
associate-/l*55.7%
Simplified55.7%
Final simplification55.4%
(FPCore (x y z t a) :precision binary64 (if (<= t -5.8e-33) y (if (<= t 5.2e+136) x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -5.8e-33) {
tmp = y;
} else if (t <= 5.2e+136) {
tmp = x;
} else {
tmp = 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 (t <= (-5.8d-33)) then
tmp = y
else if (t <= 5.2d+136) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -5.8e-33) {
tmp = y;
} else if (t <= 5.2e+136) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -5.8e-33: tmp = y elif t <= 5.2e+136: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -5.8e-33) tmp = y; elseif (t <= 5.2e+136) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -5.8e-33) tmp = y; elseif (t <= 5.2e+136) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -5.8e-33], y, If[LessEqual[t, 5.2e+136], x, y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.8 \cdot 10^{-33}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+136}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -5.80000000000000005e-33 or 5.2000000000000003e136 < t Initial program 50.4%
associate-/l*80.5%
Simplified80.5%
Taylor expanded in t around inf 40.2%
if -5.80000000000000005e-33 < t < 5.2000000000000003e136Initial program 89.8%
associate-/l*96.6%
Simplified96.6%
Taylor expanded in a around inf 36.8%
Final simplification38.2%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
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
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 74.0%
associate-/l*90.1%
Simplified90.1%
Taylor expanded in a around inf 27.9%
Final simplification27.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(if (< a -1.6153062845442575e-142)
t_1
(if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
double tmp;
if (a < -1.6153062845442575e-142) {
tmp = t_1;
} else if (a < 3.774403170083174e-182) {
tmp = y - ((z / t) * (y - x));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y - x) / 1.0d0) * ((z - t) / (a - t)))
if (a < (-1.6153062845442575d-142)) then
tmp = t_1
else if (a < 3.774403170083174d-182) then
tmp = y - ((z / t) * (y - x))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
double tmp;
if (a < -1.6153062845442575e-142) {
tmp = t_1;
} else if (a < 3.774403170083174e-182) {
tmp = y - ((z / t) * (y - x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t))) tmp = 0 if a < -1.6153062845442575e-142: tmp = t_1 elif a < 3.774403170083174e-182: tmp = y - ((z / t) * (y - x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) / 1.0) * Float64(Float64(z - t) / Float64(a - t)))) tmp = 0.0 if (a < -1.6153062845442575e-142) tmp = t_1; elseif (a < 3.774403170083174e-182) tmp = Float64(y - Float64(Float64(z / t) * Float64(y - x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t))); tmp = 0.0; if (a < -1.6153062845442575e-142) tmp = t_1; elseif (a < 3.774403170083174e-182) tmp = y - ((z / t) * (y - x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[a, -1.6153062845442575e-142], t$95$1, If[Less[a, 3.774403170083174e-182], N[(y - N[(N[(z / t), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;a < -1.6153062845442575 \cdot 10^{-142}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a < 3.774403170083174 \cdot 10^{-182}:\\
\;\;\;\;y - \frac{z}{t} \cdot \left(y - x\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
herbie shell --seed 2023230
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
:precision binary64
:herbie-target
(if (< a -1.6153062845442575e-142) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t)))) (if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(+ x (/ (* (- y x) (- z t)) (- a t))))