
(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 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/ x (+ x (* y (exp (* a (* b -2.0)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((a * (b * -2.0)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp((a * (b * -2.0)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp((a * (b * -2.0))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(a * Float64(b * -2.0)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp((a * (b * -2.0))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(a * N[(b * -2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t\_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{a \cdot \left(b \cdot -2\right)}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < +inf.0Initial program 100.0%
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 b around inf 78.5%
associate-*r/78.5%
metadata-eval78.5%
+-commutative78.5%
Simplified78.5%
Taylor expanded in a around inf 78.5%
mul-1-neg78.5%
Simplified78.5%
Taylor expanded in b around 0 78.5%
*-commutative78.5%
associate-*l*78.5%
*-commutative78.5%
Simplified78.5%
Final simplification99.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 1.45e-148)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 3.4e-119)
(/
x
(+
x
(* y (exp (* 2.0 (* a (+ c (* c (/ (/ -0.6666666666666666 t) a)))))))))
(if (<= t 6.6e-54)
(/ x (+ x (* y (exp (* 2.0 (- (* (sqrt (+ t a)) (/ z t)) (* a b)))))))
(if (<= t 9.5e-43)
(/ x (+ x (* y (exp (* 2.0 (* c (/ -0.6666666666666666 t)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (+ a 0.8333333333333334) (- c b)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.45e-148) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 3.4e-119) {
tmp = x / (x + (y * exp((2.0 * (a * (c + (c * ((-0.6666666666666666 / t) / a))))))));
} else if (t <= 6.6e-54) {
tmp = x / (x + (y * exp((2.0 * ((sqrt((t + a)) * (z / t)) - (a * b))))));
} else if (t <= 9.5e-43) {
tmp = x / (x + (y * exp((2.0 * (c * (-0.6666666666666666 / t))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / 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) :: tmp
if (t <= 1.45d-148) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 3.4d-119) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c + (c * (((-0.6666666666666666d0) / t) / a))))))))
else if (t <= 6.6d-54) then
tmp = x / (x + (y * exp((2.0d0 * ((sqrt((t + a)) * (z / t)) - (a * b))))))
else if (t <= 9.5d-43) then
tmp = x / (x + (y * exp((2.0d0 * (c * ((-0.6666666666666666d0) / t))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / 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 tmp;
if (t <= 1.45e-148) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 3.4e-119) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c + (c * ((-0.6666666666666666 / t) / a))))))));
} else if (t <= 6.6e-54) {
tmp = x / (x + (y * Math.exp((2.0 * ((Math.sqrt((t + a)) * (z / t)) - (a * b))))));
} else if (t <= 9.5e-43) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (-0.6666666666666666 / t))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1.45e-148: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 3.4e-119: tmp = x / (x + (y * math.exp((2.0 * (a * (c + (c * ((-0.6666666666666666 / t) / a)))))))) elif t <= 6.6e-54: tmp = x / (x + (y * math.exp((2.0 * ((math.sqrt((t + a)) * (z / t)) - (a * b)))))) elif t <= 9.5e-43: tmp = x / (x + (y * math.exp((2.0 * (c * (-0.6666666666666666 / t)))))) else: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1.45e-148) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); elseif (t <= 3.4e-119) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c + Float64(c * Float64(Float64(-0.6666666666666666 / t) / a))))))))); elseif (t <= 6.6e-54) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(sqrt(Float64(t + a)) * Float64(z / t)) - Float64(a * b))))))); elseif (t <= 9.5e-43) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(-0.6666666666666666 / t))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(a + 0.8333333333333334) * Float64(c - b)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 1.45e-148) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 3.4e-119) tmp = x / (x + (y * exp((2.0 * (a * (c + (c * ((-0.6666666666666666 / t) / a)))))))); elseif (t <= 6.6e-54) tmp = x / (x + (y * exp((2.0 * ((sqrt((t + a)) * (z / t)) - (a * b)))))); elseif (t <= 9.5e-43) tmp = x / (x + (y * exp((2.0 * (c * (-0.6666666666666666 / t)))))); else tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 1.45e-148], 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, 3.4e-119], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c + N[(c * N[(N[(-0.6666666666666666 / t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.6e-54], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.5e-43], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $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}
\mathbf{if}\;t \leq 1.45 \cdot 10^{-148}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{-119}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c + c \cdot \frac{\frac{-0.6666666666666666}{t}}{a}\right)\right)}}\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{-54}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\sqrt{t + a} \cdot \frac{z}{t} - a \cdot b\right)}}\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{-43}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \frac{-0.6666666666666666}{t}\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 1.4499999999999999e-148Initial program 96.8%
Taylor expanded in t around 0 90.8%
if 1.4499999999999999e-148 < t < 3.40000000000000024e-119Initial program 100.0%
Taylor expanded in c around inf 82.6%
associate--l+82.6%
associate-*r/82.6%
metadata-eval82.6%
Simplified82.6%
Taylor expanded in a around inf 82.6%
associate-/l*100.0%
cancel-sign-sub-inv100.0%
metadata-eval100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in t around 0 100.0%
associate-*r/100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
associate-/r*100.0%
Simplified100.0%
if 3.40000000000000024e-119 < t < 6.59999999999999986e-54Initial program 87.5%
Taylor expanded in c around 0 81.8%
+-commutative81.8%
associate--l+81.8%
sub-neg81.8%
associate-*r/81.8%
metadata-eval81.8%
distribute-neg-frac81.8%
metadata-eval81.8%
Simplified81.8%
Taylor expanded in a around inf 81.8%
if 6.59999999999999986e-54 < t < 9.50000000000000044e-43Initial program 85.7%
Taylor expanded in c around inf 86.2%
associate--l+86.2%
associate-*r/86.2%
metadata-eval86.2%
Simplified86.2%
Taylor expanded in t around 0 100.0%
if 9.50000000000000044e-43 < t Initial program 97.6%
Taylor expanded in t around inf 98.4%
Final simplification94.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 2.6e-203)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 0.185)
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(* (sqrt (+ t a)) (/ z t))
(* b (+ (+ a (/ -0.6666666666666666 t)) 0.8333333333333334))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (+ a 0.8333333333333334) (- c b)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2.6e-203) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 0.185) {
tmp = x / (x + (y * exp((2.0 * ((sqrt((t + a)) * (z / t)) - (b * ((a + (-0.6666666666666666 / t)) + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / 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) :: tmp
if (t <= 2.6d-203) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 0.185d0) then
tmp = x / (x + (y * exp((2.0d0 * ((sqrt((t + a)) * (z / t)) - (b * ((a + ((-0.6666666666666666d0) / t)) + 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / 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 tmp;
if (t <= 2.6e-203) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 0.185) {
tmp = x / (x + (y * Math.exp((2.0 * ((Math.sqrt((t + a)) * (z / t)) - (b * ((a + (-0.6666666666666666 / t)) + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 2.6e-203: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 0.185: tmp = x / (x + (y * math.exp((2.0 * ((math.sqrt((t + a)) * (z / t)) - (b * ((a + (-0.6666666666666666 / t)) + 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 2.6e-203) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); elseif (t <= 0.185) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(sqrt(Float64(t + a)) * Float64(z / t)) - Float64(b * Float64(Float64(a + Float64(-0.6666666666666666 / t)) + 0.8333333333333334)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(a + 0.8333333333333334) * Float64(c - b)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 2.6e-203) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 0.185) tmp = x / (x + (y * exp((2.0 * ((sqrt((t + a)) * (z / t)) - (b * ((a + (-0.6666666666666666 / t)) + 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 2.6e-203], 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, 0.185], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(a + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $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}
\mathbf{if}\;t \leq 2.6 \cdot 10^{-203}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{elif}\;t \leq 0.185:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\sqrt{t + a} \cdot \frac{z}{t} - b \cdot \left(\left(a + \frac{-0.6666666666666666}{t}\right) + 0.8333333333333334\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 2.59999999999999975e-203Initial program 97.6%
Taylor expanded in t around 0 93.0%
if 2.59999999999999975e-203 < t < 0.185Initial program 92.7%
Taylor expanded in c around 0 80.5%
+-commutative80.5%
associate--l+80.5%
sub-neg80.5%
associate-*r/80.5%
metadata-eval80.5%
distribute-neg-frac80.5%
metadata-eval80.5%
Simplified80.5%
if 0.185 < t Initial program 97.4%
Taylor expanded in t around inf 99.9%
Final simplification93.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 5.1e-307)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt t)) t)
(* (- b c) (- (+ a 0.8333333333333334) (/ 2.0 (* t 3.0))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 5.1e-307) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(t)) / t) - ((b - c) * ((a + 0.8333333333333334) - (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) :: tmp
if (t <= 5.1d-307) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(t)) / t) - ((b - c) * ((a + 0.8333333333333334d0) - (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 tmp;
if (t <= 5.1e-307) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(t)) / t) - ((b - c) * ((a + 0.8333333333333334) - (2.0 / (t * 3.0)))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 5.1e-307: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(t)) / t) - ((b - c) * ((a + 0.8333333333333334) - (2.0 / (t * 3.0))))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 5.1e-307) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(t)) / t) - Float64(Float64(b - c) * Float64(Float64(a + 0.8333333333333334) - Float64(2.0 / Float64(t * 3.0)))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 5.1e-307) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); else tmp = x / (x + (y * exp((2.0 * (((z * sqrt(t)) / t) - ((b - c) * ((a + 0.8333333333333334) - (2.0 / (t * 3.0))))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 5.1e-307], 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], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[t], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 5.1 \cdot 10^{-307}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t}}{t} - \left(b - c\right) \cdot \left(\left(a + 0.8333333333333334\right) - \frac{2}{t \cdot 3}\right)\right)}}\\
\end{array}
\end{array}
if t < 5.1e-307Initial program 96.7%
Taylor expanded in t around 0 90.5%
if 5.1e-307 < t Initial program 96.4%
Taylor expanded in t around inf 96.9%
Final simplification95.4%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= z -2.6e+58) (not (<= z 3.4e+72)))
(/ x (+ x (* y (exp (* 2.0 (- (* (sqrt (+ t a)) (/ z t)) (* a b)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
a
(+
c
(* c (/ (+ (/ -0.6666666666666666 t) 0.8333333333333334) a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -2.6e+58) || !(z <= 3.4e+72)) {
tmp = x / (x + (y * exp((2.0 * ((sqrt((t + a)) * (z / t)) - (a * b))))));
} else {
tmp = x / (x + (y * exp((2.0 * (a * (c + (c * (((-0.6666666666666666 / t) + 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 ((z <= (-2.6d+58)) .or. (.not. (z <= 3.4d+72))) then
tmp = x / (x + (y * exp((2.0d0 * ((sqrt((t + a)) * (z / t)) - (a * b))))))
else
tmp = x / (x + (y * exp((2.0d0 * (a * (c + (c * ((((-0.6666666666666666d0) / t) + 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 ((z <= -2.6e+58) || !(z <= 3.4e+72)) {
tmp = x / (x + (y * Math.exp((2.0 * ((Math.sqrt((t + a)) * (z / t)) - (a * b))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c + (c * (((-0.6666666666666666 / t) + 0.8333333333333334) / a))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (z <= -2.6e+58) or not (z <= 3.4e+72): tmp = x / (x + (y * math.exp((2.0 * ((math.sqrt((t + a)) * (z / t)) - (a * b)))))) else: tmp = x / (x + (y * math.exp((2.0 * (a * (c + (c * (((-0.6666666666666666 / t) + 0.8333333333333334) / a)))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -2.6e+58) || !(z <= 3.4e+72)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(sqrt(Float64(t + a)) * Float64(z / t)) - Float64(a * b))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c + Float64(c * Float64(Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334) / a))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((z <= -2.6e+58) || ~((z <= 3.4e+72))) tmp = x / (x + (y * exp((2.0 * ((sqrt((t + a)) * (z / t)) - (a * b)))))); else tmp = x / (x + (y * exp((2.0 * (a * (c + (c * (((-0.6666666666666666 / t) + 0.8333333333333334) / a)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -2.6e+58], N[Not[LessEqual[z, 3.4e+72]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c + N[(c * N[(N[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.6 \cdot 10^{+58} \lor \neg \left(z \leq 3.4 \cdot 10^{+72}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\sqrt{t + a} \cdot \frac{z}{t} - a \cdot b\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c + c \cdot \frac{\frac{-0.6666666666666666}{t} + 0.8333333333333334}{a}\right)\right)}}\\
\end{array}
\end{array}
if z < -2.59999999999999988e58 or 3.3999999999999998e72 < z Initial program 90.9%
Taylor expanded in c around 0 87.1%
+-commutative87.1%
associate--l+87.1%
sub-neg87.1%
associate-*r/87.1%
metadata-eval87.1%
distribute-neg-frac87.1%
metadata-eval87.1%
Simplified87.1%
Taylor expanded in a around inf 84.3%
if -2.59999999999999988e58 < z < 3.3999999999999998e72Initial program 100.0%
Taylor expanded in c around inf 81.6%
associate--l+81.6%
associate-*r/81.6%
metadata-eval81.6%
Simplified81.6%
Taylor expanded in a around inf 81.6%
associate-/l*82.8%
cancel-sign-sub-inv82.8%
metadata-eval82.8%
associate-*r/82.8%
metadata-eval82.8%
Simplified82.8%
Final simplification83.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* c (/ -0.6666666666666666 t)))))))))
(if (<= t -1.25e-214)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= t -5.4e-284)
1.0
(if (<= t 5.2e-307)
(/ x (+ x (* y (+ (* 1.3333333333333333 (/ b t)) 1.0))))
(if (<= t 6.6e-119)
t_1
(if (<= t 4.3e-101)
(/ x (+ x (* y (exp (* 2.0 (* a b))))))
(if (<= t 5.5e-71)
(/ x (+ x (* y (exp (* a (* b -2.0))))))
(if (<= t 2e-42)
t_1
(if (<= t 2.85e+127)
(/
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 t_1 = x / (x + (y * exp((2.0 * (c * (-0.6666666666666666 / t))))));
double tmp;
if (t <= -1.25e-214) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (t <= -5.4e-284) {
tmp = 1.0;
} else if (t <= 5.2e-307) {
tmp = x / (x + (y * ((1.3333333333333333 * (b / t)) + 1.0)));
} else if (t <= 6.6e-119) {
tmp = t_1;
} else if (t <= 4.3e-101) {
tmp = x / (x + (y * exp((2.0 * (a * b)))));
} else if (t <= 5.5e-71) {
tmp = x / (x + (y * exp((a * (b * -2.0)))));
} else if (t <= 2e-42) {
tmp = t_1;
} else if (t <= 2.85e+127) {
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) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (c * ((-0.6666666666666666d0) / t))))))
if (t <= (-1.25d-214)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (t <= (-5.4d-284)) then
tmp = 1.0d0
else if (t <= 5.2d-307) then
tmp = x / (x + (y * ((1.3333333333333333d0 * (b / t)) + 1.0d0)))
else if (t <= 6.6d-119) then
tmp = t_1
else if (t <= 4.3d-101) then
tmp = x / (x + (y * exp((2.0d0 * (a * b)))))
else if (t <= 5.5d-71) then
tmp = x / (x + (y * exp((a * (b * (-2.0d0))))))
else if (t <= 2d-42) then
tmp = t_1
else if (t <= 2.85d+127) 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 t_1 = x / (x + (y * Math.exp((2.0 * (c * (-0.6666666666666666 / t))))));
double tmp;
if (t <= -1.25e-214) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (t <= -5.4e-284) {
tmp = 1.0;
} else if (t <= 5.2e-307) {
tmp = x / (x + (y * ((1.3333333333333333 * (b / t)) + 1.0)));
} else if (t <= 6.6e-119) {
tmp = t_1;
} else if (t <= 4.3e-101) {
tmp = x / (x + (y * Math.exp((2.0 * (a * b)))));
} else if (t <= 5.5e-71) {
tmp = x / (x + (y * Math.exp((a * (b * -2.0)))));
} else if (t <= 2e-42) {
tmp = t_1;
} else if (t <= 2.85e+127) {
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): t_1 = x / (x + (y * math.exp((2.0 * (c * (-0.6666666666666666 / t)))))) tmp = 0 if t <= -1.25e-214: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif t <= -5.4e-284: tmp = 1.0 elif t <= 5.2e-307: tmp = x / (x + (y * ((1.3333333333333333 * (b / t)) + 1.0))) elif t <= 6.6e-119: tmp = t_1 elif t <= 4.3e-101: tmp = x / (x + (y * math.exp((2.0 * (a * b))))) elif t <= 5.5e-71: tmp = x / (x + (y * math.exp((a * (b * -2.0))))) elif t <= 2e-42: tmp = t_1 elif t <= 2.85e+127: 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) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(-0.6666666666666666 / t))))))) tmp = 0.0 if (t <= -1.25e-214) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (t <= -5.4e-284) tmp = 1.0; elseif (t <= 5.2e-307) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(1.3333333333333333 * Float64(b / t)) + 1.0)))); elseif (t <= 6.6e-119) tmp = t_1; elseif (t <= 4.3e-101) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * b)))))); elseif (t <= 5.5e-71) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(a * Float64(b * -2.0)))))); elseif (t <= 2e-42) tmp = t_1; elseif (t <= 2.85e+127) 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) t_1 = x / (x + (y * exp((2.0 * (c * (-0.6666666666666666 / t)))))); tmp = 0.0; if (t <= -1.25e-214) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (t <= -5.4e-284) tmp = 1.0; elseif (t <= 5.2e-307) tmp = x / (x + (y * ((1.3333333333333333 * (b / t)) + 1.0))); elseif (t <= 6.6e-119) tmp = t_1; elseif (t <= 4.3e-101) tmp = x / (x + (y * exp((2.0 * (a * b))))); elseif (t <= 5.5e-71) tmp = x / (x + (y * exp((a * (b * -2.0))))); elseif (t <= 2e-42) tmp = t_1; elseif (t <= 2.85e+127) 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_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.25e-214], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.4e-284], 1.0, If[LessEqual[t, 5.2e-307], N[(x / N[(x + N[(y * N[(N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.6e-119], t$95$1, If[LessEqual[t, 4.3e-101], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e-71], N[(x / N[(x + N[(y * N[Exp[N[(a * N[(b * -2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e-42], t$95$1, If[LessEqual[t, 2.85e+127], 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}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \frac{-0.6666666666666666}{t}\right)}}\\
\mathbf{if}\;t \leq -1.25 \cdot 10^{-214}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;t \leq -5.4 \cdot 10^{-284}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{-307}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1.3333333333333333 \cdot \frac{b}{t} + 1\right)}\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{-119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.3 \cdot 10^{-101}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-71}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{a \cdot \left(b \cdot -2\right)}}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.85 \cdot 10^{+127}:\\
\;\;\;\;\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 t < -1.2499999999999999e-214Initial program 100.0%
Taylor expanded in c around inf 73.4%
associate--l+73.4%
associate-*r/73.4%
metadata-eval73.4%
Simplified73.4%
Taylor expanded in a around inf 71.0%
if -1.2499999999999999e-214 < t < -5.39999999999999969e-284Initial program 93.8%
Taylor expanded in b around inf 63.7%
associate-*r/63.7%
metadata-eval63.7%
+-commutative63.7%
Simplified63.7%
Taylor expanded in a around inf 45.6%
mul-1-neg45.6%
Simplified45.6%
Taylor expanded in b around 0 22.0%
Taylor expanded in x around inf 75.8%
if -5.39999999999999969e-284 < t < 5.19999999999999992e-307Initial program 83.3%
Taylor expanded in b around inf 67.7%
associate-*r/67.7%
metadata-eval67.7%
+-commutative67.7%
Simplified67.7%
Taylor expanded in t around 0 67.7%
associate-*r/67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in b around 0 100.0%
if 5.19999999999999992e-307 < t < 6.60000000000000017e-119 or 5.4999999999999997e-71 < t < 2.00000000000000008e-42Initial program 94.4%
Taylor expanded in c around inf 71.4%
associate--l+71.4%
associate-*r/71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in t around 0 73.2%
if 6.60000000000000017e-119 < t < 4.2999999999999997e-101Initial program 80.0%
Taylor expanded in b around inf 61.3%
associate-*r/61.3%
metadata-eval61.3%
+-commutative61.3%
Simplified61.3%
Taylor expanded in a around inf 22.5%
mul-1-neg22.5%
Simplified22.5%
add-log-exp22.5%
*-un-lft-identity22.5%
log-prod22.5%
metadata-eval22.5%
add-log-exp22.5%
*-commutative22.5%
add-sqr-sqrt0.0%
sqrt-unprod80.6%
sqr-neg80.6%
sqrt-unprod80.6%
add-sqr-sqrt80.6%
Applied egg-rr80.6%
+-lft-identity80.6%
*-commutative80.6%
Simplified80.6%
if 4.2999999999999997e-101 < t < 5.4999999999999997e-71Initial program 100.0%
Taylor expanded in b around inf 63.7%
associate-*r/63.7%
metadata-eval63.7%
+-commutative63.7%
Simplified63.7%
Taylor expanded in a around inf 75.8%
mul-1-neg75.8%
Simplified75.8%
Taylor expanded in b around 0 75.8%
*-commutative75.8%
associate-*l*75.8%
*-commutative75.8%
Simplified75.8%
if 2.00000000000000008e-42 < t < 2.85000000000000021e127Initial program 98.4%
Taylor expanded in c around inf 75.1%
associate--l+75.1%
associate-*r/75.1%
metadata-eval75.1%
Simplified75.1%
Taylor expanded in t around inf 78.2%
+-commutative78.2%
Simplified78.2%
if 2.85000000000000021e127 < t Initial program 96.8%
Taylor expanded in b around inf 76.7%
associate-*r/76.7%
metadata-eval76.7%
+-commutative76.7%
Simplified76.7%
Taylor expanded in t around inf 76.7%
mul-1-neg76.7%
+-commutative76.7%
distribute-rgt-neg-in76.7%
+-commutative76.7%
distribute-neg-in76.7%
metadata-eval76.7%
unsub-neg76.7%
Simplified76.7%
Final simplification76.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a c))))))))
(if (<= t -1.35e-217)
t_1
(if (<= t 8.5e-101)
(/ x (+ x (* y (exp (/ (* b 1.3333333333333333) t)))))
(if (<= t 7e-19)
(/ x (+ x (* y (exp (* a (* b -2.0))))))
(if (<= t 16500000000.0)
(/ x (+ x (* y (exp (* 2.0 (* 0.6666666666666666 (/ c t)))))))
(if (or (<= t 1.5e+62) (not (<= t 1.28e+128)))
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a)))))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (a * c)))));
double tmp;
if (t <= -1.35e-217) {
tmp = t_1;
} else if (t <= 8.5e-101) {
tmp = x / (x + (y * exp(((b * 1.3333333333333333) / t))));
} else if (t <= 7e-19) {
tmp = x / (x + (y * exp((a * (b * -2.0)))));
} else if (t <= 16500000000.0) {
tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (c / t))))));
} else if ((t <= 1.5e+62) || !(t <= 1.28e+128)) {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (a * c)))))
if (t <= (-1.35d-217)) then
tmp = t_1
else if (t <= 8.5d-101) then
tmp = x / (x + (y * exp(((b * 1.3333333333333333d0) / t))))
else if (t <= 7d-19) then
tmp = x / (x + (y * exp((a * (b * (-2.0d0))))))
else if (t <= 16500000000.0d0) then
tmp = x / (x + (y * exp((2.0d0 * (0.6666666666666666d0 * (c / t))))))
else if ((t <= 1.5d+62) .or. (.not. (t <= 1.28d+128))) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (a * c)))));
double tmp;
if (t <= -1.35e-217) {
tmp = t_1;
} else if (t <= 8.5e-101) {
tmp = x / (x + (y * Math.exp(((b * 1.3333333333333333) / t))));
} else if (t <= 7e-19) {
tmp = x / (x + (y * Math.exp((a * (b * -2.0)))));
} else if (t <= 16500000000.0) {
tmp = x / (x + (y * Math.exp((2.0 * (0.6666666666666666 * (c / t))))));
} else if ((t <= 1.5e+62) || !(t <= 1.28e+128)) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * c))))) tmp = 0 if t <= -1.35e-217: tmp = t_1 elif t <= 8.5e-101: tmp = x / (x + (y * math.exp(((b * 1.3333333333333333) / t)))) elif t <= 7e-19: tmp = x / (x + (y * math.exp((a * (b * -2.0))))) elif t <= 16500000000.0: tmp = x / (x + (y * math.exp((2.0 * (0.6666666666666666 * (c / t)))))) elif (t <= 1.5e+62) or not (t <= 1.28e+128): tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))) tmp = 0.0 if (t <= -1.35e-217) tmp = t_1; elseif (t <= 8.5e-101) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b * 1.3333333333333333) / t))))); elseif (t <= 7e-19) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(a * Float64(b * -2.0)))))); elseif (t <= 16500000000.0) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(0.6666666666666666 * Float64(c / t))))))); elseif ((t <= 1.5e+62) || !(t <= 1.28e+128)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (a * c))))); tmp = 0.0; if (t <= -1.35e-217) tmp = t_1; elseif (t <= 8.5e-101) tmp = x / (x + (y * exp(((b * 1.3333333333333333) / t)))); elseif (t <= 7e-19) tmp = x / (x + (y * exp((a * (b * -2.0))))); elseif (t <= 16500000000.0) tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (c / t)))))); elseif ((t <= 1.5e+62) || ~((t <= 1.28e+128))) tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.35e-217], t$95$1, If[LessEqual[t, 8.5e-101], N[(x / N[(x + N[(y * N[Exp[N[(N[(b * 1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7e-19], N[(x / N[(x + N[(y * N[Exp[N[(a * N[(b * -2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 16500000000.0], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(0.6666666666666666 * N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 1.5e+62], N[Not[LessEqual[t, 1.28e+128]], $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], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{if}\;t \leq -1.35 \cdot 10^{-217}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-101}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{b \cdot 1.3333333333333333}{t}}}\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-19}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{a \cdot \left(b \cdot -2\right)}}\\
\mathbf{elif}\;t \leq 16500000000:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(0.6666666666666666 \cdot \frac{c}{t}\right)}}\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{+62} \lor \neg \left(t \leq 1.28 \cdot 10^{+128}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.35000000000000008e-217 or 1.5e62 < t < 1.2799999999999999e128Initial program 98.6%
Taylor expanded in c around inf 78.2%
associate--l+78.2%
associate-*r/78.2%
metadata-eval78.2%
Simplified78.2%
Taylor expanded in a around inf 70.0%
if -1.35000000000000008e-217 < t < 8.49999999999999941e-101Initial program 95.7%
Taylor expanded in b around inf 73.4%
associate-*r/73.4%
metadata-eval73.4%
+-commutative73.4%
Simplified73.4%
Taylor expanded in t around 0 69.2%
associate-*r/69.2%
*-commutative69.2%
Simplified69.2%
Taylor expanded in b around 0 69.2%
associate-*r/69.2%
*-commutative69.2%
Simplified69.2%
if 8.49999999999999941e-101 < t < 7.00000000000000031e-19Initial program 91.3%
Taylor expanded in b around inf 70.5%
associate-*r/70.5%
metadata-eval70.5%
+-commutative70.5%
Simplified70.5%
Taylor expanded in a around inf 66.3%
mul-1-neg66.3%
Simplified66.3%
Taylor expanded in b around 0 66.3%
*-commutative66.3%
associate-*l*66.3%
*-commutative66.3%
Simplified66.3%
if 7.00000000000000031e-19 < t < 1.65e10Initial program 92.3%
Taylor expanded in c around inf 70.4%
associate--l+70.4%
associate-*r/70.4%
metadata-eval70.4%
Simplified70.4%
Taylor expanded in a around inf 70.4%
associate-/l*70.4%
cancel-sign-sub-inv70.4%
metadata-eval70.4%
associate-*r/70.4%
metadata-eval70.4%
Simplified70.4%
associate-*r/70.4%
frac-2neg70.4%
add-sqr-sqrt16.1%
sqrt-unprod55.3%
sqr-neg55.3%
sqrt-unprod39.4%
add-sqr-sqrt48.1%
Applied egg-rr48.1%
distribute-frac-neg48.1%
associate-*r/48.1%
distribute-rgt-neg-in48.1%
distribute-neg-frac48.1%
+-commutative48.1%
distribute-neg-in48.1%
metadata-eval48.1%
distribute-neg-frac48.1%
metadata-eval48.1%
Simplified48.1%
Taylor expanded in t around 0 77.9%
if 1.65e10 < t < 1.5e62 or 1.2799999999999999e128 < t Initial program 97.4%
Taylor expanded in b around inf 75.9%
associate-*r/75.9%
metadata-eval75.9%
+-commutative75.9%
Simplified75.9%
Taylor expanded in t around inf 75.9%
mul-1-neg75.9%
+-commutative75.9%
distribute-rgt-neg-in75.9%
+-commutative75.9%
distribute-neg-in75.9%
metadata-eval75.9%
unsub-neg75.9%
Simplified75.9%
Final simplification71.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -3.2e-218)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= t 6.4e-101)
(/ x (+ x (* y (exp (/ (* b 1.3333333333333333) t)))))
(if (<= t 1.26e-18)
(/ x (+ x (* y (exp (* a (* b -2.0))))))
(if (<= t 65000000.0)
(/ x (+ x (* y (exp (* 2.0 (* 0.6666666666666666 (/ c t)))))))
(if (or (<= t 2.2e+43) (not (<= t 1.18e+128)))
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a)))))))
(/ 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 <= -3.2e-218) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (t <= 6.4e-101) {
tmp = x / (x + (y * exp(((b * 1.3333333333333333) / t))));
} else if (t <= 1.26e-18) {
tmp = x / (x + (y * exp((a * (b * -2.0)))));
} else if (t <= 65000000.0) {
tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (c / t))))));
} else if ((t <= 2.2e+43) || !(t <= 1.18e+128)) {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
} 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 <= (-3.2d-218)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (t <= 6.4d-101) then
tmp = x / (x + (y * exp(((b * 1.3333333333333333d0) / t))))
else if (t <= 1.26d-18) then
tmp = x / (x + (y * exp((a * (b * (-2.0d0))))))
else if (t <= 65000000.0d0) then
tmp = x / (x + (y * exp((2.0d0 * (0.6666666666666666d0 * (c / t))))))
else if ((t <= 2.2d+43) .or. (.not. (t <= 1.18d+128))) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
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 <= -3.2e-218) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (t <= 6.4e-101) {
tmp = x / (x + (y * Math.exp(((b * 1.3333333333333333) / t))));
} else if (t <= 1.26e-18) {
tmp = x / (x + (y * Math.exp((a * (b * -2.0)))));
} else if (t <= 65000000.0) {
tmp = x / (x + (y * Math.exp((2.0 * (0.6666666666666666 * (c / t))))));
} else if ((t <= 2.2e+43) || !(t <= 1.18e+128)) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
} 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 <= -3.2e-218: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif t <= 6.4e-101: tmp = x / (x + (y * math.exp(((b * 1.3333333333333333) / t)))) elif t <= 1.26e-18: tmp = x / (x + (y * math.exp((a * (b * -2.0))))) elif t <= 65000000.0: tmp = x / (x + (y * math.exp((2.0 * (0.6666666666666666 * (c / t)))))) elif (t <= 2.2e+43) or not (t <= 1.18e+128): tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) 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 <= -3.2e-218) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (t <= 6.4e-101) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b * 1.3333333333333333) / t))))); elseif (t <= 1.26e-18) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(a * Float64(b * -2.0)))))); elseif (t <= 65000000.0) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(0.6666666666666666 * Float64(c / t))))))); elseif ((t <= 2.2e+43) || !(t <= 1.18e+128)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); 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 <= -3.2e-218) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (t <= 6.4e-101) tmp = x / (x + (y * exp(((b * 1.3333333333333333) / t)))); elseif (t <= 1.26e-18) tmp = x / (x + (y * exp((a * (b * -2.0))))); elseif (t <= 65000000.0) tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (c / t)))))); elseif ((t <= 2.2e+43) || ~((t <= 1.18e+128))) tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); 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, -3.2e-218], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.4e-101], N[(x / N[(x + N[(y * N[Exp[N[(N[(b * 1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.26e-18], N[(x / N[(x + N[(y * N[Exp[N[(a * N[(b * -2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 65000000.0], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(0.6666666666666666 * N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 2.2e+43], N[Not[LessEqual[t, 1.18e+128]], $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], 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 -3.2 \cdot 10^{-218}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;t \leq 6.4 \cdot 10^{-101}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{b \cdot 1.3333333333333333}{t}}}\\
\mathbf{elif}\;t \leq 1.26 \cdot 10^{-18}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{a \cdot \left(b \cdot -2\right)}}\\
\mathbf{elif}\;t \leq 65000000:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(0.6666666666666666 \cdot \frac{c}{t}\right)}}\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{+43} \lor \neg \left(t \leq 1.18 \cdot 10^{+128}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\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 t < -3.2000000000000001e-218Initial program 97.6%
Taylor expanded in c around inf 70.1%
associate--l+70.1%
associate-*r/70.1%
metadata-eval70.1%
Simplified70.1%
Taylor expanded in a around inf 67.8%
if -3.2000000000000001e-218 < t < 6.39999999999999957e-101Initial program 95.7%
Taylor expanded in b around inf 73.4%
associate-*r/73.4%
metadata-eval73.4%
+-commutative73.4%
Simplified73.4%
Taylor expanded in t around 0 69.2%
associate-*r/69.2%
*-commutative69.2%
Simplified69.2%
Taylor expanded in b around 0 69.2%
associate-*r/69.2%
*-commutative69.2%
Simplified69.2%
if 6.39999999999999957e-101 < t < 1.26000000000000004e-18Initial program 91.3%
Taylor expanded in b around inf 70.5%
associate-*r/70.5%
metadata-eval70.5%
+-commutative70.5%
Simplified70.5%
Taylor expanded in a around inf 66.3%
mul-1-neg66.3%
Simplified66.3%
Taylor expanded in b around 0 66.3%
*-commutative66.3%
associate-*l*66.3%
*-commutative66.3%
Simplified66.3%
if 1.26000000000000004e-18 < t < 6.5e7Initial program 100.0%
Taylor expanded in c around inf 73.8%
associate--l+73.8%
associate-*r/73.8%
metadata-eval73.8%
Simplified73.8%
Taylor expanded in a around inf 73.8%
associate-/l*73.8%
cancel-sign-sub-inv73.8%
metadata-eval73.8%
associate-*r/73.8%
metadata-eval73.8%
Simplified73.8%
associate-*r/73.8%
frac-2neg73.8%
add-sqr-sqrt19.0%
sqrt-unprod64.8%
sqr-neg64.8%
sqrt-unprod46.0%
add-sqr-sqrt56.2%
Applied egg-rr56.2%
distribute-frac-neg56.2%
associate-*r/56.2%
distribute-rgt-neg-in56.2%
distribute-neg-frac56.2%
+-commutative56.2%
distribute-neg-in56.2%
metadata-eval56.2%
distribute-neg-frac56.2%
metadata-eval56.2%
Simplified56.2%
Taylor expanded in t around 0 82.6%
if 6.5e7 < t < 2.20000000000000001e43 or 1.18000000000000009e128 < t Initial program 96.0%
Taylor expanded in b around inf 76.3%
associate-*r/76.3%
metadata-eval76.3%
+-commutative76.3%
Simplified76.3%
Taylor expanded in t around inf 76.2%
mul-1-neg76.2%
+-commutative76.2%
distribute-rgt-neg-in76.2%
+-commutative76.2%
distribute-neg-in76.2%
metadata-eval76.2%
unsub-neg76.2%
Simplified76.2%
if 2.20000000000000001e43 < t < 1.18000000000000009e128Initial program 100.0%
Taylor expanded in c around inf 85.8%
associate--l+85.8%
associate-*r/85.8%
metadata-eval85.8%
Simplified85.8%
Taylor expanded in t around inf 85.8%
+-commutative85.8%
Simplified85.8%
Final simplification73.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (/ (* b 1.3333333333333333) t))))))
(t_2 (/ x (+ x (* y (exp (* a (* b -2.0))))))))
(if (<= a -20.0)
t_2
(if (<= a -1.08e-141)
(/ x (+ x (* y (exp (* 2.0 (* a b))))))
(if (<= a 3.1e-232)
t_1
(if (<= a 8e-114)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= a 4.8e+21)
t_1
(if (<= a 3.3e+230)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
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(((b * 1.3333333333333333) / t))));
double t_2 = x / (x + (y * exp((a * (b * -2.0)))));
double tmp;
if (a <= -20.0) {
tmp = t_2;
} else if (a <= -1.08e-141) {
tmp = x / (x + (y * exp((2.0 * (a * b)))));
} else if (a <= 3.1e-232) {
tmp = t_1;
} else if (a <= 8e-114) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (a <= 4.8e+21) {
tmp = t_1;
} else if (a <= 3.3e+230) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} 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(((b * 1.3333333333333333d0) / t))))
t_2 = x / (x + (y * exp((a * (b * (-2.0d0))))))
if (a <= (-20.0d0)) then
tmp = t_2
else if (a <= (-1.08d-141)) then
tmp = x / (x + (y * exp((2.0d0 * (a * b)))))
else if (a <= 3.1d-232) then
tmp = t_1
else if (a <= 8d-114) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (a <= 4.8d+21) then
tmp = t_1
else if (a <= 3.3d+230) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
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(((b * 1.3333333333333333) / t))));
double t_2 = x / (x + (y * Math.exp((a * (b * -2.0)))));
double tmp;
if (a <= -20.0) {
tmp = t_2;
} else if (a <= -1.08e-141) {
tmp = x / (x + (y * Math.exp((2.0 * (a * b)))));
} else if (a <= 3.1e-232) {
tmp = t_1;
} else if (a <= 8e-114) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (a <= 4.8e+21) {
tmp = t_1;
} else if (a <= 3.3e+230) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp(((b * 1.3333333333333333) / t)))) t_2 = x / (x + (y * math.exp((a * (b * -2.0))))) tmp = 0 if a <= -20.0: tmp = t_2 elif a <= -1.08e-141: tmp = x / (x + (y * math.exp((2.0 * (a * b))))) elif a <= 3.1e-232: tmp = t_1 elif a <= 8e-114: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif a <= 4.8e+21: tmp = t_1 elif a <= 3.3e+230: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) 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(Float64(b * 1.3333333333333333) / t))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(a * Float64(b * -2.0)))))) tmp = 0.0 if (a <= -20.0) tmp = t_2; elseif (a <= -1.08e-141) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * b)))))); elseif (a <= 3.1e-232) tmp = t_1; elseif (a <= 8e-114) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (a <= 4.8e+21) tmp = t_1; elseif (a <= 3.3e+230) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); 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(((b * 1.3333333333333333) / t)))); t_2 = x / (x + (y * exp((a * (b * -2.0))))); tmp = 0.0; if (a <= -20.0) tmp = t_2; elseif (a <= -1.08e-141) tmp = x / (x + (y * exp((2.0 * (a * b))))); elseif (a <= 3.1e-232) tmp = t_1; elseif (a <= 8e-114) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (a <= 4.8e+21) tmp = t_1; elseif (a <= 3.3e+230) tmp = x / (x + (y * exp((2.0 * (a * c))))); 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[(N[(b * 1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(a * N[(b * -2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -20.0], t$95$2, If[LessEqual[a, -1.08e-141], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.1e-232], t$95$1, If[LessEqual[a, 8e-114], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.8e+21], t$95$1, If[LessEqual[a, 3.3e+230], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\frac{b \cdot 1.3333333333333333}{t}}}\\
t_2 := \frac{x}{x + y \cdot e^{a \cdot \left(b \cdot -2\right)}}\\
\mathbf{if}\;a \leq -20:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.08 \cdot 10^{-141}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{-232}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 8 \cdot 10^{-114}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;a \leq 4.8 \cdot 10^{+21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{+230}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -20 or 3.30000000000000013e230 < a Initial program 91.1%
Taylor expanded in b around inf 89.2%
associate-*r/89.2%
metadata-eval89.2%
+-commutative89.2%
Simplified89.2%
Taylor expanded in a around inf 87.1%
mul-1-neg87.1%
Simplified87.1%
Taylor expanded in b around 0 87.1%
*-commutative87.1%
associate-*l*87.1%
*-commutative87.1%
Simplified87.1%
if -20 < a < -1.0799999999999999e-141Initial program 99.6%
Taylor expanded in b around inf 61.2%
associate-*r/61.2%
metadata-eval61.2%
+-commutative61.2%
Simplified61.2%
Taylor expanded in a around inf 38.0%
mul-1-neg38.0%
Simplified38.0%
add-log-exp38.0%
*-un-lft-identity38.0%
log-prod38.0%
metadata-eval38.0%
add-log-exp38.0%
*-commutative38.0%
add-sqr-sqrt38.0%
sqrt-unprod38.0%
sqr-neg38.0%
sqrt-unprod0.0%
add-sqr-sqrt65.1%
Applied egg-rr65.1%
+-lft-identity65.1%
*-commutative65.1%
Simplified65.1%
if -1.0799999999999999e-141 < a < 3.0999999999999999e-232 or 8.0000000000000004e-114 < a < 4.8e21Initial program 98.8%
Taylor expanded in b around inf 68.0%
associate-*r/68.0%
metadata-eval68.0%
+-commutative68.0%
Simplified68.0%
Taylor expanded in t around 0 64.8%
associate-*r/64.8%
*-commutative64.8%
Simplified64.8%
Taylor expanded in b around 0 64.8%
associate-*r/64.8%
*-commutative64.8%
Simplified64.8%
if 3.0999999999999999e-232 < a < 8.0000000000000004e-114Initial program 100.0%
Taylor expanded in b around inf 67.7%
associate-*r/67.7%
metadata-eval67.7%
+-commutative67.7%
Simplified67.7%
Taylor expanded in t around inf 67.8%
mul-1-neg67.8%
+-commutative67.8%
distribute-rgt-neg-in67.8%
+-commutative67.8%
distribute-neg-in67.8%
metadata-eval67.8%
unsub-neg67.8%
Simplified67.8%
Taylor expanded in a around 0 67.8%
if 4.8e21 < a < 3.30000000000000013e230Initial program 94.9%
Taylor expanded in c around inf 69.0%
associate--l+69.0%
associate-*r/69.0%
metadata-eval69.0%
Simplified69.0%
Taylor expanded in a around inf 61.6%
Final simplification68.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a c))))))))
(if (<= t -3.6e-218)
t_1
(if (<= t 4.6e-101)
(/ x (+ x (* y (exp (/ (* b 1.3333333333333333) t)))))
(if (<= t 3.6e-19)
(/ x (+ x (* y (exp (* a (* b -2.0))))))
(if (<= t 4.2e+14)
(/ x (+ x (* y (exp (* 2.0 (* 0.6666666666666666 (/ c t)))))))
(if (<= t 1.55e+58) 1.0 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (a * c)))));
double tmp;
if (t <= -3.6e-218) {
tmp = t_1;
} else if (t <= 4.6e-101) {
tmp = x / (x + (y * exp(((b * 1.3333333333333333) / t))));
} else if (t <= 3.6e-19) {
tmp = x / (x + (y * exp((a * (b * -2.0)))));
} else if (t <= 4.2e+14) {
tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (c / t))))));
} else if (t <= 1.55e+58) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (a * c)))))
if (t <= (-3.6d-218)) then
tmp = t_1
else if (t <= 4.6d-101) then
tmp = x / (x + (y * exp(((b * 1.3333333333333333d0) / t))))
else if (t <= 3.6d-19) then
tmp = x / (x + (y * exp((a * (b * (-2.0d0))))))
else if (t <= 4.2d+14) then
tmp = x / (x + (y * exp((2.0d0 * (0.6666666666666666d0 * (c / t))))))
else if (t <= 1.55d+58) then
tmp = 1.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (a * c)))));
double tmp;
if (t <= -3.6e-218) {
tmp = t_1;
} else if (t <= 4.6e-101) {
tmp = x / (x + (y * Math.exp(((b * 1.3333333333333333) / t))));
} else if (t <= 3.6e-19) {
tmp = x / (x + (y * Math.exp((a * (b * -2.0)))));
} else if (t <= 4.2e+14) {
tmp = x / (x + (y * Math.exp((2.0 * (0.6666666666666666 * (c / t))))));
} else if (t <= 1.55e+58) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * c))))) tmp = 0 if t <= -3.6e-218: tmp = t_1 elif t <= 4.6e-101: tmp = x / (x + (y * math.exp(((b * 1.3333333333333333) / t)))) elif t <= 3.6e-19: tmp = x / (x + (y * math.exp((a * (b * -2.0))))) elif t <= 4.2e+14: tmp = x / (x + (y * math.exp((2.0 * (0.6666666666666666 * (c / t)))))) elif t <= 1.55e+58: tmp = 1.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))) tmp = 0.0 if (t <= -3.6e-218) tmp = t_1; elseif (t <= 4.6e-101) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b * 1.3333333333333333) / t))))); elseif (t <= 3.6e-19) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(a * Float64(b * -2.0)))))); elseif (t <= 4.2e+14) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(0.6666666666666666 * Float64(c / t))))))); elseif (t <= 1.55e+58) tmp = 1.0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (a * c))))); tmp = 0.0; if (t <= -3.6e-218) tmp = t_1; elseif (t <= 4.6e-101) tmp = x / (x + (y * exp(((b * 1.3333333333333333) / t)))); elseif (t <= 3.6e-19) tmp = x / (x + (y * exp((a * (b * -2.0))))); elseif (t <= 4.2e+14) tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (c / t)))))); elseif (t <= 1.55e+58) tmp = 1.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.6e-218], t$95$1, If[LessEqual[t, 4.6e-101], N[(x / N[(x + N[(y * N[Exp[N[(N[(b * 1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e-19], N[(x / N[(x + N[(y * N[Exp[N[(a * N[(b * -2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.2e+14], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(0.6666666666666666 * N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.55e+58], 1.0, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{if}\;t \leq -3.6 \cdot 10^{-218}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{-101}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{b \cdot 1.3333333333333333}{t}}}\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-19}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{a \cdot \left(b \cdot -2\right)}}\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{+14}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(0.6666666666666666 \cdot \frac{c}{t}\right)}}\\
\mathbf{elif}\;t \leq 1.55 \cdot 10^{+58}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -3.60000000000000011e-218 or 1.55e58 < t Initial program 97.8%
Taylor expanded in c around inf 73.1%
associate--l+73.1%
associate-*r/73.1%
metadata-eval73.1%
Simplified73.1%
Taylor expanded in a around inf 64.2%
if -3.60000000000000011e-218 < t < 4.5999999999999999e-101Initial program 95.7%
Taylor expanded in b around inf 73.4%
associate-*r/73.4%
metadata-eval73.4%
+-commutative73.4%
Simplified73.4%
Taylor expanded in t around 0 69.2%
associate-*r/69.2%
*-commutative69.2%
Simplified69.2%
Taylor expanded in b around 0 69.2%
associate-*r/69.2%
*-commutative69.2%
Simplified69.2%
if 4.5999999999999999e-101 < t < 3.6000000000000001e-19Initial program 91.3%
Taylor expanded in b around inf 70.5%
associate-*r/70.5%
metadata-eval70.5%
+-commutative70.5%
Simplified70.5%
Taylor expanded in a around inf 66.3%
mul-1-neg66.3%
Simplified66.3%
Taylor expanded in b around 0 66.3%
*-commutative66.3%
associate-*l*66.3%
*-commutative66.3%
Simplified66.3%
if 3.6000000000000001e-19 < t < 4.2e14Initial program 93.3%
Taylor expanded in c around inf 63.1%
associate--l+63.1%
associate-*r/63.1%
metadata-eval63.1%
Simplified63.1%
Taylor expanded in a around inf 63.1%
associate-/l*63.1%
cancel-sign-sub-inv63.1%
metadata-eval63.1%
associate-*r/63.1%
metadata-eval63.1%
Simplified63.1%
associate-*r/63.1%
frac-2neg63.1%
add-sqr-sqrt14.1%
sqrt-unprod50.0%
sqr-neg50.0%
sqrt-unprod36.0%
add-sqr-sqrt43.7%
Applied egg-rr43.7%
distribute-frac-neg43.7%
associate-*r/43.7%
distribute-rgt-neg-in43.7%
distribute-neg-frac43.7%
+-commutative43.7%
distribute-neg-in43.7%
metadata-eval43.7%
distribute-neg-frac43.7%
metadata-eval43.7%
Simplified43.7%
Taylor expanded in t around 0 69.5%
if 4.2e14 < t < 1.55e58Initial program 100.0%
Taylor expanded in b around inf 67.7%
associate-*r/67.7%
metadata-eval67.7%
+-commutative67.7%
Simplified67.7%
Taylor expanded in a around inf 56.9%
mul-1-neg56.9%
Simplified56.9%
Taylor expanded in b around 0 13.6%
Taylor expanded in x around inf 89.2%
Final simplification66.9%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -5e+109) (not (<= c 5.5e-33)))
(/ x (+ x (* y (exp (* 2.0 (* c (+ a 0.8333333333333334)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -5e+109) || !(c <= 5.5e-33)) {
tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334))))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((c <= (-5d+109)) .or. (.not. (c <= 5.5d-33))) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + 0.8333333333333334d0))))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -5e+109) || !(c <= 5.5e-33)) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + 0.8333333333333334))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (c <= -5e+109) or not (c <= 5.5e-33): tmp = x / (x + (y * math.exp((2.0 * (c * (a + 0.8333333333333334)))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((c <= -5e+109) || !(c <= 5.5e-33)) 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(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((c <= -5e+109) || ~((c <= 5.5e-33))) tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334)))))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[c, -5e+109], N[Not[LessEqual[c, 5.5e-33]], $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[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -5 \cdot 10^{+109} \lor \neg \left(c \leq 5.5 \cdot 10^{-33}\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(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if c < -5.0000000000000001e109 or 5.5e-33 < c Initial program 93.5%
Taylor expanded in c around inf 88.3%
associate--l+88.3%
associate-*r/88.3%
metadata-eval88.3%
Simplified88.3%
Taylor expanded in t around inf 71.3%
+-commutative71.3%
Simplified71.3%
if -5.0000000000000001e109 < c < 5.5e-33Initial program 98.6%
Taylor expanded in b around inf 79.1%
associate-*r/79.1%
metadata-eval79.1%
+-commutative79.1%
Simplified79.1%
Final simplification75.8%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -5.4e+156) (not (<= c 0.105)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* c (+ (- a (/ 0.6666666666666666 t)) 0.8333333333333334)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -5.4e+156) || !(c <= 0.105)) {
tmp = x / (x + (y * exp((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((c <= (-5.4d+156)) .or. (.not. (c <= 0.105d0))) then
tmp = x / (x + (y * exp((2.0d0 * (c * ((a - (0.6666666666666666d0 / t)) + 0.8333333333333334d0))))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -5.4e+156) || !(c <= 0.105)) {
tmp = x / (x + (y * Math.exp((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (c <= -5.4e+156) or not (c <= 0.105): tmp = x / (x + (y * math.exp((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334)))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((c <= -5.4e+156) || !(c <= 0.105)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(Float64(a - Float64(0.6666666666666666 / t)) + 0.8333333333333334))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((c <= -5.4e+156) || ~((c <= 0.105))) tmp = x / (x + (y * exp((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334)))))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[c, -5.4e+156], N[Not[LessEqual[c, 0.105]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -5.4 \cdot 10^{+156} \lor \neg \left(c \leq 0.105\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(\left(a - \frac{0.6666666666666666}{t}\right) + 0.8333333333333334\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if c < -5.4000000000000001e156 or 0.104999999999999996 < c Initial program 92.8%
Taylor expanded in c around inf 90.0%
associate--l+90.0%
associate-*r/90.0%
metadata-eval90.0%
Simplified90.0%
if -5.4000000000000001e156 < c < 0.104999999999999996Initial program 98.7%
Taylor expanded in b around inf 79.3%
associate-*r/79.3%
metadata-eval79.3%
+-commutative79.3%
Simplified79.3%
Final simplification83.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* a (* b -2.0))))))))
(if (<= a -1.3e-19)
t_1
(if (<= a 6.6e+103)
1.0
(if (<= a 5.8e+230) (/ x (+ x (* y (exp (* 2.0 (* a c)))))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((a * (b * -2.0)))));
double tmp;
if (a <= -1.3e-19) {
tmp = t_1;
} else if (a <= 6.6e+103) {
tmp = 1.0;
} else if (a <= 5.8e+230) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((a * (b * (-2.0d0))))))
if (a <= (-1.3d-19)) then
tmp = t_1
else if (a <= 6.6d+103) then
tmp = 1.0d0
else if (a <= 5.8d+230) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((a * (b * -2.0)))));
double tmp;
if (a <= -1.3e-19) {
tmp = t_1;
} else if (a <= 6.6e+103) {
tmp = 1.0;
} else if (a <= 5.8e+230) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((a * (b * -2.0))))) tmp = 0 if a <= -1.3e-19: tmp = t_1 elif a <= 6.6e+103: tmp = 1.0 elif a <= 5.8e+230: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(a * Float64(b * -2.0)))))) tmp = 0.0 if (a <= -1.3e-19) tmp = t_1; elseif (a <= 6.6e+103) tmp = 1.0; elseif (a <= 5.8e+230) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((a * (b * -2.0))))); tmp = 0.0; if (a <= -1.3e-19) tmp = t_1; elseif (a <= 6.6e+103) tmp = 1.0; elseif (a <= 5.8e+230) tmp = x / (x + (y * exp((2.0 * (a * c))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(a * N[(b * -2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.3e-19], t$95$1, If[LessEqual[a, 6.6e+103], 1.0, If[LessEqual[a, 5.8e+230], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{a \cdot \left(b \cdot -2\right)}}\\
\mathbf{if}\;a \leq -1.3 \cdot 10^{-19}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6.6 \cdot 10^{+103}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 5.8 \cdot 10^{+230}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.30000000000000006e-19 or 5.7999999999999998e230 < a Initial program 91.7%
Taylor expanded in b around inf 87.9%
associate-*r/87.9%
metadata-eval87.9%
+-commutative87.9%
Simplified87.9%
Taylor expanded in a around inf 85.9%
mul-1-neg85.9%
Simplified85.9%
Taylor expanded in b around 0 85.9%
*-commutative85.9%
associate-*l*85.9%
*-commutative85.9%
Simplified85.9%
if -1.30000000000000006e-19 < a < 6.60000000000000017e103Initial program 98.1%
Taylor expanded in b around inf 65.9%
associate-*r/65.9%
metadata-eval65.9%
+-commutative65.9%
Simplified65.9%
Taylor expanded in a around inf 43.1%
mul-1-neg43.1%
Simplified43.1%
Taylor expanded in b around 0 37.5%
Taylor expanded in x around inf 54.8%
if 6.60000000000000017e103 < a < 5.7999999999999998e230Initial program 95.5%
Taylor expanded in c around inf 71.5%
associate--l+71.5%
associate-*r/71.5%
metadata-eval71.5%
Simplified71.5%
Taylor expanded in a around inf 60.5%
Final simplification61.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a -5e-139)
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a)))))))
(if (<= a 1.12e+42)
(/
x
(+
x
(*
y
(exp (* 2.0 (* b (- (/ 0.6666666666666666 t) 0.8333333333333334)))))))
(if (<= a 1e+230)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(/ x (+ x (* y (exp (* a (* b -2.0))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -5e-139) {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else if (a <= 1.12e+42) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - 0.8333333333333334))))));
} else if (a <= 1e+230) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else {
tmp = x / (x + (y * exp((a * (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 (a <= (-5d-139)) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
else if (a <= 1.12d+42) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - 0.8333333333333334d0))))))
else if (a <= 1d+230) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else
tmp = x / (x + (y * exp((a * (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 (a <= -5e-139) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else if (a <= 1.12e+42) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - 0.8333333333333334))))));
} else if (a <= 1e+230) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else {
tmp = x / (x + (y * Math.exp((a * (b * -2.0)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= -5e-139: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) elif a <= 1.12e+42: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - 0.8333333333333334)))))) elif a <= 1e+230: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) else: tmp = x / (x + (y * math.exp((a * (b * -2.0))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= -5e-139) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); elseif (a <= 1.12e+42) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - 0.8333333333333334))))))); elseif (a <= 1e+230) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(a * Float64(b * -2.0)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= -5e-139) tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); elseif (a <= 1.12e+42) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - 0.8333333333333334)))))); elseif (a <= 1e+230) tmp = x / (x + (y * exp((2.0 * (a * c))))); else tmp = x / (x + (y * exp((a * (b * -2.0))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, -5e-139], 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, 1.12e+42], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1e+230], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(a * N[(b * -2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5 \cdot 10^{-139}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{elif}\;a \leq 1.12 \cdot 10^{+42}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - 0.8333333333333334\right)\right)}}\\
\mathbf{elif}\;a \leq 10^{+230}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{a \cdot \left(b \cdot -2\right)}}\\
\end{array}
\end{array}
if a < -5.00000000000000034e-139Initial program 97.4%
Taylor expanded in b around inf 73.0%
associate-*r/73.0%
metadata-eval73.0%
+-commutative73.0%
Simplified73.0%
Taylor expanded in t around inf 75.2%
mul-1-neg75.2%
+-commutative75.2%
distribute-rgt-neg-in75.2%
+-commutative75.2%
distribute-neg-in75.2%
metadata-eval75.2%
unsub-neg75.2%
Simplified75.2%
if -5.00000000000000034e-139 < a < 1.12e42Initial program 98.2%
Taylor expanded in b around inf 68.8%
associate-*r/68.8%
metadata-eval68.8%
+-commutative68.8%
Simplified68.8%
Taylor expanded in a around 0 68.8%
if 1.12e42 < a < 1.0000000000000001e230Initial program 96.0%
Taylor expanded in c around inf 70.4%
associate--l+70.4%
associate-*r/70.4%
metadata-eval70.4%
Simplified70.4%
Taylor expanded in a around inf 61.3%
if 1.0000000000000001e230 < a Initial program 88.9%
Taylor expanded in b around inf 89.2%
associate-*r/89.2%
metadata-eval89.2%
+-commutative89.2%
Simplified89.2%
Taylor expanded in a around inf 85.6%
mul-1-neg85.6%
Simplified85.6%
Taylor expanded in b around 0 85.6%
*-commutative85.6%
associate-*l*85.6%
*-commutative85.6%
Simplified85.6%
Final simplification69.5%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -1.8e+26) (/ x (+ x (* y (exp (* b -1.6666666666666667))))) (if (<= b 1.3e-307) (/ x (+ x (* y (exp (* 2.0 (* a c)))))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.8e+26) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (b <= 1.3e-307) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-1.8d+26)) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (b <= 1.3d-307) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.8e+26) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (b <= 1.3e-307) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -1.8e+26: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif b <= 1.3e-307: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -1.8e+26) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (b <= 1.3e-307) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -1.8e+26) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (b <= 1.3e-307) tmp = x / (x + (y * exp((2.0 * (a * c))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -1.8e+26], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.3e-307], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.8 \cdot 10^{+26}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{-307}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.80000000000000012e26Initial program 93.6%
Taylor expanded in b around inf 81.4%
associate-*r/81.4%
metadata-eval81.4%
+-commutative81.4%
Simplified81.4%
Taylor expanded in t around inf 69.1%
mul-1-neg69.1%
+-commutative69.1%
distribute-rgt-neg-in69.1%
+-commutative69.1%
distribute-neg-in69.1%
metadata-eval69.1%
unsub-neg69.1%
Simplified69.1%
Taylor expanded in a around 0 65.0%
if -1.80000000000000012e26 < b < 1.29999999999999998e-307Initial program 98.6%
Taylor expanded in c around inf 78.7%
associate--l+78.7%
associate-*r/78.7%
metadata-eval78.7%
Simplified78.7%
Taylor expanded in a around inf 61.2%
if 1.29999999999999998e-307 < b Initial program 96.2%
Taylor expanded in b around inf 64.8%
associate-*r/64.8%
metadata-eval64.8%
+-commutative64.8%
Simplified64.8%
Taylor expanded in a around inf 46.7%
mul-1-neg46.7%
Simplified46.7%
Taylor expanded in b around 0 29.5%
Taylor expanded in x around inf 58.8%
Final simplification60.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -9.5e+43)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= b -8.5e-86)
1.0
(if (<= b -2.6e-308)
(/ x (+ x (+ y (* -2.0 (* b (* (+ a 0.8333333333333334) y))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -9.5e+43) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (b <= -8.5e-86) {
tmp = 1.0;
} else if (b <= -2.6e-308) {
tmp = x / (x + (y + (-2.0 * (b * ((a + 0.8333333333333334) * y)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-9.5d+43)) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (b <= (-8.5d-86)) then
tmp = 1.0d0
else if (b <= (-2.6d-308)) then
tmp = x / (x + (y + ((-2.0d0) * (b * ((a + 0.8333333333333334d0) * y)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -9.5e+43) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (b <= -8.5e-86) {
tmp = 1.0;
} else if (b <= -2.6e-308) {
tmp = x / (x + (y + (-2.0 * (b * ((a + 0.8333333333333334) * y)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -9.5e+43: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif b <= -8.5e-86: tmp = 1.0 elif b <= -2.6e-308: tmp = x / (x + (y + (-2.0 * (b * ((a + 0.8333333333333334) * y))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -9.5e+43) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (b <= -8.5e-86) tmp = 1.0; elseif (b <= -2.6e-308) tmp = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(b * Float64(Float64(a + 0.8333333333333334) * y)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -9.5e+43) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (b <= -8.5e-86) tmp = 1.0; elseif (b <= -2.6e-308) tmp = x / (x + (y + (-2.0 * (b * ((a + 0.8333333333333334) * y))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -9.5e+43], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.5e-86], 1.0, If[LessEqual[b, -2.6e-308], N[(x / N[(x + N[(y + N[(-2.0 * N[(b * N[(N[(a + 0.8333333333333334), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9.5 \cdot 10^{+43}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b \leq -8.5 \cdot 10^{-86}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -2.6 \cdot 10^{-308}:\\
\;\;\;\;\frac{x}{x + \left(y + -2 \cdot \left(b \cdot \left(\left(a + 0.8333333333333334\right) \cdot y\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -9.5000000000000004e43Initial program 93.2%
Taylor expanded in b around inf 80.2%
associate-*r/80.2%
metadata-eval80.2%
+-commutative80.2%
Simplified80.2%
Taylor expanded in t around inf 69.2%
mul-1-neg69.2%
+-commutative69.2%
distribute-rgt-neg-in69.2%
+-commutative69.2%
distribute-neg-in69.2%
metadata-eval69.2%
unsub-neg69.2%
Simplified69.2%
Taylor expanded in a around 0 67.0%
if -9.5000000000000004e43 < b < -8.499999999999999e-86 or -2.6e-308 < b Initial program 96.9%
Taylor expanded in b around inf 67.9%
associate-*r/67.9%
metadata-eval67.9%
+-commutative67.9%
Simplified67.9%
Taylor expanded in a around inf 48.5%
mul-1-neg48.5%
Simplified48.5%
Taylor expanded in b around 0 32.3%
Taylor expanded in x around inf 59.9%
if -8.499999999999999e-86 < b < -2.6e-308Initial program 98.0%
Taylor expanded in b around inf 58.9%
associate-*r/58.9%
metadata-eval58.9%
+-commutative58.9%
Simplified58.9%
Taylor expanded in t around inf 55.0%
mul-1-neg55.0%
+-commutative55.0%
distribute-rgt-neg-in55.0%
+-commutative55.0%
distribute-neg-in55.0%
metadata-eval55.0%
unsub-neg55.0%
Simplified55.0%
Taylor expanded in b around 0 58.9%
Final simplification60.9%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= b -1.3e+67) (and (not (<= b -5.1e-86)) (<= b 7.2e-307))) (/ x (+ x (+ y (* -2.0 (* b (* (+ a 0.8333333333333334) y)))))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -1.3e+67) || (!(b <= -5.1e-86) && (b <= 7.2e-307))) {
tmp = x / (x + (y + (-2.0 * (b * ((a + 0.8333333333333334) * y)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b <= (-1.3d+67)) .or. (.not. (b <= (-5.1d-86))) .and. (b <= 7.2d-307)) then
tmp = x / (x + (y + ((-2.0d0) * (b * ((a + 0.8333333333333334d0) * y)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -1.3e+67) || (!(b <= -5.1e-86) && (b <= 7.2e-307))) {
tmp = x / (x + (y + (-2.0 * (b * ((a + 0.8333333333333334) * y)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -1.3e+67) or (not (b <= -5.1e-86) and (b <= 7.2e-307)): tmp = x / (x + (y + (-2.0 * (b * ((a + 0.8333333333333334) * y))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -1.3e+67) || (!(b <= -5.1e-86) && (b <= 7.2e-307))) tmp = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(b * Float64(Float64(a + 0.8333333333333334) * y)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -1.3e+67) || (~((b <= -5.1e-86)) && (b <= 7.2e-307))) tmp = x / (x + (y + (-2.0 * (b * ((a + 0.8333333333333334) * y))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -1.3e+67], And[N[Not[LessEqual[b, -5.1e-86]], $MachinePrecision], LessEqual[b, 7.2e-307]]], N[(x / N[(x + N[(y + N[(-2.0 * N[(b * N[(N[(a + 0.8333333333333334), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.3 \cdot 10^{+67} \lor \neg \left(b \leq -5.1 \cdot 10^{-86}\right) \land b \leq 7.2 \cdot 10^{-307}:\\
\;\;\;\;\frac{x}{x + \left(y + -2 \cdot \left(b \cdot \left(\left(a + 0.8333333333333334\right) \cdot y\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.3e67 or -5.10000000000000006e-86 < b < 7.20000000000000014e-307Initial program 96.5%
Taylor expanded in b around inf 69.8%
associate-*r/69.8%
metadata-eval69.8%
+-commutative69.8%
Simplified69.8%
Taylor expanded in t around inf 63.1%
mul-1-neg63.1%
+-commutative63.1%
distribute-rgt-neg-in63.1%
+-commutative63.1%
distribute-neg-in63.1%
metadata-eval63.1%
unsub-neg63.1%
Simplified63.1%
Taylor expanded in b around 0 53.1%
if -1.3e67 < b < -5.10000000000000006e-86 or 7.20000000000000014e-307 < b Initial program 96.4%
Taylor expanded in b around inf 67.5%
associate-*r/67.5%
metadata-eval67.5%
+-commutative67.5%
Simplified67.5%
Taylor expanded in a around inf 48.4%
mul-1-neg48.4%
Simplified48.4%
Taylor expanded in b around 0 31.7%
Taylor expanded in x around inf 59.2%
Final simplification57.2%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -9e-87) 1.0 (if (<= b -3.4e-308) (/ x (+ x (+ y (* 2.0 (* a (* c y)))))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -9e-87) {
tmp = 1.0;
} else if (b <= -3.4e-308) {
tmp = x / (x + (y + (2.0 * (a * (c * y)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-9d-87)) then
tmp = 1.0d0
else if (b <= (-3.4d-308)) then
tmp = x / (x + (y + (2.0d0 * (a * (c * y)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -9e-87) {
tmp = 1.0;
} else if (b <= -3.4e-308) {
tmp = x / (x + (y + (2.0 * (a * (c * y)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -9e-87: tmp = 1.0 elif b <= -3.4e-308: tmp = x / (x + (y + (2.0 * (a * (c * y))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -9e-87) tmp = 1.0; elseif (b <= -3.4e-308) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(a * Float64(c * y)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -9e-87) tmp = 1.0; elseif (b <= -3.4e-308) tmp = x / (x + (y + (2.0 * (a * (c * y))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -9e-87], 1.0, If[LessEqual[b, -3.4e-308], N[(x / N[(x + N[(y + N[(2.0 * N[(a * N[(c * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9 \cdot 10^{-87}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -3.4 \cdot 10^{-308}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(a \cdot \left(c \cdot y\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -8.99999999999999915e-87 or -3.39999999999999999e-308 < b Initial program 96.1%
Taylor expanded in b around inf 70.5%
associate-*r/70.5%
metadata-eval70.5%
+-commutative70.5%
Simplified70.5%
Taylor expanded in a around inf 50.1%
mul-1-neg50.1%
Simplified50.1%
Taylor expanded in b around 0 30.9%
Taylor expanded in x around inf 54.8%
if -8.99999999999999915e-87 < b < -3.39999999999999999e-308Initial program 98.0%
Taylor expanded in c around inf 82.3%
associate--l+82.3%
associate-*r/82.3%
metadata-eval82.3%
Simplified82.3%
Taylor expanded in a around inf 82.3%
associate-/l*84.2%
cancel-sign-sub-inv84.2%
metadata-eval84.2%
associate-*r/84.2%
metadata-eval84.2%
Simplified84.2%
Taylor expanded in a around inf 62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in c around 0 58.6%
Final simplification55.5%
(FPCore (x y z t a b c) :precision binary64 (if (<= y 6e+207) 1.0 (/ x (+ x (* y (+ (* 1.3333333333333333 (/ b t)) 1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 6e+207) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((1.3333333333333333 * (b / t)) + 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 <= 6d+207) then
tmp = 1.0d0
else
tmp = x / (x + (y * ((1.3333333333333333d0 * (b / t)) + 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 <= 6e+207) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((1.3333333333333333 * (b / t)) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= 6e+207: tmp = 1.0 else: tmp = x / (x + (y * ((1.3333333333333333 * (b / t)) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= 6e+207) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(1.3333333333333333 * Float64(b / t)) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= 6e+207) tmp = 1.0; else tmp = x / (x + (y * ((1.3333333333333333 * (b / t)) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, 6e+207], 1.0, N[(x / N[(x + N[(y * N[(N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 6 \cdot 10^{+207}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1.3333333333333333 \cdot \frac{b}{t} + 1\right)}\\
\end{array}
\end{array}
if y < 5.99999999999999966e207Initial program 96.1%
Taylor expanded in b around inf 67.1%
associate-*r/67.1%
metadata-eval67.1%
+-commutative67.1%
Simplified67.1%
Taylor expanded in a around inf 49.5%
mul-1-neg49.5%
Simplified49.5%
Taylor expanded in b around 0 34.6%
Taylor expanded in x around inf 53.6%
if 5.99999999999999966e207 < y Initial program 100.0%
Taylor expanded in b around inf 81.5%
associate-*r/81.5%
metadata-eval81.5%
+-commutative81.5%
Simplified81.5%
Taylor expanded in t around 0 59.6%
associate-*r/59.6%
*-commutative59.6%
Simplified59.6%
Taylor expanded in b around 0 55.0%
Final simplification53.7%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -2.1e-308) (/ x (+ x (+ y (* -2.0 (* a (* b y)))))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.1e-308) {
tmp = x / (x + (y + (-2.0 * (a * (b * y)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-2.1d-308)) then
tmp = x / (x + (y + ((-2.0d0) * (a * (b * y)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.1e-308) {
tmp = x / (x + (y + (-2.0 * (a * (b * y)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -2.1e-308: tmp = x / (x + (y + (-2.0 * (a * (b * y))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -2.1e-308) tmp = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(a * Float64(b * y)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -2.1e-308) tmp = x / (x + (y + (-2.0 * (a * (b * y))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -2.1e-308], N[(x / N[(x + N[(y + N[(-2.0 * N[(a * N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.1 \cdot 10^{-308}:\\
\;\;\;\;\frac{x}{x + \left(y + -2 \cdot \left(a \cdot \left(b \cdot y\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -2.1e-308Initial program 96.7%
Taylor expanded in b around inf 72.1%
associate-*r/72.1%
metadata-eval72.1%
+-commutative72.1%
Simplified72.1%
Taylor expanded in a around inf 55.7%
mul-1-neg55.7%
Simplified55.7%
Taylor expanded in b around 0 48.8%
if -2.1e-308 < b Initial program 96.2%
Taylor expanded in b around inf 64.8%
associate-*r/64.8%
metadata-eval64.8%
+-commutative64.8%
Simplified64.8%
Taylor expanded in a around inf 46.7%
mul-1-neg46.7%
Simplified46.7%
Taylor expanded in b around 0 29.5%
Taylor expanded in x around inf 58.8%
Final simplification54.0%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 96.4%
Taylor expanded in b around inf 68.3%
associate-*r/68.3%
metadata-eval68.3%
+-commutative68.3%
Simplified68.3%
Taylor expanded in a around inf 51.1%
mul-1-neg51.1%
Simplified51.1%
Taylor expanded in b around 0 34.4%
Taylor expanded in x around inf 51.7%
Final simplification51.7%
(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 2024115
(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)))))))))))