
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/ x (+ x (* y (exp (* (+ a 0.8333333333333334) (* c 2.0)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp(((a + 0.8333333333333334) * (c * 2.0)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp(((a + 0.8333333333333334) * (c * 2.0)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp(((a + 0.8333333333333334) * (c * 2.0))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(a + 0.8333333333333334) * Float64(c * 2.0)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp(((a + 0.8333333333333334) * (c * 2.0))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t\_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(a + 0.8333333333333334\right) \cdot \left(c \cdot 2\right)}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < +inf.0Initial program 99.2%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 0.0%
Taylor expanded in c around inf 67.7%
+-commutative67.7%
associate-*r/67.7%
metadata-eval67.7%
Simplified67.7%
Taylor expanded in t around inf 80.6%
associate-*r*80.6%
Simplified80.6%
Final simplification98.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (- a (/ 0.6666666666666666 t))))
(if (<= t -2.6e-81)
(/ x (+ x (* y (exp (* 2.0 (* a (- b)))))))
(if (<= t -1.25e-238)
(/ x (+ x (* y (exp (* 2.0 (/ (* z (sqrt a)) t))))))
(if (<= t 3.25e-298)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= t 4e-228)
(/ x (+ x (* y (exp (* 2.0 (/ (* c -0.6666666666666666) t))))))
(if (<= t 1.85e-10)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
b
(/
(+
0.6944444444444444
(* t_1 (- (/ 0.6666666666666666 t) a)))
(- t_1 0.8333333333333334))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(/ z (sqrt t))
(* (+ a 0.8333333333333334) (- c b)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a - (0.6666666666666666 / t);
double tmp;
if (t <= -2.6e-81) {
tmp = x / (x + (y * exp((2.0 * (a * -b)))));
} else if (t <= -1.25e-238) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt(a)) / t)))));
} else if (t <= 3.25e-298) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (t <= 4e-228) {
tmp = x / (x + (y * exp((2.0 * ((c * -0.6666666666666666) / t)))));
} else if (t <= 1.85e-10) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6944444444444444 + (t_1 * ((0.6666666666666666 / t) - a))) / (t_1 - 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((z / sqrt(t)) + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = a - (0.6666666666666666d0 / t)
if (t <= (-2.6d-81)) then
tmp = x / (x + (y * exp((2.0d0 * (a * -b)))))
else if (t <= (-1.25d-238)) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt(a)) / t)))))
else if (t <= 3.25d-298) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (t <= 4d-228) then
tmp = x / (x + (y * exp((2.0d0 * ((c * (-0.6666666666666666d0)) / t)))))
else if (t <= 1.85d-10) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6944444444444444d0 + (t_1 * ((0.6666666666666666d0 / t) - a))) / (t_1 - 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((z / sqrt(t)) + ((a + 0.8333333333333334d0) * (c - b)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a - (0.6666666666666666 / t);
double tmp;
if (t <= -2.6e-81) {
tmp = x / (x + (y * Math.exp((2.0 * (a * -b)))));
} else if (t <= -1.25e-238) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt(a)) / t)))));
} else if (t <= 3.25e-298) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (t <= 4e-228) {
tmp = x / (x + (y * Math.exp((2.0 * ((c * -0.6666666666666666) / t)))));
} else if (t <= 1.85e-10) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6944444444444444 + (t_1 * ((0.6666666666666666 / t) - a))) / (t_1 - 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((z / Math.sqrt(t)) + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = a - (0.6666666666666666 / t) tmp = 0 if t <= -2.6e-81: tmp = x / (x + (y * math.exp((2.0 * (a * -b))))) elif t <= -1.25e-238: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt(a)) / t))))) elif t <= 3.25e-298: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif t <= 4e-228: tmp = x / (x + (y * math.exp((2.0 * ((c * -0.6666666666666666) / t))))) elif t <= 1.85e-10: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6944444444444444 + (t_1 * ((0.6666666666666666 / t) - a))) / (t_1 - 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((z / math.sqrt(t)) + ((a + 0.8333333333333334) * (c - b))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(a - Float64(0.6666666666666666 / t)) tmp = 0.0 if (t <= -2.6e-81) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(-b))))))); elseif (t <= -1.25e-238) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(a)) / t)))))); elseif (t <= 3.25e-298) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (t <= 4e-228) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c * -0.6666666666666666) / t)))))); elseif (t <= 1.85e-10) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6944444444444444 + Float64(t_1 * Float64(Float64(0.6666666666666666 / t) - a))) / Float64(t_1 - 0.8333333333333334)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z / sqrt(t)) + Float64(Float64(a + 0.8333333333333334) * Float64(c - b)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = a - (0.6666666666666666 / t); tmp = 0.0; if (t <= -2.6e-81) tmp = x / (x + (y * exp((2.0 * (a * -b))))); elseif (t <= -1.25e-238) tmp = x / (x + (y * exp((2.0 * ((z * sqrt(a)) / t))))); elseif (t <= 3.25e-298) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (t <= 4e-228) tmp = x / (x + (y * exp((2.0 * ((c * -0.6666666666666666) / t))))); elseif (t <= 1.85e-10) tmp = x / (x + (y * exp((2.0 * (b * ((0.6944444444444444 + (t_1 * ((0.6666666666666666 / t) - a))) / (t_1 - 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * ((z / sqrt(t)) + ((a + 0.8333333333333334) * (c - b))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.6e-81], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * (-b)), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.25e-238], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.25e-298], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4e-228], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c * -0.6666666666666666), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.85e-10], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6944444444444444 + N[(t$95$1 * N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$1 - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z / N[Sqrt[t], $MachinePrecision]), $MachinePrecision] + N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a - \frac{0.6666666666666666}{t}\\
\mathbf{if}\;t \leq -2.6 \cdot 10^{-81}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(-b\right)\right)}}\\
\mathbf{elif}\;t \leq -1.25 \cdot 10^{-238}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a}}{t}}}\\
\mathbf{elif}\;t \leq 3.25 \cdot 10^{-298}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-228}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{c \cdot -0.6666666666666666}{t}}}\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{-10}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \frac{0.6944444444444444 + t\_1 \cdot \left(\frac{0.6666666666666666}{t} - a\right)}{t\_1 - 0.8333333333333334}\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z}{\sqrt{t}} + \left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < -2.5999999999999999e-81Initial program 100.0%
Taylor expanded in b around inf 75.8%
associate-*r/75.8%
metadata-eval75.8%
+-commutative75.8%
Simplified75.8%
Taylor expanded in a around inf 75.8%
associate-*r*75.8%
neg-mul-175.8%
Simplified75.8%
if -2.5999999999999999e-81 < t < -1.25e-238Initial program 86.7%
Taylor expanded in t around 0 100.0%
Taylor expanded in a around inf 93.5%
if -1.25e-238 < t < 3.2500000000000001e-298Initial program 92.9%
Taylor expanded in b around inf 72.3%
associate-*r/72.3%
metadata-eval72.3%
+-commutative72.3%
Simplified72.3%
Taylor expanded in t around inf 79.2%
mul-1-neg79.2%
+-commutative79.2%
distribute-rgt-neg-in79.2%
+-commutative79.2%
mul-1-neg79.2%
distribute-lft-in79.2%
metadata-eval79.2%
neg-mul-179.2%
unsub-neg79.2%
Simplified79.2%
Taylor expanded in a around 0 79.7%
if 3.2500000000000001e-298 < t < 4.00000000000000013e-228Initial program 91.7%
Taylor expanded in t around 0 91.7%
Taylor expanded in c around inf 79.8%
*-commutative79.8%
Simplified79.8%
if 4.00000000000000013e-228 < t < 1.85000000000000007e-10Initial program 93.1%
Taylor expanded in b around inf 75.0%
associate-*r/75.0%
metadata-eval75.0%
+-commutative75.0%
Simplified75.0%
associate--r+75.0%
flip--78.3%
metadata-eval78.3%
Applied egg-rr78.3%
if 1.85000000000000007e-10 < t Initial program 93.0%
Taylor expanded in t around inf 100.0%
*-commutative100.0%
sqrt-div100.0%
metadata-eval100.0%
un-div-inv100.0%
Applied egg-rr100.0%
Final simplification88.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (- a (/ 0.6666666666666666 t))))
(if (<= t -3.6e+72)
(/ x (+ x (* y (exp (* 2.0 (* a (- b)))))))
(if (<= t 4.5e-222)
(/
x
(+
x
(*
y
(exp
(* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 2e-11)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
b
(/
(+ 0.6944444444444444 (* t_1 (- (/ 0.6666666666666666 t) a)))
(- t_1 0.8333333333333334))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(+ (/ z (sqrt t)) (* (+ a 0.8333333333333334) (- c b)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a - (0.6666666666666666 / t);
double tmp;
if (t <= -3.6e+72) {
tmp = x / (x + (y * exp((2.0 * (a * -b)))));
} else if (t <= 4.5e-222) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 2e-11) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6944444444444444 + (t_1 * ((0.6666666666666666 / t) - a))) / (t_1 - 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((z / sqrt(t)) + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = a - (0.6666666666666666d0 / t)
if (t <= (-3.6d+72)) then
tmp = x / (x + (y * exp((2.0d0 * (a * -b)))))
else if (t <= 4.5d-222) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 2d-11) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6944444444444444d0 + (t_1 * ((0.6666666666666666d0 / t) - a))) / (t_1 - 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((z / sqrt(t)) + ((a + 0.8333333333333334d0) * (c - b)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a - (0.6666666666666666 / t);
double tmp;
if (t <= -3.6e+72) {
tmp = x / (x + (y * Math.exp((2.0 * (a * -b)))));
} else if (t <= 4.5e-222) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 2e-11) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6944444444444444 + (t_1 * ((0.6666666666666666 / t) - a))) / (t_1 - 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((z / Math.sqrt(t)) + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = a - (0.6666666666666666 / t) tmp = 0 if t <= -3.6e+72: tmp = x / (x + (y * math.exp((2.0 * (a * -b))))) elif t <= 4.5e-222: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 2e-11: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6944444444444444 + (t_1 * ((0.6666666666666666 / t) - a))) / (t_1 - 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((z / math.sqrt(t)) + ((a + 0.8333333333333334) * (c - b))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(a - Float64(0.6666666666666666 / t)) tmp = 0.0 if (t <= -3.6e+72) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(-b))))))); elseif (t <= 4.5e-222) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); elseif (t <= 2e-11) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6944444444444444 + Float64(t_1 * Float64(Float64(0.6666666666666666 / t) - a))) / Float64(t_1 - 0.8333333333333334)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z / sqrt(t)) + Float64(Float64(a + 0.8333333333333334) * Float64(c - b)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = a - (0.6666666666666666 / t); tmp = 0.0; if (t <= -3.6e+72) tmp = x / (x + (y * exp((2.0 * (a * -b))))); elseif (t <= 4.5e-222) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 2e-11) tmp = x / (x + (y * exp((2.0 * (b * ((0.6944444444444444 + (t_1 * ((0.6666666666666666 / t) - a))) / (t_1 - 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * ((z / sqrt(t)) + ((a + 0.8333333333333334) * (c - b))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.6e+72], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * (-b)), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e-222], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e-11], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6944444444444444 + N[(t$95$1 * N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$1 - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z / N[Sqrt[t], $MachinePrecision]), $MachinePrecision] + N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a - \frac{0.6666666666666666}{t}\\
\mathbf{if}\;t \leq -3.6 \cdot 10^{+72}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(-b\right)\right)}}\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-222}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-11}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \frac{0.6944444444444444 + t\_1 \cdot \left(\frac{0.6666666666666666}{t} - a\right)}{t\_1 - 0.8333333333333334}\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z}{\sqrt{t}} + \left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < -3.60000000000000035e72Initial program 100.0%
Taylor expanded in b around inf 83.9%
associate-*r/83.9%
metadata-eval83.9%
+-commutative83.9%
Simplified83.9%
Taylor expanded in a around inf 83.9%
associate-*r*83.9%
neg-mul-183.9%
Simplified83.9%
if -3.60000000000000035e72 < t < 4.50000000000000014e-222Initial program 93.3%
Taylor expanded in t around 0 90.9%
if 4.50000000000000014e-222 < t < 1.99999999999999988e-11Initial program 92.9%
Taylor expanded in b around inf 75.8%
associate-*r/75.8%
metadata-eval75.8%
+-commutative75.8%
Simplified75.8%
associate--r+75.8%
flip--79.3%
metadata-eval79.3%
Applied egg-rr79.3%
if 1.99999999999999988e-11 < t Initial program 93.0%
Taylor expanded in t around inf 100.0%
*-commutative100.0%
sqrt-div100.0%
metadata-eval100.0%
un-div-inv100.0%
Applied egg-rr100.0%
Final simplification92.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* b -1.6666666666666667))))))
(t_2 (/ x (+ x (* y (exp (* 2.0 (* a c))))))))
(if (<= t -4.1e-33)
t_2
(if (<= t -5e-309)
t_1
(if (<= t 1.5e-204)
1.0
(if (<= t 2.9e-50)
(/
x
(+
x
(+
y
(*
2.0
(*
(* c y)
(+
0.8333333333333334
(* a (- 1.0 (/ 0.6666666666666666 (* t a))))))))))
(if (<= t 3.8e+54) 1.0 (if (<= t 1e+82) t_2 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((b * -1.6666666666666667))));
double t_2 = x / (x + (y * exp((2.0 * (a * c)))));
double tmp;
if (t <= -4.1e-33) {
tmp = t_2;
} else if (t <= -5e-309) {
tmp = t_1;
} else if (t <= 1.5e-204) {
tmp = 1.0;
} else if (t <= 2.9e-50) {
tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a)))))))));
} else if (t <= 3.8e+54) {
tmp = 1.0;
} else if (t <= 1e+82) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
t_2 = x / (x + (y * exp((2.0d0 * (a * c)))))
if (t <= (-4.1d-33)) then
tmp = t_2
else if (t <= (-5d-309)) then
tmp = t_1
else if (t <= 1.5d-204) then
tmp = 1.0d0
else if (t <= 2.9d-50) then
tmp = x / (x + (y + (2.0d0 * ((c * y) * (0.8333333333333334d0 + (a * (1.0d0 - (0.6666666666666666d0 / (t * a)))))))))
else if (t <= 3.8d+54) then
tmp = 1.0d0
else if (t <= 1d+82) 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 b, double c) {
double t_1 = x / (x + (y * Math.exp((b * -1.6666666666666667))));
double t_2 = x / (x + (y * Math.exp((2.0 * (a * c)))));
double tmp;
if (t <= -4.1e-33) {
tmp = t_2;
} else if (t <= -5e-309) {
tmp = t_1;
} else if (t <= 1.5e-204) {
tmp = 1.0;
} else if (t <= 2.9e-50) {
tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a)))))))));
} else if (t <= 3.8e+54) {
tmp = 1.0;
} else if (t <= 1e+82) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((b * -1.6666666666666667)))) t_2 = x / (x + (y * math.exp((2.0 * (a * c))))) tmp = 0 if t <= -4.1e-33: tmp = t_2 elif t <= -5e-309: tmp = t_1 elif t <= 1.5e-204: tmp = 1.0 elif t <= 2.9e-50: tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a))))))))) elif t <= 3.8e+54: tmp = 1.0 elif t <= 1e+82: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))) tmp = 0.0 if (t <= -4.1e-33) tmp = t_2; elseif (t <= -5e-309) tmp = t_1; elseif (t <= 1.5e-204) tmp = 1.0; elseif (t <= 2.9e-50) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(Float64(c * y) * Float64(0.8333333333333334 + Float64(a * Float64(1.0 - Float64(0.6666666666666666 / Float64(t * a)))))))))); elseif (t <= 3.8e+54) tmp = 1.0; elseif (t <= 1e+82) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((b * -1.6666666666666667)))); t_2 = x / (x + (y * exp((2.0 * (a * c))))); tmp = 0.0; if (t <= -4.1e-33) tmp = t_2; elseif (t <= -5e-309) tmp = t_1; elseif (t <= 1.5e-204) tmp = 1.0; elseif (t <= 2.9e-50) tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a))))))))); elseif (t <= 3.8e+54) tmp = 1.0; elseif (t <= 1e+82) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.1e-33], t$95$2, If[LessEqual[t, -5e-309], t$95$1, If[LessEqual[t, 1.5e-204], 1.0, If[LessEqual[t, 2.9e-50], N[(x / N[(x + N[(y + N[(2.0 * N[(N[(c * y), $MachinePrecision] * N[(0.8333333333333334 + N[(a * N[(1.0 - N[(0.6666666666666666 / N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.8e+54], 1.0, If[LessEqual[t, 1e+82], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
t_2 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{if}\;t \leq -4.1 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -5 \cdot 10^{-309}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{-204}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{-50}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(\left(c \cdot y\right) \cdot \left(0.8333333333333334 + a \cdot \left(1 - \frac{0.6666666666666666}{t \cdot a}\right)\right)\right)\right)}\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{+54}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 10^{+82}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.1e-33 or 3.8000000000000002e54 < t < 9.9999999999999996e81Initial program 100.0%
Taylor expanded in c around inf 67.7%
+-commutative67.7%
associate-*r/67.7%
metadata-eval67.7%
Simplified67.7%
Taylor expanded in a around inf 67.7%
if -4.1e-33 < t < -4.9999999999999995e-309 or 9.9999999999999996e81 < t Initial program 91.0%
Taylor expanded in b around inf 72.4%
associate-*r/72.4%
metadata-eval72.4%
+-commutative72.4%
Simplified72.4%
Taylor expanded in t around inf 74.0%
mul-1-neg74.0%
+-commutative74.0%
distribute-rgt-neg-in74.0%
+-commutative74.0%
mul-1-neg74.0%
distribute-lft-in74.0%
metadata-eval74.0%
neg-mul-174.0%
unsub-neg74.0%
Simplified74.0%
Taylor expanded in a around 0 70.4%
if -4.9999999999999995e-309 < t < 1.4999999999999999e-204 or 2.90000000000000008e-50 < t < 3.8000000000000002e54Initial program 96.4%
Taylor expanded in c around inf 70.6%
+-commutative70.6%
associate-*r/70.6%
metadata-eval70.6%
Simplified70.6%
Taylor expanded in c around 0 32.2%
Taylor expanded in x around inf 60.2%
if 1.4999999999999999e-204 < t < 2.90000000000000008e-50Initial program 90.2%
Taylor expanded in c around inf 64.6%
+-commutative64.6%
associate-*r/64.6%
metadata-eval64.6%
Simplified64.6%
Taylor expanded in c around 0 55.3%
associate-*r*52.9%
associate--l+52.9%
associate-*r/52.9%
metadata-eval52.9%
Simplified52.9%
Taylor expanded in a around inf 62.4%
associate-*r/62.4%
metadata-eval62.4%
Simplified62.4%
Final simplification66.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (+ a 0.8333333333333334) (* c 2.0))))))))
(if (<= c -9.2e+203)
t_1
(if (<= c -9.5e+136)
(/ x (+ x (* y (exp (* 2.0 (/ (* c -0.6666666666666666) t))))))
(if (<= c -3.3e+122)
1.0
(if (<= c -1.72e+58)
(/
(/ x y)
(+
(*
2.0
(* c (+ (+ a 0.8333333333333334) (/ -0.6666666666666666 t))))
1.0))
(if (<= c 0.062)
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a)))))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp(((a + 0.8333333333333334) * (c * 2.0)))));
double tmp;
if (c <= -9.2e+203) {
tmp = t_1;
} else if (c <= -9.5e+136) {
tmp = x / (x + (y * exp((2.0 * ((c * -0.6666666666666666) / t)))));
} else if (c <= -3.3e+122) {
tmp = 1.0;
} else if (c <= -1.72e+58) {
tmp = (x / y) / ((2.0 * (c * ((a + 0.8333333333333334) + (-0.6666666666666666 / t)))) + 1.0);
} else if (c <= 0.062) {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp(((a + 0.8333333333333334d0) * (c * 2.0d0)))))
if (c <= (-9.2d+203)) then
tmp = t_1
else if (c <= (-9.5d+136)) then
tmp = x / (x + (y * exp((2.0d0 * ((c * (-0.6666666666666666d0)) / t)))))
else if (c <= (-3.3d+122)) then
tmp = 1.0d0
else if (c <= (-1.72d+58)) then
tmp = (x / y) / ((2.0d0 * (c * ((a + 0.8333333333333334d0) + ((-0.6666666666666666d0) / t)))) + 1.0d0)
else if (c <= 0.062d0) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - 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 b, double c) {
double t_1 = x / (x + (y * Math.exp(((a + 0.8333333333333334) * (c * 2.0)))));
double tmp;
if (c <= -9.2e+203) {
tmp = t_1;
} else if (c <= -9.5e+136) {
tmp = x / (x + (y * Math.exp((2.0 * ((c * -0.6666666666666666) / t)))));
} else if (c <= -3.3e+122) {
tmp = 1.0;
} else if (c <= -1.72e+58) {
tmp = (x / y) / ((2.0 * (c * ((a + 0.8333333333333334) + (-0.6666666666666666 / t)))) + 1.0);
} else if (c <= 0.062) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp(((a + 0.8333333333333334) * (c * 2.0))))) tmp = 0 if c <= -9.2e+203: tmp = t_1 elif c <= -9.5e+136: tmp = x / (x + (y * math.exp((2.0 * ((c * -0.6666666666666666) / t))))) elif c <= -3.3e+122: tmp = 1.0 elif c <= -1.72e+58: tmp = (x / y) / ((2.0 * (c * ((a + 0.8333333333333334) + (-0.6666666666666666 / t)))) + 1.0) elif c <= 0.062: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(a + 0.8333333333333334) * Float64(c * 2.0)))))) tmp = 0.0 if (c <= -9.2e+203) tmp = t_1; elseif (c <= -9.5e+136) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c * -0.6666666666666666) / t)))))); elseif (c <= -3.3e+122) tmp = 1.0; elseif (c <= -1.72e+58) tmp = Float64(Float64(x / y) / Float64(Float64(2.0 * Float64(c * Float64(Float64(a + 0.8333333333333334) + Float64(-0.6666666666666666 / t)))) + 1.0)); elseif (c <= 0.062) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp(((a + 0.8333333333333334) * (c * 2.0))))); tmp = 0.0; if (c <= -9.2e+203) tmp = t_1; elseif (c <= -9.5e+136) tmp = x / (x + (y * exp((2.0 * ((c * -0.6666666666666666) / t))))); elseif (c <= -3.3e+122) tmp = 1.0; elseif (c <= -1.72e+58) tmp = (x / y) / ((2.0 * (c * ((a + 0.8333333333333334) + (-0.6666666666666666 / t)))) + 1.0); elseif (c <= 0.062) tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -9.2e+203], t$95$1, If[LessEqual[c, -9.5e+136], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c * -0.6666666666666666), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.3e+122], 1.0, If[LessEqual[c, -1.72e+58], N[(N[(x / y), $MachinePrecision] / N[(N[(2.0 * N[(c * N[(N[(a + 0.8333333333333334), $MachinePrecision] + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 0.062], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\left(a + 0.8333333333333334\right) \cdot \left(c \cdot 2\right)}}\\
\mathbf{if}\;c \leq -9.2 \cdot 10^{+203}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -9.5 \cdot 10^{+136}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{c \cdot -0.6666666666666666}{t}}}\\
\mathbf{elif}\;c \leq -3.3 \cdot 10^{+122}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.72 \cdot 10^{+58}:\\
\;\;\;\;\frac{\frac{x}{y}}{2 \cdot \left(c \cdot \left(\left(a + 0.8333333333333334\right) + \frac{-0.6666666666666666}{t}\right)\right) + 1}\\
\mathbf{elif}\;c \leq 0.062:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -9.1999999999999996e203 or 0.062 < c Initial program 87.9%
Taylor expanded in c around inf 84.0%
+-commutative84.0%
associate-*r/84.0%
metadata-eval84.0%
Simplified84.0%
Taylor expanded in t around inf 75.5%
associate-*r*75.5%
Simplified75.5%
if -9.1999999999999996e203 < c < -9.49999999999999907e136Initial program 100.0%
Taylor expanded in t around 0 54.5%
Taylor expanded in c around inf 91.4%
*-commutative91.4%
Simplified91.4%
if -9.49999999999999907e136 < c < -3.2999999999999999e122Initial program 100.0%
Taylor expanded in c around inf 100.0%
+-commutative100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in c around 0 62.2%
Taylor expanded in x around inf 100.0%
if -3.2999999999999999e122 < c < -1.72000000000000013e58Initial program 93.1%
Taylor expanded in c around inf 51.6%
+-commutative51.6%
associate-*r/51.6%
metadata-eval51.6%
Simplified51.6%
Taylor expanded in c around 0 40.8%
associate-*r*40.8%
associate--l+40.8%
associate-*r/40.8%
metadata-eval40.8%
Simplified40.8%
Taylor expanded in y around inf 67.5%
associate-/r*67.8%
associate-*r/67.8%
metadata-eval67.8%
sub-neg67.8%
+-commutative67.8%
distribute-neg-frac67.8%
metadata-eval67.8%
Simplified67.8%
if -1.72000000000000013e58 < c < 0.062Initial program 96.3%
Taylor expanded in b around inf 80.1%
associate-*r/80.1%
metadata-eval80.1%
+-commutative80.1%
Simplified80.1%
Taylor expanded in t around inf 70.9%
mul-1-neg70.9%
+-commutative70.9%
distribute-rgt-neg-in70.9%
+-commutative70.9%
mul-1-neg70.9%
distribute-lft-in70.9%
metadata-eval70.9%
neg-mul-170.9%
unsub-neg70.9%
Simplified70.9%
Final simplification73.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a c))))))))
(if (<= a -3100000000000.0)
t_1
(if (<= a 1.75e-236)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= a 8e-86)
(/
x
(+
x
(+
y
(*
2.0
(*
(* c y)
(+
0.8333333333333334
(* a (- 1.0 (/ 0.6666666666666666 (* t a))))))))))
(if (or (<= a 3.2e+18) (not (<= a 1.4e+158)))
(/ x (+ x (* y (exp (* 2.0 (* a (- b)))))))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (a * c)))));
double tmp;
if (a <= -3100000000000.0) {
tmp = t_1;
} else if (a <= 1.75e-236) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (a <= 8e-86) {
tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a)))))))));
} else if ((a <= 3.2e+18) || !(a <= 1.4e+158)) {
tmp = x / (x + (y * exp((2.0 * (a * -b)))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (a * c)))))
if (a <= (-3100000000000.0d0)) then
tmp = t_1
else if (a <= 1.75d-236) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (a <= 8d-86) then
tmp = x / (x + (y + (2.0d0 * ((c * y) * (0.8333333333333334d0 + (a * (1.0d0 - (0.6666666666666666d0 / (t * a)))))))))
else if ((a <= 3.2d+18) .or. (.not. (a <= 1.4d+158))) then
tmp = x / (x + (y * exp((2.0d0 * (a * -b)))))
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 b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (a * c)))));
double tmp;
if (a <= -3100000000000.0) {
tmp = t_1;
} else if (a <= 1.75e-236) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (a <= 8e-86) {
tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a)))))))));
} else if ((a <= 3.2e+18) || !(a <= 1.4e+158)) {
tmp = x / (x + (y * Math.exp((2.0 * (a * -b)))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * c))))) tmp = 0 if a <= -3100000000000.0: tmp = t_1 elif a <= 1.75e-236: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif a <= 8e-86: tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a))))))))) elif (a <= 3.2e+18) or not (a <= 1.4e+158): tmp = x / (x + (y * math.exp((2.0 * (a * -b))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))) tmp = 0.0 if (a <= -3100000000000.0) tmp = t_1; elseif (a <= 1.75e-236) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (a <= 8e-86) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(Float64(c * y) * Float64(0.8333333333333334 + Float64(a * Float64(1.0 - Float64(0.6666666666666666 / Float64(t * a)))))))))); elseif ((a <= 3.2e+18) || !(a <= 1.4e+158)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(-b))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (a * c))))); tmp = 0.0; if (a <= -3100000000000.0) tmp = t_1; elseif (a <= 1.75e-236) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (a <= 8e-86) tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a))))))))); elseif ((a <= 3.2e+18) || ~((a <= 1.4e+158))) tmp = x / (x + (y * exp((2.0 * (a * -b))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3100000000000.0], t$95$1, If[LessEqual[a, 1.75e-236], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8e-86], N[(x / N[(x + N[(y + N[(2.0 * N[(N[(c * y), $MachinePrecision] * N[(0.8333333333333334 + N[(a * N[(1.0 - N[(0.6666666666666666 / N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, 3.2e+18], N[Not[LessEqual[a, 1.4e+158]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * (-b)), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{if}\;a \leq -3100000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{-236}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;a \leq 8 \cdot 10^{-86}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(\left(c \cdot y\right) \cdot \left(0.8333333333333334 + a \cdot \left(1 - \frac{0.6666666666666666}{t \cdot a}\right)\right)\right)\right)}\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{+18} \lor \neg \left(a \leq 1.4 \cdot 10^{+158}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(-b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -3.1e12 or 3.2e18 < a < 1.40000000000000001e158Initial program 89.8%
Taylor expanded in c around inf 72.2%
+-commutative72.2%
associate-*r/72.2%
metadata-eval72.2%
Simplified72.2%
Taylor expanded in a around inf 70.5%
if -3.1e12 < a < 1.74999999999999997e-236Initial program 97.0%
Taylor expanded in b around inf 72.6%
associate-*r/72.6%
metadata-eval72.6%
+-commutative72.6%
Simplified72.6%
Taylor expanded in t around inf 59.5%
mul-1-neg59.5%
+-commutative59.5%
distribute-rgt-neg-in59.5%
+-commutative59.5%
mul-1-neg59.5%
distribute-lft-in59.5%
metadata-eval59.5%
neg-mul-159.5%
unsub-neg59.5%
Simplified59.5%
Taylor expanded in a around 0 58.0%
if 1.74999999999999997e-236 < a < 8.00000000000000068e-86Initial program 96.4%
Taylor expanded in c around inf 65.4%
+-commutative65.4%
associate-*r/65.4%
metadata-eval65.4%
Simplified65.4%
Taylor expanded in c around 0 36.5%
associate-*r*36.5%
associate--l+36.5%
associate-*r/36.5%
metadata-eval36.5%
Simplified36.5%
Taylor expanded in a around inf 55.2%
associate-*r/55.2%
metadata-eval55.2%
Simplified55.2%
if 8.00000000000000068e-86 < a < 3.2e18 or 1.40000000000000001e158 < a Initial program 92.3%
Taylor expanded in b around inf 75.6%
associate-*r/75.6%
metadata-eval75.6%
+-commutative75.6%
Simplified75.6%
Taylor expanded in a around inf 70.5%
associate-*r*70.5%
neg-mul-170.5%
Simplified70.5%
Final simplification65.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (+ a 0.8333333333333334) (* c 2.0))))))))
(if (<= c -2.8e+205)
t_1
(if (<= c -2.7e+137)
(/ x (+ x (* y (exp (* 2.0 (/ (* c -0.6666666666666666) t))))))
(if (<= c -3.2e+124)
1.0
(if (<= c 6.8e+123)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
b
(- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp(((a + 0.8333333333333334) * (c * 2.0)))));
double tmp;
if (c <= -2.8e+205) {
tmp = t_1;
} else if (c <= -2.7e+137) {
tmp = x / (x + (y * exp((2.0 * ((c * -0.6666666666666666) / t)))));
} else if (c <= -3.2e+124) {
tmp = 1.0;
} else if (c <= 6.8e+123) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp(((a + 0.8333333333333334d0) * (c * 2.0d0)))))
if (c <= (-2.8d+205)) then
tmp = t_1
else if (c <= (-2.7d+137)) then
tmp = x / (x + (y * exp((2.0d0 * ((c * (-0.6666666666666666d0)) / t)))))
else if (c <= (-3.2d+124)) then
tmp = 1.0d0
else if (c <= 6.8d+123) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
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 b, double c) {
double t_1 = x / (x + (y * Math.exp(((a + 0.8333333333333334) * (c * 2.0)))));
double tmp;
if (c <= -2.8e+205) {
tmp = t_1;
} else if (c <= -2.7e+137) {
tmp = x / (x + (y * Math.exp((2.0 * ((c * -0.6666666666666666) / t)))));
} else if (c <= -3.2e+124) {
tmp = 1.0;
} else if (c <= 6.8e+123) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp(((a + 0.8333333333333334) * (c * 2.0))))) tmp = 0 if c <= -2.8e+205: tmp = t_1 elif c <= -2.7e+137: tmp = x / (x + (y * math.exp((2.0 * ((c * -0.6666666666666666) / t))))) elif c <= -3.2e+124: tmp = 1.0 elif c <= 6.8e+123: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(a + 0.8333333333333334) * Float64(c * 2.0)))))) tmp = 0.0 if (c <= -2.8e+205) tmp = t_1; elseif (c <= -2.7e+137) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c * -0.6666666666666666) / t)))))); elseif (c <= -3.2e+124) tmp = 1.0; elseif (c <= 6.8e+123) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp(((a + 0.8333333333333334) * (c * 2.0))))); tmp = 0.0; if (c <= -2.8e+205) tmp = t_1; elseif (c <= -2.7e+137) tmp = x / (x + (y * exp((2.0 * ((c * -0.6666666666666666) / t))))); elseif (c <= -3.2e+124) tmp = 1.0; elseif (c <= 6.8e+123) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.8e+205], t$95$1, If[LessEqual[c, -2.7e+137], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c * -0.6666666666666666), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.2e+124], 1.0, If[LessEqual[c, 6.8e+123], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\left(a + 0.8333333333333334\right) \cdot \left(c \cdot 2\right)}}\\
\mathbf{if}\;c \leq -2.8 \cdot 10^{+205}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -2.7 \cdot 10^{+137}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{c \cdot -0.6666666666666666}{t}}}\\
\mathbf{elif}\;c \leq -3.2 \cdot 10^{+124}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 6.8 \cdot 10^{+123}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -2.79999999999999991e205 or 6.80000000000000002e123 < c Initial program 86.4%
Taylor expanded in c around inf 88.3%
+-commutative88.3%
associate-*r/88.3%
metadata-eval88.3%
Simplified88.3%
Taylor expanded in t around inf 79.5%
associate-*r*79.5%
Simplified79.5%
if -2.79999999999999991e205 < c < -2.70000000000000017e137Initial program 100.0%
Taylor expanded in t around 0 54.5%
Taylor expanded in c around inf 91.4%
*-commutative91.4%
Simplified91.4%
if -2.70000000000000017e137 < c < -3.19999999999999993e124Initial program 100.0%
Taylor expanded in c around inf 100.0%
+-commutative100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in c around 0 62.2%
Taylor expanded in x around inf 100.0%
if -3.19999999999999993e124 < c < 6.80000000000000002e123Initial program 95.5%
Taylor expanded in b around inf 77.7%
associate-*r/77.7%
metadata-eval77.7%
+-commutative77.7%
Simplified77.7%
Final simplification79.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* b -1.6666666666666667)))))))
(if (<= t -1.4e+113)
(/
x
(+
x
(+
y
(*
2.0
(/
(+
(* -0.6666666666666666 (* c y))
(* c (* t (* (+ a 0.8333333333333334) y))))
t)))))
(if (<= t -8e-28)
1.0
(if (<= t -5e-310)
t_1
(if (<= t 2.35e-203)
1.0
(if (<= t 2.15e-44)
(/
x
(+
x
(+
y
(*
2.0
(*
(* c y)
(+
0.8333333333333334
(* a (- 1.0 (/ 0.6666666666666666 (* t a))))))))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((b * -1.6666666666666667))));
double tmp;
if (t <= -1.4e+113) {
tmp = x / (x + (y + (2.0 * (((-0.6666666666666666 * (c * y)) + (c * (t * ((a + 0.8333333333333334) * y)))) / t))));
} else if (t <= -8e-28) {
tmp = 1.0;
} else if (t <= -5e-310) {
tmp = t_1;
} else if (t <= 2.35e-203) {
tmp = 1.0;
} else if (t <= 2.15e-44) {
tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a)))))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
if (t <= (-1.4d+113)) then
tmp = x / (x + (y + (2.0d0 * ((((-0.6666666666666666d0) * (c * y)) + (c * (t * ((a + 0.8333333333333334d0) * y)))) / t))))
else if (t <= (-8d-28)) then
tmp = 1.0d0
else if (t <= (-5d-310)) then
tmp = t_1
else if (t <= 2.35d-203) then
tmp = 1.0d0
else if (t <= 2.15d-44) then
tmp = x / (x + (y + (2.0d0 * ((c * y) * (0.8333333333333334d0 + (a * (1.0d0 - (0.6666666666666666d0 / (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 b, double c) {
double t_1 = x / (x + (y * Math.exp((b * -1.6666666666666667))));
double tmp;
if (t <= -1.4e+113) {
tmp = x / (x + (y + (2.0 * (((-0.6666666666666666 * (c * y)) + (c * (t * ((a + 0.8333333333333334) * y)))) / t))));
} else if (t <= -8e-28) {
tmp = 1.0;
} else if (t <= -5e-310) {
tmp = t_1;
} else if (t <= 2.35e-203) {
tmp = 1.0;
} else if (t <= 2.15e-44) {
tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a)))))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((b * -1.6666666666666667)))) tmp = 0 if t <= -1.4e+113: tmp = x / (x + (y + (2.0 * (((-0.6666666666666666 * (c * y)) + (c * (t * ((a + 0.8333333333333334) * y)))) / t)))) elif t <= -8e-28: tmp = 1.0 elif t <= -5e-310: tmp = t_1 elif t <= 2.35e-203: tmp = 1.0 elif t <= 2.15e-44: tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a))))))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))) tmp = 0.0 if (t <= -1.4e+113) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(Float64(Float64(-0.6666666666666666 * Float64(c * y)) + Float64(c * Float64(t * Float64(Float64(a + 0.8333333333333334) * y)))) / t))))); elseif (t <= -8e-28) tmp = 1.0; elseif (t <= -5e-310) tmp = t_1; elseif (t <= 2.35e-203) tmp = 1.0; elseif (t <= 2.15e-44) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(Float64(c * y) * Float64(0.8333333333333334 + Float64(a * Float64(1.0 - Float64(0.6666666666666666 / Float64(t * a)))))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((b * -1.6666666666666667)))); tmp = 0.0; if (t <= -1.4e+113) tmp = x / (x + (y + (2.0 * (((-0.6666666666666666 * (c * y)) + (c * (t * ((a + 0.8333333333333334) * y)))) / t)))); elseif (t <= -8e-28) tmp = 1.0; elseif (t <= -5e-310) tmp = t_1; elseif (t <= 2.35e-203) tmp = 1.0; elseif (t <= 2.15e-44) tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a))))))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.4e+113], N[(x / N[(x + N[(y + N[(2.0 * N[(N[(N[(-0.6666666666666666 * N[(c * y), $MachinePrecision]), $MachinePrecision] + N[(c * N[(t * N[(N[(a + 0.8333333333333334), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8e-28], 1.0, If[LessEqual[t, -5e-310], t$95$1, If[LessEqual[t, 2.35e-203], 1.0, If[LessEqual[t, 2.15e-44], N[(x / N[(x + N[(y + N[(2.0 * N[(N[(c * y), $MachinePrecision] * N[(0.8333333333333334 + N[(a * N[(1.0 - N[(0.6666666666666666 / N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{if}\;t \leq -1.4 \cdot 10^{+113}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \frac{-0.6666666666666666 \cdot \left(c \cdot y\right) + c \cdot \left(t \cdot \left(\left(a + 0.8333333333333334\right) \cdot y\right)\right)}{t}\right)}\\
\mathbf{elif}\;t \leq -8 \cdot 10^{-28}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq -5 \cdot 10^{-310}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.35 \cdot 10^{-203}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 2.15 \cdot 10^{-44}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(\left(c \cdot y\right) \cdot \left(0.8333333333333334 + a \cdot \left(1 - \frac{0.6666666666666666}{t \cdot a}\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.39999999999999999e113Initial program 100.0%
Taylor expanded in c around inf 51.6%
+-commutative51.6%
associate-*r/51.6%
metadata-eval51.6%
Simplified51.6%
Taylor expanded in c around 0 42.1%
associate-*r*42.1%
associate--l+42.1%
associate-*r/42.1%
metadata-eval42.1%
Simplified42.1%
Taylor expanded in t around 0 90.3%
if -1.39999999999999999e113 < t < -7.99999999999999977e-28 or -4.999999999999985e-310 < t < 2.35000000000000003e-203Initial program 96.0%
Taylor expanded in c around inf 74.8%
+-commutative74.8%
associate-*r/74.8%
metadata-eval74.8%
Simplified74.8%
Taylor expanded in c around 0 36.4%
Taylor expanded in x around inf 59.3%
if -7.99999999999999977e-28 < t < -4.999999999999985e-310 or 2.15000000000000007e-44 < t Initial program 92.9%
Taylor expanded in b around inf 71.6%
associate-*r/71.6%
metadata-eval71.6%
+-commutative71.6%
Simplified71.6%
Taylor expanded in t around inf 72.2%
mul-1-neg72.2%
+-commutative72.2%
distribute-rgt-neg-in72.2%
+-commutative72.2%
mul-1-neg72.2%
distribute-lft-in72.2%
metadata-eval72.2%
neg-mul-172.2%
unsub-neg72.2%
Simplified72.2%
Taylor expanded in a around 0 66.5%
if 2.35000000000000003e-203 < t < 2.15000000000000007e-44Initial program 90.7%
Taylor expanded in c around inf 64.0%
+-commutative64.0%
associate-*r/64.0%
metadata-eval64.0%
Simplified64.0%
Taylor expanded in c around 0 55.1%
associate-*r*52.9%
associate--l+52.9%
associate-*r/52.9%
metadata-eval52.9%
Simplified52.9%
Taylor expanded in a around inf 61.9%
associate-*r/61.9%
metadata-eval61.9%
Simplified61.9%
Final simplification65.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a))))))))
(t_2 (/ x (+ x (* y (exp (* 2.0 (/ (* b 0.6666666666666666) t))))))))
(if (<= t 3.25e-298)
t_1
(if (<= t 3e-111)
t_2
(if (<= t 2.4e-50)
(/
x
(*
y
(+
(*
(* c 2.0)
(+ 0.8333333333333334 (+ a (/ -0.6666666666666666 t))))
1.0)))
(if (<= t 8.4e-19) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
double t_2 = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t)))));
double tmp;
if (t <= 3.25e-298) {
tmp = t_1;
} else if (t <= 3e-111) {
tmp = t_2;
} else if (t <= 2.4e-50) {
tmp = x / (y * (((c * 2.0) * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))) + 1.0));
} else if (t <= 8.4e-19) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
t_2 = x / (x + (y * exp((2.0d0 * ((b * 0.6666666666666666d0) / t)))))
if (t <= 3.25d-298) then
tmp = t_1
else if (t <= 3d-111) then
tmp = t_2
else if (t <= 2.4d-50) then
tmp = x / (y * (((c * 2.0d0) * (0.8333333333333334d0 + (a + ((-0.6666666666666666d0) / t)))) + 1.0d0))
else if (t <= 8.4d-19) 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 b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
double t_2 = x / (x + (y * Math.exp((2.0 * ((b * 0.6666666666666666) / t)))));
double tmp;
if (t <= 3.25e-298) {
tmp = t_1;
} else if (t <= 3e-111) {
tmp = t_2;
} else if (t <= 2.4e-50) {
tmp = x / (y * (((c * 2.0) * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))) + 1.0));
} else if (t <= 8.4e-19) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) t_2 = x / (x + (y * math.exp((2.0 * ((b * 0.6666666666666666) / t))))) tmp = 0 if t <= 3.25e-298: tmp = t_1 elif t <= 3e-111: tmp = t_2 elif t <= 2.4e-50: tmp = x / (y * (((c * 2.0) * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))) + 1.0)) elif t <= 8.4e-19: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b * 0.6666666666666666) / t)))))) tmp = 0.0 if (t <= 3.25e-298) tmp = t_1; elseif (t <= 3e-111) tmp = t_2; elseif (t <= 2.4e-50) tmp = Float64(x / Float64(y * Float64(Float64(Float64(c * 2.0) * Float64(0.8333333333333334 + Float64(a + Float64(-0.6666666666666666 / t)))) + 1.0))); elseif (t <= 8.4e-19) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); t_2 = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t))))); tmp = 0.0; if (t <= 3.25e-298) tmp = t_1; elseif (t <= 3e-111) tmp = t_2; elseif (t <= 2.4e-50) tmp = x / (y * (((c * 2.0) * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))) + 1.0)); elseif (t <= 8.4e-19) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b * 0.6666666666666666), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 3.25e-298], t$95$1, If[LessEqual[t, 3e-111], t$95$2, If[LessEqual[t, 2.4e-50], N[(x / N[(y * N[(N[(N[(c * 2.0), $MachinePrecision] * N[(0.8333333333333334 + N[(a + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.4e-19], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
t_2 := \frac{x}{x + y \cdot e^{2 \cdot \frac{b \cdot 0.6666666666666666}{t}}}\\
\mathbf{if}\;t \leq 3.25 \cdot 10^{-298}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3 \cdot 10^{-111}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-50}:\\
\;\;\;\;\frac{x}{y \cdot \left(\left(c \cdot 2\right) \cdot \left(0.8333333333333334 + \left(a + \frac{-0.6666666666666666}{t}\right)\right) + 1\right)}\\
\mathbf{elif}\;t \leq 8.4 \cdot 10^{-19}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < 3.2500000000000001e-298 or 8.3999999999999996e-19 < t Initial program 93.8%
Taylor expanded in b around inf 71.6%
associate-*r/71.6%
metadata-eval71.6%
+-commutative71.6%
Simplified71.6%
Taylor expanded in t around inf 72.7%
mul-1-neg72.7%
+-commutative72.7%
distribute-rgt-neg-in72.7%
+-commutative72.7%
mul-1-neg72.7%
distribute-lft-in72.7%
metadata-eval72.7%
neg-mul-172.7%
unsub-neg72.7%
Simplified72.7%
if 3.2500000000000001e-298 < t < 3.00000000000000008e-111 or 2.40000000000000002e-50 < t < 8.3999999999999996e-19Initial program 90.9%
Taylor expanded in b around inf 74.2%
associate-*r/74.2%
metadata-eval74.2%
+-commutative74.2%
Simplified74.2%
Taylor expanded in t around 0 71.2%
associate-*r/71.2%
*-commutative71.2%
Simplified71.2%
if 3.00000000000000008e-111 < t < 2.40000000000000002e-50Initial program 100.0%
Taylor expanded in c around inf 70.2%
+-commutative70.2%
associate-*r/70.2%
metadata-eval70.2%
Simplified70.2%
Taylor expanded in c around 0 55.6%
associate-*r*55.6%
associate--l+55.6%
associate-*r/55.6%
metadata-eval55.6%
Simplified55.6%
Taylor expanded in y around inf 70.0%
associate-*r*70.0%
associate--l+70.0%
associate-*r/70.0%
metadata-eval70.0%
sub-neg70.0%
distribute-neg-frac70.0%
metadata-eval70.0%
Simplified70.0%
Final simplification72.2%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= b -8.8e+17) (not (<= b 2.6e+163)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
a
(+
c
(* c (/ (- 0.8333333333333334 (/ 0.6666666666666666 t)) a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -8.8e+17) || !(b <= 2.6e+163)) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (a * (c + (c * ((0.8333333333333334 - (0.6666666666666666 / t)) / a))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b <= (-8.8d+17)) .or. (.not. (b <= 2.6d+163))) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * (a * (c + (c * ((0.8333333333333334d0 - (0.6666666666666666d0 / t)) / a))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -8.8e+17) || !(b <= 2.6e+163)) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c + (c * ((0.8333333333333334 - (0.6666666666666666 / t)) / a))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -8.8e+17) or not (b <= 2.6e+163): tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * (a * (c + (c * ((0.8333333333333334 - (0.6666666666666666 / t)) / a)))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -8.8e+17) || !(b <= 2.6e+163)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c + Float64(c * Float64(Float64(0.8333333333333334 - Float64(0.6666666666666666 / t)) / a))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -8.8e+17) || ~((b <= 2.6e+163))) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * (a * (c + (c * ((0.8333333333333334 - (0.6666666666666666 / t)) / a)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -8.8e+17], N[Not[LessEqual[b, 2.6e+163]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c + N[(c * N[(N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.8 \cdot 10^{+17} \lor \neg \left(b \leq 2.6 \cdot 10^{+163}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c + c \cdot \frac{0.8333333333333334 - \frac{0.6666666666666666}{t}}{a}\right)\right)}}\\
\end{array}
\end{array}
if b < -8.8e17 or 2.6000000000000002e163 < b Initial program 91.4%
Taylor expanded in b around inf 93.8%
associate-*r/93.8%
metadata-eval93.8%
+-commutative93.8%
Simplified93.8%
if -8.8e17 < b < 2.6000000000000002e163Initial program 94.5%
Taylor expanded in c around inf 75.9%
+-commutative75.9%
associate-*r/75.9%
metadata-eval75.9%
Simplified75.9%
Taylor expanded in a around inf 74.7%
associate-/l*76.5%
associate-*r/76.5%
metadata-eval76.5%
Simplified76.5%
Final simplification82.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a)))))))))
(if (<= t -5.5e-288)
t_1
(if (<= t 6e-204)
1.0
(if (<= t 4.2e-47)
(/
x
(+
x
(+
y
(*
2.0
(*
(* c y)
(+
0.8333333333333334
(* a (- 1.0 (/ 0.6666666666666666 (* t a))))))))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
double tmp;
if (t <= -5.5e-288) {
tmp = t_1;
} else if (t <= 6e-204) {
tmp = 1.0;
} else if (t <= 4.2e-47) {
tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a)))))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
if (t <= (-5.5d-288)) then
tmp = t_1
else if (t <= 6d-204) then
tmp = 1.0d0
else if (t <= 4.2d-47) then
tmp = x / (x + (y + (2.0d0 * ((c * y) * (0.8333333333333334d0 + (a * (1.0d0 - (0.6666666666666666d0 / (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 b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
double tmp;
if (t <= -5.5e-288) {
tmp = t_1;
} else if (t <= 6e-204) {
tmp = 1.0;
} else if (t <= 4.2e-47) {
tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a)))))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) tmp = 0 if t <= -5.5e-288: tmp = t_1 elif t <= 6e-204: tmp = 1.0 elif t <= 4.2e-47: tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a))))))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))) tmp = 0.0 if (t <= -5.5e-288) tmp = t_1; elseif (t <= 6e-204) tmp = 1.0; elseif (t <= 4.2e-47) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(Float64(c * y) * Float64(0.8333333333333334 + Float64(a * Float64(1.0 - Float64(0.6666666666666666 / Float64(t * a)))))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); tmp = 0.0; if (t <= -5.5e-288) tmp = t_1; elseif (t <= 6e-204) tmp = 1.0; elseif (t <= 4.2e-47) tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a))))))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.5e-288], t$95$1, If[LessEqual[t, 6e-204], 1.0, If[LessEqual[t, 4.2e-47], N[(x / N[(x + N[(y + N[(2.0 * N[(N[(c * y), $MachinePrecision] * N[(0.8333333333333334 + N[(a * N[(1.0 - N[(0.6666666666666666 / N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{if}\;t \leq -5.5 \cdot 10^{-288}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 6 \cdot 10^{-204}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-47}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(\left(c \cdot y\right) \cdot \left(0.8333333333333334 + a \cdot \left(1 - \frac{0.6666666666666666}{t \cdot a}\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -5.5e-288 or 4.2000000000000001e-47 < t Initial program 94.4%
Taylor expanded in b around inf 72.0%
associate-*r/72.0%
metadata-eval72.0%
+-commutative72.0%
Simplified72.0%
Taylor expanded in t around inf 72.5%
mul-1-neg72.5%
+-commutative72.5%
distribute-rgt-neg-in72.5%
+-commutative72.5%
mul-1-neg72.5%
distribute-lft-in72.5%
metadata-eval72.5%
neg-mul-172.5%
unsub-neg72.5%
Simplified72.5%
if -5.5e-288 < t < 5.9999999999999997e-204Initial program 91.9%
Taylor expanded in c around inf 66.0%
+-commutative66.0%
associate-*r/66.0%
metadata-eval66.0%
Simplified66.0%
Taylor expanded in c around 0 34.9%
Taylor expanded in x around inf 55.5%
if 5.9999999999999997e-204 < t < 4.2000000000000001e-47Initial program 90.7%
Taylor expanded in c around inf 64.0%
+-commutative64.0%
associate-*r/64.0%
metadata-eval64.0%
Simplified64.0%
Taylor expanded in c around 0 55.1%
associate-*r*52.9%
associate--l+52.9%
associate-*r/52.9%
metadata-eval52.9%
Simplified52.9%
Taylor expanded in a around inf 61.9%
associate-*r/61.9%
metadata-eval61.9%
Simplified61.9%
Final simplification68.3%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -3.5e+118) (not (<= c 2500000000.0)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* c (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -3.5e+118) || !(c <= 2500000000.0)) {
tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((c <= (-3.5d+118)) .or. (.not. (c <= 2500000000.0d0))) then
tmp = x / (x + (y * exp((2.0d0 * (c * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t)))))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -3.5e+118) || !(c <= 2500000000.0)) {
tmp = x / (x + (y * Math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (c <= -3.5e+118) or not (c <= 2500000000.0): tmp = x / (x + (y * math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((c <= -3.5e+118) || !(c <= 2500000000.0)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((c <= -3.5e+118) || ~((c <= 2500000000.0))) tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[c, -3.5e+118], N[Not[LessEqual[c, 2500000000.0]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.5 \cdot 10^{+118} \lor \neg \left(c \leq 2500000000\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if c < -3.50000000000000016e118 or 2.5e9 < c Initial program 89.7%
Taylor expanded in c around inf 86.4%
+-commutative86.4%
associate-*r/86.4%
metadata-eval86.4%
Simplified86.4%
if -3.50000000000000016e118 < c < 2.5e9Initial program 96.0%
Taylor expanded in b around inf 79.9%
associate-*r/79.9%
metadata-eval79.9%
+-commutative79.9%
Simplified79.9%
Final simplification82.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(*
y
(+
(*
(* c 2.0)
(+ 0.8333333333333334 (+ a (/ -0.6666666666666666 t))))
1.0)))))
(if (<= c -7.5e+122)
1.0
(if (<= c -2.8e+78)
t_1
(if (<= c -1.1e-101)
1.0
(if (<= c -1e-247)
(/ x (+ x (* y (+ (* -2.0 (* b (+ a 0.8333333333333334))) 1.0))))
(if (<= c 1.4e-293)
1.0
(if (<= c 1.5e+55)
(/
x
(+
x
(+
y
(*
2.0
(*
(* c y)
(+
0.8333333333333334
(* a (- 1.0 (/ 0.6666666666666666 (* t a))))))))))
(if (or (<= c 3.2e+217) (not (<= c 1.4e+245)))
t_1
(/ x (+ x y)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (y * (((c * 2.0) * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))) + 1.0));
double tmp;
if (c <= -7.5e+122) {
tmp = 1.0;
} else if (c <= -2.8e+78) {
tmp = t_1;
} else if (c <= -1.1e-101) {
tmp = 1.0;
} else if (c <= -1e-247) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (c <= 1.4e-293) {
tmp = 1.0;
} else if (c <= 1.5e+55) {
tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a)))))))));
} else if ((c <= 3.2e+217) || !(c <= 1.4e+245)) {
tmp = t_1;
} else {
tmp = x / (x + y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (y * (((c * 2.0d0) * (0.8333333333333334d0 + (a + ((-0.6666666666666666d0) / t)))) + 1.0d0))
if (c <= (-7.5d+122)) then
tmp = 1.0d0
else if (c <= (-2.8d+78)) then
tmp = t_1
else if (c <= (-1.1d-101)) then
tmp = 1.0d0
else if (c <= (-1d-247)) then
tmp = x / (x + (y * (((-2.0d0) * (b * (a + 0.8333333333333334d0))) + 1.0d0)))
else if (c <= 1.4d-293) then
tmp = 1.0d0
else if (c <= 1.5d+55) then
tmp = x / (x + (y + (2.0d0 * ((c * y) * (0.8333333333333334d0 + (a * (1.0d0 - (0.6666666666666666d0 / (t * a)))))))))
else if ((c <= 3.2d+217) .or. (.not. (c <= 1.4d+245))) then
tmp = t_1
else
tmp = x / (x + y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (y * (((c * 2.0) * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))) + 1.0));
double tmp;
if (c <= -7.5e+122) {
tmp = 1.0;
} else if (c <= -2.8e+78) {
tmp = t_1;
} else if (c <= -1.1e-101) {
tmp = 1.0;
} else if (c <= -1e-247) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (c <= 1.4e-293) {
tmp = 1.0;
} else if (c <= 1.5e+55) {
tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a)))))))));
} else if ((c <= 3.2e+217) || !(c <= 1.4e+245)) {
tmp = t_1;
} else {
tmp = x / (x + y);
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (y * (((c * 2.0) * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))) + 1.0)) tmp = 0 if c <= -7.5e+122: tmp = 1.0 elif c <= -2.8e+78: tmp = t_1 elif c <= -1.1e-101: tmp = 1.0 elif c <= -1e-247: tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))) elif c <= 1.4e-293: tmp = 1.0 elif c <= 1.5e+55: tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a))))))))) elif (c <= 3.2e+217) or not (c <= 1.4e+245): tmp = t_1 else: tmp = x / (x + y) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(y * Float64(Float64(Float64(c * 2.0) * Float64(0.8333333333333334 + Float64(a + Float64(-0.6666666666666666 / t)))) + 1.0))) tmp = 0.0 if (c <= -7.5e+122) tmp = 1.0; elseif (c <= -2.8e+78) tmp = t_1; elseif (c <= -1.1e-101) tmp = 1.0; elseif (c <= -1e-247) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))) + 1.0)))); elseif (c <= 1.4e-293) tmp = 1.0; elseif (c <= 1.5e+55) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(Float64(c * y) * Float64(0.8333333333333334 + Float64(a * Float64(1.0 - Float64(0.6666666666666666 / Float64(t * a)))))))))); elseif ((c <= 3.2e+217) || !(c <= 1.4e+245)) tmp = t_1; else tmp = Float64(x / Float64(x + y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (y * (((c * 2.0) * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))) + 1.0)); tmp = 0.0; if (c <= -7.5e+122) tmp = 1.0; elseif (c <= -2.8e+78) tmp = t_1; elseif (c <= -1.1e-101) tmp = 1.0; elseif (c <= -1e-247) tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))); elseif (c <= 1.4e-293) tmp = 1.0; elseif (c <= 1.5e+55) tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a))))))))); elseif ((c <= 3.2e+217) || ~((c <= 1.4e+245))) tmp = t_1; else tmp = x / (x + y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(y * N[(N[(N[(c * 2.0), $MachinePrecision] * N[(0.8333333333333334 + N[(a + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -7.5e+122], 1.0, If[LessEqual[c, -2.8e+78], t$95$1, If[LessEqual[c, -1.1e-101], 1.0, If[LessEqual[c, -1e-247], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.4e-293], 1.0, If[LessEqual[c, 1.5e+55], N[(x / N[(x + N[(y + N[(2.0 * N[(N[(c * y), $MachinePrecision] * N[(0.8333333333333334 + N[(a * N[(1.0 - N[(0.6666666666666666 / N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[c, 3.2e+217], N[Not[LessEqual[c, 1.4e+245]], $MachinePrecision]], t$95$1, N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot \left(\left(c \cdot 2\right) \cdot \left(0.8333333333333334 + \left(a + \frac{-0.6666666666666666}{t}\right)\right) + 1\right)}\\
\mathbf{if}\;c \leq -7.5 \cdot 10^{+122}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -2.8 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.1 \cdot 10^{-101}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1 \cdot 10^{-247}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{elif}\;c \leq 1.4 \cdot 10^{-293}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.5 \cdot 10^{+55}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(\left(c \cdot y\right) \cdot \left(0.8333333333333334 + a \cdot \left(1 - \frac{0.6666666666666666}{t \cdot a}\right)\right)\right)\right)}\\
\mathbf{elif}\;c \leq 3.2 \cdot 10^{+217} \lor \neg \left(c \leq 1.4 \cdot 10^{+245}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y}\\
\end{array}
\end{array}
if c < -7.5000000000000002e122 or -2.8000000000000001e78 < c < -1.0999999999999999e-101 or -1e-247 < c < 1.40000000000000013e-293Initial program 93.8%
Taylor expanded in c around inf 69.2%
+-commutative69.2%
associate-*r/69.2%
metadata-eval69.2%
Simplified69.2%
Taylor expanded in c around 0 38.4%
Taylor expanded in x around inf 59.6%
if -7.5000000000000002e122 < c < -2.8000000000000001e78 or 1.50000000000000008e55 < c < 3.2000000000000001e217 or 1.39999999999999989e245 < c Initial program 91.5%
Taylor expanded in c around inf 77.0%
+-commutative77.0%
associate-*r/77.0%
metadata-eval77.0%
Simplified77.0%
Taylor expanded in c around 0 45.7%
associate-*r*45.7%
associate--l+45.7%
associate-*r/45.7%
metadata-eval45.7%
Simplified45.7%
Taylor expanded in y around inf 65.5%
associate-*r*65.5%
associate--l+65.5%
associate-*r/65.5%
metadata-eval65.5%
sub-neg65.5%
distribute-neg-frac65.5%
metadata-eval65.5%
Simplified65.5%
if -1.0999999999999999e-101 < c < -1e-247Initial program 100.0%
Taylor expanded in b around inf 83.4%
associate-*r/83.4%
metadata-eval83.4%
+-commutative83.4%
Simplified83.4%
Taylor expanded in t around inf 79.2%
mul-1-neg79.2%
+-commutative79.2%
distribute-rgt-neg-in79.2%
+-commutative79.2%
mul-1-neg79.2%
distribute-lft-in79.2%
metadata-eval79.2%
neg-mul-179.2%
unsub-neg79.2%
Simplified79.2%
Taylor expanded in b around 0 75.1%
*-commutative75.1%
+-commutative75.1%
Simplified75.1%
if 1.40000000000000013e-293 < c < 1.50000000000000008e55Initial program 94.3%
Taylor expanded in c around inf 59.9%
+-commutative59.9%
associate-*r/59.9%
metadata-eval59.9%
Simplified59.9%
Taylor expanded in c around 0 46.8%
associate-*r*43.8%
associate--l+43.8%
associate-*r/43.8%
metadata-eval43.8%
Simplified43.8%
Taylor expanded in a around inf 48.5%
associate-*r/48.5%
metadata-eval48.5%
Simplified48.5%
if 3.2000000000000001e217 < c < 1.39999999999999989e245Initial program 75.0%
Taylor expanded in c around inf 75.8%
+-commutative75.8%
associate-*r/75.8%
metadata-eval75.8%
Simplified75.8%
Taylor expanded in c around 0 75.8%
Final simplification59.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -1.95e+96)
(/ x (+ x (* y (+ (* -2.0 (* b (+ a 0.8333333333333334))) 1.0))))
(if (<= b -3.2e-191)
(/
x
(+
x
(+
y
(*
2.0
(/
(+
(* -0.6666666666666666 (* c y))
(* c (* t (* (+ a 0.8333333333333334) y))))
t)))))
(if (<= b 3.7e-292)
1.0
(if (<= b 1.3e-123)
(/
x
(+
x
(+
y
(*
2.0
(*
(* c y)
(+
0.8333333333333334
(* a (- 1.0 (/ 0.6666666666666666 (* t a))))))))))
1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.95e+96) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (b <= -3.2e-191) {
tmp = x / (x + (y + (2.0 * (((-0.6666666666666666 * (c * y)) + (c * (t * ((a + 0.8333333333333334) * y)))) / t))));
} else if (b <= 3.7e-292) {
tmp = 1.0;
} else if (b <= 1.3e-123) {
tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a)))))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-1.95d+96)) then
tmp = x / (x + (y * (((-2.0d0) * (b * (a + 0.8333333333333334d0))) + 1.0d0)))
else if (b <= (-3.2d-191)) then
tmp = x / (x + (y + (2.0d0 * ((((-0.6666666666666666d0) * (c * y)) + (c * (t * ((a + 0.8333333333333334d0) * y)))) / t))))
else if (b <= 3.7d-292) then
tmp = 1.0d0
else if (b <= 1.3d-123) then
tmp = x / (x + (y + (2.0d0 * ((c * y) * (0.8333333333333334d0 + (a * (1.0d0 - (0.6666666666666666d0 / (t * a)))))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.95e+96) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (b <= -3.2e-191) {
tmp = x / (x + (y + (2.0 * (((-0.6666666666666666 * (c * y)) + (c * (t * ((a + 0.8333333333333334) * y)))) / t))));
} else if (b <= 3.7e-292) {
tmp = 1.0;
} else if (b <= 1.3e-123) {
tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a)))))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -1.95e+96: tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))) elif b <= -3.2e-191: tmp = x / (x + (y + (2.0 * (((-0.6666666666666666 * (c * y)) + (c * (t * ((a + 0.8333333333333334) * y)))) / t)))) elif b <= 3.7e-292: tmp = 1.0 elif b <= 1.3e-123: tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a))))))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -1.95e+96) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))) + 1.0)))); elseif (b <= -3.2e-191) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(Float64(Float64(-0.6666666666666666 * Float64(c * y)) + Float64(c * Float64(t * Float64(Float64(a + 0.8333333333333334) * y)))) / t))))); elseif (b <= 3.7e-292) tmp = 1.0; elseif (b <= 1.3e-123) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(Float64(c * y) * Float64(0.8333333333333334 + Float64(a * Float64(1.0 - Float64(0.6666666666666666 / Float64(t * a)))))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -1.95e+96) tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))); elseif (b <= -3.2e-191) tmp = x / (x + (y + (2.0 * (((-0.6666666666666666 * (c * y)) + (c * (t * ((a + 0.8333333333333334) * y)))) / t)))); elseif (b <= 3.7e-292) tmp = 1.0; elseif (b <= 1.3e-123) tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a * (1.0 - (0.6666666666666666 / (t * a))))))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -1.95e+96], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.2e-191], N[(x / N[(x + N[(y + N[(2.0 * N[(N[(N[(-0.6666666666666666 * N[(c * y), $MachinePrecision]), $MachinePrecision] + N[(c * N[(t * N[(N[(a + 0.8333333333333334), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.7e-292], 1.0, If[LessEqual[b, 1.3e-123], N[(x / N[(x + N[(y + N[(2.0 * N[(N[(c * y), $MachinePrecision] * N[(0.8333333333333334 + N[(a * N[(1.0 - N[(0.6666666666666666 / N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.95 \cdot 10^{+96}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{elif}\;b \leq -3.2 \cdot 10^{-191}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \frac{-0.6666666666666666 \cdot \left(c \cdot y\right) + c \cdot \left(t \cdot \left(\left(a + 0.8333333333333334\right) \cdot y\right)\right)}{t}\right)}\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{-292}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{-123}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(\left(c \cdot y\right) \cdot \left(0.8333333333333334 + a \cdot \left(1 - \frac{0.6666666666666666}{t \cdot a}\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.95e96Initial program 94.4%
Taylor expanded in b around inf 94.6%
associate-*r/94.6%
metadata-eval94.6%
+-commutative94.6%
Simplified94.6%
Taylor expanded in t around inf 74.9%
mul-1-neg74.9%
+-commutative74.9%
distribute-rgt-neg-in74.9%
+-commutative74.9%
mul-1-neg74.9%
distribute-lft-in74.9%
metadata-eval74.9%
neg-mul-174.9%
unsub-neg74.9%
Simplified74.9%
Taylor expanded in b around 0 53.6%
*-commutative53.6%
+-commutative53.6%
Simplified53.6%
if -1.95e96 < b < -3.2000000000000003e-191Initial program 95.2%
Taylor expanded in c around inf 68.9%
+-commutative68.9%
associate-*r/68.9%
metadata-eval68.9%
Simplified68.9%
Taylor expanded in c around 0 45.9%
associate-*r*44.4%
associate--l+44.4%
associate-*r/44.4%
metadata-eval44.4%
Simplified44.4%
Taylor expanded in t around 0 56.6%
if -3.2000000000000003e-191 < b < 3.69999999999999997e-292 or 1.29999999999999998e-123 < b Initial program 90.8%
Taylor expanded in c around inf 72.5%
+-commutative72.5%
associate-*r/72.5%
metadata-eval72.5%
Simplified72.5%
Taylor expanded in c around 0 41.9%
Taylor expanded in x around inf 56.1%
if 3.69999999999999997e-292 < b < 1.29999999999999998e-123Initial program 96.9%
Taylor expanded in c around inf 82.0%
+-commutative82.0%
associate-*r/82.0%
metadata-eval82.0%
Simplified82.0%
Taylor expanded in c around 0 55.0%
associate-*r*58.0%
associate--l+58.0%
associate-*r/58.0%
metadata-eval58.0%
Simplified58.0%
Taylor expanded in a around inf 67.1%
associate-*r/67.1%
metadata-eval67.1%
Simplified67.1%
Final simplification57.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -8.5e-192)
(/ x (+ x (* y (+ (* -2.0 (* b (+ a 0.8333333333333334))) 1.0))))
(if (<= b 8.2e-286)
1.0
(if (<= b 1e-232)
(/
x
(+
x
(+
y
(*
2.0
(*
(* c y)
(+ 0.8333333333333334 (- a (/ 0.6666666666666666 t))))))))
(if (<= b 1.25e-117)
(/
x
(+
x
(+
y
(*
2.0
(*
(* c y)
(+ 0.8333333333333334 (/ (- (* t a) 0.6666666666666666) t)))))))
1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -8.5e-192) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (b <= 8.2e-286) {
tmp = 1.0;
} else if (b <= 1e-232) {
tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a - (0.6666666666666666 / t)))))));
} else if (b <= 1.25e-117) {
tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (((t * a) - 0.6666666666666666) / t))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-8.5d-192)) then
tmp = x / (x + (y * (((-2.0d0) * (b * (a + 0.8333333333333334d0))) + 1.0d0)))
else if (b <= 8.2d-286) then
tmp = 1.0d0
else if (b <= 1d-232) then
tmp = x / (x + (y + (2.0d0 * ((c * y) * (0.8333333333333334d0 + (a - (0.6666666666666666d0 / t)))))))
else if (b <= 1.25d-117) then
tmp = x / (x + (y + (2.0d0 * ((c * y) * (0.8333333333333334d0 + (((t * a) - 0.6666666666666666d0) / t))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -8.5e-192) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (b <= 8.2e-286) {
tmp = 1.0;
} else if (b <= 1e-232) {
tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a - (0.6666666666666666 / t)))))));
} else if (b <= 1.25e-117) {
tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (((t * a) - 0.6666666666666666) / t))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -8.5e-192: tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))) elif b <= 8.2e-286: tmp = 1.0 elif b <= 1e-232: tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a - (0.6666666666666666 / t))))))) elif b <= 1.25e-117: tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (((t * a) - 0.6666666666666666) / t)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -8.5e-192) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))) + 1.0)))); elseif (b <= 8.2e-286) tmp = 1.0; elseif (b <= 1e-232) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(Float64(c * y) * Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t)))))))); elseif (b <= 1.25e-117) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(Float64(c * y) * Float64(0.8333333333333334 + Float64(Float64(Float64(t * a) - 0.6666666666666666) / t))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -8.5e-192) tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))); elseif (b <= 8.2e-286) tmp = 1.0; elseif (b <= 1e-232) tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a - (0.6666666666666666 / t))))))); elseif (b <= 1.25e-117) tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (((t * a) - 0.6666666666666666) / t)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -8.5e-192], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.2e-286], 1.0, If[LessEqual[b, 1e-232], N[(x / N[(x + N[(y + N[(2.0 * N[(N[(c * y), $MachinePrecision] * N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e-117], N[(x / N[(x + N[(y + N[(2.0 * N[(N[(c * y), $MachinePrecision] * N[(0.8333333333333334 + N[(N[(N[(t * a), $MachinePrecision] - 0.6666666666666666), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.5 \cdot 10^{-192}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{-286}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 10^{-232}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(\left(c \cdot y\right) \cdot \left(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\right)\right)\right)}\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{-117}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(\left(c \cdot y\right) \cdot \left(0.8333333333333334 + \frac{t \cdot a - 0.6666666666666666}{t}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -8.49999999999999985e-192Initial program 94.8%
Taylor expanded in b around inf 77.5%
associate-*r/77.5%
metadata-eval77.5%
+-commutative77.5%
Simplified77.5%
Taylor expanded in t around inf 67.6%
mul-1-neg67.6%
+-commutative67.6%
distribute-rgt-neg-in67.6%
+-commutative67.6%
mul-1-neg67.6%
distribute-lft-in67.6%
metadata-eval67.6%
neg-mul-167.6%
unsub-neg67.6%
Simplified67.6%
Taylor expanded in b around 0 50.2%
*-commutative50.2%
+-commutative50.2%
Simplified50.2%
if -8.49999999999999985e-192 < b < 8.2e-286 or 1.25e-117 < b Initial program 90.9%
Taylor expanded in c around inf 71.9%
+-commutative71.9%
associate-*r/71.9%
metadata-eval71.9%
Simplified71.9%
Taylor expanded in c around 0 41.8%
Taylor expanded in x around inf 56.5%
if 8.2e-286 < b < 1.00000000000000002e-232Initial program 100.0%
Taylor expanded in c around inf 81.1%
+-commutative81.1%
associate-*r/81.1%
metadata-eval81.1%
Simplified81.1%
Taylor expanded in c around 0 42.8%
associate-*r*52.5%
associate--l+52.5%
associate-*r/52.5%
metadata-eval52.5%
Simplified52.5%
if 1.00000000000000002e-232 < b < 1.25e-117Initial program 95.2%
Taylor expanded in c around inf 86.2%
+-commutative86.2%
associate-*r/86.2%
metadata-eval86.2%
Simplified86.2%
Taylor expanded in c around 0 58.7%
associate-*r*58.7%
associate--l+58.7%
associate-*r/58.7%
metadata-eval58.7%
Simplified58.7%
Taylor expanded in t around 0 63.3%
Final simplification54.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -7.5e-190)
(/ x (+ x (* y (+ (* -2.0 (* b (+ a 0.8333333333333334))) 1.0))))
(if (<= b 3.4e-278)
1.0
(if (<= b 4.5e-275)
(* -0.75 (* (/ x y) (/ t c)))
(if (<= b 1.75e-119)
(/
x
(+
x
(+
y
(*
2.0
(*
(* c y)
(+ 0.8333333333333334 (- a (/ 0.6666666666666666 t))))))))
1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -7.5e-190) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (b <= 3.4e-278) {
tmp = 1.0;
} else if (b <= 4.5e-275) {
tmp = -0.75 * ((x / y) * (t / c));
} else if (b <= 1.75e-119) {
tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a - (0.6666666666666666 / t)))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-7.5d-190)) then
tmp = x / (x + (y * (((-2.0d0) * (b * (a + 0.8333333333333334d0))) + 1.0d0)))
else if (b <= 3.4d-278) then
tmp = 1.0d0
else if (b <= 4.5d-275) then
tmp = (-0.75d0) * ((x / y) * (t / c))
else if (b <= 1.75d-119) then
tmp = x / (x + (y + (2.0d0 * ((c * y) * (0.8333333333333334d0 + (a - (0.6666666666666666d0 / t)))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -7.5e-190) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (b <= 3.4e-278) {
tmp = 1.0;
} else if (b <= 4.5e-275) {
tmp = -0.75 * ((x / y) * (t / c));
} else if (b <= 1.75e-119) {
tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a - (0.6666666666666666 / t)))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -7.5e-190: tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))) elif b <= 3.4e-278: tmp = 1.0 elif b <= 4.5e-275: tmp = -0.75 * ((x / y) * (t / c)) elif b <= 1.75e-119: tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a - (0.6666666666666666 / t))))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -7.5e-190) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))) + 1.0)))); elseif (b <= 3.4e-278) tmp = 1.0; elseif (b <= 4.5e-275) tmp = Float64(-0.75 * Float64(Float64(x / y) * Float64(t / c))); elseif (b <= 1.75e-119) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(Float64(c * y) * Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t)))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -7.5e-190) tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))); elseif (b <= 3.4e-278) tmp = 1.0; elseif (b <= 4.5e-275) tmp = -0.75 * ((x / y) * (t / c)); elseif (b <= 1.75e-119) tmp = x / (x + (y + (2.0 * ((c * y) * (0.8333333333333334 + (a - (0.6666666666666666 / t))))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -7.5e-190], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.4e-278], 1.0, If[LessEqual[b, 4.5e-275], N[(-0.75 * N[(N[(x / y), $MachinePrecision] * N[(t / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.75e-119], N[(x / N[(x + N[(y + N[(2.0 * N[(N[(c * y), $MachinePrecision] * N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.5 \cdot 10^{-190}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{-278}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{-275}:\\
\;\;\;\;-0.75 \cdot \left(\frac{x}{y} \cdot \frac{t}{c}\right)\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{-119}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(\left(c \cdot y\right) \cdot \left(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -7.5e-190Initial program 94.8%
Taylor expanded in b around inf 77.5%
associate-*r/77.5%
metadata-eval77.5%
+-commutative77.5%
Simplified77.5%
Taylor expanded in t around inf 67.6%
mul-1-neg67.6%
+-commutative67.6%
distribute-rgt-neg-in67.6%
+-commutative67.6%
mul-1-neg67.6%
distribute-lft-in67.6%
metadata-eval67.6%
neg-mul-167.6%
unsub-neg67.6%
Simplified67.6%
Taylor expanded in b around 0 50.2%
*-commutative50.2%
+-commutative50.2%
Simplified50.2%
if -7.5e-190 < b < 3.4000000000000001e-278 or 1.75e-119 < b Initial program 91.0%
Taylor expanded in c around inf 72.1%
+-commutative72.1%
associate-*r/72.1%
metadata-eval72.1%
Simplified72.1%
Taylor expanded in c around 0 41.4%
Taylor expanded in x around inf 56.0%
if 3.4000000000000001e-278 < b < 4.49999999999999978e-275Initial program 100.0%
Taylor expanded in c around inf 100.0%
+-commutative100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in c around 0 52.2%
associate-*r*52.2%
associate--l+52.2%
associate-*r/52.2%
metadata-eval52.2%
Simplified52.2%
Taylor expanded in t around 0 52.2%
*-commutative52.2%
*-commutative52.2%
times-frac100.0%
Simplified100.0%
if 4.49999999999999978e-275 < b < 1.75e-119Initial program 96.4%
Taylor expanded in c around inf 82.9%
+-commutative82.9%
associate-*r/82.9%
metadata-eval82.9%
Simplified82.9%
Taylor expanded in c around 0 55.5%
associate-*r*58.9%
associate--l+58.9%
associate-*r/58.9%
metadata-eval58.9%
Simplified58.9%
Final simplification54.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -2.4e-193)
(/ x (+ x (* y (+ (* -2.0 (* b (+ a 0.8333333333333334))) 1.0))))
(if (<= b 7.2e-282)
1.0
(if (<= b 2.8e-229)
(/ x (+ x (+ y (* 2.0 (* a (* c y))))))
(if (<= b 4.2e-119)
(/
x
(*
y
(+
(*
(* c 2.0)
(+ 0.8333333333333334 (+ a (/ -0.6666666666666666 t))))
1.0)))
1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.4e-193) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (b <= 7.2e-282) {
tmp = 1.0;
} else if (b <= 2.8e-229) {
tmp = x / (x + (y + (2.0 * (a * (c * y)))));
} else if (b <= 4.2e-119) {
tmp = x / (y * (((c * 2.0) * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))) + 1.0));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-2.4d-193)) then
tmp = x / (x + (y * (((-2.0d0) * (b * (a + 0.8333333333333334d0))) + 1.0d0)))
else if (b <= 7.2d-282) then
tmp = 1.0d0
else if (b <= 2.8d-229) then
tmp = x / (x + (y + (2.0d0 * (a * (c * y)))))
else if (b <= 4.2d-119) then
tmp = x / (y * (((c * 2.0d0) * (0.8333333333333334d0 + (a + ((-0.6666666666666666d0) / t)))) + 1.0d0))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.4e-193) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (b <= 7.2e-282) {
tmp = 1.0;
} else if (b <= 2.8e-229) {
tmp = x / (x + (y + (2.0 * (a * (c * y)))));
} else if (b <= 4.2e-119) {
tmp = x / (y * (((c * 2.0) * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))) + 1.0));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -2.4e-193: tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))) elif b <= 7.2e-282: tmp = 1.0 elif b <= 2.8e-229: tmp = x / (x + (y + (2.0 * (a * (c * y))))) elif b <= 4.2e-119: tmp = x / (y * (((c * 2.0) * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))) + 1.0)) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -2.4e-193) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))) + 1.0)))); elseif (b <= 7.2e-282) tmp = 1.0; elseif (b <= 2.8e-229) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(a * Float64(c * y)))))); elseif (b <= 4.2e-119) tmp = Float64(x / Float64(y * Float64(Float64(Float64(c * 2.0) * Float64(0.8333333333333334 + Float64(a + Float64(-0.6666666666666666 / t)))) + 1.0))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -2.4e-193) tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))); elseif (b <= 7.2e-282) tmp = 1.0; elseif (b <= 2.8e-229) tmp = x / (x + (y + (2.0 * (a * (c * y))))); elseif (b <= 4.2e-119) tmp = x / (y * (((c * 2.0) * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))) + 1.0)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -2.4e-193], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.2e-282], 1.0, If[LessEqual[b, 2.8e-229], N[(x / N[(x + N[(y + N[(2.0 * N[(a * N[(c * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.2e-119], N[(x / N[(y * N[(N[(N[(c * 2.0), $MachinePrecision] * N[(0.8333333333333334 + N[(a + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.4 \cdot 10^{-193}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{-282}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{-229}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(a \cdot \left(c \cdot y\right)\right)\right)}\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{-119}:\\
\;\;\;\;\frac{x}{y \cdot \left(\left(c \cdot 2\right) \cdot \left(0.8333333333333334 + \left(a + \frac{-0.6666666666666666}{t}\right)\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -2.4e-193Initial program 94.8%
Taylor expanded in b around inf 77.5%
associate-*r/77.5%
metadata-eval77.5%
+-commutative77.5%
Simplified77.5%
Taylor expanded in t around inf 67.6%
mul-1-neg67.6%
+-commutative67.6%
distribute-rgt-neg-in67.6%
+-commutative67.6%
mul-1-neg67.6%
distribute-lft-in67.6%
metadata-eval67.6%
neg-mul-167.6%
unsub-neg67.6%
Simplified67.6%
Taylor expanded in b around 0 50.2%
*-commutative50.2%
+-commutative50.2%
Simplified50.2%
if -2.4e-193 < b < 7.1999999999999995e-282 or 4.2e-119 < b Initial program 90.9%
Taylor expanded in c around inf 71.9%
+-commutative71.9%
associate-*r/71.9%
metadata-eval71.9%
Simplified71.9%
Taylor expanded in c around 0 41.8%
Taylor expanded in x around inf 56.5%
if 7.1999999999999995e-282 < b < 2.7999999999999999e-229Initial program 100.0%
Taylor expanded in c around inf 81.1%
+-commutative81.1%
associate-*r/81.1%
metadata-eval81.1%
Simplified81.1%
Taylor expanded in c around 0 42.8%
associate-*r*52.5%
associate--l+52.5%
associate-*r/52.5%
metadata-eval52.5%
Simplified52.5%
Taylor expanded in a around inf 52.3%
if 2.7999999999999999e-229 < b < 4.2e-119Initial program 95.2%
Taylor expanded in c around inf 86.2%
+-commutative86.2%
associate-*r/86.2%
metadata-eval86.2%
Simplified86.2%
Taylor expanded in c around 0 58.7%
associate-*r*58.7%
associate--l+58.7%
associate-*r/58.7%
metadata-eval58.7%
Simplified58.7%
Taylor expanded in y around inf 58.6%
associate-*r*58.6%
associate--l+58.6%
associate-*r/58.6%
metadata-eval58.6%
sub-neg58.6%
distribute-neg-frac58.6%
metadata-eval58.6%
Simplified58.6%
Final simplification53.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -2.2e-190)
(/ x (+ x (* y (+ (* -2.0 (* b (+ a 0.8333333333333334))) 1.0))))
(if (<= b 3e-285)
1.0
(if (<= b 4.1e-162) (/ x (+ x (+ y (* 2.0 (* a (* c y)))))) 1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.2e-190) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (b <= 3e-285) {
tmp = 1.0;
} else if (b <= 4.1e-162) {
tmp = x / (x + (y + (2.0 * (a * (c * y)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-2.2d-190)) then
tmp = x / (x + (y * (((-2.0d0) * (b * (a + 0.8333333333333334d0))) + 1.0d0)))
else if (b <= 3d-285) then
tmp = 1.0d0
else if (b <= 4.1d-162) then
tmp = x / (x + (y + (2.0d0 * (a * (c * y)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.2e-190) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (b <= 3e-285) {
tmp = 1.0;
} else if (b <= 4.1e-162) {
tmp = x / (x + (y + (2.0 * (a * (c * y)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -2.2e-190: tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))) elif b <= 3e-285: tmp = 1.0 elif b <= 4.1e-162: tmp = x / (x + (y + (2.0 * (a * (c * y))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -2.2e-190) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))) + 1.0)))); elseif (b <= 3e-285) tmp = 1.0; elseif (b <= 4.1e-162) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(a * Float64(c * y)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -2.2e-190) tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))); elseif (b <= 3e-285) tmp = 1.0; elseif (b <= 4.1e-162) tmp = x / (x + (y + (2.0 * (a * (c * y))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -2.2e-190], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3e-285], 1.0, If[LessEqual[b, 4.1e-162], N[(x / N[(x + N[(y + N[(2.0 * N[(a * N[(c * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.2 \cdot 10^{-190}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{elif}\;b \leq 3 \cdot 10^{-285}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 4.1 \cdot 10^{-162}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(a \cdot \left(c \cdot y\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -2.20000000000000004e-190Initial program 94.8%
Taylor expanded in b around inf 77.5%
associate-*r/77.5%
metadata-eval77.5%
+-commutative77.5%
Simplified77.5%
Taylor expanded in t around inf 67.6%
mul-1-neg67.6%
+-commutative67.6%
distribute-rgt-neg-in67.6%
+-commutative67.6%
mul-1-neg67.6%
distribute-lft-in67.6%
metadata-eval67.6%
neg-mul-167.6%
unsub-neg67.6%
Simplified67.6%
Taylor expanded in b around 0 50.2%
*-commutative50.2%
+-commutative50.2%
Simplified50.2%
if -2.20000000000000004e-190 < b < 3.00000000000000003e-285 or 4.10000000000000019e-162 < b Initial program 91.0%
Taylor expanded in c around inf 73.1%
+-commutative73.1%
associate-*r/73.1%
metadata-eval73.1%
Simplified73.1%
Taylor expanded in c around 0 41.2%
Taylor expanded in x around inf 54.4%
if 3.00000000000000003e-285 < b < 4.10000000000000019e-162Initial program 100.0%
Taylor expanded in c around inf 85.0%
+-commutative85.0%
associate-*r/85.0%
metadata-eval85.0%
Simplified85.0%
Taylor expanded in c around 0 49.8%
associate-*r*54.8%
associate--l+54.8%
associate-*r/54.8%
metadata-eval54.8%
Simplified54.8%
Taylor expanded in a around inf 49.8%
Final simplification52.1%
(FPCore (x y z t a b c) :precision binary64 (if (<= y 1.5e+22) 1.0 (/ x (+ x (+ y (* 2.0 (* a (* c y))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 1.5e+22) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (2.0 * (a * (c * y)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= 1.5d+22) then
tmp = 1.0d0
else
tmp = x / (x + (y + (2.0d0 * (a * (c * y)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 1.5e+22) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (2.0 * (a * (c * y)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= 1.5e+22: tmp = 1.0 else: tmp = x / (x + (y + (2.0 * (a * (c * y))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= 1.5e+22) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(a * Float64(c * y)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= 1.5e+22) tmp = 1.0; else tmp = x / (x + (y + (2.0 * (a * (c * y))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, 1.5e+22], 1.0, N[(x / N[(x + N[(y + N[(2.0 * N[(a * N[(c * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.5 \cdot 10^{+22}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(a \cdot \left(c \cdot y\right)\right)\right)}\\
\end{array}
\end{array}
if y < 1.5e22Initial program 93.5%
Taylor expanded in c around inf 65.5%
+-commutative65.5%
associate-*r/65.5%
metadata-eval65.5%
Simplified65.5%
Taylor expanded in c around 0 35.9%
Taylor expanded in x around inf 46.0%
if 1.5e22 < y Initial program 93.0%
Taylor expanded in c around inf 73.5%
+-commutative73.5%
associate-*r/73.5%
metadata-eval73.5%
Simplified73.5%
Taylor expanded in c around 0 63.6%
associate-*r*58.2%
associate--l+58.2%
associate-*r/58.2%
metadata-eval58.2%
Simplified58.2%
Taylor expanded in a around inf 58.1%
Final simplification48.7%
(FPCore (x y z t a b c) :precision binary64 (if (<= x -6e-257) 1.0 (if (<= x 8.8e-241) (/ x y) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= -6e-257) {
tmp = 1.0;
} else if (x <= 8.8e-241) {
tmp = x / y;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (x <= (-6d-257)) then
tmp = 1.0d0
else if (x <= 8.8d-241) then
tmp = x / y
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= -6e-257) {
tmp = 1.0;
} else if (x <= 8.8e-241) {
tmp = x / y;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= -6e-257: tmp = 1.0 elif x <= 8.8e-241: tmp = x / y else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= -6e-257) tmp = 1.0; elseif (x <= 8.8e-241) tmp = Float64(x / y); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= -6e-257) tmp = 1.0; elseif (x <= 8.8e-241) tmp = x / y; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, -6e-257], 1.0, If[LessEqual[x, 8.8e-241], N[(x / y), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6 \cdot 10^{-257}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 8.8 \cdot 10^{-241}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -5.9999999999999999e-257 or 8.7999999999999997e-241 < x Initial program 93.8%
Taylor expanded in c around inf 68.6%
+-commutative68.6%
associate-*r/68.6%
metadata-eval68.6%
Simplified68.6%
Taylor expanded in c around 0 36.1%
Taylor expanded in x around inf 45.8%
if -5.9999999999999999e-257 < x < 8.7999999999999997e-241Initial program 89.8%
Taylor expanded in c around inf 56.8%
+-commutative56.8%
associate-*r/56.8%
metadata-eval56.8%
Simplified56.8%
Taylor expanded in c around 0 54.0%
Taylor expanded in x around 0 54.0%
Final simplification46.7%
(FPCore (x y z t a b c) :precision binary64 (if (<= y 3.6e+29) 1.0 (/ 1.0 (/ (+ x y) x))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 3.6e+29) {
tmp = 1.0;
} else {
tmp = 1.0 / ((x + y) / x);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= 3.6d+29) then
tmp = 1.0d0
else
tmp = 1.0d0 / ((x + y) / x)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 3.6e+29) {
tmp = 1.0;
} else {
tmp = 1.0 / ((x + y) / x);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= 3.6e+29: tmp = 1.0 else: tmp = 1.0 / ((x + y) / x) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= 3.6e+29) tmp = 1.0; else tmp = Float64(1.0 / Float64(Float64(x + y) / x)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= 3.6e+29) tmp = 1.0; else tmp = 1.0 / ((x + y) / x); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, 3.6e+29], 1.0, N[(1.0 / N[(N[(x + y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 3.6 \cdot 10^{+29}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{x + y}{x}}\\
\end{array}
\end{array}
if y < 3.59999999999999976e29Initial program 93.5%
Taylor expanded in c around inf 65.5%
+-commutative65.5%
associate-*r/65.5%
metadata-eval65.5%
Simplified65.5%
Taylor expanded in c around 0 35.9%
Taylor expanded in x around inf 46.0%
if 3.59999999999999976e29 < y Initial program 93.0%
Taylor expanded in c around inf 73.5%
+-commutative73.5%
associate-*r/73.5%
metadata-eval73.5%
Simplified73.5%
Taylor expanded in c around 0 45.9%
clear-num47.7%
inv-pow47.7%
Applied egg-rr47.7%
unpow-147.7%
Simplified47.7%
Final simplification46.4%
(FPCore (x y z t a b c) :precision binary64 (if (<= y 6.2e+25) 1.0 (/ x (+ x y))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 6.2e+25) {
tmp = 1.0;
} else {
tmp = x / (x + y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= 6.2d+25) then
tmp = 1.0d0
else
tmp = x / (x + y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 6.2e+25) {
tmp = 1.0;
} else {
tmp = x / (x + y);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= 6.2e+25: tmp = 1.0 else: tmp = x / (x + y) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= 6.2e+25) tmp = 1.0; else tmp = Float64(x / Float64(x + y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= 6.2e+25) tmp = 1.0; else tmp = x / (x + y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, 6.2e+25], 1.0, N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 6.2 \cdot 10^{+25}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y}\\
\end{array}
\end{array}
if y < 6.1999999999999996e25Initial program 93.5%
Taylor expanded in c around inf 65.5%
+-commutative65.5%
associate-*r/65.5%
metadata-eval65.5%
Simplified65.5%
Taylor expanded in c around 0 35.9%
Taylor expanded in x around inf 46.0%
if 6.1999999999999996e25 < y Initial program 93.0%
Taylor expanded in c around inf 73.5%
+-commutative73.5%
associate-*r/73.5%
metadata-eval73.5%
Simplified73.5%
Taylor expanded in c around 0 45.9%
Final simplification46.0%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 93.4%
Taylor expanded in c around inf 67.3%
+-commutative67.3%
associate-*r/67.3%
metadata-eval67.3%
Simplified67.3%
Taylor expanded in c around 0 38.1%
Taylor expanded in x around inf 42.1%
Final simplification42.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* z (sqrt (+ t a)))) (t_2 (- a (/ 5.0 6.0))))
(if (< t -2.118326644891581e-50)
(/
x
(+
x
(* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b)))))))
(if (< t 5.196588770651547e-123)
(/
x
(+
x
(*
y
(exp
(*
2.0
(/
(-
(* t_1 (* (* 3.0 t) t_2))
(*
(- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0)
(* t_2 (* (- b c) t))))
(* (* (* t t) 3.0) t_2)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ t_1 t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = z * sqrt((t + a));
double t_2 = a - (5.0 / 6.0);
double tmp;
if (t < -2.118326644891581e-50) {
tmp = x / (x + (y * exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b))))));
} else if (t < 5.196588770651547e-123) {
tmp = x / (x + (y * exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * sqrt((t + a))
t_2 = a - (5.0d0 / 6.0d0)
if (t < (-2.118326644891581d-50)) then
tmp = x / (x + (y * exp((2.0d0 * (((a * c) + (0.8333333333333334d0 * c)) - (a * b))))))
else if (t < 5.196588770651547d-123) then
tmp = x / (x + (y * exp((2.0d0 * (((t_1 * ((3.0d0 * t) * t_2)) - (((((5.0d0 / 6.0d0) + a) * (3.0d0 * t)) - 2.0d0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0d0) * t_2))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((t_1 / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = z * Math.sqrt((t + a));
double t_2 = a - (5.0 / 6.0);
double tmp;
if (t < -2.118326644891581e-50) {
tmp = x / (x + (y * Math.exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b))))));
} else if (t < 5.196588770651547e-123) {
tmp = x / (x + (y * Math.exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = z * math.sqrt((t + a)) t_2 = a - (5.0 / 6.0) tmp = 0 if t < -2.118326644891581e-50: tmp = x / (x + (y * math.exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b)))))) elif t < 5.196588770651547e-123: tmp = x / (x + (y * math.exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2)))))) else: tmp = x / (x + (y * math.exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(z * sqrt(Float64(t + a))) t_2 = Float64(a - Float64(5.0 / 6.0)) tmp = 0.0 if (t < -2.118326644891581e-50) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(a * c) + Float64(0.8333333333333334 * c)) - Float64(a * b))))))); elseif (t < 5.196588770651547e-123) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(t_1 * Float64(Float64(3.0 * t) * t_2)) - Float64(Float64(Float64(Float64(Float64(5.0 / 6.0) + a) * Float64(3.0 * t)) - 2.0) * Float64(t_2 * Float64(Float64(b - c) * t)))) / Float64(Float64(Float64(t * t) * 3.0) * t_2))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(t_1 / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = z * sqrt((t + a)); t_2 = a - (5.0 / 6.0); tmp = 0.0; if (t < -2.118326644891581e-50) tmp = x / (x + (y * exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b)))))); elseif (t < 5.196588770651547e-123) tmp = x / (x + (y * exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2)))))); else tmp = x / (x + (y * exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a - N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -2.118326644891581e-50], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(a * c), $MachinePrecision] + N[(0.8333333333333334 * c), $MachinePrecision]), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[t, 5.196588770651547e-123], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(t$95$1 * N[(N[(3.0 * t), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(N[(N[(5.0 / 6.0), $MachinePrecision] + a), $MachinePrecision] * N[(3.0 * t), $MachinePrecision]), $MachinePrecision] - 2.0), $MachinePrecision] * N[(t$95$2 * N[(N[(b - c), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(t * t), $MachinePrecision] * 3.0), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(t$95$1 / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \sqrt{t + a}\\
t_2 := a - \frac{5}{6}\\
\mathbf{if}\;t < -2.118326644891581 \cdot 10^{-50}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a \cdot c + 0.8333333333333334 \cdot c\right) - a \cdot b\right)}}\\
\mathbf{elif}\;t < 5.196588770651547 \cdot 10^{-123}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{t\_1 \cdot \left(\left(3 \cdot t\right) \cdot t\_2\right) - \left(\left(\frac{5}{6} + a\right) \cdot \left(3 \cdot t\right) - 2\right) \cdot \left(t\_2 \cdot \left(\left(b - c\right) \cdot t\right)\right)}{\left(\left(t \cdot t\right) \cdot 3\right) \cdot t\_2}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{t\_1}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}\\
\end{array}
\end{array}
herbie shell --seed 2024067
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:alt
(if (< t -2.118326644891581e-50) (/ x (+ x (* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b))))))) (if (< t 5.196588770651547e-123) (/ x (+ x (* y (exp (* 2.0 (/ (- (* (* z (sqrt (+ t a))) (* (* 3.0 t) (- a (/ 5.0 6.0)))) (* (- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0) (* (- a (/ 5.0 6.0)) (* (- b c) t)))) (* (* (* t t) 3.0) (- a (/ 5.0 6.0))))))))) (/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))