
(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 19 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
(*
2.0
(/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t)))))))))
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((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
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((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
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((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) 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(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); 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((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); 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[(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]]]
\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^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\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.6%
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 t around 0 87.1%
Final simplification98.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t)))))))))
(t_2
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))))
(if (<= t 9.4e-240)
t_2
(if (<= t 9.8e-167)
t_1
(if (<= t 2.05e-125)
t_2
(if (<= t 5e-88)
(/ x (+ x (* y (exp (* 2.0 (/ (* c -0.6666666666666666) t))))))
(if (<= t 1.46e-21)
t_1
(/
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 = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
double t_2 = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
double tmp;
if (t <= 9.4e-240) {
tmp = t_2;
} else if (t <= 9.8e-167) {
tmp = t_1;
} else if (t <= 2.05e-125) {
tmp = t_2;
} else if (t <= 5e-88) {
tmp = x / (x + (y * exp((2.0 * ((c * -0.6666666666666666) / t)))));
} else if (t <= 1.46e-21) {
tmp = t_1;
} 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) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (c * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t)))))))
t_2 = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
if (t <= 9.4d-240) then
tmp = t_2
else if (t <= 9.8d-167) then
tmp = t_1
else if (t <= 2.05d-125) then
tmp = t_2
else if (t <= 5d-88) then
tmp = x / (x + (y * exp((2.0d0 * ((c * (-0.6666666666666666d0)) / t)))))
else if (t <= 1.46d-21) then
tmp = t_1
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 = x / (x + (y * Math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
double t_2 = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
double tmp;
if (t <= 9.4e-240) {
tmp = t_2;
} else if (t <= 9.8e-167) {
tmp = t_1;
} else if (t <= 2.05e-125) {
tmp = t_2;
} else if (t <= 5e-88) {
tmp = x / (x + (y * Math.exp((2.0 * ((c * -0.6666666666666666) / t)))));
} else if (t <= 1.46e-21) {
tmp = t_1;
} 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 = x / (x + (y * math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))) t_2 = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) tmp = 0 if t <= 9.4e-240: tmp = t_2 elif t <= 9.8e-167: tmp = t_1 elif t <= 2.05e-125: tmp = t_2 elif t <= 5e-88: tmp = x / (x + (y * math.exp((2.0 * ((c * -0.6666666666666666) / t))))) elif t <= 1.46e-21: tmp = t_1 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(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t)))))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))) tmp = 0.0 if (t <= 9.4e-240) tmp = t_2; elseif (t <= 9.8e-167) tmp = t_1; elseif (t <= 2.05e-125) tmp = t_2; elseif (t <= 5e-88) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c * -0.6666666666666666) / t)))))); elseif (t <= 1.46e-21) tmp = t_1; 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 = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))); t_2 = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); tmp = 0.0; if (t <= 9.4e-240) tmp = t_2; elseif (t <= 9.8e-167) tmp = t_1; elseif (t <= 2.05e-125) tmp = t_2; elseif (t <= 5e-88) tmp = x / (x + (y * exp((2.0 * ((c * -0.6666666666666666) / t))))); elseif (t <= 1.46e-21) tmp = t_1; 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[(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]}, Block[{t$95$2 = 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, 9.4e-240], t$95$2, If[LessEqual[t, 9.8e-167], t$95$1, If[LessEqual[t, 2.05e-125], t$95$2, If[LessEqual[t, 5e-88], 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.46e-21], t$95$1, 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 := \frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)}}\\
t_2 := \frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{if}\;t \leq 9.4 \cdot 10^{-240}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 9.8 \cdot 10^{-167}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.05 \cdot 10^{-125}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-88}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{c \cdot -0.6666666666666666}{t}}}\\
\mathbf{elif}\;t \leq 1.46 \cdot 10^{-21}:\\
\;\;\;\;t\_1\\
\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 < 9.40000000000000024e-240 or 9.80000000000000006e-167 < t < 2.0499999999999999e-125Initial program 86.2%
Taylor expanded in t around 0 95.9%
if 9.40000000000000024e-240 < t < 9.80000000000000006e-167 or 5.00000000000000009e-88 < t < 1.46000000000000006e-21Initial program 100.0%
Taylor expanded in c around inf 78.2%
+-commutative78.2%
associate-*r/78.2%
metadata-eval78.2%
Simplified78.2%
if 2.0499999999999999e-125 < t < 5.00000000000000009e-88Initial program 93.8%
Taylor expanded in t around 0 62.5%
Taylor expanded in c around inf 100.0%
*-commutative100.0%
Simplified100.0%
if 1.46000000000000006e-21 < t Initial program 98.1%
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 simplification95.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
c
(- (+ a 0.8333333333333334) (/ 0.6666666666666666 t))))))))))
(if (<= t -2.95e-199)
t_1
(if (<= t 6.6e-248)
(/ x (+ x (* y (exp (* 2.0 (/ (* z (sqrt a)) t))))))
(if (<= t 5.7e-21)
t_1
(/
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 = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
double tmp;
if (t <= -2.95e-199) {
tmp = t_1;
} else if (t <= 6.6e-248) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt(a)) / t)))));
} else if (t <= 5.7e-21) {
tmp = t_1;
} 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 = x / (x + (y * exp((2.0d0 * (c * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t)))))))
if (t <= (-2.95d-199)) then
tmp = t_1
else if (t <= 6.6d-248) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt(a)) / t)))))
else if (t <= 5.7d-21) then
tmp = t_1
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 = x / (x + (y * Math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
double tmp;
if (t <= -2.95e-199) {
tmp = t_1;
} else if (t <= 6.6e-248) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt(a)) / t)))));
} else if (t <= 5.7e-21) {
tmp = t_1;
} 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 = x / (x + (y * math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))) tmp = 0 if t <= -2.95e-199: tmp = t_1 elif t <= 6.6e-248: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt(a)) / t))))) elif t <= 5.7e-21: tmp = t_1 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(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t)))))))) tmp = 0.0 if (t <= -2.95e-199) tmp = t_1; elseif (t <= 6.6e-248) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(a)) / t)))))); elseif (t <= 5.7e-21) tmp = t_1; 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 = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))); tmp = 0.0; if (t <= -2.95e-199) tmp = t_1; elseif (t <= 6.6e-248) tmp = x / (x + (y * exp((2.0 * ((z * sqrt(a)) / t))))); elseif (t <= 5.7e-21) tmp = t_1; 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[(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]}, If[LessEqual[t, -2.95e-199], t$95$1, If[LessEqual[t, 6.6e-248], 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, 5.7e-21], t$95$1, 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 := \frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)}}\\
\mathbf{if}\;t \leq -2.95 \cdot 10^{-199}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{-248}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a}}{t}}}\\
\mathbf{elif}\;t \leq 5.7 \cdot 10^{-21}:\\
\;\;\;\;t\_1\\
\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.95000000000000015e-199 or 6.6000000000000004e-248 < t < 5.6999999999999996e-21Initial program 93.7%
Taylor expanded in c around inf 73.8%
+-commutative73.8%
associate-*r/73.8%
metadata-eval73.8%
Simplified73.8%
if -2.95000000000000015e-199 < t < 6.6000000000000004e-248Initial program 82.1%
Taylor expanded in t around 0 100.0%
Taylor expanded in a around inf 80.3%
if 5.6999999999999996e-21 < t Initial program 98.1%
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 simplification85.6%
(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 (* c (+ a 0.8333333333333334)))))))))
(if (<= c -8.2e-10)
t_2
(if (<= c 6.8e-242)
t_1
(if (<= c 1.82e-177)
(/ x (+ x (* y (exp (* 2.0 (/ (* b 0.6666666666666666) t))))))
(if (<= c 1.4e-59) t_1 t_2))))))
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 * (c * (a + 0.8333333333333334))))));
double tmp;
if (c <= -8.2e-10) {
tmp = t_2;
} else if (c <= 6.8e-242) {
tmp = t_1;
} else if (c <= 1.82e-177) {
tmp = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t)))));
} else if (c <= 1.4e-59) {
tmp = t_1;
} else {
tmp = t_2;
}
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 * (c * (a + 0.8333333333333334d0))))))
if (c <= (-8.2d-10)) then
tmp = t_2
else if (c <= 6.8d-242) then
tmp = t_1
else if (c <= 1.82d-177) then
tmp = x / (x + (y * exp((2.0d0 * ((b * 0.6666666666666666d0) / t)))))
else if (c <= 1.4d-59) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double 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 * (c * (a + 0.8333333333333334))))));
double tmp;
if (c <= -8.2e-10) {
tmp = t_2;
} else if (c <= 6.8e-242) {
tmp = t_1;
} else if (c <= 1.82e-177) {
tmp = x / (x + (y * Math.exp((2.0 * ((b * 0.6666666666666666) / t)))));
} else if (c <= 1.4e-59) {
tmp = t_1;
} else {
tmp = t_2;
}
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 * (c * (a + 0.8333333333333334)))))) tmp = 0 if c <= -8.2e-10: tmp = t_2 elif c <= 6.8e-242: tmp = t_1 elif c <= 1.82e-177: tmp = x / (x + (y * math.exp((2.0 * ((b * 0.6666666666666666) / t))))) elif c <= 1.4e-59: tmp = t_1 else: tmp = t_2 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(c * Float64(a + 0.8333333333333334))))))) tmp = 0.0 if (c <= -8.2e-10) tmp = t_2; elseif (c <= 6.8e-242) tmp = t_1; elseif (c <= 1.82e-177) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b * 0.6666666666666666) / t)))))); elseif (c <= 1.4e-59) tmp = t_1; else tmp = t_2; 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 * (c * (a + 0.8333333333333334)))))); tmp = 0.0; if (c <= -8.2e-10) tmp = t_2; elseif (c <= 6.8e-242) tmp = t_1; elseif (c <= 1.82e-177) tmp = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t))))); elseif (c <= 1.4e-59) tmp = t_1; else tmp = t_2; 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[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -8.2e-10], t$95$2, If[LessEqual[c, 6.8e-242], t$95$1, If[LessEqual[c, 1.82e-177], 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[c, 1.4e-59], t$95$1, t$95$2]]]]]]
\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 \left(c \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\mathbf{if}\;c \leq -8.2 \cdot 10^{-10}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 6.8 \cdot 10^{-242}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1.82 \cdot 10^{-177}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{b \cdot 0.6666666666666666}{t}}}\\
\mathbf{elif}\;c \leq 1.4 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -8.1999999999999996e-10 or 1.3999999999999999e-59 < c Initial program 91.3%
Taylor expanded in c around inf 84.4%
+-commutative84.4%
associate-*r/84.4%
metadata-eval84.4%
Simplified84.4%
Taylor expanded in t around inf 63.9%
if -8.1999999999999996e-10 < c < 6.8000000000000001e-242 or 1.81999999999999993e-177 < c < 1.3999999999999999e-59Initial program 96.2%
Taylor expanded in b around inf 73.5%
associate-*r/73.5%
metadata-eval73.5%
+-commutative73.5%
Simplified73.5%
Taylor expanded in t around inf 67.0%
mul-1-neg67.0%
+-commutative67.0%
distribute-rgt-neg-in67.0%
distribute-neg-in67.0%
metadata-eval67.0%
+-commutative67.0%
unsub-neg67.0%
Simplified67.0%
if 6.8000000000000001e-242 < c < 1.81999999999999993e-177Initial program 100.0%
Taylor expanded in t around 0 80.0%
Taylor expanded in b around inf 87.1%
*-commutative87.1%
Simplified87.1%
Final simplification66.6%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -7e-10) (not (<= c 1.25e-59)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* c (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
a
(-
(* b (/ (- (- 0.8333333333333334) (/ -0.6666666666666666 t)) a))
b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -7e-10) || !(c <= 1.25e-59)) {
tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (a * ((b * ((-0.8333333333333334 - (-0.6666666666666666 / t)) / a)) - 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) :: tmp
if ((c <= (-7d-10)) .or. (.not. (c <= 1.25d-59))) then
tmp = x / (x + (y * exp((2.0d0 * (c * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t)))))))
else
tmp = x / (x + (y * exp((2.0d0 * (a * ((b * ((-0.8333333333333334d0 - ((-0.6666666666666666d0) / t)) / a)) - 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 tmp;
if ((c <= -7e-10) || !(c <= 1.25e-59)) {
tmp = x / (x + (y * Math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * ((b * ((-0.8333333333333334 - (-0.6666666666666666 / t)) / a)) - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (c <= -7e-10) or not (c <= 1.25e-59): tmp = x / (x + (y * math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))) else: tmp = x / (x + (y * math.exp((2.0 * (a * ((b * ((-0.8333333333333334 - (-0.6666666666666666 / t)) / a)) - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((c <= -7e-10) || !(c <= 1.25e-59)) 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(a * Float64(Float64(b * Float64(Float64(Float64(-0.8333333333333334) - Float64(-0.6666666666666666 / t)) / a)) - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((c <= -7e-10) || ~((c <= 1.25e-59))) tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))); else tmp = x / (x + (y * exp((2.0 * (a * ((b * ((-0.8333333333333334 - (-0.6666666666666666 / t)) / a)) - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[c, -7e-10], N[Not[LessEqual[c, 1.25e-59]], $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[(a * N[(N[(b * N[(N[((-0.8333333333333334) - N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -7 \cdot 10^{-10} \lor \neg \left(c \leq 1.25 \cdot 10^{-59}\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(a \cdot \left(b \cdot \frac{\left(-0.8333333333333334\right) - \frac{-0.6666666666666666}{t}}{a} - b\right)\right)}}\\
\end{array}
\end{array}
if c < -6.99999999999999961e-10 or 1.25e-59 < c Initial program 91.3%
Taylor expanded in c around inf 84.4%
+-commutative84.4%
associate-*r/84.4%
metadata-eval84.4%
Simplified84.4%
if -6.99999999999999961e-10 < c < 1.25e-59Initial program 96.6%
Taylor expanded in b around inf 75.2%
associate-*r/75.2%
metadata-eval75.2%
+-commutative75.2%
Simplified75.2%
Taylor expanded in a around -inf 75.2%
mul-1-neg75.2%
*-commutative75.2%
distribute-rgt-neg-in75.2%
Simplified76.9%
Final simplification80.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a 3.1e-263)
1.0
(if (<= a 3.1e+106)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= a 1.15e+138)
1.0
(if (<= a 5e+223)
(/ x (+ x (* y (exp (* -2.0 (* a b))))))
(if (<= a 8e+248)
1.0
(/
x
(+
x
(-
y
(*
2.0
(*
b
(/
(-
(* t (* y (+ a 0.8333333333333334)))
(* y 0.6666666666666666))
t))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 3.1e-263) {
tmp = 1.0;
} else if (a <= 3.1e+106) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (a <= 1.15e+138) {
tmp = 1.0;
} else if (a <= 5e+223) {
tmp = x / (x + (y * exp((-2.0 * (a * b)))));
} else if (a <= 8e+248) {
tmp = 1.0;
} else {
tmp = x / (x + (y - (2.0 * (b * (((t * (y * (a + 0.8333333333333334))) - (y * 0.6666666666666666)) / t)))));
}
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 (a <= 3.1d-263) then
tmp = 1.0d0
else if (a <= 3.1d+106) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (a <= 1.15d+138) then
tmp = 1.0d0
else if (a <= 5d+223) then
tmp = x / (x + (y * exp(((-2.0d0) * (a * b)))))
else if (a <= 8d+248) then
tmp = 1.0d0
else
tmp = x / (x + (y - (2.0d0 * (b * (((t * (y * (a + 0.8333333333333334d0))) - (y * 0.6666666666666666d0)) / t)))))
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 (a <= 3.1e-263) {
tmp = 1.0;
} else if (a <= 3.1e+106) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (a <= 1.15e+138) {
tmp = 1.0;
} else if (a <= 5e+223) {
tmp = x / (x + (y * Math.exp((-2.0 * (a * b)))));
} else if (a <= 8e+248) {
tmp = 1.0;
} else {
tmp = x / (x + (y - (2.0 * (b * (((t * (y * (a + 0.8333333333333334))) - (y * 0.6666666666666666)) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 3.1e-263: tmp = 1.0 elif a <= 3.1e+106: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif a <= 1.15e+138: tmp = 1.0 elif a <= 5e+223: tmp = x / (x + (y * math.exp((-2.0 * (a * b))))) elif a <= 8e+248: tmp = 1.0 else: tmp = x / (x + (y - (2.0 * (b * (((t * (y * (a + 0.8333333333333334))) - (y * 0.6666666666666666)) / t))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 3.1e-263) tmp = 1.0; elseif (a <= 3.1e+106) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (a <= 1.15e+138) tmp = 1.0; elseif (a <= 5e+223) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))); elseif (a <= 8e+248) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(b * Float64(Float64(Float64(t * Float64(y * Float64(a + 0.8333333333333334))) - Float64(y * 0.6666666666666666)) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= 3.1e-263) tmp = 1.0; elseif (a <= 3.1e+106) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (a <= 1.15e+138) tmp = 1.0; elseif (a <= 5e+223) tmp = x / (x + (y * exp((-2.0 * (a * b))))); elseif (a <= 8e+248) tmp = 1.0; else tmp = x / (x + (y - (2.0 * (b * (((t * (y * (a + 0.8333333333333334))) - (y * 0.6666666666666666)) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 3.1e-263], 1.0, If[LessEqual[a, 3.1e+106], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.15e+138], 1.0, If[LessEqual[a, 5e+223], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8e+248], 1.0, N[(x / N[(x + N[(y - N[(2.0 * N[(b * N[(N[(N[(t * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * 0.6666666666666666), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 3.1 \cdot 10^{-263}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{+106}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{+138}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 5 \cdot 10^{+223}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;a \leq 8 \cdot 10^{+248}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(b \cdot \frac{t \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right) - y \cdot 0.6666666666666666}{t}\right)\right)}\\
\end{array}
\end{array}
if a < 3.10000000000000004e-263 or 3.0999999999999999e106 < a < 1.15000000000000004e138 or 4.99999999999999985e223 < a < 8.00000000000000036e248Initial program 96.7%
Taylor expanded in b around inf 52.7%
associate-*r/52.7%
metadata-eval52.7%
+-commutative52.7%
Simplified52.7%
Taylor expanded in b around 0 30.6%
Taylor expanded in x around inf 64.9%
if 3.10000000000000004e-263 < a < 3.0999999999999999e106Initial program 94.9%
Taylor expanded in b around inf 73.8%
associate-*r/73.8%
metadata-eval73.8%
+-commutative73.8%
Simplified73.8%
Taylor expanded in t around inf 65.6%
mul-1-neg65.6%
+-commutative65.6%
distribute-rgt-neg-in65.6%
distribute-neg-in65.6%
metadata-eval65.6%
+-commutative65.6%
unsub-neg65.6%
Simplified65.6%
Taylor expanded in a around 0 64.8%
if 1.15000000000000004e138 < a < 4.99999999999999985e223Initial program 92.0%
Taylor expanded in b around inf 49.7%
associate-*r/49.7%
metadata-eval49.7%
+-commutative49.7%
Simplified49.7%
Taylor expanded in a around inf 53.6%
associate-*r*53.6%
neg-mul-153.6%
Simplified53.6%
Taylor expanded in y around 0 53.6%
if 8.00000000000000036e248 < a Initial program 77.3%
Taylor expanded in b around inf 51.6%
associate-*r/51.6%
metadata-eval51.6%
+-commutative51.6%
Simplified51.6%
Taylor expanded in b around 0 51.9%
Taylor expanded in t around 0 69.5%
Final simplification64.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -4.2e-226)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= t 4e-293)
(/ x (+ x (* y (exp (* 2.0 (/ (* b 0.6666666666666666) t))))))
(if (<= t 3.2e-37)
(/ x (+ x (* y (exp (* 2.0 (/ (* c -0.6666666666666666) t))))))
(/ x (+ x (* y (exp (* 2.0 (* c (+ a 0.8333333333333334)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -4.2e-226) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (t <= 4e-293) {
tmp = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t)))));
} else if (t <= 3.2e-37) {
tmp = x / (x + (y * exp((2.0 * ((c * -0.6666666666666666) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * (c * (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 (t <= (-4.2d-226)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (t <= 4d-293) then
tmp = x / (x + (y * exp((2.0d0 * ((b * 0.6666666666666666d0) / t)))))
else if (t <= 3.2d-37) then
tmp = x / (x + (y * exp((2.0d0 * ((c * (-0.6666666666666666d0)) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * (c * (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 (t <= -4.2e-226) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (t <= 4e-293) {
tmp = x / (x + (y * Math.exp((2.0 * ((b * 0.6666666666666666) / t)))));
} else if (t <= 3.2e-37) {
tmp = x / (x + (y * Math.exp((2.0 * ((c * -0.6666666666666666) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -4.2e-226: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif t <= 4e-293: tmp = x / (x + (y * math.exp((2.0 * ((b * 0.6666666666666666) / t))))) elif t <= 3.2e-37: tmp = x / (x + (y * math.exp((2.0 * ((c * -0.6666666666666666) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * (a + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -4.2e-226) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (t <= 4e-293) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b * 0.6666666666666666) / t)))))); elseif (t <= 3.2e-37) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c * -0.6666666666666666) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -4.2e-226) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (t <= 4e-293) tmp = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t))))); elseif (t <= 3.2e-37) tmp = x / (x + (y * exp((2.0 * ((c * -0.6666666666666666) / t))))); else tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -4.2e-226], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4e-293], 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.2e-37], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c * -0.6666666666666666), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.2 \cdot 10^{-226}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-293}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{b \cdot 0.6666666666666666}{t}}}\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{-37}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{c \cdot -0.6666666666666666}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if t < -4.2000000000000003e-226Initial program 89.6%
Taylor expanded in c around inf 69.7%
+-commutative69.7%
associate-*r/69.7%
metadata-eval69.7%
Simplified69.7%
Taylor expanded in a around inf 65.7%
if -4.2000000000000003e-226 < t < 4.0000000000000002e-293Initial program 72.7%
Taylor expanded in t around 0 100.0%
Taylor expanded in b around inf 69.1%
*-commutative69.1%
Simplified69.1%
if 4.0000000000000002e-293 < t < 3.1999999999999999e-37Initial program 96.0%
Taylor expanded in t around 0 69.5%
Taylor expanded in c around inf 74.2%
*-commutative74.2%
Simplified74.2%
if 3.1999999999999999e-37 < t Initial program 98.2%
Taylor expanded in c around inf 68.6%
+-commutative68.6%
associate-*r/68.6%
metadata-eval68.6%
Simplified68.6%
Taylor expanded in t around inf 67.7%
Final simplification69.4%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= b -40.0) (not (<= b 4.8e+168)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -40.0) || !(b <= 4.8e+168)) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
}
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 <= (-40.0d0)) .or. (.not. (b <= 4.8d+168))) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * (c * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t)))))))
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 <= -40.0) || !(b <= 4.8e+168)) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -40.0) or not (b <= 4.8e+168): tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -40.0) || !(b <= 4.8e+168)) 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(c * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -40.0) || ~((b <= 4.8e+168))) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -40.0], N[Not[LessEqual[b, 4.8e+168]], $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[(c * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -40 \lor \neg \left(b \leq 4.8 \cdot 10^{+168}\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(c \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)}}\\
\end{array}
\end{array}
if b < -40 or 4.80000000000000019e168 < b Initial program 90.9%
Taylor expanded in b around inf 80.2%
associate-*r/80.2%
metadata-eval80.2%
+-commutative80.2%
Simplified80.2%
if -40 < b < 4.80000000000000019e168Initial program 95.3%
Taylor expanded in c around inf 78.7%
+-commutative78.7%
associate-*r/78.7%
metadata-eval78.7%
Simplified78.7%
Final simplification79.2%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= b -3.4e-15) (not (<= b 1.15e-7)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/ x (+ x (* y (exp (* 2.0 (* c (+ a 0.8333333333333334)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -3.4e-15) || !(b <= 1.15e-7)) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (c * (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 ((b <= (-3.4d-15)) .or. (.not. (b <= 1.15d-7))) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * (c * (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 ((b <= -3.4e-15) || !(b <= 1.15e-7)) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -3.4e-15) or not (b <= 1.15e-7): tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * (a + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -3.4e-15) || !(b <= 1.15e-7)) 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(c * Float64(a + 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -3.4e-15) || ~((b <= 1.15e-7))) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -3.4e-15], N[Not[LessEqual[b, 1.15e-7]], $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[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.4 \cdot 10^{-15} \lor \neg \left(b \leq 1.15 \cdot 10^{-7}\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(c \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if b < -3.4e-15 or 1.14999999999999997e-7 < b Initial program 92.2%
Taylor expanded in b around inf 75.8%
associate-*r/75.8%
metadata-eval75.8%
+-commutative75.8%
Simplified75.8%
if -3.4e-15 < b < 1.14999999999999997e-7Initial program 95.3%
Taylor expanded in c around inf 79.6%
+-commutative79.6%
associate-*r/79.6%
metadata-eval79.6%
Simplified79.6%
Taylor expanded in t around inf 64.9%
Final simplification70.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a 3e-263)
1.0
(if (<= a 1.16e+106)
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a)))))))
(if (<= a 3.6e+146) 1.0 (/ x (+ x (* y (exp (* 2.0 (* a c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 3e-263) {
tmp = 1.0;
} else if (a <= 1.16e+106) {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else if (a <= 3.6e+146) {
tmp = 1.0;
} else {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
}
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 (a <= 3d-263) then
tmp = 1.0d0
else if (a <= 1.16d+106) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
else if (a <= 3.6d+146) then
tmp = 1.0d0
else
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
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 (a <= 3e-263) {
tmp = 1.0;
} else if (a <= 1.16e+106) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else if (a <= 3.6e+146) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 3e-263: tmp = 1.0 elif a <= 1.16e+106: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) elif a <= 3.6e+146: tmp = 1.0 else: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 3e-263) tmp = 1.0; elseif (a <= 1.16e+106) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); elseif (a <= 3.6e+146) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= 3e-263) tmp = 1.0; elseif (a <= 1.16e+106) tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); elseif (a <= 3.6e+146) tmp = 1.0; else tmp = x / (x + (y * exp((2.0 * (a * c))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 3e-263], 1.0, If[LessEqual[a, 1.16e+106], 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[a, 3.6e+146], 1.0, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 3 \cdot 10^{-263}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 1.16 \cdot 10^{+106}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{elif}\;a \leq 3.6 \cdot 10^{+146}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\end{array}
\end{array}
if a < 3e-263 or 1.16000000000000004e106 < a < 3.5999999999999998e146Initial program 96.6%
Taylor expanded in b around inf 54.9%
associate-*r/54.9%
metadata-eval54.9%
+-commutative54.9%
Simplified54.9%
Taylor expanded in b around 0 29.0%
Taylor expanded in x around inf 63.0%
if 3e-263 < a < 1.16000000000000004e106Initial program 94.9%
Taylor expanded in b around inf 73.8%
associate-*r/73.8%
metadata-eval73.8%
+-commutative73.8%
Simplified73.8%
Taylor expanded in t around inf 65.6%
mul-1-neg65.6%
+-commutative65.6%
distribute-rgt-neg-in65.6%
distribute-neg-in65.6%
metadata-eval65.6%
+-commutative65.6%
unsub-neg65.6%
Simplified65.6%
if 3.5999999999999998e146 < a Initial program 85.7%
Taylor expanded in c around inf 70.3%
+-commutative70.3%
associate-*r/70.3%
metadata-eval70.3%
Simplified70.3%
Taylor expanded in a around inf 68.3%
Final simplification65.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a 3.1e-263)
1.0
(if (<= a 2e+104)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= a 1.4e+147) 1.0 (/ x (+ x (* y (exp (* 2.0 (* a c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 3.1e-263) {
tmp = 1.0;
} else if (a <= 2e+104) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (a <= 1.4e+147) {
tmp = 1.0;
} else {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
}
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 (a <= 3.1d-263) then
tmp = 1.0d0
else if (a <= 2d+104) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (a <= 1.4d+147) then
tmp = 1.0d0
else
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
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 (a <= 3.1e-263) {
tmp = 1.0;
} else if (a <= 2e+104) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (a <= 1.4e+147) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 3.1e-263: tmp = 1.0 elif a <= 2e+104: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif a <= 1.4e+147: tmp = 1.0 else: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 3.1e-263) tmp = 1.0; elseif (a <= 2e+104) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (a <= 1.4e+147) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= 3.1e-263) tmp = 1.0; elseif (a <= 2e+104) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (a <= 1.4e+147) tmp = 1.0; else tmp = x / (x + (y * exp((2.0 * (a * c))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 3.1e-263], 1.0, If[LessEqual[a, 2e+104], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e+147], 1.0, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 3.1 \cdot 10^{-263}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 2 \cdot 10^{+104}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{+147}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\end{array}
\end{array}
if a < 3.10000000000000004e-263 or 2e104 < a < 1.4e147Initial program 96.6%
Taylor expanded in b around inf 54.9%
associate-*r/54.9%
metadata-eval54.9%
+-commutative54.9%
Simplified54.9%
Taylor expanded in b around 0 29.0%
Taylor expanded in x around inf 63.0%
if 3.10000000000000004e-263 < a < 2e104Initial program 94.9%
Taylor expanded in b around inf 73.8%
associate-*r/73.8%
metadata-eval73.8%
+-commutative73.8%
Simplified73.8%
Taylor expanded in t around inf 65.6%
mul-1-neg65.6%
+-commutative65.6%
distribute-rgt-neg-in65.6%
distribute-neg-in65.6%
metadata-eval65.6%
+-commutative65.6%
unsub-neg65.6%
Simplified65.6%
Taylor expanded in a around 0 64.8%
if 1.4e147 < a Initial program 85.7%
Taylor expanded in c around inf 70.3%
+-commutative70.3%
associate-*r/70.3%
metadata-eval70.3%
Simplified70.3%
Taylor expanded in a around inf 68.3%
Final simplification64.9%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= c -8.5e-10) (not (<= c 1.1e-62))) (/ x (+ x (* y (exp (* 2.0 (* c (+ a 0.8333333333333334))))))) (/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -8.5e-10) || !(c <= 1.1e-62)) {
tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334))))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - 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 ((c <= (-8.5d-10)) .or. (.not. (c <= 1.1d-62))) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + 0.8333333333333334d0))))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - 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 ((c <= -8.5e-10) || !(c <= 1.1e-62)) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + 0.8333333333333334))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (c <= -8.5e-10) or not (c <= 1.1e-62): tmp = x / (x + (y * math.exp((2.0 * (c * (a + 0.8333333333333334)))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((c <= -8.5e-10) || !(c <= 1.1e-62)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((c <= -8.5e-10) || ~((c <= 1.1e-62))) tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334)))))); else tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[c, -8.5e-10], N[Not[LessEqual[c, 1.1e-62]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -8.5 \cdot 10^{-10} \lor \neg \left(c \leq 1.1 \cdot 10^{-62}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if c < -8.4999999999999996e-10 or 1.10000000000000009e-62 < c Initial program 91.3%
Taylor expanded in c around inf 84.4%
+-commutative84.4%
associate-*r/84.4%
metadata-eval84.4%
Simplified84.4%
Taylor expanded in t around inf 63.9%
if -8.4999999999999996e-10 < c < 1.10000000000000009e-62Initial program 96.6%
Taylor expanded in b around inf 75.2%
associate-*r/75.2%
metadata-eval75.2%
+-commutative75.2%
Simplified75.2%
Taylor expanded in t around inf 65.5%
mul-1-neg65.5%
+-commutative65.5%
distribute-rgt-neg-in65.5%
distribute-neg-in65.5%
metadata-eval65.5%
+-commutative65.5%
unsub-neg65.5%
Simplified65.5%
Final simplification64.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a 2.9e-263)
1.0
(if (<= a 1.5e+105)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= a 2.2e+249)
1.0
(/
x
(+
x
(-
y
(*
2.0
(*
b
(/
(- (* t (* y (+ a 0.8333333333333334))) (* y 0.6666666666666666))
t))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 2.9e-263) {
tmp = 1.0;
} else if (a <= 1.5e+105) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (a <= 2.2e+249) {
tmp = 1.0;
} else {
tmp = x / (x + (y - (2.0 * (b * (((t * (y * (a + 0.8333333333333334))) - (y * 0.6666666666666666)) / t)))));
}
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 (a <= 2.9d-263) then
tmp = 1.0d0
else if (a <= 1.5d+105) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (a <= 2.2d+249) then
tmp = 1.0d0
else
tmp = x / (x + (y - (2.0d0 * (b * (((t * (y * (a + 0.8333333333333334d0))) - (y * 0.6666666666666666d0)) / t)))))
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 (a <= 2.9e-263) {
tmp = 1.0;
} else if (a <= 1.5e+105) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (a <= 2.2e+249) {
tmp = 1.0;
} else {
tmp = x / (x + (y - (2.0 * (b * (((t * (y * (a + 0.8333333333333334))) - (y * 0.6666666666666666)) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 2.9e-263: tmp = 1.0 elif a <= 1.5e+105: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif a <= 2.2e+249: tmp = 1.0 else: tmp = x / (x + (y - (2.0 * (b * (((t * (y * (a + 0.8333333333333334))) - (y * 0.6666666666666666)) / t))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 2.9e-263) tmp = 1.0; elseif (a <= 1.5e+105) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (a <= 2.2e+249) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(b * Float64(Float64(Float64(t * Float64(y * Float64(a + 0.8333333333333334))) - Float64(y * 0.6666666666666666)) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= 2.9e-263) tmp = 1.0; elseif (a <= 1.5e+105) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (a <= 2.2e+249) tmp = 1.0; else tmp = x / (x + (y - (2.0 * (b * (((t * (y * (a + 0.8333333333333334))) - (y * 0.6666666666666666)) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 2.9e-263], 1.0, If[LessEqual[a, 1.5e+105], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.2e+249], 1.0, N[(x / N[(x + N[(y - N[(2.0 * N[(b * N[(N[(N[(t * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * 0.6666666666666666), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 2.9 \cdot 10^{-263}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 1.5 \cdot 10^{+105}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{+249}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(b \cdot \frac{t \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right) - y \cdot 0.6666666666666666}{t}\right)\right)}\\
\end{array}
\end{array}
if a < 2.90000000000000004e-263 or 1.5e105 < a < 2.1999999999999998e249Initial program 95.7%
Taylor expanded in b around inf 52.1%
associate-*r/52.1%
metadata-eval52.1%
+-commutative52.1%
Simplified52.1%
Taylor expanded in b around 0 28.0%
Taylor expanded in x around inf 58.3%
if 2.90000000000000004e-263 < a < 1.5e105Initial program 94.9%
Taylor expanded in b around inf 73.8%
associate-*r/73.8%
metadata-eval73.8%
+-commutative73.8%
Simplified73.8%
Taylor expanded in t around inf 65.6%
mul-1-neg65.6%
+-commutative65.6%
distribute-rgt-neg-in65.6%
distribute-neg-in65.6%
metadata-eval65.6%
+-commutative65.6%
unsub-neg65.6%
Simplified65.6%
Taylor expanded in a around 0 64.8%
if 2.1999999999999998e249 < a Initial program 77.3%
Taylor expanded in b around inf 51.6%
associate-*r/51.6%
metadata-eval51.6%
+-commutative51.6%
Simplified51.6%
Taylor expanded in b around 0 51.9%
Taylor expanded in t around 0 69.5%
Final simplification62.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a 3.1e-263)
1.0
(if (<= a 2.6e+35)
(/
x
(+
x
(-
y
(*
2.0
(*
b
(*
a
(-
y
(* y (/ (+ (/ 0.6666666666666666 t) -0.8333333333333334) a)))))))))
(if (<= a 1.95e+249)
1.0
(/
x
(+
x
(-
y
(*
2.0
(*
b
(/
(- (* t (* y (+ a 0.8333333333333334))) (* y 0.6666666666666666))
t))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 3.1e-263) {
tmp = 1.0;
} else if (a <= 2.6e+35) {
tmp = x / (x + (y - (2.0 * (b * (a * (y - (y * (((0.6666666666666666 / t) + -0.8333333333333334) / a))))))));
} else if (a <= 1.95e+249) {
tmp = 1.0;
} else {
tmp = x / (x + (y - (2.0 * (b * (((t * (y * (a + 0.8333333333333334))) - (y * 0.6666666666666666)) / t)))));
}
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 (a <= 3.1d-263) then
tmp = 1.0d0
else if (a <= 2.6d+35) then
tmp = x / (x + (y - (2.0d0 * (b * (a * (y - (y * (((0.6666666666666666d0 / t) + (-0.8333333333333334d0)) / a))))))))
else if (a <= 1.95d+249) then
tmp = 1.0d0
else
tmp = x / (x + (y - (2.0d0 * (b * (((t * (y * (a + 0.8333333333333334d0))) - (y * 0.6666666666666666d0)) / t)))))
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 (a <= 3.1e-263) {
tmp = 1.0;
} else if (a <= 2.6e+35) {
tmp = x / (x + (y - (2.0 * (b * (a * (y - (y * (((0.6666666666666666 / t) + -0.8333333333333334) / a))))))));
} else if (a <= 1.95e+249) {
tmp = 1.0;
} else {
tmp = x / (x + (y - (2.0 * (b * (((t * (y * (a + 0.8333333333333334))) - (y * 0.6666666666666666)) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 3.1e-263: tmp = 1.0 elif a <= 2.6e+35: tmp = x / (x + (y - (2.0 * (b * (a * (y - (y * (((0.6666666666666666 / t) + -0.8333333333333334) / a)))))))) elif a <= 1.95e+249: tmp = 1.0 else: tmp = x / (x + (y - (2.0 * (b * (((t * (y * (a + 0.8333333333333334))) - (y * 0.6666666666666666)) / t))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 3.1e-263) tmp = 1.0; elseif (a <= 2.6e+35) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(b * Float64(a * Float64(y - Float64(y * Float64(Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334) / a))))))))); elseif (a <= 1.95e+249) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(b * Float64(Float64(Float64(t * Float64(y * Float64(a + 0.8333333333333334))) - Float64(y * 0.6666666666666666)) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= 3.1e-263) tmp = 1.0; elseif (a <= 2.6e+35) tmp = x / (x + (y - (2.0 * (b * (a * (y - (y * (((0.6666666666666666 / t) + -0.8333333333333334) / a)))))))); elseif (a <= 1.95e+249) tmp = 1.0; else tmp = x / (x + (y - (2.0 * (b * (((t * (y * (a + 0.8333333333333334))) - (y * 0.6666666666666666)) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 3.1e-263], 1.0, If[LessEqual[a, 2.6e+35], N[(x / N[(x + N[(y - N[(2.0 * N[(b * N[(a * N[(y - N[(y * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.95e+249], 1.0, N[(x / N[(x + N[(y - N[(2.0 * N[(b * N[(N[(N[(t * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * 0.6666666666666666), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 3.1 \cdot 10^{-263}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{+35}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(b \cdot \left(a \cdot \left(y - y \cdot \frac{\frac{0.6666666666666666}{t} + -0.8333333333333334}{a}\right)\right)\right)\right)}\\
\mathbf{elif}\;a \leq 1.95 \cdot 10^{+249}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(b \cdot \frac{t \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right) - y \cdot 0.6666666666666666}{t}\right)\right)}\\
\end{array}
\end{array}
if a < 3.10000000000000004e-263 or 2.60000000000000007e35 < a < 1.9499999999999998e249Initial program 93.7%
Taylor expanded in b around inf 57.8%
associate-*r/57.8%
metadata-eval57.8%
+-commutative57.8%
Simplified57.8%
Taylor expanded in b around 0 33.0%
Taylor expanded in x around inf 59.4%
if 3.10000000000000004e-263 < a < 2.60000000000000007e35Initial program 97.8%
Taylor expanded in b around inf 71.3%
associate-*r/71.3%
metadata-eval71.3%
+-commutative71.3%
Simplified71.3%
Taylor expanded in b around 0 51.2%
Taylor expanded in a around -inf 51.2%
mul-1-neg51.2%
distribute-rgt-neg-in51.2%
mul-1-neg51.2%
unsub-neg51.2%
associate-/l*53.3%
sub-neg53.3%
associate-*r/53.3%
metadata-eval53.3%
metadata-eval53.3%
Simplified53.3%
if 1.9499999999999998e249 < a Initial program 77.3%
Taylor expanded in b around inf 51.6%
associate-*r/51.6%
metadata-eval51.6%
+-commutative51.6%
Simplified51.6%
Taylor expanded in b around 0 51.9%
Taylor expanded in t around 0 69.5%
Final simplification58.1%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= y -1.3e+115) (not (<= y 1.26e+30)))
(/
x
(+
x
(-
y
(*
2.0
(*
b
(*
a
(-
y
(* y (/ (+ (/ 0.6666666666666666 t) -0.8333333333333334) a)))))))))
1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((y <= -1.3e+115) || !(y <= 1.26e+30)) {
tmp = x / (x + (y - (2.0 * (b * (a * (y - (y * (((0.6666666666666666 / t) + -0.8333333333333334) / 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 ((y <= (-1.3d+115)) .or. (.not. (y <= 1.26d+30))) then
tmp = x / (x + (y - (2.0d0 * (b * (a * (y - (y * (((0.6666666666666666d0 / t) + (-0.8333333333333334d0)) / 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 ((y <= -1.3e+115) || !(y <= 1.26e+30)) {
tmp = x / (x + (y - (2.0 * (b * (a * (y - (y * (((0.6666666666666666 / t) + -0.8333333333333334) / a))))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (y <= -1.3e+115) or not (y <= 1.26e+30): tmp = x / (x + (y - (2.0 * (b * (a * (y - (y * (((0.6666666666666666 / t) + -0.8333333333333334) / a)))))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((y <= -1.3e+115) || !(y <= 1.26e+30)) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(b * Float64(a * Float64(y - Float64(y * Float64(Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334) / a))))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((y <= -1.3e+115) || ~((y <= 1.26e+30))) tmp = x / (x + (y - (2.0 * (b * (a * (y - (y * (((0.6666666666666666 / t) + -0.8333333333333334) / a)))))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[y, -1.3e+115], N[Not[LessEqual[y, 1.26e+30]], $MachinePrecision]], N[(x / N[(x + N[(y - N[(2.0 * N[(b * N[(a * N[(y - N[(y * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.3 \cdot 10^{+115} \lor \neg \left(y \leq 1.26 \cdot 10^{+30}\right):\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(b \cdot \left(a \cdot \left(y - y \cdot \frac{\frac{0.6666666666666666}{t} + -0.8333333333333334}{a}\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -1.3e115 or 1.26e30 < y Initial program 92.1%
Taylor expanded in b around inf 59.3%
associate-*r/59.3%
metadata-eval59.3%
+-commutative59.3%
Simplified59.3%
Taylor expanded in b around 0 54.3%
Taylor expanded in a around -inf 58.1%
mul-1-neg58.1%
distribute-rgt-neg-in58.1%
mul-1-neg58.1%
unsub-neg58.1%
associate-/l*58.1%
sub-neg58.1%
associate-*r/58.1%
metadata-eval58.1%
metadata-eval58.1%
Simplified58.1%
if -1.3e115 < y < 1.26e30Initial program 94.5%
Taylor expanded in b around inf 63.2%
associate-*r/63.2%
metadata-eval63.2%
+-commutative63.2%
Simplified63.2%
Taylor expanded in b around 0 40.2%
Taylor expanded in x around inf 55.6%
Final simplification56.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y 1.18e+27)
1.0
(/
x
(+
x
(+
y
(*
(* b 2.0)
(* y (- (/ 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 (y <= 1.18e+27) {
tmp = 1.0;
} else {
tmp = x / (x + (y + ((b * 2.0) * (y * ((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 (y <= 1.18d+27) then
tmp = 1.0d0
else
tmp = x / (x + (y + ((b * 2.0d0) * (y * ((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 (y <= 1.18e+27) {
tmp = 1.0;
} else {
tmp = x / (x + (y + ((b * 2.0) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= 1.18e+27: tmp = 1.0 else: tmp = x / (x + (y + ((b * 2.0) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= 1.18e+27) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(b * 2.0) * Float64(y * 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 (y <= 1.18e+27) tmp = 1.0; else tmp = x / (x + (y + ((b * 2.0) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, 1.18e+27], 1.0, N[(x / N[(x + N[(y + N[(N[(b * 2.0), $MachinePrecision] * N[(y * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.18 \cdot 10^{+27}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(b \cdot 2\right) \cdot \left(y \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\end{array}
\end{array}
if y < 1.18000000000000006e27Initial program 94.8%
Taylor expanded in b around inf 62.0%
associate-*r/62.0%
metadata-eval62.0%
+-commutative62.0%
Simplified62.0%
Taylor expanded in b around 0 38.2%
Taylor expanded in x around inf 53.6%
if 1.18000000000000006e27 < y Initial program 89.1%
Taylor expanded in b around inf 62.3%
associate-*r/62.3%
metadata-eval62.3%
+-commutative62.3%
Simplified62.3%
Taylor expanded in b around 0 54.0%
associate-*r*54.0%
associate-*r/54.0%
metadata-eval54.0%
Simplified54.0%
Final simplification53.7%
(FPCore (x y z t a b c) :precision binary64 (if (<= y 6.8e+27) 1.0 (/ x (+ (+ x y) (* (* y (+ a 0.8333333333333334)) (* b -2.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 6.8e+27) {
tmp = 1.0;
} else {
tmp = x / ((x + y) + ((y * (a + 0.8333333333333334)) * (b * -2.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 (y <= 6.8d+27) then
tmp = 1.0d0
else
tmp = x / ((x + y) + ((y * (a + 0.8333333333333334d0)) * (b * (-2.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 (y <= 6.8e+27) {
tmp = 1.0;
} else {
tmp = x / ((x + y) + ((y * (a + 0.8333333333333334)) * (b * -2.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= 6.8e+27: tmp = 1.0 else: tmp = x / ((x + y) + ((y * (a + 0.8333333333333334)) * (b * -2.0))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= 6.8e+27) tmp = 1.0; else tmp = Float64(x / Float64(Float64(x + y) + Float64(Float64(y * Float64(a + 0.8333333333333334)) * Float64(b * -2.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= 6.8e+27) tmp = 1.0; else tmp = x / ((x + y) + ((y * (a + 0.8333333333333334)) * (b * -2.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, 6.8e+27], 1.0, N[(x / N[(N[(x + y), $MachinePrecision] + N[(N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] * N[(b * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 6.8 \cdot 10^{+27}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\left(x + y\right) + \left(y \cdot \left(a + 0.8333333333333334\right)\right) \cdot \left(b \cdot -2\right)}\\
\end{array}
\end{array}
if y < 6.8e27Initial program 94.8%
Taylor expanded in b around inf 62.0%
associate-*r/62.0%
metadata-eval62.0%
+-commutative62.0%
Simplified62.0%
Taylor expanded in b around 0 38.2%
Taylor expanded in x around inf 53.6%
if 6.8e27 < y Initial program 89.1%
Taylor expanded in b around inf 62.3%
associate-*r/62.3%
metadata-eval62.3%
+-commutative62.3%
Simplified62.3%
Taylor expanded in b around 0 54.0%
Taylor expanded in t around inf 53.9%
associate-+r+53.9%
associate-*r*53.9%
*-commutative53.9%
Simplified53.9%
Final simplification53.7%
(FPCore (x y z t a b c) :precision binary64 (if (<= x -6.4e+113) (/ x (+ x (+ y (* 2.0 (* 0.6666666666666666 (* b (/ y t))))))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= -6.4e+113) {
tmp = x / (x + (y + (2.0 * (0.6666666666666666 * (b * (y / 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 (x <= (-6.4d+113)) then
tmp = x / (x + (y + (2.0d0 * (0.6666666666666666d0 * (b * (y / 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 (x <= -6.4e+113) {
tmp = x / (x + (y + (2.0 * (0.6666666666666666 * (b * (y / t))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= -6.4e+113: tmp = x / (x + (y + (2.0 * (0.6666666666666666 * (b * (y / t)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= -6.4e+113) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(0.6666666666666666 * Float64(b * Float64(y / t))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= -6.4e+113) tmp = x / (x + (y + (2.0 * (0.6666666666666666 * (b * (y / t)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, -6.4e+113], N[(x / N[(x + N[(y + N[(2.0 * N[(0.6666666666666666 * N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.4 \cdot 10^{+113}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(0.6666666666666666 \cdot \left(b \cdot \frac{y}{t}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -6.3999999999999996e113Initial program 90.6%
Taylor expanded in b around inf 60.7%
associate-*r/60.7%
metadata-eval60.7%
+-commutative60.7%
Simplified60.7%
Taylor expanded in b around 0 63.7%
Taylor expanded in t around 0 54.6%
associate-/l*60.6%
Simplified60.6%
if -6.3999999999999996e113 < x Initial program 94.2%
Taylor expanded in b around inf 62.2%
associate-*r/62.2%
metadata-eval62.2%
+-commutative62.2%
Simplified62.2%
Taylor expanded in b around 0 35.4%
Taylor expanded in x around inf 52.2%
(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.8%
Taylor expanded in b around inf 62.0%
associate-*r/62.0%
metadata-eval62.0%
+-commutative62.0%
Simplified62.0%
Taylor expanded in b around 0 36.3%
Taylor expanded in x around inf 51.4%
(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 2024087
(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)))))))))))