
(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 18 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t\_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < +inf.0Initial program 99.2%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 0.0%
Taylor expanded in t around 0 78.1%
Final simplification97.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
c
(+ (- a (/ 0.6666666666666666 t)) 0.8333333333333334)))))))))
(if (<= c -820000000.0)
t_1
(if (<= c -1.26e-104)
(/
x
(+ x (* y (exp (* 2.0 (+ (/ (* z (sqrt (+ t a))) t) (* a (- c b))))))))
(if (<= c 4.4e-63)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))))));
double tmp;
if (c <= -820000000.0) {
tmp = t_1;
} else if (c <= -1.26e-104) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) + (a * (c - b)))))));
} else if (c <= 4.4e-63) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (c * ((a - (0.6666666666666666d0 / t)) + 0.8333333333333334d0))))))
if (c <= (-820000000.0d0)) then
tmp = t_1
else if (c <= (-1.26d-104)) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) + (a * (c - b)))))))
else if (c <= 4.4d-63) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))))));
double tmp;
if (c <= -820000000.0) {
tmp = t_1;
} else if (c <= -1.26e-104) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) + (a * (c - b)))))));
} else if (c <= 4.4e-63) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334)))))) tmp = 0 if c <= -820000000.0: tmp = t_1 elif c <= -1.26e-104: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) + (a * (c - b))))))) elif c <= 4.4e-63: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(Float64(a - Float64(0.6666666666666666 / t)) + 0.8333333333333334))))))) tmp = 0.0 if (c <= -820000000.0) tmp = t_1; elseif (c <= -1.26e-104) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(a * Float64(c - b)))))))); elseif (c <= 4.4e-63) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334)))))); tmp = 0.0; if (c <= -820000000.0) tmp = t_1; elseif (c <= -1.26e-104) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) + (a * (c - b))))))); elseif (c <= 4.4e-63) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -820000000.0], t$95$1, If[LessEqual[c, -1.26e-104], 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[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.4e-63], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(\left(a - \frac{0.6666666666666666}{t}\right) + 0.8333333333333334\right)\right)}}\\
\mathbf{if}\;c \leq -820000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.26 \cdot 10^{-104}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} + a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;c \leq 4.4 \cdot 10^{-63}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -8.2e8 or 4.3999999999999999e-63 < c Initial program 89.8%
Taylor expanded in c around inf 87.3%
associate--l+87.3%
associate-*r/87.3%
metadata-eval87.3%
Simplified87.3%
if -8.2e8 < c < -1.26e-104Initial program 90.5%
Taylor expanded in a around inf 100.0%
if -1.26e-104 < c < 4.3999999999999999e-63Initial program 96.0%
Taylor expanded in b around inf 86.9%
associate-*r/86.9%
metadata-eval86.9%
Simplified86.9%
Final simplification88.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -5e-42)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= t 1.8e-18)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 8.6e+103)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -5e-42) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (t <= 1.8e-18) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 8.6e+103) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-5d-42)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (t <= 1.8d-18) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 8.6d+103) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -5e-42) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (t <= 1.8e-18) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 8.6e+103) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -5e-42: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif t <= 1.8e-18: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 8.6e+103: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) else: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -5e-42) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (t <= 1.8e-18) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 8.6e+103) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -5e-42) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (t <= 1.8e-18) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 8.6e+103) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); else tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -5e-42], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.8e-18], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.6e+103], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{-42}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{-18}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 8.6 \cdot 10^{+103}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\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 < -5.00000000000000003e-42Initial program 88.2%
Taylor expanded in c around inf 83.1%
associate--l+83.1%
associate-*r/83.1%
metadata-eval83.1%
Simplified83.1%
Taylor expanded in a around inf 83.1%
if -5.00000000000000003e-42 < t < 1.80000000000000005e-18Initial program 89.1%
Taylor expanded in t around 0 71.6%
Taylor expanded in z around 0 72.2%
if 1.80000000000000005e-18 < t < 8.59999999999999938e103Initial program 100.0%
Taylor expanded in c around inf 77.7%
associate--l+77.7%
associate-*r/77.7%
metadata-eval77.7%
Simplified77.7%
Taylor expanded in t around inf 75.2%
+-commutative75.2%
Simplified75.2%
Taylor expanded in a around 0 75.2%
*-commutative75.2%
Simplified75.2%
if 8.59999999999999938e103 < t Initial program 94.5%
Taylor expanded in b around inf 74.3%
associate-*r/74.3%
metadata-eval74.3%
Simplified74.3%
Taylor expanded in t around inf 74.3%
mul-1-neg74.3%
+-commutative74.3%
distribute-rgt-neg-in74.3%
+-commutative74.3%
distribute-neg-in74.3%
unsub-neg74.3%
metadata-eval74.3%
Simplified74.3%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -5.2e-102) (not (<= c 1.3e-63)))
(/
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.2e-102) || !(c <= 1.3e-63)) {
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.2d-102)) .or. (.not. (c <= 1.3d-63))) 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.2e-102) || !(c <= 1.3e-63)) {
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.2e-102) or not (c <= 1.3e-63): 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.2e-102) || !(c <= 1.3e-63)) 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.2e-102) || ~((c <= 1.3e-63))) 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.2e-102], N[Not[LessEqual[c, 1.3e-63]], $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.2 \cdot 10^{-102} \lor \neg \left(c \leq 1.3 \cdot 10^{-63}\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.19999999999999973e-102 or 1.3000000000000001e-63 < c Initial program 89.9%
Taylor expanded in c around inf 84.1%
associate--l+84.1%
associate-*r/84.1%
metadata-eval84.1%
Simplified84.1%
if -5.19999999999999973e-102 < c < 1.3000000000000001e-63Initial program 96.0%
Taylor expanded in b around inf 86.9%
associate-*r/86.9%
metadata-eval86.9%
Simplified86.9%
Final simplification85.2%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -1.62e-65) (not (<= c 4.2e-63)))
(/ 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 <= -1.62e-65) || !(c <= 4.2e-63)) {
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 <= (-1.62d-65)) .or. (.not. (c <= 4.2d-63))) 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 <= -1.62e-65) || !(c <= 4.2e-63)) {
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 <= -1.62e-65) or not (c <= 4.2e-63): 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 <= -1.62e-65) || !(c <= 4.2e-63)) 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 <= -1.62e-65) || ~((c <= 4.2e-63))) 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, -1.62e-65], N[Not[LessEqual[c, 4.2e-63]], $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 -1.62 \cdot 10^{-65} \lor \neg \left(c \leq 4.2 \cdot 10^{-63}\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 < -1.6200000000000001e-65 or 4.2e-63 < c Initial program 90.7%
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 70.3%
+-commutative70.3%
Simplified70.3%
if -1.6200000000000001e-65 < c < 4.2e-63Initial program 94.4%
Taylor expanded in b around inf 83.4%
associate-*r/83.4%
metadata-eval83.4%
Simplified83.4%
Final simplification75.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -4.7e-169)
1.0
(if (<= c 9.2e-66)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= c 2.7e+41)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(/ x (* y (exp (* c 1.6666666666666667))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -4.7e-169) {
tmp = 1.0;
} else if (c <= 9.2e-66) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (c <= 2.7e+41) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else {
tmp = x / (y * exp((c * 1.6666666666666667)));
}
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 <= (-4.7d-169)) then
tmp = 1.0d0
else if (c <= 9.2d-66) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (c <= 2.7d+41) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else
tmp = x / (y * exp((c * 1.6666666666666667d0)))
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 <= -4.7e-169) {
tmp = 1.0;
} else if (c <= 9.2e-66) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (c <= 2.7e+41) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else {
tmp = x / (y * Math.exp((c * 1.6666666666666667)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -4.7e-169: tmp = 1.0 elif c <= 9.2e-66: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif c <= 2.7e+41: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) else: tmp = x / (y * math.exp((c * 1.6666666666666667))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -4.7e-169) tmp = 1.0; elseif (c <= 9.2e-66) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (c <= 2.7e+41) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); else tmp = Float64(x / Float64(y * exp(Float64(c * 1.6666666666666667)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -4.7e-169) tmp = 1.0; elseif (c <= 9.2e-66) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (c <= 2.7e+41) tmp = x / (x + (y * exp((2.0 * (a * c))))); else tmp = x / (y * exp((c * 1.6666666666666667))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -4.7e-169], 1.0, If[LessEqual[c, 9.2e-66], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.7e+41], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4.7 \cdot 10^{-169}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 9.2 \cdot 10^{-66}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;c \leq 2.7 \cdot 10^{+41}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if c < -4.6999999999999999e-169Initial program 90.5%
Simplified92.7%
Taylor expanded in x around inf 63.0%
if -4.6999999999999999e-169 < c < 9.19999999999999967e-66Initial program 95.2%
Taylor expanded in b around inf 85.7%
associate-*r/85.7%
metadata-eval85.7%
Simplified85.7%
Taylor expanded in t around inf 73.1%
mul-1-neg73.1%
+-commutative73.1%
distribute-rgt-neg-in73.1%
+-commutative73.1%
distribute-neg-in73.1%
unsub-neg73.1%
metadata-eval73.1%
Simplified73.1%
Taylor expanded in a around 0 67.8%
*-commutative67.8%
Simplified67.8%
if 9.19999999999999967e-66 < c < 2.7e41Initial program 85.7%
Taylor expanded in c around inf 72.3%
associate--l+72.3%
associate-*r/72.3%
metadata-eval72.3%
Simplified72.3%
Taylor expanded in a around inf 67.7%
if 2.7e41 < c Initial program 93.1%
Taylor expanded in c around inf 93.3%
associate--l+93.3%
associate-*r/93.3%
metadata-eval93.3%
Simplified93.3%
Taylor expanded in t around inf 74.9%
+-commutative74.9%
Simplified74.9%
Taylor expanded in a around 0 73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in x around 0 73.3%
Final simplification67.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -1e-37)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= t 2.7e-18)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(/ x (+ x (* y (exp (* 2.0 (* c (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1e-37) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (t <= 2.7e-18) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-1d-37)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (t <= 2.7d-18) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * (c * (a + 0.8333333333333334d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1e-37) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (t <= 2.7e-18) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -1e-37: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif t <= 2.7e-18: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * (a + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -1e-37) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (t <= 2.7e-18) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -1e-37) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (t <= 2.7e-18) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); else tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -1e-37], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.7e-18], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{-37}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-18}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if t < -1.00000000000000007e-37Initial program 88.2%
Taylor expanded in c around inf 83.1%
associate--l+83.1%
associate-*r/83.1%
metadata-eval83.1%
Simplified83.1%
Taylor expanded in a around inf 83.1%
if -1.00000000000000007e-37 < t < 2.69999999999999989e-18Initial program 89.2%
Taylor expanded in t around 0 71.1%
Taylor expanded in z around 0 71.7%
if 2.69999999999999989e-18 < t Initial program 96.4%
Taylor expanded in c around inf 74.7%
associate--l+74.7%
associate-*r/74.7%
metadata-eval74.7%
Simplified74.7%
Taylor expanded in t around inf 73.8%
+-commutative73.8%
Simplified73.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -1.26e-40)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= t 2e-18)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(/ x (+ x (* y (exp (* c 1.6666666666666667))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1.26e-40) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (t <= 2e-18) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
}
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.26d-40)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (t <= 2d-18) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
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.26e-40) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (t <= 2e-18) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -1.26e-40: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif t <= 2e-18: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) else: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -1.26e-40) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (t <= 2e-18) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -1.26e-40) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (t <= 2e-18) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); else tmp = x / (x + (y * exp((c * 1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -1.26e-40], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e-18], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.26 \cdot 10^{-40}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-18}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if t < -1.26e-40Initial program 88.2%
Taylor expanded in c around inf 83.1%
associate--l+83.1%
associate-*r/83.1%
metadata-eval83.1%
Simplified83.1%
Taylor expanded in a around inf 83.1%
if -1.26e-40 < t < 2.0000000000000001e-18Initial program 89.1%
Taylor expanded in t around 0 71.6%
Taylor expanded in z around 0 72.2%
if 2.0000000000000001e-18 < t Initial program 96.4%
Taylor expanded in c around inf 74.1%
associate--l+74.1%
associate-*r/74.1%
metadata-eval74.1%
Simplified74.1%
Taylor expanded in t around inf 73.2%
+-commutative73.2%
Simplified73.2%
Taylor expanded in a around 0 65.3%
*-commutative65.3%
Simplified65.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -5.5e-169)
1.0
(if (<= c 1.9e-108)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= c 0.00062) 1.0 (/ x (* y (exp (* c 1.6666666666666667))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -5.5e-169) {
tmp = 1.0;
} else if (c <= 1.9e-108) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (c <= 0.00062) {
tmp = 1.0;
} else {
tmp = x / (y * exp((c * 1.6666666666666667)));
}
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.5d-169)) then
tmp = 1.0d0
else if (c <= 1.9d-108) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (c <= 0.00062d0) then
tmp = 1.0d0
else
tmp = x / (y * exp((c * 1.6666666666666667d0)))
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.5e-169) {
tmp = 1.0;
} else if (c <= 1.9e-108) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (c <= 0.00062) {
tmp = 1.0;
} else {
tmp = x / (y * Math.exp((c * 1.6666666666666667)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -5.5e-169: tmp = 1.0 elif c <= 1.9e-108: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif c <= 0.00062: tmp = 1.0 else: tmp = x / (y * math.exp((c * 1.6666666666666667))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -5.5e-169) tmp = 1.0; elseif (c <= 1.9e-108) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (c <= 0.00062) tmp = 1.0; else tmp = Float64(x / Float64(y * exp(Float64(c * 1.6666666666666667)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -5.5e-169) tmp = 1.0; elseif (c <= 1.9e-108) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (c <= 0.00062) tmp = 1.0; else tmp = x / (y * exp((c * 1.6666666666666667))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -5.5e-169], 1.0, If[LessEqual[c, 1.9e-108], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 0.00062], 1.0, N[(x / N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -5.5 \cdot 10^{-169}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.9 \cdot 10^{-108}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;c \leq 0.00062:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if c < -5.4999999999999994e-169 or 1.89999999999999987e-108 < c < 6.2e-4Initial program 90.9%
Simplified92.6%
Taylor expanded in x around inf 62.2%
if -5.4999999999999994e-169 < c < 1.89999999999999987e-108Initial program 94.5%
Taylor expanded in b around inf 84.9%
associate-*r/84.9%
metadata-eval84.9%
Simplified84.9%
Taylor expanded in t around inf 74.4%
mul-1-neg74.4%
+-commutative74.4%
distribute-rgt-neg-in74.4%
+-commutative74.4%
distribute-neg-in74.4%
unsub-neg74.4%
metadata-eval74.4%
Simplified74.4%
Taylor expanded in a around 0 69.6%
*-commutative69.6%
Simplified69.6%
if 6.2e-4 < c Initial program 92.1%
Taylor expanded in c around inf 90.8%
associate--l+90.8%
associate-*r/90.8%
metadata-eval90.8%
Simplified90.8%
Taylor expanded in t around inf 73.9%
+-commutative73.9%
Simplified73.9%
Taylor expanded in a around 0 70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in x around 0 70.8%
Final simplification66.4%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 0.00065) 1.0 (/ x (* y (exp (* c 1.6666666666666667))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 0.00065) {
tmp = 1.0;
} else {
tmp = x / (y * exp((c * 1.6666666666666667)));
}
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 <= 0.00065d0) then
tmp = 1.0d0
else
tmp = x / (y * exp((c * 1.6666666666666667d0)))
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 <= 0.00065) {
tmp = 1.0;
} else {
tmp = x / (y * Math.exp((c * 1.6666666666666667)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 0.00065: tmp = 1.0 else: tmp = x / (y * math.exp((c * 1.6666666666666667))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 0.00065) tmp = 1.0; else tmp = Float64(x / Float64(y * exp(Float64(c * 1.6666666666666667)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 0.00065) tmp = 1.0; else tmp = x / (y * exp((c * 1.6666666666666667))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 0.00065], 1.0, N[(x / N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 0.00065:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if c < 6.4999999999999997e-4Initial program 92.3%
Simplified94.4%
Taylor expanded in x around inf 58.2%
if 6.4999999999999997e-4 < c Initial program 92.1%
Taylor expanded in c around inf 90.8%
associate--l+90.8%
associate-*r/90.8%
metadata-eval90.8%
Simplified90.8%
Taylor expanded in t around inf 73.9%
+-commutative73.9%
Simplified73.9%
Taylor expanded in a around 0 70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in x around 0 70.8%
Final simplification61.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c 8e+59)
1.0
(/
x
(-
x
(*
y
(-
-1.0
(*
c
(+
1.6666666666666667
(* c (+ 1.3888888888888888 (* c 0.7716049382716049)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 8e+59) {
tmp = 1.0;
} else {
tmp = x / (x - (y * (-1.0 - (c * (1.6666666666666667 + (c * (1.3888888888888888 + (c * 0.7716049382716049))))))));
}
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 <= 8d+59) then
tmp = 1.0d0
else
tmp = x / (x - (y * ((-1.0d0) - (c * (1.6666666666666667d0 + (c * (1.3888888888888888d0 + (c * 0.7716049382716049d0))))))))
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 <= 8e+59) {
tmp = 1.0;
} else {
tmp = x / (x - (y * (-1.0 - (c * (1.6666666666666667 + (c * (1.3888888888888888 + (c * 0.7716049382716049))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 8e+59: tmp = 1.0 else: tmp = x / (x - (y * (-1.0 - (c * (1.6666666666666667 + (c * (1.3888888888888888 + (c * 0.7716049382716049)))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 8e+59) tmp = 1.0; else tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(c * Float64(1.6666666666666667 + Float64(c * Float64(1.3888888888888888 + Float64(c * 0.7716049382716049))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 8e+59) tmp = 1.0; else tmp = x / (x - (y * (-1.0 - (c * (1.6666666666666667 + (c * (1.3888888888888888 + (c * 0.7716049382716049)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 8e+59], 1.0, N[(x / N[(x - N[(y * N[(-1.0 - N[(c * N[(1.6666666666666667 + N[(c * N[(1.3888888888888888 + N[(c * 0.7716049382716049), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 8 \cdot 10^{+59}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - c \cdot \left(1.6666666666666667 + c \cdot \left(1.3888888888888888 + c \cdot 0.7716049382716049\right)\right)\right)}\\
\end{array}
\end{array}
if c < 7.99999999999999977e59Initial program 92.3%
Simplified93.8%
Taylor expanded in x around inf 57.0%
if 7.99999999999999977e59 < c Initial program 91.7%
Taylor expanded in c around inf 91.9%
associate--l+91.9%
associate-*r/91.9%
metadata-eval91.9%
Simplified91.9%
Taylor expanded in t around inf 77.8%
+-commutative77.8%
Simplified77.8%
Taylor expanded in a around 0 75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in c around 0 73.8%
*-commutative73.8%
Simplified73.8%
Final simplification60.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c 3.7e+59)
1.0
(/
x
(+
x
(* y (+ (* c (+ 1.6666666666666667 (* c 1.3888888888888888))) 1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 3.7e+59) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 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 (c <= 3.7d+59) then
tmp = 1.0d0
else
tmp = x / (x + (y * ((c * (1.6666666666666667d0 + (c * 1.3888888888888888d0))) + 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 (c <= 3.7e+59) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 3.7e+59: tmp = 1.0 else: tmp = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 3.7e+59) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(c * Float64(1.6666666666666667 + Float64(c * 1.3888888888888888))) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 3.7e+59) tmp = 1.0; else tmp = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 3.7e+59], 1.0, N[(x / N[(x + N[(y * N[(N[(c * N[(1.6666666666666667 + N[(c * 1.3888888888888888), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 3.7 \cdot 10^{+59}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(c \cdot \left(1.6666666666666667 + c \cdot 1.3888888888888888\right) + 1\right)}\\
\end{array}
\end{array}
if c < 3.69999999999999997e59Initial program 92.3%
Simplified93.8%
Taylor expanded in x around inf 57.0%
if 3.69999999999999997e59 < c Initial program 91.7%
Taylor expanded in c around inf 91.9%
associate--l+91.9%
associate-*r/91.9%
metadata-eval91.9%
Simplified91.9%
Taylor expanded in t around inf 77.8%
+-commutative77.8%
Simplified77.8%
Taylor expanded in a around 0 75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in c around 0 68.5%
*-commutative68.5%
Simplified68.5%
Final simplification59.2%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 1.08e+60) 1.0 (/ x (- x (* y (- -1.0 (* c (+ 1.6666666666666667 (* a 2.0)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.08e+60) {
tmp = 1.0;
} else {
tmp = x / (x - (y * (-1.0 - (c * (1.6666666666666667 + (a * 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 (c <= 1.08d+60) then
tmp = 1.0d0
else
tmp = x / (x - (y * ((-1.0d0) - (c * (1.6666666666666667d0 + (a * 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 (c <= 1.08e+60) {
tmp = 1.0;
} else {
tmp = x / (x - (y * (-1.0 - (c * (1.6666666666666667 + (a * 2.0))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 1.08e+60: tmp = 1.0 else: tmp = x / (x - (y * (-1.0 - (c * (1.6666666666666667 + (a * 2.0)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 1.08e+60) tmp = 1.0; else tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(c * Float64(1.6666666666666667 + Float64(a * 2.0))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 1.08e+60) tmp = 1.0; else tmp = x / (x - (y * (-1.0 - (c * (1.6666666666666667 + (a * 2.0)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 1.08e+60], 1.0, N[(x / N[(x - N[(y * N[(-1.0 - N[(c * N[(1.6666666666666667 + N[(a * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 1.08 \cdot 10^{+60}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - c \cdot \left(1.6666666666666667 + a \cdot 2\right)\right)}\\
\end{array}
\end{array}
if c < 1.08e60Initial program 92.3%
Simplified93.8%
Taylor expanded in x around inf 57.0%
if 1.08e60 < c Initial program 91.7%
Taylor expanded in c around inf 91.9%
associate--l+91.9%
associate-*r/91.9%
metadata-eval91.9%
Simplified91.9%
Taylor expanded in t around inf 77.8%
+-commutative77.8%
Simplified77.8%
Taylor expanded in c around 0 63.1%
+-commutative63.1%
*-commutative63.1%
associate-*l*63.1%
*-commutative63.1%
+-commutative63.1%
distribute-rgt-in63.1%
metadata-eval63.1%
Simplified63.1%
Final simplification58.2%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 9e+62) 1.0 (/ x (* y (+ (* (+ a 0.8333333333333334) (* c 2.0)) 1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 9e+62) {
tmp = 1.0;
} else {
tmp = x / (y * (((a + 0.8333333333333334) * (c * 2.0)) + 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 (c <= 9d+62) then
tmp = 1.0d0
else
tmp = x / (y * (((a + 0.8333333333333334d0) * (c * 2.0d0)) + 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 (c <= 9e+62) {
tmp = 1.0;
} else {
tmp = x / (y * (((a + 0.8333333333333334) * (c * 2.0)) + 1.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 9e+62: tmp = 1.0 else: tmp = x / (y * (((a + 0.8333333333333334) * (c * 2.0)) + 1.0)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 9e+62) tmp = 1.0; else tmp = Float64(x / Float64(y * Float64(Float64(Float64(a + 0.8333333333333334) * Float64(c * 2.0)) + 1.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 9e+62) tmp = 1.0; else tmp = x / (y * (((a + 0.8333333333333334) * (c * 2.0)) + 1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 9e+62], 1.0, N[(x / N[(y * N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c * 2.0), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 9 \cdot 10^{+62}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c \cdot 2\right) + 1\right)}\\
\end{array}
\end{array}
if c < 8.99999999999999997e62Initial program 92.3%
Simplified93.8%
Taylor expanded in x around inf 57.0%
if 8.99999999999999997e62 < c Initial program 91.7%
Taylor expanded in c around inf 91.9%
associate--l+91.9%
associate-*r/91.9%
metadata-eval91.9%
Simplified91.9%
Taylor expanded in c around 0 58.9%
associate-*r*58.9%
associate-*r/58.9%
metadata-eval58.9%
+-commutative58.9%
associate--l+58.9%
sub-neg58.9%
distribute-neg-frac58.9%
metadata-eval58.9%
Simplified58.9%
Taylor expanded in y around inf 58.9%
associate-/r*49.5%
associate-*r*49.5%
*-commutative49.5%
associate--l+49.5%
associate-*r/49.5%
metadata-eval49.5%
Simplified49.5%
Taylor expanded in t around inf 57.0%
associate-*r*57.0%
Simplified57.0%
Final simplification57.0%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 8.6e-19) 1.0 (/ x (+ x (* (* a 2.0) (* c y))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 8.6e-19) {
tmp = 1.0;
} else {
tmp = x / (x + ((a * 2.0) * (c * y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 8.6d-19) then
tmp = 1.0d0
else
tmp = x / (x + ((a * 2.0d0) * (c * y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 8.6e-19) {
tmp = 1.0;
} else {
tmp = x / (x + ((a * 2.0) * (c * y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 8.6e-19: tmp = 1.0 else: tmp = x / (x + ((a * 2.0) * (c * y))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 8.6e-19) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(Float64(a * 2.0) * Float64(c * y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 8.6e-19) tmp = 1.0; else tmp = x / (x + ((a * 2.0) * (c * y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 8.6e-19], 1.0, N[(x / N[(x + N[(N[(a * 2.0), $MachinePrecision] * N[(c * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 8.6 \cdot 10^{-19}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(a \cdot 2\right) \cdot \left(c \cdot y\right)}\\
\end{array}
\end{array}
if c < 8.6e-19Initial program 92.6%
Simplified94.8%
Taylor expanded in x around inf 58.9%
if 8.6e-19 < c Initial program 91.0%
Taylor expanded in c around inf 89.9%
associate--l+89.9%
associate-*r/89.9%
metadata-eval89.9%
Simplified89.9%
Taylor expanded in a around inf 65.3%
Taylor expanded in a around 0 47.0%
associate-*r*47.0%
*-commutative47.0%
*-commutative47.0%
Simplified47.0%
Taylor expanded in c around inf 50.4%
associate-*r*50.4%
*-commutative50.4%
*-commutative50.4%
Simplified50.4%
Final simplification56.7%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 6.2e+63) 1.0 (/ x (- x (* y (- -1.0 (* c 1.6666666666666667)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 6.2e+63) {
tmp = 1.0;
} else {
tmp = x / (x - (y * (-1.0 - (c * 1.6666666666666667))));
}
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 <= 6.2d+63) then
tmp = 1.0d0
else
tmp = x / (x - (y * ((-1.0d0) - (c * 1.6666666666666667d0))))
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 <= 6.2e+63) {
tmp = 1.0;
} else {
tmp = x / (x - (y * (-1.0 - (c * 1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 6.2e+63: tmp = 1.0 else: tmp = x / (x - (y * (-1.0 - (c * 1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 6.2e+63) tmp = 1.0; else tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(c * 1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 6.2e+63) tmp = 1.0; else tmp = x / (x - (y * (-1.0 - (c * 1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 6.2e+63], 1.0, N[(x / N[(x - N[(y * N[(-1.0 - N[(c * 1.6666666666666667), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 6.2 \cdot 10^{+63}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - c \cdot 1.6666666666666667\right)}\\
\end{array}
\end{array}
if c < 6.2000000000000001e63Initial program 92.3%
Simplified93.8%
Taylor expanded in x around inf 57.0%
if 6.2000000000000001e63 < c Initial program 91.7%
Taylor expanded in c around inf 91.9%
associate--l+91.9%
associate-*r/91.9%
metadata-eval91.9%
Simplified91.9%
Taylor expanded in t around inf 77.8%
+-commutative77.8%
Simplified77.8%
Taylor expanded in a around 0 75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in c around 0 50.2%
Final simplification55.8%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 2e+170) 1.0 (* -0.75 (* t (/ x (* c y))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 2e+170) {
tmp = 1.0;
} else {
tmp = -0.75 * (t * (x / (c * y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 2d+170) then
tmp = 1.0d0
else
tmp = (-0.75d0) * (t * (x / (c * y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 2e+170) {
tmp = 1.0;
} else {
tmp = -0.75 * (t * (x / (c * y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 2e+170: tmp = 1.0 else: tmp = -0.75 * (t * (x / (c * y))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 2e+170) tmp = 1.0; else tmp = Float64(-0.75 * Float64(t * Float64(x / Float64(c * y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 2e+170) tmp = 1.0; else tmp = -0.75 * (t * (x / (c * y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 2e+170], 1.0, N[(-0.75 * N[(t * N[(x / N[(c * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 2 \cdot 10^{+170}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;-0.75 \cdot \left(t \cdot \frac{x}{c \cdot y}\right)\\
\end{array}
\end{array}
if c < 2.00000000000000007e170Initial program 92.1%
Simplified93.5%
Taylor expanded in x around inf 55.1%
if 2.00000000000000007e170 < c Initial program 93.1%
Taylor expanded in c around inf 93.3%
associate--l+93.3%
associate-*r/93.3%
metadata-eval93.3%
Simplified93.3%
Taylor expanded in c around 0 68.5%
associate-*r*68.5%
associate-*r/68.5%
metadata-eval68.5%
+-commutative68.5%
associate--l+68.5%
sub-neg68.5%
distribute-neg-frac68.5%
metadata-eval68.5%
Simplified68.5%
Taylor expanded in t around 0 53.2%
associate-/l*56.4%
Simplified56.4%
(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 92.2%
Simplified93.8%
Taylor expanded in x around inf 51.5%
(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 2024170
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:alt
(! :herbie-platform default (if (< t -2118326644891581/100000000000000000000000000000000000000000000000000000000000000000) (/ x (+ x (* y (exp (* 2 (- (+ (* a c) (* 4166666666666667/5000000000000000 c)) (* a b))))))) (if (< t 5196588770651547/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ x (+ x (* y (exp (* 2 (/ (- (* (* z (sqrt (+ t a))) (* (* 3 t) (- a (/ 5 6)))) (* (- (* (+ (/ 5 6) a) (* 3 t)) 2) (* (- a (/ 5 6)) (* (- b c) t)))) (* (* (* t t) 3) (- a (/ 5 6))))))))) (/ x (+ x (* y (exp (* 2 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5 6)) (/ 2 (* t 3)))))))))))))
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))