
(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 (* (- t z) (* (- y x) (/ -1.0 (- a t))))))
(t_2 (+ x (/ (* (- x y) (- t z)) (- a t)))))
(if (<= t_2 -2e+254)
t_1
(if (<= t_2 -2e-275)
t_2
(if (<= t_2 0.0)
(+ y (/ 1.0 (/ t (* (- z a) (- x y)))))
(if (<= t_2 2e+263) t_2 t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((t - z) * ((y - x) * (-1.0 / (a - t))));
double t_2 = x + (((x - y) * (t - z)) / (a - t));
double tmp;
if (t_2 <= -2e+254) {
tmp = t_1;
} else if (t_2 <= -2e-275) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = y + (1.0 / (t / ((z - a) * (x - y))));
} else if (t_2 <= 2e+263) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = x + ((t - z) * ((y - x) * ((-1.0d0) / (a - t))))
t_2 = x + (((x - y) * (t - z)) / (a - t))
if (t_2 <= (-2d+254)) then
tmp = t_1
else if (t_2 <= (-2d-275)) then
tmp = t_2
else if (t_2 <= 0.0d0) then
tmp = y + (1.0d0 / (t / ((z - a) * (x - y))))
else if (t_2 <= 2d+263) then
tmp = t_2
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 + ((t - z) * ((y - x) * (-1.0 / (a - t))));
double t_2 = x + (((x - y) * (t - z)) / (a - t));
double tmp;
if (t_2 <= -2e+254) {
tmp = t_1;
} else if (t_2 <= -2e-275) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = y + (1.0 / (t / ((z - a) * (x - y))));
} else if (t_2 <= 2e+263) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((t - z) * ((y - x) * (-1.0 / (a - t)))) t_2 = x + (((x - y) * (t - z)) / (a - t)) tmp = 0 if t_2 <= -2e+254: tmp = t_1 elif t_2 <= -2e-275: tmp = t_2 elif t_2 <= 0.0: tmp = y + (1.0 / (t / ((z - a) * (x - y)))) elif t_2 <= 2e+263: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(t - z) * Float64(Float64(y - x) * Float64(-1.0 / Float64(a - t))))) t_2 = Float64(x + Float64(Float64(Float64(x - y) * Float64(t - z)) / Float64(a - t))) tmp = 0.0 if (t_2 <= -2e+254) tmp = t_1; elseif (t_2 <= -2e-275) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(y + Float64(1.0 / Float64(t / Float64(Float64(z - a) * Float64(x - y))))); elseif (t_2 <= 2e+263) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((t - z) * ((y - x) * (-1.0 / (a - t)))); t_2 = x + (((x - y) * (t - z)) / (a - t)); tmp = 0.0; if (t_2 <= -2e+254) tmp = t_1; elseif (t_2 <= -2e-275) tmp = t_2; elseif (t_2 <= 0.0) tmp = y + (1.0 / (t / ((z - a) * (x - y)))); elseif (t_2 <= 2e+263) 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[(t - z), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] * N[(-1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(N[(x - y), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+254], t$95$1, If[LessEqual[t$95$2, -2e-275], t$95$2, If[LessEqual[t$95$2, 0.0], N[(y + N[(1.0 / N[(t / N[(N[(z - a), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+263], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(t - z\right) \cdot \left(\left(y - x\right) \cdot \frac{-1}{a - t}\right)\\
t_2 := x + \frac{\left(x - y\right) \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{+254}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -2 \cdot 10^{-275}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;y + \frac{1}{\frac{t}{\left(z - a\right) \cdot \left(x - y\right)}}\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+263}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1.9999999999999999e254 or 2.00000000000000003e263 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 39.7%
div-inv39.7%
*-commutative39.7%
associate-*l*83.8%
Applied egg-rr83.8%
if -1.9999999999999999e254 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1.99999999999999987e-275 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 2.00000000000000003e263Initial program 96.8%
if -1.99999999999999987e-275 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.7%
+-commutative4.7%
associate-/l*4.7%
fma-define4.7%
Simplified4.7%
Taylor expanded in t around inf 99.6%
associate--l+99.6%
associate-*r/99.6%
associate-*r/99.6%
mul-1-neg99.6%
div-sub99.6%
mul-1-neg99.6%
distribute-lft-out--99.6%
associate-*r/99.6%
mul-1-neg99.6%
unsub-neg99.6%
distribute-rgt-out--99.6%
Simplified99.6%
clear-num99.7%
inv-pow99.7%
Applied egg-rr99.7%
unpow-199.7%
Simplified99.7%
Final simplification92.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- x y) (- t z)) (- a t)))))
(if (or (<= t_1 -2e-275) (not (<= t_1 0.0)))
(fma (- y x) (/ (- z t) (- a t)) x)
(+ y (/ 1.0 (/ t (* (- z a) (- x y))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((x - y) * (t - z)) / (a - t));
double tmp;
if ((t_1 <= -2e-275) || !(t_1 <= 0.0)) {
tmp = fma((y - x), ((z - t) / (a - t)), x);
} else {
tmp = y + (1.0 / (t / ((z - a) * (x - y))));
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(x - y) * Float64(t - z)) / Float64(a - t))) tmp = 0.0 if ((t_1 <= -2e-275) || !(t_1 <= 0.0)) tmp = fma(Float64(y - x), Float64(Float64(z - t) / Float64(a - t)), x); else tmp = Float64(y + Float64(1.0 / Float64(t / Float64(Float64(z - a) * Float64(x - y))))); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(x - y), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -2e-275], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(y + N[(1.0 / N[(t / N[(N[(z - a), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(x - y\right) \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{-275} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;\mathsf{fma}\left(y - x, \frac{z - t}{a - t}, x\right)\\
\mathbf{else}:\\
\;\;\;\;y + \frac{1}{\frac{t}{\left(z - a\right) \cdot \left(x - y\right)}}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1.99999999999999987e-275 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 73.1%
+-commutative73.1%
associate-/l*89.5%
fma-define89.5%
Simplified89.5%
if -1.99999999999999987e-275 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.7%
+-commutative4.7%
associate-/l*4.7%
fma-define4.7%
Simplified4.7%
Taylor expanded in t around inf 99.6%
associate--l+99.6%
associate-*r/99.6%
associate-*r/99.6%
mul-1-neg99.6%
div-sub99.6%
mul-1-neg99.6%
distribute-lft-out--99.6%
associate-*r/99.6%
mul-1-neg99.6%
unsub-neg99.6%
distribute-rgt-out--99.6%
Simplified99.6%
clear-num99.7%
inv-pow99.7%
Applied egg-rr99.7%
unpow-199.7%
Simplified99.7%
Final simplification90.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ y (* (- z a) (/ (- x y) t))))
(t_2 (+ x (/ (* (- x y) (- t z)) (- a t)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -2e-275)
t_2
(if (<= t_2 0.0)
(+ y (/ 1.0 (/ t (* (- z a) (- x y)))))
(if (<= t_2 2e+288) t_2 t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y + ((z - a) * ((x - y) / t));
double t_2 = x + (((x - y) * (t - z)) / (a - t));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -2e-275) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = y + (1.0 / (t / ((z - a) * (x - y))));
} else if (t_2 <= 2e+288) {
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 = y + ((z - a) * ((x - y) / t));
double t_2 = x + (((x - y) * (t - z)) / (a - t));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_2 <= -2e-275) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = y + (1.0 / (t / ((z - a) * (x - y))));
} else if (t_2 <= 2e+288) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y + ((z - a) * ((x - y) / t)) t_2 = x + (((x - y) * (t - z)) / (a - t)) tmp = 0 if t_2 <= -math.inf: tmp = t_1 elif t_2 <= -2e-275: tmp = t_2 elif t_2 <= 0.0: tmp = y + (1.0 / (t / ((z - a) * (x - y)))) elif t_2 <= 2e+288: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y + Float64(Float64(z - a) * Float64(Float64(x - y) / t))) t_2 = Float64(x + Float64(Float64(Float64(x - y) * Float64(t - z)) / Float64(a - t))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -2e-275) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(y + Float64(1.0 / Float64(t / Float64(Float64(z - a) * Float64(x - y))))); elseif (t_2 <= 2e+288) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y + ((z - a) * ((x - y) / t)); t_2 = x + (((x - y) * (t - z)) / (a - t)); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1; elseif (t_2 <= -2e-275) tmp = t_2; elseif (t_2 <= 0.0) tmp = y + (1.0 / (t / ((z - a) * (x - y)))); elseif (t_2 <= 2e+288) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y + N[(N[(z - a), $MachinePrecision] * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(N[(x - y), $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, -2e-275], t$95$2, If[LessEqual[t$95$2, 0.0], N[(y + N[(1.0 / N[(t / N[(N[(z - a), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+288], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + \left(z - a\right) \cdot \frac{x - y}{t}\\
t_2 := x + \frac{\left(x - y\right) \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -2 \cdot 10^{-275}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;y + \frac{1}{\frac{t}{\left(z - a\right) \cdot \left(x - y\right)}}\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+288}:\\
\;\;\;\;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 2e288 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 36.9%
+-commutative36.9%
associate-/l*84.0%
fma-define84.0%
Simplified84.0%
add-cube-cbrt83.2%
pow383.2%
Applied egg-rr83.2%
Taylor expanded in t around inf 43.9%
mul-1-neg43.9%
associate--l+43.9%
mul-1-neg43.9%
associate-*r/43.9%
associate-*r/43.9%
div-sub45.1%
distribute-lft-out--45.1%
distribute-rgt-out--46.5%
associate-*r/46.5%
distribute-rgt-out--45.1%
mul-1-neg45.1%
div-sub43.9%
Simplified72.0%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1.99999999999999987e-275 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 2e288Initial program 96.3%
if -1.99999999999999987e-275 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.7%
+-commutative4.7%
associate-/l*4.7%
fma-define4.7%
Simplified4.7%
Taylor expanded in t around inf 99.6%
associate--l+99.6%
associate-*r/99.6%
associate-*r/99.6%
mul-1-neg99.6%
div-sub99.6%
mul-1-neg99.6%
distribute-lft-out--99.6%
associate-*r/99.6%
mul-1-neg99.6%
unsub-neg99.6%
distribute-rgt-out--99.6%
Simplified99.6%
clear-num99.7%
inv-pow99.7%
Applied egg-rr99.7%
unpow-199.7%
Simplified99.7%
Final simplification87.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ y (* (- z a) (/ (- x y) t))))
(t_2 (+ x (/ (* (- x y) (- t z)) (- a t)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -2e-275)
t_2
(if (<= t_2 0.0)
(+ y (/ (* x (- z a)) t))
(if (<= t_2 2e+288) t_2 t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y + ((z - a) * ((x - y) / t));
double t_2 = x + (((x - y) * (t - z)) / (a - t));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -2e-275) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = y + ((x * (z - a)) / t);
} else if (t_2 <= 2e+288) {
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 = y + ((z - a) * ((x - y) / t));
double t_2 = x + (((x - y) * (t - z)) / (a - t));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_2 <= -2e-275) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = y + ((x * (z - a)) / t);
} else if (t_2 <= 2e+288) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y + ((z - a) * ((x - y) / t)) t_2 = x + (((x - y) * (t - z)) / (a - t)) tmp = 0 if t_2 <= -math.inf: tmp = t_1 elif t_2 <= -2e-275: tmp = t_2 elif t_2 <= 0.0: tmp = y + ((x * (z - a)) / t) elif t_2 <= 2e+288: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y + Float64(Float64(z - a) * Float64(Float64(x - y) / t))) t_2 = Float64(x + Float64(Float64(Float64(x - y) * Float64(t - z)) / Float64(a - t))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -2e-275) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(y + Float64(Float64(x * Float64(z - a)) / t)); elseif (t_2 <= 2e+288) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y + ((z - a) * ((x - y) / t)); t_2 = x + (((x - y) * (t - z)) / (a - t)); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1; elseif (t_2 <= -2e-275) tmp = t_2; elseif (t_2 <= 0.0) tmp = y + ((x * (z - a)) / t); elseif (t_2 <= 2e+288) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y + N[(N[(z - a), $MachinePrecision] * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(N[(x - y), $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, -2e-275], t$95$2, If[LessEqual[t$95$2, 0.0], N[(y + N[(N[(x * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+288], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + \left(z - a\right) \cdot \frac{x - y}{t}\\
t_2 := x + \frac{\left(x - y\right) \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -2 \cdot 10^{-275}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;y + \frac{x \cdot \left(z - a\right)}{t}\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+288}:\\
\;\;\;\;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 2e288 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 36.9%
+-commutative36.9%
associate-/l*84.0%
fma-define84.0%
Simplified84.0%
add-cube-cbrt83.2%
pow383.2%
Applied egg-rr83.2%
Taylor expanded in t around inf 43.9%
mul-1-neg43.9%
associate--l+43.9%
mul-1-neg43.9%
associate-*r/43.9%
associate-*r/43.9%
div-sub45.1%
distribute-lft-out--45.1%
distribute-rgt-out--46.5%
associate-*r/46.5%
distribute-rgt-out--45.1%
mul-1-neg45.1%
div-sub43.9%
Simplified72.0%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1.99999999999999987e-275 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 2e288Initial program 96.3%
if -1.99999999999999987e-275 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.7%
+-commutative4.7%
associate-/l*4.7%
fma-define4.7%
Simplified4.7%
Taylor expanded in t around inf 99.6%
associate--l+99.6%
associate-*r/99.6%
associate-*r/99.6%
mul-1-neg99.6%
div-sub99.6%
mul-1-neg99.6%
distribute-lft-out--99.6%
associate-*r/99.6%
mul-1-neg99.6%
unsub-neg99.6%
distribute-rgt-out--99.6%
Simplified99.6%
Taylor expanded in y around 0 99.6%
mul-1-neg99.6%
*-commutative99.6%
distribute-rgt-neg-in99.6%
Simplified99.6%
Final simplification87.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ y (* z (/ x t)))))
(if (<= t -2.85e+54)
t_1
(if (<= t 4.7e-287)
(+ x (* y (/ z a)))
(if (<= t 2.85e-150)
(* z (/ (- y x) a))
(if (<= t 2.15e+101) (- x (/ (* y t) a)) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y + (z * (x / t));
double tmp;
if (t <= -2.85e+54) {
tmp = t_1;
} else if (t <= 4.7e-287) {
tmp = x + (y * (z / a));
} else if (t <= 2.85e-150) {
tmp = z * ((y - x) / a);
} else if (t <= 2.15e+101) {
tmp = x - ((y * t) / a);
} 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 * (x / t))
if (t <= (-2.85d+54)) then
tmp = t_1
else if (t <= 4.7d-287) then
tmp = x + (y * (z / a))
else if (t <= 2.85d-150) then
tmp = z * ((y - x) / a)
else if (t <= 2.15d+101) then
tmp = x - ((y * t) / a)
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 * (x / t));
double tmp;
if (t <= -2.85e+54) {
tmp = t_1;
} else if (t <= 4.7e-287) {
tmp = x + (y * (z / a));
} else if (t <= 2.85e-150) {
tmp = z * ((y - x) / a);
} else if (t <= 2.15e+101) {
tmp = x - ((y * t) / a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y + (z * (x / t)) tmp = 0 if t <= -2.85e+54: tmp = t_1 elif t <= 4.7e-287: tmp = x + (y * (z / a)) elif t <= 2.85e-150: tmp = z * ((y - x) / a) elif t <= 2.15e+101: tmp = x - ((y * t) / a) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y + Float64(z * Float64(x / t))) tmp = 0.0 if (t <= -2.85e+54) tmp = t_1; elseif (t <= 4.7e-287) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (t <= 2.85e-150) tmp = Float64(z * Float64(Float64(y - x) / a)); elseif (t <= 2.15e+101) tmp = Float64(x - Float64(Float64(y * t) / a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y + (z * (x / t)); tmp = 0.0; if (t <= -2.85e+54) tmp = t_1; elseif (t <= 4.7e-287) tmp = x + (y * (z / a)); elseif (t <= 2.85e-150) tmp = z * ((y - x) / a); elseif (t <= 2.15e+101) tmp = x - ((y * t) / a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y + N[(z * N[(x / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.85e+54], t$95$1, If[LessEqual[t, 4.7e-287], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.85e-150], N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.15e+101], N[(x - N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + z \cdot \frac{x}{t}\\
\mathbf{if}\;t \leq -2.85 \cdot 10^{+54}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.7 \cdot 10^{-287}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 2.85 \cdot 10^{-150}:\\
\;\;\;\;z \cdot \frac{y - x}{a}\\
\mathbf{elif}\;t \leq 2.15 \cdot 10^{+101}:\\
\;\;\;\;x - \frac{y \cdot t}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.8499999999999998e54 or 2.15e101 < t Initial program 35.4%
+-commutative35.4%
associate-/l*70.7%
fma-define70.7%
Simplified70.7%
Taylor expanded in t around inf 49.8%
associate--l+49.8%
sub-neg49.8%
Simplified43.9%
Taylor expanded in a around 0 58.0%
associate-*r/65.8%
Simplified65.8%
Taylor expanded in y around 0 57.8%
neg-mul-157.8%
Simplified57.8%
if -2.8499999999999998e54 < t < 4.6999999999999999e-287Initial program 89.6%
Taylor expanded in a around inf 72.8%
associate-/l*77.7%
Simplified77.7%
clear-num77.8%
inv-pow77.8%
Applied egg-rr77.8%
unpow-177.8%
Simplified77.8%
Taylor expanded in y around inf 63.9%
associate-*r/70.2%
Simplified70.2%
Taylor expanded in z around inf 68.8%
if 4.6999999999999999e-287 < t < 2.8500000000000001e-150Initial program 90.9%
+-commutative90.9%
associate-/l*90.9%
fma-define90.9%
Simplified90.9%
Taylor expanded in z around inf 69.8%
Taylor expanded in a around inf 66.5%
if 2.8500000000000001e-150 < t < 2.15e101Initial program 83.3%
Taylor expanded in a around inf 53.9%
associate-/l*57.4%
Simplified57.4%
clear-num57.4%
inv-pow57.4%
Applied egg-rr57.4%
unpow-157.4%
Simplified57.4%
Taylor expanded in y around inf 50.5%
associate-*r/50.4%
Simplified50.4%
Taylor expanded in z around 0 48.9%
mul-1-neg48.9%
*-commutative48.9%
Simplified48.9%
Final simplification60.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- y (* y (/ z t)))))
(if (<= t -1.32e+54)
t_1
(if (<= t 1.06e-286)
(+ x (* y (/ z a)))
(if (<= t 2.8e-150)
(* z (/ (- y x) a))
(if (<= t 2.25e+101) (- x (/ (* y t) a)) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y - (y * (z / t));
double tmp;
if (t <= -1.32e+54) {
tmp = t_1;
} else if (t <= 1.06e-286) {
tmp = x + (y * (z / a));
} else if (t <= 2.8e-150) {
tmp = z * ((y - x) / a);
} else if (t <= 2.25e+101) {
tmp = x - ((y * t) / a);
} 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 - (y * (z / t))
if (t <= (-1.32d+54)) then
tmp = t_1
else if (t <= 1.06d-286) then
tmp = x + (y * (z / a))
else if (t <= 2.8d-150) then
tmp = z * ((y - x) / a)
else if (t <= 2.25d+101) then
tmp = x - ((y * t) / a)
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 - (y * (z / t));
double tmp;
if (t <= -1.32e+54) {
tmp = t_1;
} else if (t <= 1.06e-286) {
tmp = x + (y * (z / a));
} else if (t <= 2.8e-150) {
tmp = z * ((y - x) / a);
} else if (t <= 2.25e+101) {
tmp = x - ((y * t) / a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y - (y * (z / t)) tmp = 0 if t <= -1.32e+54: tmp = t_1 elif t <= 1.06e-286: tmp = x + (y * (z / a)) elif t <= 2.8e-150: tmp = z * ((y - x) / a) elif t <= 2.25e+101: tmp = x - ((y * t) / a) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y - Float64(y * Float64(z / t))) tmp = 0.0 if (t <= -1.32e+54) tmp = t_1; elseif (t <= 1.06e-286) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (t <= 2.8e-150) tmp = Float64(z * Float64(Float64(y - x) / a)); elseif (t <= 2.25e+101) tmp = Float64(x - Float64(Float64(y * t) / a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y - (y * (z / t)); tmp = 0.0; if (t <= -1.32e+54) tmp = t_1; elseif (t <= 1.06e-286) tmp = x + (y * (z / a)); elseif (t <= 2.8e-150) tmp = z * ((y - x) / a); elseif (t <= 2.25e+101) tmp = x - ((y * t) / a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y - N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.32e+54], t$95$1, If[LessEqual[t, 1.06e-286], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.8e-150], N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.25e+101], N[(x - N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y - y \cdot \frac{z}{t}\\
\mathbf{if}\;t \leq -1.32 \cdot 10^{+54}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.06 \cdot 10^{-286}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-150}:\\
\;\;\;\;z \cdot \frac{y - x}{a}\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{+101}:\\
\;\;\;\;x - \frac{y \cdot t}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.3200000000000001e54 or 2.2500000000000001e101 < t Initial program 35.4%
+-commutative35.4%
associate-/l*70.7%
fma-define70.7%
Simplified70.7%
Taylor expanded in t around inf 49.8%
associate--l+49.8%
sub-neg49.8%
Simplified43.9%
Taylor expanded in a around 0 58.0%
associate-*r/65.8%
Simplified65.8%
Taylor expanded in x around 0 45.4%
associate-/l*50.5%
Simplified50.5%
if -1.3200000000000001e54 < t < 1.0599999999999999e-286Initial program 89.6%
Taylor expanded in a around inf 72.8%
associate-/l*77.7%
Simplified77.7%
clear-num77.8%
inv-pow77.8%
Applied egg-rr77.8%
unpow-177.8%
Simplified77.8%
Taylor expanded in y around inf 63.9%
associate-*r/70.2%
Simplified70.2%
Taylor expanded in z around inf 68.8%
if 1.0599999999999999e-286 < t < 2.79999999999999996e-150Initial program 90.9%
+-commutative90.9%
associate-/l*90.9%
fma-define90.9%
Simplified90.9%
Taylor expanded in z around inf 69.8%
Taylor expanded in a around inf 66.5%
if 2.79999999999999996e-150 < t < 2.2500000000000001e101Initial program 83.3%
Taylor expanded in a around inf 53.9%
associate-/l*57.4%
Simplified57.4%
clear-num57.4%
inv-pow57.4%
Applied egg-rr57.4%
unpow-157.4%
Simplified57.4%
Taylor expanded in y around inf 50.5%
associate-*r/50.4%
Simplified50.4%
Taylor expanded in z around 0 48.9%
mul-1-neg48.9%
*-commutative48.9%
Simplified48.9%
Final simplification57.5%
(FPCore (x y z t a)
:precision binary64
(if (<= t -2.4e+54)
y
(if (<= t 4e-286)
(+ x (* y (/ z a)))
(if (<= t 2.7e-150)
(* z (/ (- y x) a))
(if (<= t 1.15e+199) (- x (* y (/ t a))) y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.4e+54) {
tmp = y;
} else if (t <= 4e-286) {
tmp = x + (y * (z / a));
} else if (t <= 2.7e-150) {
tmp = z * ((y - x) / a);
} else if (t <= 1.15e+199) {
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 <= (-2.4d+54)) then
tmp = y
else if (t <= 4d-286) then
tmp = x + (y * (z / a))
else if (t <= 2.7d-150) then
tmp = z * ((y - x) / a)
else if (t <= 1.15d+199) 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 <= -2.4e+54) {
tmp = y;
} else if (t <= 4e-286) {
tmp = x + (y * (z / a));
} else if (t <= 2.7e-150) {
tmp = z * ((y - x) / a);
} else if (t <= 1.15e+199) {
tmp = x - (y * (t / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.4e+54: tmp = y elif t <= 4e-286: tmp = x + (y * (z / a)) elif t <= 2.7e-150: tmp = z * ((y - x) / a) elif t <= 1.15e+199: tmp = x - (y * (t / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.4e+54) tmp = y; elseif (t <= 4e-286) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (t <= 2.7e-150) tmp = Float64(z * Float64(Float64(y - x) / a)); elseif (t <= 1.15e+199) tmp = Float64(x - Float64(y * Float64(t / a))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.4e+54) tmp = y; elseif (t <= 4e-286) tmp = x + (y * (z / a)); elseif (t <= 2.7e-150) tmp = z * ((y - x) / a); elseif (t <= 1.15e+199) tmp = x - (y * (t / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.4e+54], y, If[LessEqual[t, 4e-286], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.7e-150], N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.15e+199], N[(x - N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.4 \cdot 10^{+54}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-286}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-150}:\\
\;\;\;\;z \cdot \frac{y - x}{a}\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{+199}:\\
\;\;\;\;x - y \cdot \frac{t}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -2.39999999999999998e54 or 1.14999999999999997e199 < t Initial program 34.7%
+-commutative34.7%
associate-/l*69.1%
fma-define69.1%
Simplified69.1%
add-cube-cbrt67.7%
pow367.7%
Applied egg-rr67.7%
Taylor expanded in t around inf 47.4%
if -2.39999999999999998e54 < t < 4.0000000000000002e-286Initial program 89.6%
Taylor expanded in a around inf 72.8%
associate-/l*77.7%
Simplified77.7%
clear-num77.8%
inv-pow77.8%
Applied egg-rr77.8%
unpow-177.8%
Simplified77.8%
Taylor expanded in y around inf 63.9%
associate-*r/70.2%
Simplified70.2%
Taylor expanded in z around inf 68.8%
if 4.0000000000000002e-286 < t < 2.7000000000000001e-150Initial program 90.9%
+-commutative90.9%
associate-/l*90.9%
fma-define90.9%
Simplified90.9%
Taylor expanded in z around inf 69.8%
Taylor expanded in a around inf 66.5%
if 2.7000000000000001e-150 < t < 1.14999999999999997e199Initial program 68.0%
Taylor expanded in a around inf 42.1%
associate-/l*50.1%
Simplified50.1%
clear-num50.2%
inv-pow50.2%
Applied egg-rr50.2%
unpow-150.2%
Simplified50.2%
Taylor expanded in y around inf 41.3%
associate-*r/47.0%
Simplified47.0%
Taylor expanded in z around 0 40.1%
mul-1-neg40.1%
unsub-neg40.1%
*-commutative40.1%
*-lft-identity40.1%
times-frac41.4%
/-rgt-identity41.4%
Simplified41.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* z (/ y (- a t)))))
(if (<= z -2.2e+224)
(/ x (/ t z))
(if (<= z -1e+34)
t_1
(if (<= z 4.8e-44) x (if (<= z 2.1e+200) (* x (/ (- z a) t)) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = z * (y / (a - t));
double tmp;
if (z <= -2.2e+224) {
tmp = x / (t / z);
} else if (z <= -1e+34) {
tmp = t_1;
} else if (z <= 4.8e-44) {
tmp = x;
} else if (z <= 2.1e+200) {
tmp = x * ((z - a) / 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 = z * (y / (a - t))
if (z <= (-2.2d+224)) then
tmp = x / (t / z)
else if (z <= (-1d+34)) then
tmp = t_1
else if (z <= 4.8d-44) then
tmp = x
else if (z <= 2.1d+200) then
tmp = x * ((z - a) / 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 = z * (y / (a - t));
double tmp;
if (z <= -2.2e+224) {
tmp = x / (t / z);
} else if (z <= -1e+34) {
tmp = t_1;
} else if (z <= 4.8e-44) {
tmp = x;
} else if (z <= 2.1e+200) {
tmp = x * ((z - a) / t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = z * (y / (a - t)) tmp = 0 if z <= -2.2e+224: tmp = x / (t / z) elif z <= -1e+34: tmp = t_1 elif z <= 4.8e-44: tmp = x elif z <= 2.1e+200: tmp = x * ((z - a) / t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(z * Float64(y / Float64(a - t))) tmp = 0.0 if (z <= -2.2e+224) tmp = Float64(x / Float64(t / z)); elseif (z <= -1e+34) tmp = t_1; elseif (z <= 4.8e-44) tmp = x; elseif (z <= 2.1e+200) tmp = Float64(x * Float64(Float64(z - a) / t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = z * (y / (a - t)); tmp = 0.0; if (z <= -2.2e+224) tmp = x / (t / z); elseif (z <= -1e+34) tmp = t_1; elseif (z <= 4.8e-44) tmp = x; elseif (z <= 2.1e+200) tmp = x * ((z - a) / t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.2e+224], N[(x / N[(t / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1e+34], t$95$1, If[LessEqual[z, 4.8e-44], x, If[LessEqual[z, 2.1e+200], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \frac{y}{a - t}\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{+224}:\\
\;\;\;\;\frac{x}{\frac{t}{z}}\\
\mathbf{elif}\;z \leq -1 \cdot 10^{+34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-44}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{+200}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.2e224Initial program 53.2%
+-commutative53.2%
associate-/l*86.6%
fma-define86.7%
Simplified86.7%
Taylor expanded in z around inf 89.1%
Taylor expanded in y around 0 59.1%
neg-mul-159.1%
distribute-neg-frac59.1%
Simplified59.1%
Taylor expanded in a around 0 20.5%
associate-/l*51.4%
Simplified51.4%
clear-num51.4%
un-div-inv51.7%
Applied egg-rr51.7%
if -2.2e224 < z < -9.99999999999999946e33 or 2.09999999999999997e200 < z Initial program 71.9%
+-commutative71.9%
associate-/l*94.7%
fma-define94.7%
Simplified94.7%
Taylor expanded in z around inf 76.4%
Taylor expanded in y around inf 48.5%
if -9.99999999999999946e33 < z < 4.80000000000000017e-44Initial program 68.3%
+-commutative68.3%
associate-/l*81.3%
fma-define81.3%
Simplified81.3%
Taylor expanded in a around inf 40.9%
if 4.80000000000000017e-44 < z < 2.09999999999999997e200Initial program 69.3%
+-commutative69.3%
associate-/l*75.5%
fma-define75.4%
Simplified75.4%
Taylor expanded in t around inf 63.7%
associate--l+63.7%
associate-*r/63.7%
associate-*r/63.7%
mul-1-neg63.7%
div-sub64.0%
mul-1-neg64.0%
distribute-lft-out--64.0%
associate-*r/64.0%
mul-1-neg64.0%
unsub-neg64.0%
distribute-rgt-out--64.3%
Simplified64.3%
Taylor expanded in y around 0 42.0%
associate-/l*49.8%
Simplified49.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* z (/ (- x y) (- a t))))))
(if (<= z -1e+142)
t_1
(if (<= z 6.2e-55)
(- x (* (/ y (- a t)) (- t z)))
(if (<= z 4.9e+20) (+ y (* z (/ (- x y) t))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (z * ((x - y) / (a - t)));
double tmp;
if (z <= -1e+142) {
tmp = t_1;
} else if (z <= 6.2e-55) {
tmp = x - ((y / (a - t)) * (t - z));
} else if (z <= 4.9e+20) {
tmp = y + (z * ((x - y) / 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 - (z * ((x - y) / (a - t)))
if (z <= (-1d+142)) then
tmp = t_1
else if (z <= 6.2d-55) then
tmp = x - ((y / (a - t)) * (t - z))
else if (z <= 4.9d+20) then
tmp = y + (z * ((x - y) / 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 - (z * ((x - y) / (a - t)));
double tmp;
if (z <= -1e+142) {
tmp = t_1;
} else if (z <= 6.2e-55) {
tmp = x - ((y / (a - t)) * (t - z));
} else if (z <= 4.9e+20) {
tmp = y + (z * ((x - y) / t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (z * ((x - y) / (a - t))) tmp = 0 if z <= -1e+142: tmp = t_1 elif z <= 6.2e-55: tmp = x - ((y / (a - t)) * (t - z)) elif z <= 4.9e+20: tmp = y + (z * ((x - y) / t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(z * Float64(Float64(x - y) / Float64(a - t)))) tmp = 0.0 if (z <= -1e+142) tmp = t_1; elseif (z <= 6.2e-55) tmp = Float64(x - Float64(Float64(y / Float64(a - t)) * Float64(t - z))); elseif (z <= 4.9e+20) tmp = Float64(y + Float64(z * Float64(Float64(x - y) / t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (z * ((x - y) / (a - t))); tmp = 0.0; if (z <= -1e+142) tmp = t_1; elseif (z <= 6.2e-55) tmp = x - ((y / (a - t)) * (t - z)); elseif (z <= 4.9e+20) tmp = y + (z * ((x - y) / t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(z * N[(N[(x - y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1e+142], t$95$1, If[LessEqual[z, 6.2e-55], N[(x - N[(N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.9e+20], N[(y + N[(z * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - z \cdot \frac{x - y}{a - t}\\
\mathbf{if}\;z \leq -1 \cdot 10^{+142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-55}:\\
\;\;\;\;x - \frac{y}{a - t} \cdot \left(t - z\right)\\
\mathbf{elif}\;z \leq 4.9 \cdot 10^{+20}:\\
\;\;\;\;y + z \cdot \frac{x - y}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.00000000000000005e142 or 4.9e20 < z Initial program 70.0%
Taylor expanded in z around inf 66.8%
associate-/l*82.7%
Simplified82.7%
if -1.00000000000000005e142 < z < 6.19999999999999993e-55Initial program 69.1%
Taylor expanded in y around inf 66.5%
*-commutative66.5%
*-lft-identity66.5%
times-frac73.2%
/-rgt-identity73.2%
Simplified73.2%
if 6.19999999999999993e-55 < z < 4.9e20Initial program 51.0%
+-commutative51.0%
associate-/l*57.7%
fma-define57.6%
Simplified57.6%
Taylor expanded in t around inf 74.7%
associate--l+74.7%
sub-neg74.7%
Simplified68.6%
Taylor expanded in a around 0 86.8%
associate-*r/86.9%
Simplified86.9%
Final simplification77.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ y (* z (/ (- x y) t)))))
(if (<= t -4.3e+61)
t_1
(if (<= t 6.5e+98)
(- x (* z (/ (- x y) (- a t))))
(if (<= t 2.9e+198) (* y (/ (- z t) (- a t))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y + (z * ((x - y) / t));
double tmp;
if (t <= -4.3e+61) {
tmp = t_1;
} else if (t <= 6.5e+98) {
tmp = x - (z * ((x - y) / (a - t)));
} else if (t <= 2.9e+198) {
tmp = y * ((z - t) / (a - 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 = y + (z * ((x - y) / t))
if (t <= (-4.3d+61)) then
tmp = t_1
else if (t <= 6.5d+98) then
tmp = x - (z * ((x - y) / (a - t)))
else if (t <= 2.9d+198) then
tmp = y * ((z - t) / (a - 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 = y + (z * ((x - y) / t));
double tmp;
if (t <= -4.3e+61) {
tmp = t_1;
} else if (t <= 6.5e+98) {
tmp = x - (z * ((x - y) / (a - t)));
} else if (t <= 2.9e+198) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y + (z * ((x - y) / t)) tmp = 0 if t <= -4.3e+61: tmp = t_1 elif t <= 6.5e+98: tmp = x - (z * ((x - y) / (a - t))) elif t <= 2.9e+198: tmp = y * ((z - t) / (a - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y + Float64(z * Float64(Float64(x - y) / t))) tmp = 0.0 if (t <= -4.3e+61) tmp = t_1; elseif (t <= 6.5e+98) tmp = Float64(x - Float64(z * Float64(Float64(x - y) / Float64(a - t)))); elseif (t <= 2.9e+198) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y + (z * ((x - y) / t)); tmp = 0.0; if (t <= -4.3e+61) tmp = t_1; elseif (t <= 6.5e+98) tmp = x - (z * ((x - y) / (a - t))); elseif (t <= 2.9e+198) tmp = y * ((z - t) / (a - t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y + N[(z * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.3e+61], t$95$1, If[LessEqual[t, 6.5e+98], N[(x - N[(z * N[(N[(x - y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e+198], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + z \cdot \frac{x - y}{t}\\
\mathbf{if}\;t \leq -4.3 \cdot 10^{+61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{+98}:\\
\;\;\;\;x - z \cdot \frac{x - y}{a - t}\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{+198}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.3000000000000001e61 or 2.9000000000000001e198 < t Initial program 34.7%
+-commutative34.7%
associate-/l*69.1%
fma-define69.1%
Simplified69.1%
Taylor expanded in t around inf 51.6%
associate--l+51.6%
sub-neg51.6%
Simplified44.7%
Taylor expanded in a around 0 64.8%
associate-*r/71.7%
Simplified71.7%
if -4.3000000000000001e61 < t < 6.4999999999999999e98Initial program 87.7%
Taylor expanded in z around inf 77.8%
associate-/l*78.9%
Simplified78.9%
if 6.4999999999999999e98 < t < 2.9000000000000001e198Initial program 36.9%
+-commutative36.9%
associate-/l*74.7%
fma-define74.7%
Simplified74.7%
add-cube-cbrt74.3%
pow374.5%
Applied egg-rr74.5%
Taylor expanded in y around inf 65.2%
div-sub65.2%
Simplified65.2%
Final simplification75.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -9e-20)
t_1
(if (<= t 1.1e+97)
(+ x (* (- y x) (/ z a)))
(if (<= t 3.9e+198) t_1 (+ y (* z (/ x t))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -9e-20) {
tmp = t_1;
} else if (t <= 1.1e+97) {
tmp = x + ((y - x) * (z / a));
} else if (t <= 3.9e+198) {
tmp = t_1;
} else {
tmp = y + (z * (x / 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 (t <= (-9d-20)) then
tmp = t_1
else if (t <= 1.1d+97) then
tmp = x + ((y - x) * (z / a))
else if (t <= 3.9d+198) then
tmp = t_1
else
tmp = y + (z * (x / 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 (t <= -9e-20) {
tmp = t_1;
} else if (t <= 1.1e+97) {
tmp = x + ((y - x) * (z / a));
} else if (t <= 3.9e+198) {
tmp = t_1;
} else {
tmp = y + (z * (x / t));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -9e-20: tmp = t_1 elif t <= 1.1e+97: tmp = x + ((y - x) * (z / a)) elif t <= 3.9e+198: tmp = t_1 else: tmp = y + (z * (x / 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 (t <= -9e-20) tmp = t_1; elseif (t <= 1.1e+97) tmp = Float64(x + Float64(Float64(y - x) * Float64(z / a))); elseif (t <= 3.9e+198) tmp = t_1; else tmp = Float64(y + Float64(z * Float64(x / 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 (t <= -9e-20) tmp = t_1; elseif (t <= 1.1e+97) tmp = x + ((y - x) * (z / a)); elseif (t <= 3.9e+198) tmp = t_1; else tmp = y + (z * (x / 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[t, -9e-20], t$95$1, If[LessEqual[t, 1.1e+97], N[(x + N[(N[(y - x), $MachinePrecision] * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.9e+198], t$95$1, N[(y + N[(z * N[(x / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -9 \cdot 10^{-20}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{+97}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{+198}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y + z \cdot \frac{x}{t}\\
\end{array}
\end{array}
if t < -9.0000000000000003e-20 or 1.1e97 < t < 3.9e198Initial program 48.7%
+-commutative48.7%
associate-/l*72.2%
fma-define72.2%
Simplified72.2%
add-cube-cbrt71.4%
pow371.4%
Applied egg-rr71.4%
Taylor expanded in y around inf 62.4%
div-sub62.4%
Simplified62.4%
if -9.0000000000000003e-20 < t < 1.1e97Initial program 88.4%
Taylor expanded in a around inf 70.2%
associate-/l*74.1%
Simplified74.1%
Taylor expanded in z around inf 70.8%
if 3.9e198 < t Initial program 18.5%
+-commutative18.5%
associate-/l*71.3%
fma-define71.4%
Simplified71.4%
Taylor expanded in t around inf 42.2%
associate--l+42.2%
sub-neg42.2%
Simplified38.7%
Taylor expanded in a around 0 59.5%
associate-*r/81.3%
Simplified81.3%
Taylor expanded in y around 0 75.0%
neg-mul-175.0%
Simplified75.0%
Final simplification68.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -1.4e-20)
t_1
(if (<= t 3.2e+97)
(- x (* z (/ (- x y) a)))
(if (<= t 3.4e+198) t_1 (+ y (* z (/ x t))))))))
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-20) {
tmp = t_1;
} else if (t <= 3.2e+97) {
tmp = x - (z * ((x - y) / a));
} else if (t <= 3.4e+198) {
tmp = t_1;
} else {
tmp = y + (z * (x / 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 (t <= (-1.4d-20)) then
tmp = t_1
else if (t <= 3.2d+97) then
tmp = x - (z * ((x - y) / a))
else if (t <= 3.4d+198) then
tmp = t_1
else
tmp = y + (z * (x / 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 (t <= -1.4e-20) {
tmp = t_1;
} else if (t <= 3.2e+97) {
tmp = x - (z * ((x - y) / a));
} else if (t <= 3.4e+198) {
tmp = t_1;
} else {
tmp = y + (z * (x / t));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -1.4e-20: tmp = t_1 elif t <= 3.2e+97: tmp = x - (z * ((x - y) / a)) elif t <= 3.4e+198: tmp = t_1 else: tmp = y + (z * (x / 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 (t <= -1.4e-20) tmp = t_1; elseif (t <= 3.2e+97) tmp = Float64(x - Float64(z * Float64(Float64(x - y) / a))); elseif (t <= 3.4e+198) tmp = t_1; else tmp = Float64(y + Float64(z * Float64(x / 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 (t <= -1.4e-20) tmp = t_1; elseif (t <= 3.2e+97) tmp = x - (z * ((x - y) / a)); elseif (t <= 3.4e+198) tmp = t_1; else tmp = y + (z * (x / 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[t, -1.4e-20], t$95$1, If[LessEqual[t, 3.2e+97], N[(x - N[(z * N[(N[(x - y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.4e+198], t$95$1, N[(y + N[(z * N[(x / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -1.4 \cdot 10^{-20}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+97}:\\
\;\;\;\;x - z \cdot \frac{x - y}{a}\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{+198}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y + z \cdot \frac{x}{t}\\
\end{array}
\end{array}
if t < -1.4000000000000001e-20 or 3.20000000000000016e97 < t < 3.4e198Initial program 48.7%
+-commutative48.7%
associate-/l*72.2%
fma-define72.2%
Simplified72.2%
add-cube-cbrt71.4%
pow371.4%
Applied egg-rr71.4%
Taylor expanded in y around inf 62.4%
div-sub62.4%
Simplified62.4%
if -1.4000000000000001e-20 < t < 3.20000000000000016e97Initial program 88.4%
Taylor expanded in t around 0 65.6%
associate-/l*66.2%
Simplified66.2%
if 3.4e198 < t Initial program 18.5%
+-commutative18.5%
associate-/l*71.3%
fma-define71.4%
Simplified71.4%
Taylor expanded in t around inf 42.2%
associate--l+42.2%
sub-neg42.2%
Simplified38.7%
Taylor expanded in a around 0 59.5%
associate-*r/81.3%
Simplified81.3%
Taylor expanded in y around 0 75.0%
neg-mul-175.0%
Simplified75.0%
Final simplification65.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -1.08e-11)
t_1
(if (<= t 1.75e-63)
(+ x (* y (/ (- z t) a)))
(if (<= t 4e+198) t_1 (+ y (* z (/ x t))))))))
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.08e-11) {
tmp = t_1;
} else if (t <= 1.75e-63) {
tmp = x + (y * ((z - t) / a));
} else if (t <= 4e+198) {
tmp = t_1;
} else {
tmp = y + (z * (x / 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 (t <= (-1.08d-11)) then
tmp = t_1
else if (t <= 1.75d-63) then
tmp = x + (y * ((z - t) / a))
else if (t <= 4d+198) then
tmp = t_1
else
tmp = y + (z * (x / 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 (t <= -1.08e-11) {
tmp = t_1;
} else if (t <= 1.75e-63) {
tmp = x + (y * ((z - t) / a));
} else if (t <= 4e+198) {
tmp = t_1;
} else {
tmp = y + (z * (x / t));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -1.08e-11: tmp = t_1 elif t <= 1.75e-63: tmp = x + (y * ((z - t) / a)) elif t <= 4e+198: tmp = t_1 else: tmp = y + (z * (x / 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 (t <= -1.08e-11) tmp = t_1; elseif (t <= 1.75e-63) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / a))); elseif (t <= 4e+198) tmp = t_1; else tmp = Float64(y + Float64(z * Float64(x / 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 (t <= -1.08e-11) tmp = t_1; elseif (t <= 1.75e-63) tmp = x + (y * ((z - t) / a)); elseif (t <= 4e+198) tmp = t_1; else tmp = y + (z * (x / 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[t, -1.08e-11], t$95$1, If[LessEqual[t, 1.75e-63], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4e+198], t$95$1, N[(y + N[(z * N[(x / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -1.08 \cdot 10^{-11}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{-63}:\\
\;\;\;\;x + y \cdot \frac{z - t}{a}\\
\mathbf{elif}\;t \leq 4 \cdot 10^{+198}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y + z \cdot \frac{x}{t}\\
\end{array}
\end{array}
if t < -1.07999999999999992e-11 or 1.75000000000000002e-63 < t < 4.00000000000000007e198Initial program 58.5%
+-commutative58.5%
associate-/l*77.5%
fma-define77.5%
Simplified77.5%
add-cube-cbrt76.5%
pow376.5%
Applied egg-rr76.5%
Taylor expanded in y around inf 56.0%
div-sub56.0%
Simplified56.0%
if -1.07999999999999992e-11 < t < 1.75000000000000002e-63Initial program 90.4%
Taylor expanded in a around inf 78.2%
associate-/l*81.7%
Simplified81.7%
clear-num81.7%
inv-pow81.7%
Applied egg-rr81.7%
unpow-181.7%
Simplified81.7%
Taylor expanded in y around inf 63.6%
associate-*r/67.8%
Simplified67.8%
if 4.00000000000000007e198 < t Initial program 18.5%
+-commutative18.5%
associate-/l*71.3%
fma-define71.4%
Simplified71.4%
Taylor expanded in t around inf 42.2%
associate--l+42.2%
sub-neg42.2%
Simplified38.7%
Taylor expanded in a around 0 59.5%
associate-*r/81.3%
Simplified81.3%
Taylor expanded in y around 0 75.0%
neg-mul-175.0%
Simplified75.0%
Final simplification63.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -7.6e-18)
t_1
(if (<= t 7.6e-114)
(+ x (* y (/ z a)))
(if (<= t 2.7e+198) t_1 (+ y (* z (/ x t))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -7.6e-18) {
tmp = t_1;
} else if (t <= 7.6e-114) {
tmp = x + (y * (z / a));
} else if (t <= 2.7e+198) {
tmp = t_1;
} else {
tmp = y + (z * (x / 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 (t <= (-7.6d-18)) then
tmp = t_1
else if (t <= 7.6d-114) then
tmp = x + (y * (z / a))
else if (t <= 2.7d+198) then
tmp = t_1
else
tmp = y + (z * (x / 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 (t <= -7.6e-18) {
tmp = t_1;
} else if (t <= 7.6e-114) {
tmp = x + (y * (z / a));
} else if (t <= 2.7e+198) {
tmp = t_1;
} else {
tmp = y + (z * (x / t));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -7.6e-18: tmp = t_1 elif t <= 7.6e-114: tmp = x + (y * (z / a)) elif t <= 2.7e+198: tmp = t_1 else: tmp = y + (z * (x / 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 (t <= -7.6e-18) tmp = t_1; elseif (t <= 7.6e-114) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (t <= 2.7e+198) tmp = t_1; else tmp = Float64(y + Float64(z * Float64(x / 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 (t <= -7.6e-18) tmp = t_1; elseif (t <= 7.6e-114) tmp = x + (y * (z / a)); elseif (t <= 2.7e+198) tmp = t_1; else tmp = y + (z * (x / 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[t, -7.6e-18], t$95$1, If[LessEqual[t, 7.6e-114], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.7e+198], t$95$1, N[(y + N[(z * N[(x / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -7.6 \cdot 10^{-18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 7.6 \cdot 10^{-114}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{+198}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y + z \cdot \frac{x}{t}\\
\end{array}
\end{array}
if t < -7.5999999999999996e-18 or 7.5999999999999997e-114 < t < 2.6999999999999999e198Initial program 60.5%
+-commutative60.5%
associate-/l*77.8%
fma-define77.8%
Simplified77.8%
add-cube-cbrt76.8%
pow376.9%
Applied egg-rr76.9%
Taylor expanded in y around inf 55.9%
div-sub56.0%
Simplified56.0%
if -7.5999999999999996e-18 < t < 7.5999999999999997e-114Initial program 91.3%
Taylor expanded in a around inf 79.8%
associate-/l*83.7%
Simplified83.7%
clear-num83.7%
inv-pow83.7%
Applied egg-rr83.7%
unpow-183.7%
Simplified83.7%
Taylor expanded in y around inf 63.6%
associate-*r/68.3%
Simplified68.3%
Taylor expanded in z around inf 67.3%
if 2.6999999999999999e198 < t Initial program 18.5%
+-commutative18.5%
associate-/l*71.3%
fma-define71.4%
Simplified71.4%
Taylor expanded in t around inf 42.2%
associate--l+42.2%
sub-neg42.2%
Simplified38.7%
Taylor expanded in a around 0 59.5%
associate-*r/81.3%
Simplified81.3%
Taylor expanded in y around 0 75.0%
neg-mul-175.0%
Simplified75.0%
Final simplification62.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- y (* y (/ z t)))))
(if (<= t -3.2e+54)
t_1
(if (<= t 9.5e+28)
(+ x (* y (/ z a)))
(if (<= t 6e+112) (* z (/ (- x y) t)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y - (y * (z / t));
double tmp;
if (t <= -3.2e+54) {
tmp = t_1;
} else if (t <= 9.5e+28) {
tmp = x + (y * (z / a));
} else if (t <= 6e+112) {
tmp = z * ((x - y) / 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 = y - (y * (z / t))
if (t <= (-3.2d+54)) then
tmp = t_1
else if (t <= 9.5d+28) then
tmp = x + (y * (z / a))
else if (t <= 6d+112) then
tmp = z * ((x - y) / 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 = y - (y * (z / t));
double tmp;
if (t <= -3.2e+54) {
tmp = t_1;
} else if (t <= 9.5e+28) {
tmp = x + (y * (z / a));
} else if (t <= 6e+112) {
tmp = z * ((x - y) / t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y - (y * (z / t)) tmp = 0 if t <= -3.2e+54: tmp = t_1 elif t <= 9.5e+28: tmp = x + (y * (z / a)) elif t <= 6e+112: tmp = z * ((x - y) / t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y - Float64(y * Float64(z / t))) tmp = 0.0 if (t <= -3.2e+54) tmp = t_1; elseif (t <= 9.5e+28) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (t <= 6e+112) tmp = Float64(z * Float64(Float64(x - y) / t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y - (y * (z / t)); tmp = 0.0; if (t <= -3.2e+54) tmp = t_1; elseif (t <= 9.5e+28) tmp = x + (y * (z / a)); elseif (t <= 6e+112) tmp = z * ((x - y) / t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y - N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.2e+54], t$95$1, If[LessEqual[t, 9.5e+28], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6e+112], N[(z * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y - y \cdot \frac{z}{t}\\
\mathbf{if}\;t \leq -3.2 \cdot 10^{+54}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{+28}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 6 \cdot 10^{+112}:\\
\;\;\;\;z \cdot \frac{x - y}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -3.2e54 or 5.99999999999999958e112 < t Initial program 35.2%
+-commutative35.2%
associate-/l*70.8%
fma-define70.8%
Simplified70.8%
Taylor expanded in t around inf 49.1%
associate--l+49.1%
sub-neg49.1%
Simplified43.0%
Taylor expanded in a around 0 57.6%
associate-*r/64.7%
Simplified64.7%
Taylor expanded in x around 0 46.7%
associate-/l*51.0%
Simplified51.0%
if -3.2e54 < t < 9.49999999999999927e28Initial program 88.9%
Taylor expanded in a around inf 71.5%
associate-/l*75.0%
Simplified75.0%
clear-num75.0%
inv-pow75.0%
Applied egg-rr75.0%
unpow-175.0%
Simplified75.0%
Taylor expanded in y around inf 58.0%
associate-*r/62.0%
Simplified62.0%
Taylor expanded in z around inf 58.5%
if 9.49999999999999927e28 < t < 5.99999999999999958e112Initial program 74.4%
+-commutative74.4%
associate-/l*85.6%
fma-define85.5%
Simplified85.5%
Taylor expanded in z around inf 58.2%
Taylor expanded in a around 0 54.3%
distribute-lft-out--54.3%
div-sub54.3%
neg-mul-154.3%
distribute-rgt-neg-in54.3%
distribute-lft-neg-in54.3%
*-commutative54.3%
Simplified54.3%
Final simplification55.4%
(FPCore (x y z t a)
:precision binary64
(if (<= z -5.4e+37)
(* z (/ (- y x) a))
(if (<= z 5e-45)
x
(if (<= z 1e+209) (* x (/ (- z a) t)) (* z (/ y (- a t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.4e+37) {
tmp = z * ((y - x) / a);
} else if (z <= 5e-45) {
tmp = x;
} else if (z <= 1e+209) {
tmp = x * ((z - a) / t);
} else {
tmp = z * (y / (a - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-5.4d+37)) then
tmp = z * ((y - x) / a)
else if (z <= 5d-45) then
tmp = x
else if (z <= 1d+209) then
tmp = x * ((z - a) / t)
else
tmp = z * (y / (a - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.4e+37) {
tmp = z * ((y - x) / a);
} else if (z <= 5e-45) {
tmp = x;
} else if (z <= 1e+209) {
tmp = x * ((z - a) / t);
} else {
tmp = z * (y / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -5.4e+37: tmp = z * ((y - x) / a) elif z <= 5e-45: tmp = x elif z <= 1e+209: tmp = x * ((z - a) / t) else: tmp = z * (y / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -5.4e+37) tmp = Float64(z * Float64(Float64(y - x) / a)); elseif (z <= 5e-45) tmp = x; elseif (z <= 1e+209) tmp = Float64(x * Float64(Float64(z - a) / t)); else tmp = Float64(z * Float64(y / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -5.4e+37) tmp = z * ((y - x) / a); elseif (z <= 5e-45) tmp = x; elseif (z <= 1e+209) tmp = x * ((z - a) / t); else tmp = z * (y / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -5.4e+37], N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e-45], x, If[LessEqual[z, 1e+209], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.4 \cdot 10^{+37}:\\
\;\;\;\;z \cdot \frac{y - x}{a}\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-45}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 10^{+209}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{else}:\\
\;\;\;\;z \cdot \frac{y}{a - t}\\
\end{array}
\end{array}
if z < -5.39999999999999973e37Initial program 66.9%
+-commutative66.9%
associate-/l*88.9%
fma-define88.9%
Simplified88.9%
Taylor expanded in z around inf 76.8%
Taylor expanded in a around inf 45.0%
if -5.39999999999999973e37 < z < 4.99999999999999976e-45Initial program 68.3%
+-commutative68.3%
associate-/l*81.3%
fma-define81.3%
Simplified81.3%
Taylor expanded in a around inf 40.9%
if 4.99999999999999976e-45 < z < 1.0000000000000001e209Initial program 69.3%
+-commutative69.3%
associate-/l*75.5%
fma-define75.4%
Simplified75.4%
Taylor expanded in t around inf 63.7%
associate--l+63.7%
associate-*r/63.7%
associate-*r/63.7%
mul-1-neg63.7%
div-sub64.0%
mul-1-neg64.0%
distribute-lft-out--64.0%
associate-*r/64.0%
mul-1-neg64.0%
unsub-neg64.0%
distribute-rgt-out--64.3%
Simplified64.3%
Taylor expanded in y around 0 42.0%
associate-/l*49.8%
Simplified49.8%
if 1.0000000000000001e209 < z Initial program 68.3%
+-commutative68.3%
associate-/l*99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around inf 84.0%
Taylor expanded in y around inf 50.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (/ (- z a) t))))
(if (<= z -42000000000.0)
t_1
(if (<= z 7.2e-42) x (if (<= z 5.2e+235) t_1 (* (/ z t) (- y)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * ((z - a) / t);
double tmp;
if (z <= -42000000000.0) {
tmp = t_1;
} else if (z <= 7.2e-42) {
tmp = x;
} else if (z <= 5.2e+235) {
tmp = t_1;
} else {
tmp = (z / t) * -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 * ((z - a) / t)
if (z <= (-42000000000.0d0)) then
tmp = t_1
else if (z <= 7.2d-42) then
tmp = x
else if (z <= 5.2d+235) then
tmp = t_1
else
tmp = (z / t) * -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 * ((z - a) / t);
double tmp;
if (z <= -42000000000.0) {
tmp = t_1;
} else if (z <= 7.2e-42) {
tmp = x;
} else if (z <= 5.2e+235) {
tmp = t_1;
} else {
tmp = (z / t) * -y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * ((z - a) / t) tmp = 0 if z <= -42000000000.0: tmp = t_1 elif z <= 7.2e-42: tmp = x elif z <= 5.2e+235: tmp = t_1 else: tmp = (z / t) * -y return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(Float64(z - a) / t)) tmp = 0.0 if (z <= -42000000000.0) tmp = t_1; elseif (z <= 7.2e-42) tmp = x; elseif (z <= 5.2e+235) tmp = t_1; else tmp = Float64(Float64(z / t) * Float64(-y)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * ((z - a) / t); tmp = 0.0; if (z <= -42000000000.0) tmp = t_1; elseif (z <= 7.2e-42) tmp = x; elseif (z <= 5.2e+235) tmp = t_1; else tmp = (z / t) * -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -42000000000.0], t$95$1, If[LessEqual[z, 7.2e-42], x, If[LessEqual[z, 5.2e+235], t$95$1, N[(N[(z / t), $MachinePrecision] * (-y)), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{z - a}{t}\\
\mathbf{if}\;z \leq -42000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{-42}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{+235}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{t} \cdot \left(-y\right)\\
\end{array}
\end{array}
if z < -4.2e10 or 7.2000000000000004e-42 < z < 5.1999999999999996e235Initial program 68.1%
+-commutative68.1%
associate-/l*82.7%
fma-define82.7%
Simplified82.7%
Taylor expanded in t around inf 49.5%
associate--l+49.5%
associate-*r/49.5%
associate-*r/49.5%
mul-1-neg49.5%
div-sub49.6%
mul-1-neg49.6%
distribute-lft-out--49.6%
associate-*r/49.6%
mul-1-neg49.6%
unsub-neg49.6%
distribute-rgt-out--50.8%
Simplified50.8%
Taylor expanded in y around 0 30.6%
associate-/l*42.9%
Simplified42.9%
if -4.2e10 < z < 7.2000000000000004e-42Initial program 69.1%
+-commutative69.1%
associate-/l*81.6%
fma-define81.6%
Simplified81.6%
Taylor expanded in a around inf 41.0%
if 5.1999999999999996e235 < z Initial program 63.9%
+-commutative63.9%
associate-/l*99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in t around inf 42.7%
associate--l+42.7%
sub-neg42.7%
Simplified29.1%
Taylor expanded in a around 0 49.4%
associate-*r/53.8%
Simplified53.8%
Taylor expanded in x around 0 38.4%
associate-/l*52.4%
Simplified52.4%
Taylor expanded in z around inf 38.4%
associate-*r/52.4%
neg-mul-152.4%
distribute-rgt-neg-in52.4%
distribute-neg-frac252.4%
Simplified52.4%
Final simplification42.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -3.2e+53) (not (<= t 2.25e+101))) (+ y (* (- z a) (/ (- x y) t))) (- x (* z (/ (- x y) (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -3.2e+53) || !(t <= 2.25e+101)) {
tmp = y + ((z - a) * ((x - y) / t));
} else {
tmp = x - (z * ((x - y) / (a - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-3.2d+53)) .or. (.not. (t <= 2.25d+101))) then
tmp = y + ((z - a) * ((x - y) / t))
else
tmp = x - (z * ((x - y) / (a - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -3.2e+53) || !(t <= 2.25e+101)) {
tmp = y + ((z - a) * ((x - y) / t));
} else {
tmp = x - (z * ((x - y) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -3.2e+53) or not (t <= 2.25e+101): tmp = y + ((z - a) * ((x - y) / t)) else: tmp = x - (z * ((x - y) / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -3.2e+53) || !(t <= 2.25e+101)) tmp = Float64(y + Float64(Float64(z - a) * Float64(Float64(x - y) / t))); else tmp = Float64(x - Float64(z * Float64(Float64(x - y) / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -3.2e+53) || ~((t <= 2.25e+101))) tmp = y + ((z - a) * ((x - y) / t)); else tmp = x - (z * ((x - y) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -3.2e+53], N[Not[LessEqual[t, 2.25e+101]], $MachinePrecision]], N[(y + N[(N[(z - a), $MachinePrecision] * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(z * N[(N[(x - y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{+53} \lor \neg \left(t \leq 2.25 \cdot 10^{+101}\right):\\
\;\;\;\;y + \left(z - a\right) \cdot \frac{x - y}{t}\\
\mathbf{else}:\\
\;\;\;\;x - z \cdot \frac{x - y}{a - t}\\
\end{array}
\end{array}
if t < -3.2e53 or 2.2500000000000001e101 < t Initial program 35.0%
+-commutative35.0%
associate-/l*70.0%
fma-define70.0%
Simplified70.0%
add-cube-cbrt68.9%
pow369.0%
Applied egg-rr69.0%
Taylor expanded in t around inf 57.3%
mul-1-neg57.3%
associate--l+57.3%
mul-1-neg57.3%
associate-*r/57.3%
associate-*r/57.3%
div-sub57.3%
distribute-lft-out--57.3%
distribute-rgt-out--57.3%
associate-*r/57.3%
distribute-rgt-out--57.3%
mul-1-neg57.3%
div-sub57.3%
Simplified75.2%
if -3.2e53 < t < 2.2500000000000001e101Initial program 88.2%
Taylor expanded in z around inf 77.6%
associate-/l*78.8%
Simplified78.8%
Final simplification77.4%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.5e+142) (/ x (/ t z)) (if (<= z 4.7e-45) x (if (<= z 7.8e+235) (* x (/ z t)) (* (/ z t) (- y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.5e+142) {
tmp = x / (t / z);
} else if (z <= 4.7e-45) {
tmp = x;
} else if (z <= 7.8e+235) {
tmp = x * (z / t);
} else {
tmp = (z / t) * -y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.5d+142)) then
tmp = x / (t / z)
else if (z <= 4.7d-45) then
tmp = x
else if (z <= 7.8d+235) then
tmp = x * (z / t)
else
tmp = (z / t) * -y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.5e+142) {
tmp = x / (t / z);
} else if (z <= 4.7e-45) {
tmp = x;
} else if (z <= 7.8e+235) {
tmp = x * (z / t);
} else {
tmp = (z / t) * -y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.5e+142: tmp = x / (t / z) elif z <= 4.7e-45: tmp = x elif z <= 7.8e+235: tmp = x * (z / t) else: tmp = (z / t) * -y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.5e+142) tmp = Float64(x / Float64(t / z)); elseif (z <= 4.7e-45) tmp = x; elseif (z <= 7.8e+235) tmp = Float64(x * Float64(z / t)); else tmp = Float64(Float64(z / t) * Float64(-y)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.5e+142) tmp = x / (t / z); elseif (z <= 4.7e-45) tmp = x; elseif (z <= 7.8e+235) tmp = x * (z / t); else tmp = (z / t) * -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.5e+142], N[(x / N[(t / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.7e-45], x, If[LessEqual[z, 7.8e+235], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], N[(N[(z / t), $MachinePrecision] * (-y)), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.5 \cdot 10^{+142}:\\
\;\;\;\;\frac{x}{\frac{t}{z}}\\
\mathbf{elif}\;z \leq 4.7 \cdot 10^{-45}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 7.8 \cdot 10^{+235}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{t} \cdot \left(-y\right)\\
\end{array}
\end{array}
if z < -1.49999999999999987e142Initial program 63.9%
+-commutative63.9%
associate-/l*86.0%
fma-define86.1%
Simplified86.1%
Taylor expanded in z around inf 87.1%
Taylor expanded in y around 0 53.3%
neg-mul-153.3%
distribute-neg-frac53.3%
Simplified53.3%
Taylor expanded in a around 0 19.8%
associate-/l*46.7%
Simplified46.7%
clear-num46.7%
un-div-inv46.9%
Applied egg-rr46.9%
if -1.49999999999999987e142 < z < 4.6999999999999998e-45Initial program 68.8%
+-commutative68.8%
associate-/l*82.7%
fma-define82.7%
Simplified82.7%
Taylor expanded in a around inf 38.0%
if 4.6999999999999998e-45 < z < 7.8000000000000005e235Initial program 70.9%
+-commutative70.9%
associate-/l*78.1%
fma-define78.1%
Simplified78.1%
Taylor expanded in z around inf 76.2%
Taylor expanded in y around 0 49.8%
neg-mul-149.8%
distribute-neg-frac49.8%
Simplified49.8%
Taylor expanded in a around 0 41.0%
associate-/l*46.2%
Simplified46.2%
if 7.8000000000000005e235 < z Initial program 63.9%
+-commutative63.9%
associate-/l*99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in t around inf 42.7%
associate--l+42.7%
sub-neg42.7%
Simplified29.1%
Taylor expanded in a around 0 49.4%
associate-*r/53.8%
Simplified53.8%
Taylor expanded in x around 0 38.4%
associate-/l*52.4%
Simplified52.4%
Taylor expanded in z around inf 38.4%
associate-*r/52.4%
neg-mul-152.4%
distribute-rgt-neg-in52.4%
distribute-neg-frac252.4%
Simplified52.4%
Final simplification42.0%
(FPCore (x y z t a) :precision binary64 (if (<= a -9.5e-40) (+ x (* y (/ (- z t) a))) (if (<= a 1.6e-41) (+ y (* z (/ (- x y) t))) (+ x (* (- y x) (/ z a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.5e-40) {
tmp = x + (y * ((z - t) / a));
} else if (a <= 1.6e-41) {
tmp = y + (z * ((x - y) / t));
} else {
tmp = x + ((y - x) * (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) :: tmp
if (a <= (-9.5d-40)) then
tmp = x + (y * ((z - t) / a))
else if (a <= 1.6d-41) then
tmp = y + (z * ((x - y) / t))
else
tmp = x + ((y - x) * (z / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.5e-40) {
tmp = x + (y * ((z - t) / a));
} else if (a <= 1.6e-41) {
tmp = y + (z * ((x - y) / t));
} else {
tmp = x + ((y - x) * (z / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -9.5e-40: tmp = x + (y * ((z - t) / a)) elif a <= 1.6e-41: tmp = y + (z * ((x - y) / t)) else: tmp = x + ((y - x) * (z / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -9.5e-40) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / a))); elseif (a <= 1.6e-41) tmp = Float64(y + Float64(z * Float64(Float64(x - y) / t))); else tmp = Float64(x + Float64(Float64(y - x) * Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -9.5e-40) tmp = x + (y * ((z - t) / a)); elseif (a <= 1.6e-41) tmp = y + (z * ((x - y) / t)); else tmp = x + ((y - x) * (z / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -9.5e-40], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e-41], N[(y + N[(z * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.5 \cdot 10^{-40}:\\
\;\;\;\;x + y \cdot \frac{z - t}{a}\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-41}:\\
\;\;\;\;y + z \cdot \frac{x - y}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z}{a}\\
\end{array}
\end{array}
if a < -9.5000000000000006e-40Initial program 70.9%
Taylor expanded in a around inf 62.6%
associate-/l*71.2%
Simplified71.2%
clear-num71.2%
inv-pow71.2%
Applied egg-rr71.2%
unpow-171.2%
Simplified71.2%
Taylor expanded in y around inf 63.4%
associate-*r/69.0%
Simplified69.0%
if -9.5000000000000006e-40 < a < 1.60000000000000006e-41Initial program 68.2%
+-commutative68.2%
associate-/l*78.1%
fma-define78.1%
Simplified78.1%
Taylor expanded in t around inf 59.1%
associate--l+59.1%
sub-neg59.1%
Simplified53.3%
Taylor expanded in a around 0 71.5%
associate-*r/74.6%
Simplified74.6%
if 1.60000000000000006e-41 < a Initial program 65.9%
Taylor expanded in a around inf 59.4%
associate-/l*73.3%
Simplified73.3%
Taylor expanded in z around inf 65.9%
Final simplification70.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -8.5e+53) (not (<= t 2.5e+101))) (- y (* y (/ z t))) (+ x (* y (/ z a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -8.5e+53) || !(t <= 2.5e+101)) {
tmp = y - (y * (z / t));
} else {
tmp = x + (y * (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) :: tmp
if ((t <= (-8.5d+53)) .or. (.not. (t <= 2.5d+101))) then
tmp = y - (y * (z / t))
else
tmp = x + (y * (z / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -8.5e+53) || !(t <= 2.5e+101)) {
tmp = y - (y * (z / t));
} else {
tmp = x + (y * (z / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -8.5e+53) or not (t <= 2.5e+101): tmp = y - (y * (z / t)) else: tmp = x + (y * (z / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -8.5e+53) || !(t <= 2.5e+101)) tmp = Float64(y - Float64(y * Float64(z / t))); else tmp = Float64(x + Float64(y * Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -8.5e+53) || ~((t <= 2.5e+101))) tmp = y - (y * (z / t)); else tmp = x + (y * (z / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -8.5e+53], N[Not[LessEqual[t, 2.5e+101]], $MachinePrecision]], N[(y - N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8.5 \cdot 10^{+53} \lor \neg \left(t \leq 2.5 \cdot 10^{+101}\right):\\
\;\;\;\;y - y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\end{array}
\end{array}
if t < -8.5000000000000002e53 or 2.49999999999999994e101 < t Initial program 35.7%
+-commutative35.7%
associate-/l*71.4%
fma-define71.4%
Simplified71.4%
Taylor expanded in t around inf 49.3%
associate--l+49.3%
sub-neg49.3%
Simplified43.3%
Taylor expanded in a around 0 57.6%
associate-*r/65.5%
Simplified65.5%
Taylor expanded in x around 0 45.9%
associate-/l*51.0%
Simplified51.0%
if -8.5000000000000002e53 < t < 2.49999999999999994e101Initial program 87.2%
Taylor expanded in a around inf 68.2%
associate-/l*71.8%
Simplified71.8%
clear-num71.8%
inv-pow71.8%
Applied egg-rr71.8%
unpow-171.8%
Simplified71.8%
Taylor expanded in y around inf 56.0%
associate-*r/59.4%
Simplified59.4%
Taylor expanded in z around inf 55.2%
Final simplification53.7%
(FPCore (x y z t a) :precision binary64 (if (<= t -3.4e+54) y (if (<= t 9.5e+102) (+ x (* y (/ z a))) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.4e+54) {
tmp = y;
} else if (t <= 9.5e+102) {
tmp = x + (y * (z / 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 <= (-3.4d+54)) then
tmp = y
else if (t <= 9.5d+102) then
tmp = x + (y * (z / 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 <= -3.4e+54) {
tmp = y;
} else if (t <= 9.5e+102) {
tmp = x + (y * (z / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.4e+54: tmp = y elif t <= 9.5e+102: tmp = x + (y * (z / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.4e+54) tmp = y; elseif (t <= 9.5e+102) tmp = Float64(x + Float64(y * Float64(z / a))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3.4e+54) tmp = y; elseif (t <= 9.5e+102) tmp = x + (y * (z / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.4e+54], y, If[LessEqual[t, 9.5e+102], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.4 \cdot 10^{+54}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{+102}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -3.4000000000000001e54 or 9.4999999999999992e102 < t Initial program 35.7%
+-commutative35.7%
associate-/l*71.4%
fma-define71.4%
Simplified71.4%
add-cube-cbrt70.3%
pow370.3%
Applied egg-rr70.3%
Taylor expanded in t around inf 41.5%
if -3.4000000000000001e54 < t < 9.4999999999999992e102Initial program 87.2%
Taylor expanded in a around inf 68.2%
associate-/l*71.8%
Simplified71.8%
clear-num71.8%
inv-pow71.8%
Applied egg-rr71.8%
unpow-171.8%
Simplified71.8%
Taylor expanded in y around inf 56.0%
associate-*r/59.4%
Simplified59.4%
Taylor expanded in z around inf 55.2%
(FPCore (x y z t a) :precision binary64 (if (<= a -2.6e-34) x (if (<= a 2e-41) (* x (/ z t)) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.6e-34) {
tmp = x;
} else if (a <= 2e-41) {
tmp = x * (z / t);
} 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 <= (-2.6d-34)) then
tmp = x
else if (a <= 2d-41) then
tmp = x * (z / t)
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 <= -2.6e-34) {
tmp = x;
} else if (a <= 2e-41) {
tmp = x * (z / t);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.6e-34: tmp = x elif a <= 2e-41: tmp = x * (z / t) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.6e-34) tmp = x; elseif (a <= 2e-41) tmp = Float64(x * Float64(z / t)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.6e-34) tmp = x; elseif (a <= 2e-41) tmp = x * (z / t); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.6e-34], x, If[LessEqual[a, 2e-41], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.6 \cdot 10^{-34}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 2 \cdot 10^{-41}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -2.5999999999999999e-34 or 2.00000000000000001e-41 < a Initial program 68.1%
+-commutative68.1%
associate-/l*87.8%
fma-define87.9%
Simplified87.9%
Taylor expanded in a around inf 41.8%
if -2.5999999999999999e-34 < a < 2.00000000000000001e-41Initial program 68.5%
+-commutative68.5%
associate-/l*78.3%
fma-define78.3%
Simplified78.3%
Taylor expanded in z around inf 58.4%
Taylor expanded in y around 0 37.7%
neg-mul-137.7%
distribute-neg-frac37.7%
Simplified37.7%
Taylor expanded in a around 0 30.3%
associate-/l*38.6%
Simplified38.6%
(FPCore (x y z t a) :precision binary64 (if (<= t -7.5e+53) y (if (<= t 8.5e+102) x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -7.5e+53) {
tmp = y;
} else if (t <= 8.5e+102) {
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 <= (-7.5d+53)) then
tmp = y
else if (t <= 8.5d+102) 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 <= -7.5e+53) {
tmp = y;
} else if (t <= 8.5e+102) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -7.5e+53: tmp = y elif t <= 8.5e+102: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -7.5e+53) tmp = y; elseif (t <= 8.5e+102) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -7.5e+53) tmp = y; elseif (t <= 8.5e+102) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -7.5e+53], y, If[LessEqual[t, 8.5e+102], x, y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.5 \cdot 10^{+53}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{+102}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -7.4999999999999997e53 or 8.4999999999999996e102 < t Initial program 35.7%
+-commutative35.7%
associate-/l*71.4%
fma-define71.4%
Simplified71.4%
add-cube-cbrt70.3%
pow370.3%
Applied egg-rr70.3%
Taylor expanded in t around inf 41.5%
if -7.4999999999999997e53 < t < 8.4999999999999996e102Initial program 87.2%
+-commutative87.2%
associate-/l*90.6%
fma-define90.6%
Simplified90.6%
Taylor expanded in a around inf 35.1%
(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 68.3%
+-commutative68.3%
associate-/l*83.5%
fma-define83.5%
Simplified83.5%
Taylor expanded in a around inf 26.1%
(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 2024180
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
:precision binary64
:alt
(! :herbie-platform default (if (< a -646122513817703/4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))) (if (< a 1887201585041587/50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))))))
(+ x (/ (* (- y x) (- z t)) (- a t))))