
(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 22 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) (- t z)) (- a t)))))
(if (<= t_1 -1e-197)
(+ (* y (/ (- z t) (- a t))) (+ x (* x (/ (- t z) (- a t)))))
(if (<= t_1 2e-248)
(+ y (/ (* (- y x) (- a z)) t))
(+ x (/ (- y x) (/ (- a t) (- z t))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (((y - x) * (t - z)) / (a - t));
double tmp;
if (t_1 <= -1e-197) {
tmp = (y * ((z - t) / (a - t))) + (x + (x * ((t - z) / (a - t))));
} else if (t_1 <= 2e-248) {
tmp = y + (((y - x) * (a - z)) / t);
} else {
tmp = x + ((y - x) / ((a - t) / (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) * (t - z)) / (a - t))
if (t_1 <= (-1d-197)) then
tmp = (y * ((z - t) / (a - t))) + (x + (x * ((t - z) / (a - t))))
else if (t_1 <= 2d-248) then
tmp = y + (((y - x) * (a - z)) / t)
else
tmp = x + ((y - x) / ((a - t) / (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) * (t - z)) / (a - t));
double tmp;
if (t_1 <= -1e-197) {
tmp = (y * ((z - t) / (a - t))) + (x + (x * ((t - z) / (a - t))));
} else if (t_1 <= 2e-248) {
tmp = y + (((y - x) * (a - z)) / t);
} else {
tmp = x + ((y - x) / ((a - t) / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (((y - x) * (t - z)) / (a - t)) tmp = 0 if t_1 <= -1e-197: tmp = (y * ((z - t) / (a - t))) + (x + (x * ((t - z) / (a - t)))) elif t_1 <= 2e-248: tmp = y + (((y - x) * (a - z)) / t) else: tmp = x + ((y - x) / ((a - t) / (z - t))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(Float64(y - x) * Float64(t - z)) / Float64(a - t))) tmp = 0.0 if (t_1 <= -1e-197) tmp = Float64(Float64(y * Float64(Float64(z - t) / Float64(a - t))) + Float64(x + Float64(x * Float64(Float64(t - z) / Float64(a - t))))); elseif (t_1 <= 2e-248) tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); else tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / Float64(z - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (((y - x) * (t - z)) / (a - t)); tmp = 0.0; if (t_1 <= -1e-197) tmp = (y * ((z - t) / (a - t))) + (x + (x * ((t - z) / (a - t)))); elseif (t_1 <= 2e-248) tmp = y + (((y - x) * (a - z)) / t); else tmp = x + ((y - x) / ((a - t) / (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[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e-197], N[(N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x + N[(x * N[(N[(t - z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e-248], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{\left(y - x\right) \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -1 \cdot 10^{-197}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t} + \left(x + x \cdot \frac{t - z}{a - t}\right)\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{-248}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -9.9999999999999999e-198Initial program 68.6%
associate-*l/83.6%
Simplified83.6%
+-commutative83.6%
associate-/r/88.4%
div-sub86.7%
associate-+l-93.7%
div-inv92.8%
clear-num92.8%
div-inv92.8%
clear-num92.8%
Applied egg-rr92.8%
if -9.9999999999999999e-198 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 1.99999999999999996e-248Initial program 8.3%
associate-*l/8.4%
Simplified8.4%
Taylor expanded in t around inf 99.6%
associate--l+99.6%
associate-*r/99.6%
associate-*r/99.6%
div-sub99.6%
distribute-lft-out--99.6%
mul-1-neg99.6%
distribute-neg-frac99.6%
unsub-neg99.6%
distribute-rgt-out--99.6%
Simplified99.6%
if 1.99999999999999996e-248 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 76.9%
associate-/l*88.9%
Simplified88.9%
Final simplification91.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* (- z t) (/ (- x y) (- a t)))))
(t_2 (- x (/ (* (- y x) (- t z)) (- a t)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -1e-197)
t_2
(if (<= t_2 2e-248)
(+ y (/ (* (- y x) (- a z)) t))
(if (<= t_2 2e+307) t_2 t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - ((z - t) * ((x - y) / (a - t)));
double t_2 = x - (((y - x) * (t - z)) / (a - t));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -1e-197) {
tmp = t_2;
} else if (t_2 <= 2e-248) {
tmp = y + (((y - x) * (a - z)) / t);
} else if (t_2 <= 2e+307) {
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 - ((z - t) * ((x - y) / (a - t)));
double t_2 = x - (((y - x) * (t - z)) / (a - t));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_2 <= -1e-197) {
tmp = t_2;
} else if (t_2 <= 2e-248) {
tmp = y + (((y - x) * (a - z)) / t);
} else if (t_2 <= 2e+307) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - ((z - t) * ((x - y) / (a - t))) t_2 = x - (((y - x) * (t - z)) / (a - t)) tmp = 0 if t_2 <= -math.inf: tmp = t_1 elif t_2 <= -1e-197: tmp = t_2 elif t_2 <= 2e-248: tmp = y + (((y - x) * (a - z)) / t) elif t_2 <= 2e+307: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(z - t) * Float64(Float64(x - y) / Float64(a - t)))) t_2 = Float64(x - Float64(Float64(Float64(y - x) * Float64(t - z)) / Float64(a - t))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -1e-197) tmp = t_2; elseif (t_2 <= 2e-248) tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); elseif (t_2 <= 2e+307) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - ((z - t) * ((x - y) / (a - t))); t_2 = x - (((y - x) * (t - z)) / (a - t)); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1; elseif (t_2 <= -1e-197) tmp = t_2; elseif (t_2 <= 2e-248) tmp = y + (((y - x) * (a - z)) / t); elseif (t_2 <= 2e+307) 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[(N[(z - t), $MachinePrecision] * N[(N[(x - y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(N[(N[(y - x), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -1e-197], t$95$2, If[LessEqual[t$95$2, 2e-248], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+307], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \left(z - t\right) \cdot \frac{x - y}{a - t}\\
t_2 := x - \frac{\left(y - x\right) \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 \leq -1 \cdot 10^{-197}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{-248}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{+307}:\\
\;\;\;\;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 1.99999999999999997e307 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 37.3%
associate-*l/77.3%
Simplified77.3%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -9.9999999999999999e-198 or 1.99999999999999996e-248 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 1.99999999999999997e307Initial program 97.7%
if -9.9999999999999999e-198 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 1.99999999999999996e-248Initial program 8.3%
associate-*l/8.4%
Simplified8.4%
Taylor expanded in t around inf 99.6%
associate--l+99.6%
associate-*r/99.6%
associate-*r/99.6%
div-sub99.6%
distribute-lft-out--99.6%
mul-1-neg99.6%
distribute-neg-frac99.6%
unsub-neg99.6%
distribute-rgt-out--99.6%
Simplified99.6%
Final simplification90.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ (* (- y x) (- t z)) (- a t)))))
(if (or (<= t_1 -1e-197) (not (<= t_1 2e-248)))
(+ x (/ (- y x) (/ (- a t) (- z t))))
(+ y (/ (* (- y x) (- a z)) t)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (((y - x) * (t - z)) / (a - t));
double tmp;
if ((t_1 <= -1e-197) || !(t_1 <= 2e-248)) {
tmp = x + ((y - x) / ((a - t) / (z - t)));
} else {
tmp = y + (((y - x) * (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) * (t - z)) / (a - t))
if ((t_1 <= (-1d-197)) .or. (.not. (t_1 <= 2d-248))) then
tmp = x + ((y - x) / ((a - t) / (z - t)))
else
tmp = y + (((y - x) * (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) * (t - z)) / (a - t));
double tmp;
if ((t_1 <= -1e-197) || !(t_1 <= 2e-248)) {
tmp = x + ((y - x) / ((a - t) / (z - t)));
} else {
tmp = y + (((y - x) * (a - z)) / t);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (((y - x) * (t - z)) / (a - t)) tmp = 0 if (t_1 <= -1e-197) or not (t_1 <= 2e-248): tmp = x + ((y - x) / ((a - t) / (z - t))) else: tmp = y + (((y - x) * (a - z)) / t) return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(Float64(y - x) * Float64(t - z)) / Float64(a - t))) tmp = 0.0 if ((t_1 <= -1e-197) || !(t_1 <= 2e-248)) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / Float64(z - t)))); else tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (((y - x) * (t - z)) / (a - t)); tmp = 0.0; if ((t_1 <= -1e-197) || ~((t_1 <= 2e-248))) tmp = x + ((y - x) / ((a - t) / (z - t))); else tmp = y + (((y - x) * (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[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -1e-197], N[Not[LessEqual[t$95$1, 2e-248]], $MachinePrecision]], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(N[(N[(y - x), $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(t - z\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -1 \cdot 10^{-197} \lor \neg \left(t_1 \leq 2 \cdot 10^{-248}\right):\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{\left(y - x\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.9999999999999999e-198 or 1.99999999999999996e-248 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 72.8%
associate-/l*88.7%
Simplified88.7%
if -9.9999999999999999e-198 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 1.99999999999999996e-248Initial program 8.3%
associate-*l/8.4%
Simplified8.4%
Taylor expanded in t around inf 99.6%
associate--l+99.6%
associate-*r/99.6%
associate-*r/99.6%
div-sub99.6%
distribute-lft-out--99.6%
mul-1-neg99.6%
distribute-neg-frac99.6%
unsub-neg99.6%
distribute-rgt-out--99.6%
Simplified99.6%
Final simplification89.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* (/ y (- a t)) (- t z)))))
(if (<= a -2.8e-10)
t_1
(if (<= a -4.5e-148)
(/ 1.0 (/ (/ (- a t) z) (- y x)))
(if (<= a -2.4e-214)
(* y (/ (- z t) (- a t)))
(if (<= a 9.5e-124)
(+ y (/ (* (- y x) (- a z)) t))
(if (<= a 2.2e-28)
(* z (/ (- y x) (- a t)))
(if (<= a 1.1e-8) y t_1))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - ((y / (a - t)) * (t - z));
double tmp;
if (a <= -2.8e-10) {
tmp = t_1;
} else if (a <= -4.5e-148) {
tmp = 1.0 / (((a - t) / z) / (y - x));
} else if (a <= -2.4e-214) {
tmp = y * ((z - t) / (a - t));
} else if (a <= 9.5e-124) {
tmp = y + (((y - x) * (a - z)) / t);
} else if (a <= 2.2e-28) {
tmp = z * ((y - x) / (a - t));
} else if (a <= 1.1e-8) {
tmp = y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x - ((y / (a - t)) * (t - z))
if (a <= (-2.8d-10)) then
tmp = t_1
else if (a <= (-4.5d-148)) then
tmp = 1.0d0 / (((a - t) / z) / (y - x))
else if (a <= (-2.4d-214)) then
tmp = y * ((z - t) / (a - t))
else if (a <= 9.5d-124) then
tmp = y + (((y - x) * (a - z)) / t)
else if (a <= 2.2d-28) then
tmp = z * ((y - x) / (a - t))
else if (a <= 1.1d-8) then
tmp = y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x - ((y / (a - t)) * (t - z));
double tmp;
if (a <= -2.8e-10) {
tmp = t_1;
} else if (a <= -4.5e-148) {
tmp = 1.0 / (((a - t) / z) / (y - x));
} else if (a <= -2.4e-214) {
tmp = y * ((z - t) / (a - t));
} else if (a <= 9.5e-124) {
tmp = y + (((y - x) * (a - z)) / t);
} else if (a <= 2.2e-28) {
tmp = z * ((y - x) / (a - t));
} else if (a <= 1.1e-8) {
tmp = y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - ((y / (a - t)) * (t - z)) tmp = 0 if a <= -2.8e-10: tmp = t_1 elif a <= -4.5e-148: tmp = 1.0 / (((a - t) / z) / (y - x)) elif a <= -2.4e-214: tmp = y * ((z - t) / (a - t)) elif a <= 9.5e-124: tmp = y + (((y - x) * (a - z)) / t) elif a <= 2.2e-28: tmp = z * ((y - x) / (a - t)) elif a <= 1.1e-8: tmp = y else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(y / Float64(a - t)) * Float64(t - z))) tmp = 0.0 if (a <= -2.8e-10) tmp = t_1; elseif (a <= -4.5e-148) tmp = Float64(1.0 / Float64(Float64(Float64(a - t) / z) / Float64(y - x))); elseif (a <= -2.4e-214) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (a <= 9.5e-124) tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); elseif (a <= 2.2e-28) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif (a <= 1.1e-8) tmp = y; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - ((y / (a - t)) * (t - z)); tmp = 0.0; if (a <= -2.8e-10) tmp = t_1; elseif (a <= -4.5e-148) tmp = 1.0 / (((a - t) / z) / (y - x)); elseif (a <= -2.4e-214) tmp = y * ((z - t) / (a - t)); elseif (a <= 9.5e-124) tmp = y + (((y - x) * (a - z)) / t); elseif (a <= 2.2e-28) tmp = z * ((y - x) / (a - t)); elseif (a <= 1.1e-8) tmp = y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.8e-10], t$95$1, If[LessEqual[a, -4.5e-148], N[(1.0 / N[(N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision] / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.4e-214], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e-124], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.2e-28], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.1e-8], y, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{y}{a - t} \cdot \left(t - z\right)\\
\mathbf{if}\;a \leq -2.8 \cdot 10^{-10}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -4.5 \cdot 10^{-148}:\\
\;\;\;\;\frac{1}{\frac{\frac{a - t}{z}}{y - x}}\\
\mathbf{elif}\;a \leq -2.4 \cdot 10^{-214}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-124}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{-28}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{-8}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -2.80000000000000015e-10 or 1.0999999999999999e-8 < a Initial program 66.2%
associate-*l/88.4%
Simplified88.4%
Taylor expanded in y around inf 83.2%
if -2.80000000000000015e-10 < a < -4.50000000000000015e-148Initial program 71.1%
associate-*l/71.3%
Simplified71.3%
Taylor expanded in z around -inf 61.8%
clear-num61.8%
inv-pow61.8%
Applied egg-rr61.8%
unpow-161.8%
associate-/r*68.2%
Simplified68.2%
if -4.50000000000000015e-148 < a < -2.4000000000000002e-214Initial program 67.5%
associate-/l*67.6%
Simplified67.6%
clear-num67.4%
inv-pow67.4%
Applied egg-rr67.4%
unpow-167.4%
Simplified67.4%
Taylor expanded in x around 0 74.1%
associate-*r/80.4%
Simplified80.4%
if -2.4000000000000002e-214 < a < 9.49999999999999989e-124Initial program 67.8%
associate-*l/67.9%
Simplified67.9%
Taylor expanded in t around inf 85.8%
associate--l+85.8%
associate-*r/85.8%
associate-*r/85.8%
div-sub85.8%
distribute-lft-out--85.8%
mul-1-neg85.8%
distribute-neg-frac85.8%
unsub-neg85.8%
distribute-rgt-out--85.8%
Simplified85.8%
if 9.49999999999999989e-124 < a < 2.19999999999999996e-28Initial program 69.0%
associate-*l/77.3%
Simplified77.3%
Taylor expanded in z around inf 79.8%
div-sub79.8%
Simplified79.8%
if 2.19999999999999996e-28 < a < 1.0999999999999999e-8Initial program 43.7%
associate-*l/42.8%
Simplified42.8%
Taylor expanded in t around inf 100.0%
Final simplification82.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))) (t_2 (* z (/ (- y x) (- a t)))))
(if (<= z -9.5e-14)
t_2
(if (<= z -6.8e-220)
t_1
(if (<= z -3.5e-300)
x
(if (<= z 1.8e-228)
t_1
(if (<= z 1.9e-152) x (if (<= z 0.072) 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 = z * ((y - x) / (a - t));
double tmp;
if (z <= -9.5e-14) {
tmp = t_2;
} else if (z <= -6.8e-220) {
tmp = t_1;
} else if (z <= -3.5e-300) {
tmp = x;
} else if (z <= 1.8e-228) {
tmp = t_1;
} else if (z <= 1.9e-152) {
tmp = x;
} else if (z <= 0.072) {
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 = z * ((y - x) / (a - t))
if (z <= (-9.5d-14)) then
tmp = t_2
else if (z <= (-6.8d-220)) then
tmp = t_1
else if (z <= (-3.5d-300)) then
tmp = x
else if (z <= 1.8d-228) then
tmp = t_1
else if (z <= 1.9d-152) then
tmp = x
else if (z <= 0.072d0) 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 = z * ((y - x) / (a - t));
double tmp;
if (z <= -9.5e-14) {
tmp = t_2;
} else if (z <= -6.8e-220) {
tmp = t_1;
} else if (z <= -3.5e-300) {
tmp = x;
} else if (z <= 1.8e-228) {
tmp = t_1;
} else if (z <= 1.9e-152) {
tmp = x;
} else if (z <= 0.072) {
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 = z * ((y - x) / (a - t)) tmp = 0 if z <= -9.5e-14: tmp = t_2 elif z <= -6.8e-220: tmp = t_1 elif z <= -3.5e-300: tmp = x elif z <= 1.8e-228: tmp = t_1 elif z <= 1.9e-152: tmp = x elif z <= 0.072: 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(z * Float64(Float64(y - x) / Float64(a - t))) tmp = 0.0 if (z <= -9.5e-14) tmp = t_2; elseif (z <= -6.8e-220) tmp = t_1; elseif (z <= -3.5e-300) tmp = x; elseif (z <= 1.8e-228) tmp = t_1; elseif (z <= 1.9e-152) tmp = x; elseif (z <= 0.072) 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 = z * ((y - x) / (a - t)); tmp = 0.0; if (z <= -9.5e-14) tmp = t_2; elseif (z <= -6.8e-220) tmp = t_1; elseif (z <= -3.5e-300) tmp = x; elseif (z <= 1.8e-228) tmp = t_1; elseif (z <= 1.9e-152) tmp = x; elseif (z <= 0.072) 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[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9.5e-14], t$95$2, If[LessEqual[z, -6.8e-220], t$95$1, If[LessEqual[z, -3.5e-300], x, If[LessEqual[z, 1.8e-228], t$95$1, If[LessEqual[z, 1.9e-152], x, If[LessEqual[z, 0.072], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
t_2 := z \cdot \frac{y - x}{a - t}\\
\mathbf{if}\;z \leq -9.5 \cdot 10^{-14}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -6.8 \cdot 10^{-220}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -3.5 \cdot 10^{-300}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{-228}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{-152}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 0.072:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -9.4999999999999999e-14 or 0.0719999999999999946 < z Initial program 69.8%
associate-*l/84.5%
Simplified84.5%
Taylor expanded in z around inf 73.3%
div-sub74.1%
Simplified74.1%
if -9.4999999999999999e-14 < z < -6.79999999999999987e-220 or -3.5000000000000002e-300 < z < 1.8000000000000001e-228 or 1.90000000000000006e-152 < z < 0.0719999999999999946Initial program 64.8%
associate-/l*77.6%
Simplified77.6%
clear-num77.6%
inv-pow77.6%
Applied egg-rr77.6%
unpow-177.6%
Simplified77.6%
Taylor expanded in x around 0 49.6%
associate-*r/61.4%
Simplified61.4%
if -6.79999999999999987e-220 < z < -3.5000000000000002e-300 or 1.8000000000000001e-228 < z < 1.90000000000000006e-152Initial program 64.2%
associate-*l/70.9%
Simplified70.9%
Taylor expanded in a around inf 59.3%
Final simplification67.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= z -5.2e-9)
(* z (/ (- y x) (- a t)))
(if (<= z -4.6e-219)
t_1
(if (<= z -2.3e-300)
x
(if (<= z 4.6e-228)
t_1
(if (<= z 1.46e-152)
x
(if (<= z 0.0033) t_1 (* (- y x) (/ z (- a t)))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (z <= -5.2e-9) {
tmp = z * ((y - x) / (a - t));
} else if (z <= -4.6e-219) {
tmp = t_1;
} else if (z <= -2.3e-300) {
tmp = x;
} else if (z <= 4.6e-228) {
tmp = t_1;
} else if (z <= 1.46e-152) {
tmp = x;
} else if (z <= 0.0033) {
tmp = t_1;
} else {
tmp = (y - x) * (z / (a - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (z <= (-5.2d-9)) then
tmp = z * ((y - x) / (a - t))
else if (z <= (-4.6d-219)) then
tmp = t_1
else if (z <= (-2.3d-300)) then
tmp = x
else if (z <= 4.6d-228) then
tmp = t_1
else if (z <= 1.46d-152) then
tmp = x
else if (z <= 0.0033d0) then
tmp = t_1
else
tmp = (y - x) * (z / (a - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (z <= -5.2e-9) {
tmp = z * ((y - x) / (a - t));
} else if (z <= -4.6e-219) {
tmp = t_1;
} else if (z <= -2.3e-300) {
tmp = x;
} else if (z <= 4.6e-228) {
tmp = t_1;
} else if (z <= 1.46e-152) {
tmp = x;
} else if (z <= 0.0033) {
tmp = t_1;
} else {
tmp = (y - x) * (z / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if z <= -5.2e-9: tmp = z * ((y - x) / (a - t)) elif z <= -4.6e-219: tmp = t_1 elif z <= -2.3e-300: tmp = x elif z <= 4.6e-228: tmp = t_1 elif z <= 1.46e-152: tmp = x elif z <= 0.0033: tmp = t_1 else: tmp = (y - x) * (z / (a - t)) return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (z <= -5.2e-9) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif (z <= -4.6e-219) tmp = t_1; elseif (z <= -2.3e-300) tmp = x; elseif (z <= 4.6e-228) tmp = t_1; elseif (z <= 1.46e-152) tmp = x; elseif (z <= 0.0033) tmp = t_1; else tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (z <= -5.2e-9) tmp = z * ((y - x) / (a - t)); elseif (z <= -4.6e-219) tmp = t_1; elseif (z <= -2.3e-300) tmp = x; elseif (z <= 4.6e-228) tmp = t_1; elseif (z <= 1.46e-152) tmp = x; elseif (z <= 0.0033) tmp = t_1; else tmp = (y - x) * (z / (a - t)); 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[z, -5.2e-9], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.6e-219], t$95$1, If[LessEqual[z, -2.3e-300], x, If[LessEqual[z, 4.6e-228], t$95$1, If[LessEqual[z, 1.46e-152], x, If[LessEqual[z, 0.0033], t$95$1, N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;z \leq -5.2 \cdot 10^{-9}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;z \leq -4.6 \cdot 10^{-219}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.3 \cdot 10^{-300}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{-228}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.46 \cdot 10^{-152}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 0.0033:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\end{array}
\end{array}
if z < -5.2000000000000002e-9Initial program 68.6%
associate-*l/79.6%
Simplified79.6%
Taylor expanded in z around inf 67.2%
div-sub67.2%
Simplified67.2%
if -5.2000000000000002e-9 < z < -4.59999999999999977e-219 or -2.30000000000000001e-300 < z < 4.5999999999999998e-228 or 1.46000000000000001e-152 < z < 0.0033Initial program 64.8%
associate-/l*77.6%
Simplified77.6%
clear-num77.6%
inv-pow77.6%
Applied egg-rr77.6%
unpow-177.6%
Simplified77.6%
Taylor expanded in x around 0 49.6%
associate-*r/61.4%
Simplified61.4%
if -4.59999999999999977e-219 < z < -2.30000000000000001e-300 or 4.5999999999999998e-228 < z < 1.46000000000000001e-152Initial program 64.2%
associate-*l/70.9%
Simplified70.9%
Taylor expanded in a around inf 59.3%
if 0.0033 < z Initial program 70.8%
associate-*l/88.8%
Simplified88.8%
+-commutative88.8%
associate-*l/70.8%
div-inv70.7%
fma-def70.7%
Applied egg-rr70.7%
Taylor expanded in z around -inf 66.6%
associate-/l*80.1%
associate-/r/81.6%
Simplified81.6%
Final simplification67.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ t (- y x))))
(if (or (<= t -3.1e+214) (not (<= t 2.6e+109)))
(+ y (- (/ a t_1) (/ z t_1)))
(+ x (/ (- y x) (/ (- a t) (- z t)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t / (y - x);
double tmp;
if ((t <= -3.1e+214) || !(t <= 2.6e+109)) {
tmp = y + ((a / t_1) - (z / t_1));
} else {
tmp = x + ((y - x) / ((a - t) / (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 = t / (y - x)
if ((t <= (-3.1d+214)) .or. (.not. (t <= 2.6d+109))) then
tmp = y + ((a / t_1) - (z / t_1))
else
tmp = x + ((y - x) / ((a - t) / (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 = t / (y - x);
double tmp;
if ((t <= -3.1e+214) || !(t <= 2.6e+109)) {
tmp = y + ((a / t_1) - (z / t_1));
} else {
tmp = x + ((y - x) / ((a - t) / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t / (y - x) tmp = 0 if (t <= -3.1e+214) or not (t <= 2.6e+109): tmp = y + ((a / t_1) - (z / t_1)) else: tmp = x + ((y - x) / ((a - t) / (z - t))) return tmp
function code(x, y, z, t, a) t_1 = Float64(t / Float64(y - x)) tmp = 0.0 if ((t <= -3.1e+214) || !(t <= 2.6e+109)) tmp = Float64(y + Float64(Float64(a / t_1) - Float64(z / t_1))); else tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / Float64(z - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t / (y - x); tmp = 0.0; if ((t <= -3.1e+214) || ~((t <= 2.6e+109))) tmp = y + ((a / t_1) - (z / t_1)); else tmp = x + ((y - x) / ((a - t) / (z - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t / N[(y - x), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t, -3.1e+214], N[Not[LessEqual[t, 2.6e+109]], $MachinePrecision]], N[(y + N[(N[(a / t$95$1), $MachinePrecision] - N[(z / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{y - x}\\
\mathbf{if}\;t \leq -3.1 \cdot 10^{+214} \lor \neg \left(t \leq 2.6 \cdot 10^{+109}\right):\\
\;\;\;\;y + \left(\frac{a}{t_1} - \frac{z}{t_1}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\
\end{array}
\end{array}
if t < -3.09999999999999979e214 or 2.5999999999999998e109 < t Initial program 22.6%
associate-*l/47.8%
Simplified47.8%
+-commutative47.8%
associate-*l/22.6%
div-inv22.6%
fma-def22.7%
Applied egg-rr22.7%
Taylor expanded in t around inf 69.0%
+-commutative69.0%
mul-1-neg69.0%
unsub-neg69.0%
associate-/l*75.1%
associate-/l*85.3%
Simplified85.3%
if -3.09999999999999979e214 < t < 2.5999999999999998e109Initial program 82.4%
associate-/l*92.1%
Simplified92.1%
Final simplification90.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* z (/ (- x y) t))))
(if (<= a -1.7e+97)
x
(if (<= a -3e-174)
t_1
(if (<= a -4e-225)
y
(if (<= a 3.9e-233)
t_1
(if (<= a 2.2e-106)
y
(if (<= a 2.95e-30) t_1 (if (<= a 2800.0) y x)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = z * ((x - y) / t);
double tmp;
if (a <= -1.7e+97) {
tmp = x;
} else if (a <= -3e-174) {
tmp = t_1;
} else if (a <= -4e-225) {
tmp = y;
} else if (a <= 3.9e-233) {
tmp = t_1;
} else if (a <= 2.2e-106) {
tmp = y;
} else if (a <= 2.95e-30) {
tmp = t_1;
} else if (a <= 2800.0) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = z * ((x - y) / t)
if (a <= (-1.7d+97)) then
tmp = x
else if (a <= (-3d-174)) then
tmp = t_1
else if (a <= (-4d-225)) then
tmp = y
else if (a <= 3.9d-233) then
tmp = t_1
else if (a <= 2.2d-106) then
tmp = y
else if (a <= 2.95d-30) then
tmp = t_1
else if (a <= 2800.0d0) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = z * ((x - y) / t);
double tmp;
if (a <= -1.7e+97) {
tmp = x;
} else if (a <= -3e-174) {
tmp = t_1;
} else if (a <= -4e-225) {
tmp = y;
} else if (a <= 3.9e-233) {
tmp = t_1;
} else if (a <= 2.2e-106) {
tmp = y;
} else if (a <= 2.95e-30) {
tmp = t_1;
} else if (a <= 2800.0) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = z * ((x - y) / t) tmp = 0 if a <= -1.7e+97: tmp = x elif a <= -3e-174: tmp = t_1 elif a <= -4e-225: tmp = y elif a <= 3.9e-233: tmp = t_1 elif a <= 2.2e-106: tmp = y elif a <= 2.95e-30: tmp = t_1 elif a <= 2800.0: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(z * Float64(Float64(x - y) / t)) tmp = 0.0 if (a <= -1.7e+97) tmp = x; elseif (a <= -3e-174) tmp = t_1; elseif (a <= -4e-225) tmp = y; elseif (a <= 3.9e-233) tmp = t_1; elseif (a <= 2.2e-106) tmp = y; elseif (a <= 2.95e-30) tmp = t_1; elseif (a <= 2800.0) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = z * ((x - y) / t); tmp = 0.0; if (a <= -1.7e+97) tmp = x; elseif (a <= -3e-174) tmp = t_1; elseif (a <= -4e-225) tmp = y; elseif (a <= 3.9e-233) tmp = t_1; elseif (a <= 2.2e-106) tmp = y; elseif (a <= 2.95e-30) tmp = t_1; elseif (a <= 2800.0) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(z * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.7e+97], x, If[LessEqual[a, -3e-174], t$95$1, If[LessEqual[a, -4e-225], y, If[LessEqual[a, 3.9e-233], t$95$1, If[LessEqual[a, 2.2e-106], y, If[LessEqual[a, 2.95e-30], t$95$1, If[LessEqual[a, 2800.0], y, x]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \frac{x - y}{t}\\
\mathbf{if}\;a \leq -1.7 \cdot 10^{+97}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -3 \cdot 10^{-174}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -4 \cdot 10^{-225}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq 3.9 \cdot 10^{-233}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{-106}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq 2.95 \cdot 10^{-30}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2800:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.70000000000000005e97 or 2800 < a Initial program 65.8%
associate-*l/88.3%
Simplified88.3%
Taylor expanded in a around inf 51.6%
if -1.70000000000000005e97 < a < -3.00000000000000021e-174 or -3.9999999999999998e-225 < a < 3.9000000000000001e-233 or 2.19999999999999994e-106 < a < 2.9499999999999999e-30Initial program 69.3%
associate-*l/72.0%
Simplified72.0%
Taylor expanded in a around 0 54.1%
associate-*r/54.1%
neg-mul-154.1%
Simplified54.1%
Taylor expanded in z around inf 50.1%
div-sub50.1%
Simplified50.1%
if -3.00000000000000021e-174 < a < -3.9999999999999998e-225 or 3.9000000000000001e-233 < a < 2.19999999999999994e-106 or 2.9499999999999999e-30 < a < 2800Initial program 64.8%
associate-*l/64.7%
Simplified64.7%
Taylor expanded in t around inf 54.7%
Final simplification51.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -1.65e+53)
t_1
(if (<= t 1.35e-145)
(+ x (/ (- y x) (/ (- a t) z)))
(if (<= t 2.95e+109)
(- x (* (/ y (- a t)) (- t z)))
(if (<= t 3.5e+170)
(* z (/ (- x y) t))
(if (<= t 1.35e+272) t_1 (+ y (/ a (/ t (- y x)))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -1.65e+53) {
tmp = t_1;
} else if (t <= 1.35e-145) {
tmp = x + ((y - x) / ((a - t) / z));
} else if (t <= 2.95e+109) {
tmp = x - ((y / (a - t)) * (t - z));
} else if (t <= 3.5e+170) {
tmp = z * ((x - y) / t);
} else if (t <= 1.35e+272) {
tmp = t_1;
} else {
tmp = y + (a / (t / (y - x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (t <= (-1.65d+53)) then
tmp = t_1
else if (t <= 1.35d-145) then
tmp = x + ((y - x) / ((a - t) / z))
else if (t <= 2.95d+109) then
tmp = x - ((y / (a - t)) * (t - z))
else if (t <= 3.5d+170) then
tmp = z * ((x - y) / t)
else if (t <= 1.35d+272) then
tmp = t_1
else
tmp = y + (a / (t / (y - x)))
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 <= -1.65e+53) {
tmp = t_1;
} else if (t <= 1.35e-145) {
tmp = x + ((y - x) / ((a - t) / z));
} else if (t <= 2.95e+109) {
tmp = x - ((y / (a - t)) * (t - z));
} else if (t <= 3.5e+170) {
tmp = z * ((x - y) / t);
} else if (t <= 1.35e+272) {
tmp = t_1;
} else {
tmp = y + (a / (t / (y - x)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -1.65e+53: tmp = t_1 elif t <= 1.35e-145: tmp = x + ((y - x) / ((a - t) / z)) elif t <= 2.95e+109: tmp = x - ((y / (a - t)) * (t - z)) elif t <= 3.5e+170: tmp = z * ((x - y) / t) elif t <= 1.35e+272: tmp = t_1 else: tmp = y + (a / (t / (y - x))) 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 <= -1.65e+53) tmp = t_1; elseif (t <= 1.35e-145) tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / z))); elseif (t <= 2.95e+109) tmp = Float64(x - Float64(Float64(y / Float64(a - t)) * Float64(t - z))); elseif (t <= 3.5e+170) tmp = Float64(z * Float64(Float64(x - y) / t)); elseif (t <= 1.35e+272) tmp = t_1; else tmp = Float64(y + Float64(a / Float64(t / Float64(y - x)))); 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 <= -1.65e+53) tmp = t_1; elseif (t <= 1.35e-145) tmp = x + ((y - x) / ((a - t) / z)); elseif (t <= 2.95e+109) tmp = x - ((y / (a - t)) * (t - z)); elseif (t <= 3.5e+170) tmp = z * ((x - y) / t); elseif (t <= 1.35e+272) tmp = t_1; else tmp = y + (a / (t / (y - x))); 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, -1.65e+53], t$95$1, If[LessEqual[t, 1.35e-145], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.95e+109], N[(x - N[(N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e+170], N[(z * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.35e+272], t$95$1, N[(y + N[(a / N[(t / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -1.65 \cdot 10^{+53}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{-145}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z}}\\
\mathbf{elif}\;t \leq 2.95 \cdot 10^{+109}:\\
\;\;\;\;x - \frac{y}{a - t} \cdot \left(t - z\right)\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{+170}:\\
\;\;\;\;z \cdot \frac{x - y}{t}\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{+272}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y + \frac{a}{\frac{t}{y - x}}\\
\end{array}
\end{array}
if t < -1.6500000000000001e53 or 3.50000000000000005e170 < t < 1.35000000000000006e272Initial program 31.1%
associate-/l*66.3%
Simplified66.3%
clear-num66.2%
inv-pow66.2%
Applied egg-rr66.2%
unpow-166.2%
Simplified66.2%
Taylor expanded in x around 0 41.3%
associate-*r/69.5%
Simplified69.5%
if -1.6500000000000001e53 < t < 1.35e-145Initial program 92.4%
associate-/l*98.6%
Simplified98.6%
Taylor expanded in z around inf 85.5%
if 1.35e-145 < t < 2.9499999999999999e109Initial program 75.7%
associate-*l/88.0%
Simplified88.0%
Taylor expanded in y around inf 80.5%
if 2.9499999999999999e109 < t < 3.50000000000000005e170Initial program 44.8%
associate-*l/51.3%
Simplified51.3%
Taylor expanded in a around 0 30.4%
associate-*r/30.4%
neg-mul-130.4%
Simplified30.4%
Taylor expanded in z around inf 58.9%
div-sub58.9%
Simplified58.9%
if 1.35000000000000006e272 < t Initial program 10.9%
associate-/l*16.9%
Simplified16.9%
Taylor expanded in z around 0 16.7%
associate-*r/16.7%
neg-mul-116.7%
Simplified16.7%
Taylor expanded in a around 0 80.1%
associate-/l*88.1%
Simplified88.1%
Final simplification79.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* (/ y (- a t)) (- t z)))))
(if (<= a -3.6e-14)
t_1
(if (<= a 9.5e-124)
(+ y (/ (* (- y x) (- a z)) t))
(if (<= a 3.4e-28)
(* z (/ (- y x) (- a t)))
(if (<= a 1.1e-8) y t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - ((y / (a - t)) * (t - z));
double tmp;
if (a <= -3.6e-14) {
tmp = t_1;
} else if (a <= 9.5e-124) {
tmp = y + (((y - x) * (a - z)) / t);
} else if (a <= 3.4e-28) {
tmp = z * ((y - x) / (a - t));
} else if (a <= 1.1e-8) {
tmp = y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x - ((y / (a - t)) * (t - z))
if (a <= (-3.6d-14)) then
tmp = t_1
else if (a <= 9.5d-124) then
tmp = y + (((y - x) * (a - z)) / t)
else if (a <= 3.4d-28) then
tmp = z * ((y - x) / (a - t))
else if (a <= 1.1d-8) then
tmp = y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x - ((y / (a - t)) * (t - z));
double tmp;
if (a <= -3.6e-14) {
tmp = t_1;
} else if (a <= 9.5e-124) {
tmp = y + (((y - x) * (a - z)) / t);
} else if (a <= 3.4e-28) {
tmp = z * ((y - x) / (a - t));
} else if (a <= 1.1e-8) {
tmp = y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - ((y / (a - t)) * (t - z)) tmp = 0 if a <= -3.6e-14: tmp = t_1 elif a <= 9.5e-124: tmp = y + (((y - x) * (a - z)) / t) elif a <= 3.4e-28: tmp = z * ((y - x) / (a - t)) elif a <= 1.1e-8: tmp = y else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(y / Float64(a - t)) * Float64(t - z))) tmp = 0.0 if (a <= -3.6e-14) tmp = t_1; elseif (a <= 9.5e-124) tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); elseif (a <= 3.4e-28) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); elseif (a <= 1.1e-8) tmp = y; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - ((y / (a - t)) * (t - z)); tmp = 0.0; if (a <= -3.6e-14) tmp = t_1; elseif (a <= 9.5e-124) tmp = y + (((y - x) * (a - z)) / t); elseif (a <= 3.4e-28) tmp = z * ((y - x) / (a - t)); elseif (a <= 1.1e-8) tmp = y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.6e-14], t$95$1, If[LessEqual[a, 9.5e-124], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.4e-28], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.1e-8], y, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{y}{a - t} \cdot \left(t - z\right)\\
\mathbf{if}\;a \leq -3.6 \cdot 10^{-14}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-124}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{elif}\;a \leq 3.4 \cdot 10^{-28}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{-8}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -3.5999999999999998e-14 or 1.0999999999999999e-8 < a Initial program 66.5%
associate-*l/88.5%
Simplified88.5%
Taylor expanded in y around inf 82.5%
if -3.5999999999999998e-14 < a < 9.49999999999999989e-124Initial program 68.4%
associate-*l/66.7%
Simplified66.7%
Taylor expanded in t around inf 77.1%
associate--l+77.1%
associate-*r/77.1%
associate-*r/77.1%
div-sub77.1%
distribute-lft-out--77.1%
mul-1-neg77.1%
distribute-neg-frac77.1%
unsub-neg77.1%
distribute-rgt-out--77.1%
Simplified77.1%
if 9.49999999999999989e-124 < a < 3.4000000000000001e-28Initial program 69.0%
associate-*l/77.3%
Simplified77.3%
Taylor expanded in z around inf 79.8%
div-sub79.8%
Simplified79.8%
if 3.4000000000000001e-28 < a < 1.0999999999999999e-8Initial program 43.7%
associate-*l/42.8%
Simplified42.8%
Taylor expanded in t around inf 100.0%
Final simplification80.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ x (/ t z))))
(if (<= a -8.3e+96)
x
(if (<= a -2.3e-148)
t_1
(if (<= a -2.65e-266)
y
(if (<= a 1.25e-231)
t_1
(if (<= a 2.2e-108)
y
(if (<= a 9.2e-32) (* z (/ x t)) (if (<= a 5.7e-6) y x)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x / (t / z);
double tmp;
if (a <= -8.3e+96) {
tmp = x;
} else if (a <= -2.3e-148) {
tmp = t_1;
} else if (a <= -2.65e-266) {
tmp = y;
} else if (a <= 1.25e-231) {
tmp = t_1;
} else if (a <= 2.2e-108) {
tmp = y;
} else if (a <= 9.2e-32) {
tmp = z * (x / t);
} else if (a <= 5.7e-6) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x / (t / z)
if (a <= (-8.3d+96)) then
tmp = x
else if (a <= (-2.3d-148)) then
tmp = t_1
else if (a <= (-2.65d-266)) then
tmp = y
else if (a <= 1.25d-231) then
tmp = t_1
else if (a <= 2.2d-108) then
tmp = y
else if (a <= 9.2d-32) then
tmp = z * (x / t)
else if (a <= 5.7d-6) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x / (t / z);
double tmp;
if (a <= -8.3e+96) {
tmp = x;
} else if (a <= -2.3e-148) {
tmp = t_1;
} else if (a <= -2.65e-266) {
tmp = y;
} else if (a <= 1.25e-231) {
tmp = t_1;
} else if (a <= 2.2e-108) {
tmp = y;
} else if (a <= 9.2e-32) {
tmp = z * (x / t);
} else if (a <= 5.7e-6) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x / (t / z) tmp = 0 if a <= -8.3e+96: tmp = x elif a <= -2.3e-148: tmp = t_1 elif a <= -2.65e-266: tmp = y elif a <= 1.25e-231: tmp = t_1 elif a <= 2.2e-108: tmp = y elif a <= 9.2e-32: tmp = z * (x / t) elif a <= 5.7e-6: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(x / Float64(t / z)) tmp = 0.0 if (a <= -8.3e+96) tmp = x; elseif (a <= -2.3e-148) tmp = t_1; elseif (a <= -2.65e-266) tmp = y; elseif (a <= 1.25e-231) tmp = t_1; elseif (a <= 2.2e-108) tmp = y; elseif (a <= 9.2e-32) tmp = Float64(z * Float64(x / t)); elseif (a <= 5.7e-6) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x / (t / z); tmp = 0.0; if (a <= -8.3e+96) tmp = x; elseif (a <= -2.3e-148) tmp = t_1; elseif (a <= -2.65e-266) tmp = y; elseif (a <= 1.25e-231) tmp = t_1; elseif (a <= 2.2e-108) tmp = y; elseif (a <= 9.2e-32) tmp = z * (x / t); elseif (a <= 5.7e-6) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x / N[(t / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.3e+96], x, If[LessEqual[a, -2.3e-148], t$95$1, If[LessEqual[a, -2.65e-266], y, If[LessEqual[a, 1.25e-231], t$95$1, If[LessEqual[a, 2.2e-108], y, If[LessEqual[a, 9.2e-32], N[(z * N[(x / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.7e-6], y, x]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\frac{t}{z}}\\
\mathbf{if}\;a \leq -8.3 \cdot 10^{+96}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -2.3 \cdot 10^{-148}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2.65 \cdot 10^{-266}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{-231}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{-108}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq 9.2 \cdot 10^{-32}:\\
\;\;\;\;z \cdot \frac{x}{t}\\
\mathbf{elif}\;a \leq 5.7 \cdot 10^{-6}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -8.2999999999999997e96 or 5.6999999999999996e-6 < a Initial program 65.8%
associate-*l/88.3%
Simplified88.3%
Taylor expanded in a around inf 51.6%
if -8.2999999999999997e96 < a < -2.29999999999999997e-148 or -2.6500000000000001e-266 < a < 1.25000000000000006e-231Initial program 71.5%
associate-*l/74.4%
Simplified74.4%
Taylor expanded in a around 0 53.1%
associate-*r/53.1%
neg-mul-153.1%
Simplified53.1%
Taylor expanded in x around inf 39.7%
associate-/l*41.2%
Simplified41.2%
if -2.29999999999999997e-148 < a < -2.6500000000000001e-266 or 1.25000000000000006e-231 < a < 2.2000000000000001e-108 or 9.2000000000000002e-32 < a < 5.6999999999999996e-6Initial program 65.4%
associate-*l/64.0%
Simplified64.0%
Taylor expanded in t around inf 50.1%
if 2.2000000000000001e-108 < a < 9.2000000000000002e-32Initial program 63.2%
associate-*l/73.0%
Simplified73.0%
Taylor expanded in a around 0 48.6%
associate-*r/48.6%
neg-mul-148.6%
Simplified48.6%
Taylor expanded in z around inf 57.8%
div-sub57.8%
Simplified57.8%
Taylor expanded in x around inf 44.9%
Final simplification48.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= x -4.2e+233)
(* z (/ x t))
(if (<= x -6.8e+45)
t_1
(if (<= x -3.8e-18) (* z (/ (- x y) t)) (if (<= x 1.35e+123) t_1 x))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (x <= -4.2e+233) {
tmp = z * (x / t);
} else if (x <= -6.8e+45) {
tmp = t_1;
} else if (x <= -3.8e-18) {
tmp = z * ((x - y) / t);
} else if (x <= 1.35e+123) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (x <= (-4.2d+233)) then
tmp = z * (x / t)
else if (x <= (-6.8d+45)) then
tmp = t_1
else if (x <= (-3.8d-18)) then
tmp = z * ((x - y) / t)
else if (x <= 1.35d+123) then
tmp = t_1
else
tmp = x
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 (x <= -4.2e+233) {
tmp = z * (x / t);
} else if (x <= -6.8e+45) {
tmp = t_1;
} else if (x <= -3.8e-18) {
tmp = z * ((x - y) / t);
} else if (x <= 1.35e+123) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if x <= -4.2e+233: tmp = z * (x / t) elif x <= -6.8e+45: tmp = t_1 elif x <= -3.8e-18: tmp = z * ((x - y) / t) elif x <= 1.35e+123: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (x <= -4.2e+233) tmp = Float64(z * Float64(x / t)); elseif (x <= -6.8e+45) tmp = t_1; elseif (x <= -3.8e-18) tmp = Float64(z * Float64(Float64(x - y) / t)); elseif (x <= 1.35e+123) tmp = t_1; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (x <= -4.2e+233) tmp = z * (x / t); elseif (x <= -6.8e+45) tmp = t_1; elseif (x <= -3.8e-18) tmp = z * ((x - y) / t); elseif (x <= 1.35e+123) tmp = t_1; else tmp = x; 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[x, -4.2e+233], N[(z * N[(x / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -6.8e+45], t$95$1, If[LessEqual[x, -3.8e-18], N[(z * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.35e+123], t$95$1, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;x \leq -4.2 \cdot 10^{+233}:\\
\;\;\;\;z \cdot \frac{x}{t}\\
\mathbf{elif}\;x \leq -6.8 \cdot 10^{+45}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -3.8 \cdot 10^{-18}:\\
\;\;\;\;z \cdot \frac{x - y}{t}\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{+123}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -4.19999999999999993e233Initial program 63.7%
associate-*l/71.8%
Simplified71.8%
Taylor expanded in a around 0 30.8%
associate-*r/30.8%
neg-mul-130.8%
Simplified30.8%
Taylor expanded in z around inf 39.9%
div-sub39.9%
Simplified39.9%
Taylor expanded in x around inf 40.2%
if -4.19999999999999993e233 < x < -6.8e45 or -3.7999999999999998e-18 < x < 1.35000000000000007e123Initial program 69.1%
associate-/l*84.2%
Simplified84.2%
clear-num83.8%
inv-pow83.8%
Applied egg-rr83.8%
unpow-183.8%
Simplified83.8%
Taylor expanded in x around 0 55.3%
associate-*r/70.1%
Simplified70.1%
if -6.8e45 < x < -3.7999999999999998e-18Initial program 74.4%
associate-*l/84.6%
Simplified84.6%
Taylor expanded in a around 0 39.4%
associate-*r/39.4%
neg-mul-139.4%
Simplified39.4%
Taylor expanded in z around inf 39.8%
div-sub39.7%
Simplified39.7%
if 1.35000000000000007e123 < x Initial program 57.7%
associate-*l/66.4%
Simplified66.4%
Taylor expanded in a around inf 46.4%
Final simplification60.9%
(FPCore (x y z t a)
:precision binary64
(if (<= t -2.5e+54)
(* y (/ (- z t) (- a t)))
(if (<= t -1.4e-79)
(* (- y x) (/ z (- a t)))
(if (<= t 1.35e+54)
(- x (/ (- x y) (/ a z)))
(if (<= t 2.4e+170)
(* z (/ (- y x) (- a t)))
(+ y (/ a (/ t (- y x)))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.5e+54) {
tmp = y * ((z - t) / (a - t));
} else if (t <= -1.4e-79) {
tmp = (y - x) * (z / (a - t));
} else if (t <= 1.35e+54) {
tmp = x - ((x - y) / (a / z));
} else if (t <= 2.4e+170) {
tmp = z * ((y - x) / (a - t));
} else {
tmp = y + (a / (t / (y - x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-2.5d+54)) then
tmp = y * ((z - t) / (a - t))
else if (t <= (-1.4d-79)) then
tmp = (y - x) * (z / (a - t))
else if (t <= 1.35d+54) then
tmp = x - ((x - y) / (a / z))
else if (t <= 2.4d+170) then
tmp = z * ((y - x) / (a - t))
else
tmp = y + (a / (t / (y - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.5e+54) {
tmp = y * ((z - t) / (a - t));
} else if (t <= -1.4e-79) {
tmp = (y - x) * (z / (a - t));
} else if (t <= 1.35e+54) {
tmp = x - ((x - y) / (a / z));
} else if (t <= 2.4e+170) {
tmp = z * ((y - x) / (a - t));
} else {
tmp = y + (a / (t / (y - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.5e+54: tmp = y * ((z - t) / (a - t)) elif t <= -1.4e-79: tmp = (y - x) * (z / (a - t)) elif t <= 1.35e+54: tmp = x - ((x - y) / (a / z)) elif t <= 2.4e+170: tmp = z * ((y - x) / (a - t)) else: tmp = y + (a / (t / (y - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.5e+54) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (t <= -1.4e-79) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); elseif (t <= 1.35e+54) tmp = Float64(x - Float64(Float64(x - y) / Float64(a / z))); elseif (t <= 2.4e+170) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); else tmp = Float64(y + Float64(a / Float64(t / Float64(y - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.5e+54) tmp = y * ((z - t) / (a - t)); elseif (t <= -1.4e-79) tmp = (y - x) * (z / (a - t)); elseif (t <= 1.35e+54) tmp = x - ((x - y) / (a / z)); elseif (t <= 2.4e+170) tmp = z * ((y - x) / (a - t)); else tmp = y + (a / (t / (y - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.5e+54], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.4e-79], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.35e+54], N[(x - N[(N[(x - y), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.4e+170], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(a / N[(t / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.5 \cdot 10^{+54}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;t \leq -1.4 \cdot 10^{-79}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{+54}:\\
\;\;\;\;x - \frac{x - y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{+170}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{a}{\frac{t}{y - x}}\\
\end{array}
\end{array}
if t < -2.50000000000000003e54Initial program 36.8%
associate-/l*62.1%
Simplified62.1%
clear-num62.1%
inv-pow62.1%
Applied egg-rr62.1%
unpow-162.1%
Simplified62.1%
Taylor expanded in x around 0 48.2%
associate-*r/68.1%
Simplified68.1%
if -2.50000000000000003e54 < t < -1.40000000000000006e-79Initial program 91.4%
associate-*l/94.1%
Simplified94.1%
+-commutative94.1%
associate-*l/91.4%
div-inv91.4%
fma-def91.4%
Applied egg-rr91.4%
Taylor expanded in z around -inf 67.9%
associate-/l*68.9%
associate-/r/70.6%
Simplified70.6%
if -1.40000000000000006e-79 < t < 1.35000000000000005e54Initial program 89.8%
associate-/l*95.3%
Simplified95.3%
Taylor expanded in t around 0 73.7%
if 1.35000000000000005e54 < t < 2.4e170Initial program 50.4%
associate-*l/68.1%
Simplified68.1%
Taylor expanded in z around inf 55.2%
div-sub55.2%
Simplified55.2%
if 2.4e170 < t Initial program 14.4%
associate-/l*53.9%
Simplified53.9%
Taylor expanded in z around 0 44.5%
associate-*r/44.5%
neg-mul-144.5%
Simplified44.5%
Taylor expanded in a around 0 61.6%
associate-/l*71.8%
Simplified71.8%
Final simplification70.0%
(FPCore (x y z t a)
:precision binary64
(if (<= t -6.9e+214)
(+ y (/ (* (- y x) (- a z)) t))
(if (<= t 1.8e+206)
(- x (* (- z t) (/ (- x y) (- a t))))
(+ y (/ a (/ t (- y x)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6.9e+214) {
tmp = y + (((y - x) * (a - z)) / t);
} else if (t <= 1.8e+206) {
tmp = x - ((z - t) * ((x - y) / (a - t)));
} else {
tmp = y + (a / (t / (y - x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-6.9d+214)) then
tmp = y + (((y - x) * (a - z)) / t)
else if (t <= 1.8d+206) then
tmp = x - ((z - t) * ((x - y) / (a - t)))
else
tmp = y + (a / (t / (y - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6.9e+214) {
tmp = y + (((y - x) * (a - z)) / t);
} else if (t <= 1.8e+206) {
tmp = x - ((z - t) * ((x - y) / (a - t)));
} else {
tmp = y + (a / (t / (y - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -6.9e+214: tmp = y + (((y - x) * (a - z)) / t) elif t <= 1.8e+206: tmp = x - ((z - t) * ((x - y) / (a - t))) else: tmp = y + (a / (t / (y - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -6.9e+214) tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); elseif (t <= 1.8e+206) tmp = Float64(x - Float64(Float64(z - t) * Float64(Float64(x - y) / Float64(a - t)))); else tmp = Float64(y + Float64(a / Float64(t / Float64(y - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -6.9e+214) tmp = y + (((y - x) * (a - z)) / t); elseif (t <= 1.8e+206) tmp = x - ((z - t) * ((x - y) / (a - t))); else tmp = y + (a / (t / (y - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -6.9e+214], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.8e+206], N[(x - N[(N[(z - t), $MachinePrecision] * N[(N[(x - y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(a / N[(t / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.9 \cdot 10^{+214}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{+206}:\\
\;\;\;\;x - \left(z - t\right) \cdot \frac{x - y}{a - t}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{a}{\frac{t}{y - x}}\\
\end{array}
\end{array}
if t < -6.89999999999999976e214Initial program 22.6%
associate-*l/45.0%
Simplified45.0%
Taylor expanded in t around inf 72.6%
associate--l+72.6%
associate-*r/72.6%
associate-*r/72.6%
div-sub72.6%
distribute-lft-out--72.6%
mul-1-neg72.6%
distribute-neg-frac72.6%
unsub-neg72.6%
distribute-rgt-out--76.6%
Simplified76.6%
if -6.89999999999999976e214 < t < 1.80000000000000014e206Initial program 77.7%
associate-*l/84.9%
Simplified84.9%
if 1.80000000000000014e206 < t Initial program 12.9%
associate-/l*47.9%
Simplified47.9%
Taylor expanded in z around 0 44.6%
associate-*r/44.6%
neg-mul-144.6%
Simplified44.6%
Taylor expanded in a around 0 71.9%
associate-/l*85.4%
Simplified85.4%
Final simplification84.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* z (/ (- x y) t))))
(if (<= a -4.2e+96)
x
(if (<= a -1.95e-146)
t_1
(if (<= a 9.5e-124)
(- y (/ y (/ t z)))
(if (<= a 1.65e-30) t_1 (if (<= a 9.4) y x)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = z * ((x - y) / t);
double tmp;
if (a <= -4.2e+96) {
tmp = x;
} else if (a <= -1.95e-146) {
tmp = t_1;
} else if (a <= 9.5e-124) {
tmp = y - (y / (t / z));
} else if (a <= 1.65e-30) {
tmp = t_1;
} else if (a <= 9.4) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = z * ((x - y) / t)
if (a <= (-4.2d+96)) then
tmp = x
else if (a <= (-1.95d-146)) then
tmp = t_1
else if (a <= 9.5d-124) then
tmp = y - (y / (t / z))
else if (a <= 1.65d-30) then
tmp = t_1
else if (a <= 9.4d0) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = z * ((x - y) / t);
double tmp;
if (a <= -4.2e+96) {
tmp = x;
} else if (a <= -1.95e-146) {
tmp = t_1;
} else if (a <= 9.5e-124) {
tmp = y - (y / (t / z));
} else if (a <= 1.65e-30) {
tmp = t_1;
} else if (a <= 9.4) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = z * ((x - y) / t) tmp = 0 if a <= -4.2e+96: tmp = x elif a <= -1.95e-146: tmp = t_1 elif a <= 9.5e-124: tmp = y - (y / (t / z)) elif a <= 1.65e-30: tmp = t_1 elif a <= 9.4: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(z * Float64(Float64(x - y) / t)) tmp = 0.0 if (a <= -4.2e+96) tmp = x; elseif (a <= -1.95e-146) tmp = t_1; elseif (a <= 9.5e-124) tmp = Float64(y - Float64(y / Float64(t / z))); elseif (a <= 1.65e-30) tmp = t_1; elseif (a <= 9.4) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = z * ((x - y) / t); tmp = 0.0; if (a <= -4.2e+96) tmp = x; elseif (a <= -1.95e-146) tmp = t_1; elseif (a <= 9.5e-124) tmp = y - (y / (t / z)); elseif (a <= 1.65e-30) tmp = t_1; elseif (a <= 9.4) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(z * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.2e+96], x, If[LessEqual[a, -1.95e-146], t$95$1, If[LessEqual[a, 9.5e-124], N[(y - N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.65e-30], t$95$1, If[LessEqual[a, 9.4], y, x]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \frac{x - y}{t}\\
\mathbf{if}\;a \leq -4.2 \cdot 10^{+96}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.95 \cdot 10^{-146}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-124}:\\
\;\;\;\;y - \frac{y}{\frac{t}{z}}\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{-30}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 9.4:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -4.2000000000000002e96 or 9.40000000000000036 < a Initial program 65.8%
associate-*l/88.3%
Simplified88.3%
Taylor expanded in a around inf 51.6%
if -4.2000000000000002e96 < a < -1.95000000000000001e-146 or 9.49999999999999989e-124 < a < 1.6500000000000001e-30Initial program 69.1%
associate-*l/76.3%
Simplified76.3%
Taylor expanded in a around 0 46.8%
associate-*r/46.8%
neg-mul-146.8%
Simplified46.8%
Taylor expanded in z around inf 46.0%
div-sub46.0%
Simplified46.0%
if -1.95000000000000001e-146 < a < 9.49999999999999989e-124Initial program 67.7%
associate-*l/65.4%
Simplified65.4%
Taylor expanded in x around 0 62.1%
Taylor expanded in a around 0 56.6%
mul-1-neg56.6%
associate-/l*62.5%
distribute-neg-frac62.5%
Simplified62.5%
Taylor expanded in t around 0 62.6%
mul-1-neg62.6%
unsub-neg62.6%
associate-/l*62.5%
Simplified62.5%
if 1.6500000000000001e-30 < a < 9.40000000000000036Initial program 59.6%
associate-*l/59.2%
Simplified59.2%
Taylor expanded in t around inf 73.0%
Final simplification54.2%
(FPCore (x y z t a)
:precision binary64
(if (<= a -3.9e+96)
x
(if (<= a -1.95e-146)
(/ z (/ t (- x y)))
(if (<= a 7.5e-124)
(- y (/ y (/ t z)))
(if (<= a 5.7e-31) (* z (/ (- x y) t)) (if (<= a 6000.0) y x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.9e+96) {
tmp = x;
} else if (a <= -1.95e-146) {
tmp = z / (t / (x - y));
} else if (a <= 7.5e-124) {
tmp = y - (y / (t / z));
} else if (a <= 5.7e-31) {
tmp = z * ((x - y) / t);
} else if (a <= 6000.0) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-3.9d+96)) then
tmp = x
else if (a <= (-1.95d-146)) then
tmp = z / (t / (x - y))
else if (a <= 7.5d-124) then
tmp = y - (y / (t / z))
else if (a <= 5.7d-31) then
tmp = z * ((x - y) / t)
else if (a <= 6000.0d0) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.9e+96) {
tmp = x;
} else if (a <= -1.95e-146) {
tmp = z / (t / (x - y));
} else if (a <= 7.5e-124) {
tmp = y - (y / (t / z));
} else if (a <= 5.7e-31) {
tmp = z * ((x - y) / t);
} else if (a <= 6000.0) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.9e+96: tmp = x elif a <= -1.95e-146: tmp = z / (t / (x - y)) elif a <= 7.5e-124: tmp = y - (y / (t / z)) elif a <= 5.7e-31: tmp = z * ((x - y) / t) elif a <= 6000.0: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.9e+96) tmp = x; elseif (a <= -1.95e-146) tmp = Float64(z / Float64(t / Float64(x - y))); elseif (a <= 7.5e-124) tmp = Float64(y - Float64(y / Float64(t / z))); elseif (a <= 5.7e-31) tmp = Float64(z * Float64(Float64(x - y) / t)); elseif (a <= 6000.0) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3.9e+96) tmp = x; elseif (a <= -1.95e-146) tmp = z / (t / (x - y)); elseif (a <= 7.5e-124) tmp = y - (y / (t / z)); elseif (a <= 5.7e-31) tmp = z * ((x - y) / t); elseif (a <= 6000.0) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.9e+96], x, If[LessEqual[a, -1.95e-146], N[(z / N[(t / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.5e-124], N[(y - N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.7e-31], N[(z * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6000.0], y, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.9 \cdot 10^{+96}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.95 \cdot 10^{-146}:\\
\;\;\;\;\frac{z}{\frac{t}{x - y}}\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{-124}:\\
\;\;\;\;y - \frac{y}{\frac{t}{z}}\\
\mathbf{elif}\;a \leq 5.7 \cdot 10^{-31}:\\
\;\;\;\;z \cdot \frac{x - y}{t}\\
\mathbf{elif}\;a \leq 6000:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -3.9e96 or 6e3 < a Initial program 65.8%
associate-*l/88.3%
Simplified88.3%
Taylor expanded in a around inf 51.6%
if -3.9e96 < a < -1.95000000000000001e-146Initial program 69.8%
associate-*l/76.5%
Simplified76.5%
Taylor expanded in a around 0 45.9%
associate-*r/45.9%
neg-mul-145.9%
Simplified45.9%
Taylor expanded in t around 0 39.0%
associate-/l*42.0%
Simplified42.0%
if -1.95000000000000001e-146 < a < 7.4999999999999996e-124Initial program 67.7%
associate-*l/65.4%
Simplified65.4%
Taylor expanded in x around 0 62.1%
Taylor expanded in a around 0 56.6%
mul-1-neg56.6%
associate-/l*62.5%
distribute-neg-frac62.5%
Simplified62.5%
Taylor expanded in t around 0 62.6%
mul-1-neg62.6%
unsub-neg62.6%
associate-/l*62.5%
Simplified62.5%
if 7.4999999999999996e-124 < a < 5.69999999999999995e-31Initial program 67.3%
associate-*l/76.0%
Simplified76.0%
Taylor expanded in a around 0 48.8%
associate-*r/48.8%
neg-mul-148.8%
Simplified48.8%
Taylor expanded in z around inf 56.9%
div-sub56.9%
Simplified56.9%
if 5.69999999999999995e-31 < a < 6e3Initial program 59.6%
associate-*l/59.2%
Simplified59.2%
Taylor expanded in t around inf 73.0%
Final simplification54.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -2.2e+48)
t_1
(if (<= t -8.8e-85)
(* (- y x) (/ z (- a t)))
(if (<= t 1e+47) (+ x (/ z (/ a (- y x)))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -2.2e+48) {
tmp = t_1;
} else if (t <= -8.8e-85) {
tmp = (y - x) * (z / (a - t));
} else if (t <= 1e+47) {
tmp = x + (z / (a / (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 = y * ((z - t) / (a - t))
if (t <= (-2.2d+48)) then
tmp = t_1
else if (t <= (-8.8d-85)) then
tmp = (y - x) * (z / (a - t))
else if (t <= 1d+47) then
tmp = x + (z / (a / (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 = y * ((z - t) / (a - t));
double tmp;
if (t <= -2.2e+48) {
tmp = t_1;
} else if (t <= -8.8e-85) {
tmp = (y - x) * (z / (a - t));
} else if (t <= 1e+47) {
tmp = x + (z / (a / (y - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -2.2e+48: tmp = t_1 elif t <= -8.8e-85: tmp = (y - x) * (z / (a - t)) elif t <= 1e+47: tmp = x + (z / (a / (y - x))) else: tmp = t_1 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 <= -2.2e+48) tmp = t_1; elseif (t <= -8.8e-85) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); elseif (t <= 1e+47) tmp = Float64(x + Float64(z / Float64(a / Float64(y - x)))); else tmp = t_1; 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 <= -2.2e+48) tmp = t_1; elseif (t <= -8.8e-85) tmp = (y - x) * (z / (a - t)); elseif (t <= 1e+47) tmp = x + (z / (a / (y - x))); else tmp = t_1; 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, -2.2e+48], t$95$1, If[LessEqual[t, -8.8e-85], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e+47], N[(x + N[(z / N[(a / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -2.2 \cdot 10^{+48}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -8.8 \cdot 10^{-85}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{elif}\;t \leq 10^{+47}:\\
\;\;\;\;x + \frac{z}{\frac{a}{y - x}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -2.1999999999999999e48 or 1e47 < t Initial program 33.4%
associate-/l*60.7%
Simplified60.7%
clear-num60.7%
inv-pow60.7%
Applied egg-rr60.7%
unpow-160.7%
Simplified60.7%
Taylor expanded in x around 0 39.3%
associate-*r/60.5%
Simplified60.5%
if -2.1999999999999999e48 < t < -8.8e-85Initial program 91.4%
associate-*l/94.1%
Simplified94.1%
+-commutative94.1%
associate-*l/91.4%
div-inv91.4%
fma-def91.4%
Applied egg-rr91.4%
Taylor expanded in z around -inf 67.9%
associate-/l*68.9%
associate-/r/70.6%
Simplified70.6%
if -8.8e-85 < t < 1e47Initial program 92.1%
associate-*l/92.3%
Simplified92.3%
Taylor expanded in t around 0 69.9%
associate-/l*72.2%
Simplified72.2%
Final simplification67.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -1.4e+47)
t_1
(if (<= t -2.7e-77)
(* (- y x) (/ z (- a t)))
(if (<= t 1.4e+47) (- x (/ (- x y) (/ a z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -1.4e+47) {
tmp = t_1;
} else if (t <= -2.7e-77) {
tmp = (y - x) * (z / (a - t));
} else if (t <= 1.4e+47) {
tmp = x - ((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 * ((z - t) / (a - t))
if (t <= (-1.4d+47)) then
tmp = t_1
else if (t <= (-2.7d-77)) then
tmp = (y - x) * (z / (a - t))
else if (t <= 1.4d+47) then
tmp = x - ((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 * ((z - t) / (a - t));
double tmp;
if (t <= -1.4e+47) {
tmp = t_1;
} else if (t <= -2.7e-77) {
tmp = (y - x) * (z / (a - t));
} else if (t <= 1.4e+47) {
tmp = x - ((x - y) / (a / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -1.4e+47: tmp = t_1 elif t <= -2.7e-77: tmp = (y - x) * (z / (a - t)) elif t <= 1.4e+47: tmp = x - ((x - y) / (a / z)) else: tmp = t_1 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 <= -1.4e+47) tmp = t_1; elseif (t <= -2.7e-77) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); elseif (t <= 1.4e+47) tmp = Float64(x - Float64(Float64(x - y) / Float64(a / z))); else tmp = t_1; 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 <= -1.4e+47) tmp = t_1; elseif (t <= -2.7e-77) tmp = (y - x) * (z / (a - t)); elseif (t <= 1.4e+47) tmp = x - ((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[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.4e+47], t$95$1, If[LessEqual[t, -2.7e-77], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.4e+47], N[(x - N[(N[(x - y), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -1.4 \cdot 10^{+47}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.7 \cdot 10^{-77}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{+47}:\\
\;\;\;\;x - \frac{x - y}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.39999999999999994e47 or 1.39999999999999994e47 < t Initial program 33.4%
associate-/l*60.7%
Simplified60.7%
clear-num60.7%
inv-pow60.7%
Applied egg-rr60.7%
unpow-160.7%
Simplified60.7%
Taylor expanded in x around 0 39.3%
associate-*r/60.5%
Simplified60.5%
if -1.39999999999999994e47 < t < -2.7e-77Initial program 91.4%
associate-*l/94.1%
Simplified94.1%
+-commutative94.1%
associate-*l/91.4%
div-inv91.4%
fma-def91.4%
Applied egg-rr91.4%
Taylor expanded in z around -inf 67.9%
associate-/l*68.9%
associate-/r/70.6%
Simplified70.6%
if -2.7e-77 < t < 1.39999999999999994e47Initial program 92.1%
associate-/l*96.8%
Simplified96.8%
Taylor expanded in t around 0 75.5%
Final simplification68.4%
(FPCore (x y z t a)
:precision binary64
(if (<= z -4e-6)
(/ z (/ (- a t) (- y x)))
(if (<= z 5.8e-5)
(- x (* (/ y (- a t)) (- t z)))
(* (- y x) (/ z (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4e-6) {
tmp = z / ((a - t) / (y - x));
} else if (z <= 5.8e-5) {
tmp = x - ((y / (a - t)) * (t - z));
} else {
tmp = (y - x) * (z / (a - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-4d-6)) then
tmp = z / ((a - t) / (y - x))
else if (z <= 5.8d-5) then
tmp = x - ((y / (a - t)) * (t - z))
else
tmp = (y - x) * (z / (a - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4e-6) {
tmp = z / ((a - t) / (y - x));
} else if (z <= 5.8e-5) {
tmp = x - ((y / (a - t)) * (t - z));
} else {
tmp = (y - x) * (z / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -4e-6: tmp = z / ((a - t) / (y - x)) elif z <= 5.8e-5: tmp = x - ((y / (a - t)) * (t - z)) else: tmp = (y - x) * (z / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4e-6) tmp = Float64(z / Float64(Float64(a - t) / Float64(y - x))); elseif (z <= 5.8e-5) tmp = Float64(x - Float64(Float64(y / Float64(a - t)) * Float64(t - z))); else tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -4e-6) tmp = z / ((a - t) / (y - x)); elseif (z <= 5.8e-5) tmp = x - ((y / (a - t)) * (t - z)); else tmp = (y - x) * (z / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4e-6], N[(z / N[(N[(a - t), $MachinePrecision] / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.8e-5], N[(x - N[(N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4 \cdot 10^{-6}:\\
\;\;\;\;\frac{z}{\frac{a - t}{y - x}}\\
\mathbf{elif}\;z \leq 5.8 \cdot 10^{-5}:\\
\;\;\;\;x - \frac{y}{a - t} \cdot \left(t - z\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\end{array}
\end{array}
if z < -3.99999999999999982e-6Initial program 67.4%
associate-*l/78.9%
Simplified78.9%
Taylor expanded in z around inf 69.4%
div-sub69.4%
associate-*r/62.4%
associate-/l*69.5%
Simplified69.5%
if -3.99999999999999982e-6 < z < 5.8e-5Initial program 65.1%
associate-*l/71.9%
Simplified71.9%
Taylor expanded in y around inf 70.2%
if 5.8e-5 < z Initial program 70.8%
associate-*l/88.8%
Simplified88.8%
+-commutative88.8%
associate-*l/70.8%
div-inv70.7%
fma-def70.7%
Applied egg-rr70.7%
Taylor expanded in z around -inf 66.6%
associate-/l*80.1%
associate-/r/81.6%
Simplified81.6%
Final simplification72.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* z (/ x t))))
(if (<= a -3.9e+96)
x
(if (<= a -6.1e-151)
t_1
(if (<= a 3.2e-114) y (if (<= a 7e-32) t_1 (if (<= a 245.0) y x)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = z * (x / t);
double tmp;
if (a <= -3.9e+96) {
tmp = x;
} else if (a <= -6.1e-151) {
tmp = t_1;
} else if (a <= 3.2e-114) {
tmp = y;
} else if (a <= 7e-32) {
tmp = t_1;
} else if (a <= 245.0) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = z * (x / t)
if (a <= (-3.9d+96)) then
tmp = x
else if (a <= (-6.1d-151)) then
tmp = t_1
else if (a <= 3.2d-114) then
tmp = y
else if (a <= 7d-32) then
tmp = t_1
else if (a <= 245.0d0) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = z * (x / t);
double tmp;
if (a <= -3.9e+96) {
tmp = x;
} else if (a <= -6.1e-151) {
tmp = t_1;
} else if (a <= 3.2e-114) {
tmp = y;
} else if (a <= 7e-32) {
tmp = t_1;
} else if (a <= 245.0) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = z * (x / t) tmp = 0 if a <= -3.9e+96: tmp = x elif a <= -6.1e-151: tmp = t_1 elif a <= 3.2e-114: tmp = y elif a <= 7e-32: tmp = t_1 elif a <= 245.0: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(z * Float64(x / t)) tmp = 0.0 if (a <= -3.9e+96) tmp = x; elseif (a <= -6.1e-151) tmp = t_1; elseif (a <= 3.2e-114) tmp = y; elseif (a <= 7e-32) tmp = t_1; elseif (a <= 245.0) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = z * (x / t); tmp = 0.0; if (a <= -3.9e+96) tmp = x; elseif (a <= -6.1e-151) tmp = t_1; elseif (a <= 3.2e-114) tmp = y; elseif (a <= 7e-32) tmp = t_1; elseif (a <= 245.0) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(z * N[(x / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.9e+96], x, If[LessEqual[a, -6.1e-151], t$95$1, If[LessEqual[a, 3.2e-114], y, If[LessEqual[a, 7e-32], t$95$1, If[LessEqual[a, 245.0], y, x]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \frac{x}{t}\\
\mathbf{if}\;a \leq -3.9 \cdot 10^{+96}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -6.1 \cdot 10^{-151}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-114}:\\
\;\;\;\;y\\
\mathbf{elif}\;a \leq 7 \cdot 10^{-32}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 245:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -3.9e96 or 245 < a Initial program 65.8%
associate-*l/88.3%
Simplified88.3%
Taylor expanded in a around inf 51.6%
if -3.9e96 < a < -6.1e-151 or 3.2000000000000002e-114 < a < 6.9999999999999997e-32Initial program 68.0%
associate-*l/75.5%
Simplified75.5%
Taylor expanded in a around 0 46.6%
associate-*r/46.6%
neg-mul-146.6%
Simplified46.6%
Taylor expanded in z around inf 45.9%
div-sub45.8%
Simplified45.8%
Taylor expanded in x around inf 37.1%
if -6.1e-151 < a < 3.2000000000000002e-114 or 6.9999999999999997e-32 < a < 245Initial program 67.8%
associate-*l/65.7%
Simplified65.7%
Taylor expanded in t around inf 45.5%
Final simplification46.1%
(FPCore (x y z t a) :precision binary64 (if (<= a -4.9e+92) x (if (<= a 1420.0) y x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.9e+92) {
tmp = x;
} else if (a <= 1420.0) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-4.9d+92)) then
tmp = x
else if (a <= 1420.0d0) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.9e+92) {
tmp = x;
} else if (a <= 1420.0) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.9e+92: tmp = x elif a <= 1420.0: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.9e+92) tmp = x; elseif (a <= 1420.0) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4.9e+92) tmp = x; elseif (a <= 1420.0) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.9e+92], x, If[LessEqual[a, 1420.0], y, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.9 \cdot 10^{+92}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1420:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -4.9000000000000002e92 or 1420 < a Initial program 66.1%
associate-*l/88.4%
Simplified88.4%
Taylor expanded in a around inf 51.2%
if -4.9000000000000002e92 < a < 1420Initial program 67.7%
associate-*l/69.5%
Simplified69.5%
Taylor expanded in t around inf 33.9%
Final simplification41.3%
(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 67.0%
associate-*l/77.6%
Simplified77.6%
Taylor expanded in a around inf 25.3%
Final simplification25.3%
(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 2023293
(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))))