
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(*
x
(/
1.0
(fma
y
(pow (exp 2.0) (* a (- (+ c (* (sqrt (/ 1.0 a)) (/ z t))) b)))
x))))))
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 * (1.0 / fma(y, pow(exp(2.0), (a * ((c + (sqrt((1.0 / a)) * (z / t))) - b))), x));
}
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(1.0 / fma(y, (exp(2.0) ^ Float64(a * Float64(Float64(c + Float64(sqrt(Float64(1.0 / a)) * Float64(z / t))) - b))), x))); end return 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[(1.0 / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(a * N[(N[(c + N[(N[Sqrt[N[(1.0 / a), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $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}:\\
\;\;\;\;x \cdot \frac{1}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(a \cdot \left(\left(c + \sqrt{\frac{1}{a}} \cdot \frac{z}{t}\right) - b\right)\right)}, x\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < +inf.0Initial program 99.2%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 0.0%
associate-*r/11.1%
associate-+r-11.1%
metadata-eval11.1%
add-log-exp11.1%
metadata-eval11.1%
associate-+r-11.1%
metadata-eval11.1%
Applied egg-rr11.1%
div-inv11.1%
+-commutative11.1%
fma-define11.1%
Applied egg-rr11.1%
Taylor expanded in a around inf 100.0%
Final simplification99.2%
(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 (* a (- (+ c (* (sqrt (/ 1.0 a)) (/ z t))) b))))))))))
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 * (a * ((c + (sqrt((1.0 / a)) * (z / t))) - b))))));
}
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 * (a * ((c + (Math.sqrt((1.0 / a)) * (z / t))) - b))))));
}
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 * (a * ((c + (math.sqrt((1.0 / a)) * (z / t))) - b)))))) 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(a * Float64(Float64(c + Float64(sqrt(Float64(1.0 / a)) * Float64(z / t))) - b))))))); 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 * (a * ((c + (sqrt((1.0 / a)) * (z / t))) - b)))))); 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[(a * N[(N[(c + N[(N[Sqrt[N[(1.0 / a), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]), $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 \left(a \cdot \left(\left(c + \sqrt{\frac{1}{a}} \cdot \frac{z}{t}\right) - b\right)\right)}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < +inf.0Initial program 99.2%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 0.0%
Taylor expanded in a around inf 100.0%
Final simplification99.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -2e-137)
(/
x
(+ x (* y (exp (* 2.0 (* a (- (+ c (* (sqrt (/ 1.0 a)) (/ z t))) b)))))))
(if (<= t 9e-153)
(/
x
(+
x
(*
y
(exp
(* 2.0 (/ (- (* z (sqrt a)) (* (- b c) -0.6666666666666666)) t))))))
(if (<= t 4.6e-23)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
(- b c)
(- (+ -0.8333333333333334 (/ 0.6666666666666666 t)) a)))))))
(/
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 <= -2e-137) {
tmp = x / (x + (y * exp((2.0 * (a * ((c + (sqrt((1.0 / a)) * (z / t))) - b))))));
} else if (t <= 9e-153) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - ((b - c) * -0.6666666666666666)) / t)))));
} else if (t <= 4.6e-23) {
tmp = x / (x + (y * exp((2.0 * ((b - c) * ((-0.8333333333333334 + (0.6666666666666666 / t)) - a))))));
} 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 <= (-2d-137)) then
tmp = x / (x + (y * exp((2.0d0 * (a * ((c + (sqrt((1.0d0 / a)) * (z / t))) - b))))))
else if (t <= 9d-153) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) - ((b - c) * (-0.6666666666666666d0))) / t)))))
else if (t <= 4.6d-23) then
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * (((-0.8333333333333334d0) + (0.6666666666666666d0 / t)) - a))))))
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 <= -2e-137) {
tmp = x / (x + (y * Math.exp((2.0 * (a * ((c + (Math.sqrt((1.0 / a)) * (z / t))) - b))))));
} else if (t <= 9e-153) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) - ((b - c) * -0.6666666666666666)) / t)))));
} else if (t <= 4.6e-23) {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * ((-0.8333333333333334 + (0.6666666666666666 / t)) - a))))));
} 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 <= -2e-137: tmp = x / (x + (y * math.exp((2.0 * (a * ((c + (math.sqrt((1.0 / a)) * (z / t))) - b)))))) elif t <= 9e-153: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) - ((b - c) * -0.6666666666666666)) / t))))) elif t <= 4.6e-23: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * ((-0.8333333333333334 + (0.6666666666666666 / t)) - a)))))) 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 <= -2e-137) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(Float64(c + Float64(sqrt(Float64(1.0 / a)) * Float64(z / t))) - b))))))); elseif (t <= 9e-153) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) - Float64(Float64(b - c) * -0.6666666666666666)) / t)))))); elseif (t <= 4.6e-23) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(Float64(-0.8333333333333334 + Float64(0.6666666666666666 / t)) - a))))))); 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 <= -2e-137) tmp = x / (x + (y * exp((2.0 * (a * ((c + (sqrt((1.0 / a)) * (z / t))) - b)))))); elseif (t <= 9e-153) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - ((b - c) * -0.6666666666666666)) / t))))); elseif (t <= 4.6e-23) tmp = x / (x + (y * exp((2.0 * ((b - c) * ((-0.8333333333333334 + (0.6666666666666666 / t)) - a)))))); 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, -2e-137], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(N[(c + N[(N[Sqrt[N[(1.0 / a), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9e-153], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * -0.6666666666666666), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.6e-23], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(N[(-0.8333333333333334 + N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] - a), $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 \cdot 10^{-137}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(\left(c + \sqrt{\frac{1}{a}} \cdot \frac{z}{t}\right) - b\right)\right)}}\\
\mathbf{elif}\;t \leq 9 \cdot 10^{-153}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} - \left(b - c\right) \cdot -0.6666666666666666}{t}}}\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{-23}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(\left(-0.8333333333333334 + \frac{0.6666666666666666}{t}\right) - a\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 < -1.99999999999999996e-137Initial program 92.3%
Taylor expanded in a around inf 100.0%
if -1.99999999999999996e-137 < t < 9e-153Initial program 92.0%
Taylor expanded in t around 0 96.5%
if 9e-153 < t < 4.6000000000000002e-23Initial program 97.4%
Taylor expanded in z around 0 89.8%
mul-1-neg89.8%
distribute-rgt-neg-in89.8%
+-commutative89.8%
associate-*r/89.8%
metadata-eval89.8%
associate-+r-89.8%
+-commutative89.8%
distribute-neg-in89.8%
sub-neg89.8%
metadata-eval89.8%
associate-*r/89.8%
distribute-neg-in89.8%
metadata-eval89.8%
associate-*r/89.8%
metadata-eval89.8%
distribute-neg-frac289.8%
distribute-frac-neg289.8%
remove-double-neg89.8%
Simplified89.8%
if 4.6000000000000002e-23 < t Initial program 98.3%
Taylor expanded in t around inf 98.3%
Final simplification96.8%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= z -1e+183) (not (<= z 7.1e+121)))
(/ x (+ x (* y (exp (* 2.0 (* (sqrt (+ t a)) (/ z t)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
(- b c)
(- (+ -0.8333333333333334 (/ 0.6666666666666666 t)) a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -1e+183) || !(z <= 7.1e+121)) {
tmp = x / (x + (y * exp((2.0 * (sqrt((t + a)) * (z / t))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * ((-0.8333333333333334 + (0.6666666666666666 / t)) - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((z <= (-1d+183)) .or. (.not. (z <= 7.1d+121))) then
tmp = x / (x + (y * exp((2.0d0 * (sqrt((t + a)) * (z / t))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * (((-0.8333333333333334d0) + (0.6666666666666666d0 / t)) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -1e+183) || !(z <= 7.1e+121)) {
tmp = x / (x + (y * Math.exp((2.0 * (Math.sqrt((t + a)) * (z / t))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * ((-0.8333333333333334 + (0.6666666666666666 / t)) - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (z <= -1e+183) or not (z <= 7.1e+121): tmp = x / (x + (y * math.exp((2.0 * (math.sqrt((t + a)) * (z / t)))))) else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * ((-0.8333333333333334 + (0.6666666666666666 / t)) - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -1e+183) || !(z <= 7.1e+121)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(sqrt(Float64(t + a)) * Float64(z / t))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(Float64(-0.8333333333333334 + Float64(0.6666666666666666 / t)) - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((z <= -1e+183) || ~((z <= 7.1e+121))) tmp = x / (x + (y * exp((2.0 * (sqrt((t + a)) * (z / t)))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * ((-0.8333333333333334 + (0.6666666666666666 / t)) - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -1e+183], N[Not[LessEqual[z, 7.1e+121]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(N[(-0.8333333333333334 + N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{+183} \lor \neg \left(z \leq 7.1 \cdot 10^{+121}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\sqrt{t + a} \cdot \frac{z}{t}\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(\left(-0.8333333333333334 + \frac{0.6666666666666666}{t}\right) - a\right)\right)}}\\
\end{array}
\end{array}
if z < -9.99999999999999947e182 or 7.10000000000000023e121 < z Initial program 86.4%
associate-*r/90.4%
associate-+r-90.4%
metadata-eval90.4%
add-log-exp90.4%
metadata-eval90.4%
associate-+r-90.4%
metadata-eval90.4%
Applied egg-rr90.4%
Taylor expanded in z around inf 90.7%
if -9.99999999999999947e182 < z < 7.10000000000000023e121Initial program 99.4%
Taylor expanded in z around 0 96.5%
mul-1-neg96.5%
distribute-rgt-neg-in96.5%
+-commutative96.5%
associate-*r/96.5%
metadata-eval96.5%
associate-+r-96.5%
+-commutative96.5%
distribute-neg-in96.5%
sub-neg96.5%
metadata-eval96.5%
associate-*r/96.5%
distribute-neg-in96.5%
metadata-eval96.5%
associate-*r/96.5%
metadata-eval96.5%
distribute-neg-frac296.5%
distribute-frac-neg296.5%
remove-double-neg96.5%
Simplified96.5%
Final simplification94.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= z -1e+183)
1.0
(if (<= z 5.3e+126)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
(- b c)
(- (+ -0.8333333333333334 (/ 0.6666666666666666 t)) a)))))))
(/ x (+ x (* y (exp (* 2.0 (* (/ z t) (sqrt a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -1e+183) {
tmp = 1.0;
} else if (z <= 5.3e+126) {
tmp = x / (x + (y * exp((2.0 * ((b - c) * ((-0.8333333333333334 + (0.6666666666666666 / t)) - a))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((z / t) * sqrt(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 <= (-1d+183)) then
tmp = 1.0d0
else if (z <= 5.3d+126) then
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * (((-0.8333333333333334d0) + (0.6666666666666666d0 / t)) - a))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((z / t) * sqrt(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 <= -1e+183) {
tmp = 1.0;
} else if (z <= 5.3e+126) {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * ((-0.8333333333333334 + (0.6666666666666666 / t)) - a))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((z / t) * Math.sqrt(a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if z <= -1e+183: tmp = 1.0 elif z <= 5.3e+126: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * ((-0.8333333333333334 + (0.6666666666666666 / t)) - a)))))) else: tmp = x / (x + (y * math.exp((2.0 * ((z / t) * math.sqrt(a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (z <= -1e+183) tmp = 1.0; elseif (z <= 5.3e+126) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(Float64(-0.8333333333333334 + Float64(0.6666666666666666 / t)) - a))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z / t) * sqrt(a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (z <= -1e+183) tmp = 1.0; elseif (z <= 5.3e+126) tmp = x / (x + (y * exp((2.0 * ((b - c) * ((-0.8333333333333334 + (0.6666666666666666 / t)) - a)))))); else tmp = x / (x + (y * exp((2.0 * ((z / t) * sqrt(a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -1e+183], 1.0, If[LessEqual[z, 5.3e+126], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(N[(-0.8333333333333334 + N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z / t), $MachinePrecision] * N[Sqrt[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{+183}:\\
\;\;\;\;1\\
\mathbf{elif}\;z \leq 5.3 \cdot 10^{+126}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(\left(-0.8333333333333334 + \frac{0.6666666666666666}{t}\right) - a\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z}{t} \cdot \sqrt{a}\right)}}\\
\end{array}
\end{array}
if z < -9.99999999999999947e182Initial program 86.7%
associate-*r/90.0%
associate-+r-90.0%
metadata-eval90.0%
add-log-exp90.0%
metadata-eval90.0%
associate-+r-90.0%
metadata-eval90.0%
Applied egg-rr90.0%
Taylor expanded in x around inf 80.6%
if -9.99999999999999947e182 < z < 5.30000000000000028e126Initial program 99.4%
Taylor expanded in z around 0 96.0%
mul-1-neg96.0%
distribute-rgt-neg-in96.0%
+-commutative96.0%
associate-*r/96.0%
metadata-eval96.0%
associate-+r-96.0%
+-commutative96.0%
distribute-neg-in96.0%
sub-neg96.0%
metadata-eval96.0%
associate-*r/96.0%
distribute-neg-in96.0%
metadata-eval96.0%
associate-*r/96.0%
metadata-eval96.0%
distribute-neg-frac296.0%
distribute-frac-neg296.0%
remove-double-neg96.0%
Simplified96.0%
if 5.30000000000000028e126 < z Initial program 85.5%
Taylor expanded in a around inf 75.7%
Taylor expanded in a around 0 68.6%
Final simplification89.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= t -2e-182)
t_1
(if (<= t 1e-109)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 8.6e-63)
t_1
(if (<= t 0.3)
1.0
(if (<= t 3.8e+74)
t_1
(/
x
(+ x (* y (exp (* -2.0 (* b (+ a 0.8333333333333334))))))))))))))
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 - b))))));
double tmp;
if (t <= -2e-182) {
tmp = t_1;
} else if (t <= 1e-109) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 8.6e-63) {
tmp = t_1;
} else if (t <= 0.3) {
tmp = 1.0;
} else if (t <= 3.8e+74) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((-2.0 * (b * (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) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
if (t <= (-2d-182)) then
tmp = t_1
else if (t <= 1d-109) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 8.6d-63) then
tmp = t_1
else if (t <= 0.3d0) then
tmp = 1.0d0
else if (t <= 3.8d+74) then
tmp = t_1
else
tmp = x / (x + (y * exp(((-2.0d0) * (b * (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 t_1 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= -2e-182) {
tmp = t_1;
} else if (t <= 1e-109) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 8.6e-63) {
tmp = t_1;
} else if (t <= 0.3) {
tmp = 1.0;
} else if (t <= 3.8e+74) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((-2.0 * (b * (a + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) tmp = 0 if t <= -2e-182: tmp = t_1 elif t <= 1e-109: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 8.6e-63: tmp = t_1 elif t <= 0.3: tmp = 1.0 elif t <= 3.8e+74: tmp = t_1 else: tmp = x / (x + (y * math.exp((-2.0 * (b * (a + 0.8333333333333334)))))) 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 * Float64(c - b))))))) tmp = 0.0 if (t <= -2e-182) tmp = t_1; elseif (t <= 1e-109) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 8.6e-63) tmp = t_1; elseif (t <= 0.3) tmp = 1.0; elseif (t <= 3.8e+74) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))))))); 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 - b)))))); tmp = 0.0; if (t <= -2e-182) tmp = t_1; elseif (t <= 1e-109) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 8.6e-63) tmp = t_1; elseif (t <= 0.3) tmp = 1.0; elseif (t <= 3.8e+74) tmp = t_1; else tmp = x / (x + (y * exp((-2.0 * (b * (a + 0.8333333333333334)))))); 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 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2e-182], t$95$1, If[LessEqual[t, 1e-109], 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-63], t$95$1, If[LessEqual[t, 0.3], 1.0, If[LessEqual[t, 3.8e+74], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq -2 \cdot 10^{-182}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 10^{-109}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 8.6 \cdot 10^{-63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 0.3:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{+74}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if t < -2.0000000000000001e-182 or 9.9999999999999999e-110 < t < 8.5999999999999997e-63 or 0.299999999999999989 < t < 3.7999999999999998e74Initial program 92.8%
Taylor expanded in z around 0 81.6%
mul-1-neg81.6%
distribute-rgt-neg-in81.6%
+-commutative81.6%
associate-*r/81.6%
metadata-eval81.6%
associate-+r-81.6%
+-commutative81.6%
distribute-neg-in81.6%
sub-neg81.6%
metadata-eval81.6%
associate-*r/81.6%
distribute-neg-in81.6%
metadata-eval81.6%
associate-*r/81.6%
metadata-eval81.6%
distribute-neg-frac281.6%
distribute-frac-neg281.6%
remove-double-neg81.6%
Simplified81.6%
Taylor expanded in a around inf 81.6%
mul-1-neg81.6%
distribute-lft-neg-out81.6%
Simplified81.6%
if -2.0000000000000001e-182 < t < 9.9999999999999999e-110Initial program 95.6%
Taylor expanded in t around 0 87.9%
Taylor expanded in z around 0 82.1%
if 8.5999999999999997e-63 < t < 0.299999999999999989Initial program 100.0%
associate-*r/100.0%
associate-+r-100.0%
metadata-eval100.0%
add-log-exp100.0%
metadata-eval100.0%
associate-+r-100.0%
metadata-eval100.0%
Applied egg-rr100.0%
Taylor expanded in x around inf 73.1%
if 3.7999999999999998e74 < t Initial program 97.7%
Taylor expanded in b around inf 70.9%
associate-*r/70.9%
metadata-eval70.9%
+-commutative70.9%
Simplified70.9%
Taylor expanded in t around inf 70.9%
Final simplification77.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* -2.0 (* b (+ a 0.8333333333333334))))))))
(t_2 (/ x (+ (+ x y) (* 1.3333333333333333 (* y (/ (- b c) t)))))))
(if (<= t -1.6e-214)
t_1
(if (<= t 2.95e-267)
t_2
(if (<= t 7.6e-180)
1.0
(if (<= t 3.4e-121) t_2 (if (<= t 8.4e-13) 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 * (b * (a + 0.8333333333333334))))));
double t_2 = x / ((x + y) + (1.3333333333333333 * (y * ((b - c) / t))));
double tmp;
if (t <= -1.6e-214) {
tmp = t_1;
} else if (t <= 2.95e-267) {
tmp = t_2;
} else if (t <= 7.6e-180) {
tmp = 1.0;
} else if (t <= 3.4e-121) {
tmp = t_2;
} else if (t <= 8.4e-13) {
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) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp(((-2.0d0) * (b * (a + 0.8333333333333334d0))))))
t_2 = x / ((x + y) + (1.3333333333333333d0 * (y * ((b - c) / t))))
if (t <= (-1.6d-214)) then
tmp = t_1
else if (t <= 2.95d-267) then
tmp = t_2
else if (t <= 7.6d-180) then
tmp = 1.0d0
else if (t <= 3.4d-121) then
tmp = t_2
else if (t <= 8.4d-13) 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 * (b * (a + 0.8333333333333334))))));
double t_2 = x / ((x + y) + (1.3333333333333333 * (y * ((b - c) / t))));
double tmp;
if (t <= -1.6e-214) {
tmp = t_1;
} else if (t <= 2.95e-267) {
tmp = t_2;
} else if (t <= 7.6e-180) {
tmp = 1.0;
} else if (t <= 3.4e-121) {
tmp = t_2;
} else if (t <= 8.4e-13) {
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 * (b * (a + 0.8333333333333334)))))) t_2 = x / ((x + y) + (1.3333333333333333 * (y * ((b - c) / t)))) tmp = 0 if t <= -1.6e-214: tmp = t_1 elif t <= 2.95e-267: tmp = t_2 elif t <= 7.6e-180: tmp = 1.0 elif t <= 3.4e-121: tmp = t_2 elif t <= 8.4e-13: 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(b * Float64(a + 0.8333333333333334))))))) t_2 = Float64(x / Float64(Float64(x + y) + Float64(1.3333333333333333 * Float64(y * Float64(Float64(b - c) / t))))) tmp = 0.0 if (t <= -1.6e-214) tmp = t_1; elseif (t <= 2.95e-267) tmp = t_2; elseif (t <= 7.6e-180) tmp = 1.0; elseif (t <= 3.4e-121) tmp = t_2; elseif (t <= 8.4e-13) 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 * (b * (a + 0.8333333333333334)))))); t_2 = x / ((x + y) + (1.3333333333333333 * (y * ((b - c) / t)))); tmp = 0.0; if (t <= -1.6e-214) tmp = t_1; elseif (t <= 2.95e-267) tmp = t_2; elseif (t <= 7.6e-180) tmp = 1.0; elseif (t <= 3.4e-121) tmp = t_2; elseif (t <= 8.4e-13) 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[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(N[(x + y), $MachinePrecision] + N[(1.3333333333333333 * N[(y * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.6e-214], t$95$1, If[LessEqual[t, 2.95e-267], t$95$2, If[LessEqual[t, 7.6e-180], 1.0, If[LessEqual[t, 3.4e-121], t$95$2, If[LessEqual[t, 8.4e-13], 1.0, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right)}}\\
t_2 := \frac{x}{\left(x + y\right) + 1.3333333333333333 \cdot \left(y \cdot \frac{b - c}{t}\right)}\\
\mathbf{if}\;t \leq -1.6 \cdot 10^{-214}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.95 \cdot 10^{-267}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 7.6 \cdot 10^{-180}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{-121}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 8.4 \cdot 10^{-13}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.60000000000000007e-214 or 8.39999999999999955e-13 < t Initial program 95.8%
Taylor expanded in b around inf 68.6%
associate-*r/68.6%
metadata-eval68.6%
+-commutative68.6%
Simplified68.6%
Taylor expanded in t around inf 69.2%
if -1.60000000000000007e-214 < t < 2.94999999999999987e-267 or 7.59999999999999999e-180 < t < 3.40000000000000001e-121Initial program 95.2%
Taylor expanded in t around 0 85.2%
Taylor expanded in t around inf 55.5%
Taylor expanded in z around 0 50.9%
associate-+r+50.9%
associate-/l*59.8%
Simplified59.8%
if 2.94999999999999987e-267 < t < 7.59999999999999999e-180 or 3.40000000000000001e-121 < t < 8.39999999999999955e-13Initial program 96.0%
associate-*r/96.0%
associate-+r-96.0%
metadata-eval96.0%
add-log-exp96.0%
metadata-eval96.0%
associate-+r-96.0%
metadata-eval96.0%
Applied egg-rr96.0%
Taylor expanded in x around inf 72.9%
Final simplification68.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
b
(- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))))
(if (<= b -4500.0)
t_1
(if (<= b -7.5e-85)
1.0
(if (<= b 3e-171)
(/ x (+ x (* y (exp (* 2.0 (* c (+ a 0.8333333333333334)))))))
(if (<= b 1.5e+37)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
double tmp;
if (b <= -4500.0) {
tmp = t_1;
} else if (b <= -7.5e-85) {
tmp = 1.0;
} else if (b <= 3e-171) {
tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334))))));
} else if (b <= 1.5e+37) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
if (b <= (-4500.0d0)) then
tmp = t_1
else if (b <= (-7.5d-85)) then
tmp = 1.0d0
else if (b <= 3d-171) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + 0.8333333333333334d0))))))
else if (b <= 1.5d+37) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
double tmp;
if (b <= -4500.0) {
tmp = t_1;
} else if (b <= -7.5e-85) {
tmp = 1.0;
} else if (b <= 3e-171) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + 0.8333333333333334))))));
} else if (b <= 1.5e+37) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) tmp = 0 if b <= -4500.0: tmp = t_1 elif b <= -7.5e-85: tmp = 1.0 elif b <= 3e-171: tmp = x / (x + (y * math.exp((2.0 * (c * (a + 0.8333333333333334)))))) elif b <= 1.5e+37: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))) tmp = 0.0 if (b <= -4500.0) tmp = t_1; elseif (b <= -7.5e-85) tmp = 1.0; elseif (b <= 3e-171) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))))))); elseif (b <= 1.5e+37) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); tmp = 0.0; if (b <= -4500.0) tmp = t_1; elseif (b <= -7.5e-85) tmp = 1.0; elseif (b <= 3e-171) tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334)))))); elseif (b <= 1.5e+37) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4500.0], t$95$1, If[LessEqual[b, -7.5e-85], 1.0, If[LessEqual[b, 3e-171], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e+37], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{if}\;b \leq -4500:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-85}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 3 \cdot 10^{-171}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+37}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -4500 or 1.50000000000000011e37 < b Initial program 94.8%
Taylor expanded in b around inf 85.5%
associate-*r/85.5%
metadata-eval85.5%
+-commutative85.5%
Simplified85.5%
if -4500 < b < -7.5000000000000003e-85Initial program 94.3%
associate-*r/94.3%
associate-+r-94.3%
metadata-eval94.3%
add-log-exp94.3%
metadata-eval94.3%
associate-+r-94.3%
metadata-eval94.3%
Applied egg-rr94.3%
Taylor expanded in x around inf 77.2%
if -7.5000000000000003e-85 < b < 3e-171Initial program 97.0%
Taylor expanded in c around inf 75.3%
+-commutative75.3%
associate-*r/75.3%
metadata-eval75.3%
Simplified75.3%
Taylor expanded in t around inf 65.5%
if 3e-171 < b < 1.50000000000000011e37Initial program 97.3%
Taylor expanded in t around 0 83.6%
Taylor expanded in z around 0 81.3%
Final simplification79.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- b)))))))))
(if (<= a -6.6e-25)
t_1
(if (<= a -1.3e-190)
1.0
(if (<= a 2.2e-258)
(/
x
(+
x
(*
y
(+
(*
2.0
(* b (- -0.8333333333333334 (- a (/ 0.6666666666666666 t)))))
1.0))))
(if (<= a 8.1e+211) 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 * -b)))));
double tmp;
if (a <= -6.6e-25) {
tmp = t_1;
} else if (a <= -1.3e-190) {
tmp = 1.0;
} else if (a <= 2.2e-258) {
tmp = x / (x + (y * ((2.0 * (b * (-0.8333333333333334 - (a - (0.6666666666666666 / t))))) + 1.0)));
} else if (a <= 8.1e+211) {
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 * -b)))))
if (a <= (-6.6d-25)) then
tmp = t_1
else if (a <= (-1.3d-190)) then
tmp = 1.0d0
else if (a <= 2.2d-258) then
tmp = x / (x + (y * ((2.0d0 * (b * ((-0.8333333333333334d0) - (a - (0.6666666666666666d0 / t))))) + 1.0d0)))
else if (a <= 8.1d+211) 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 * -b)))));
double tmp;
if (a <= -6.6e-25) {
tmp = t_1;
} else if (a <= -1.3e-190) {
tmp = 1.0;
} else if (a <= 2.2e-258) {
tmp = x / (x + (y * ((2.0 * (b * (-0.8333333333333334 - (a - (0.6666666666666666 / t))))) + 1.0)));
} else if (a <= 8.1e+211) {
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 * -b))))) tmp = 0 if a <= -6.6e-25: tmp = t_1 elif a <= -1.3e-190: tmp = 1.0 elif a <= 2.2e-258: tmp = x / (x + (y * ((2.0 * (b * (-0.8333333333333334 - (a - (0.6666666666666666 / t))))) + 1.0))) elif a <= 8.1e+211: 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 * Float64(-b))))))) tmp = 0.0 if (a <= -6.6e-25) tmp = t_1; elseif (a <= -1.3e-190) tmp = 1.0; elseif (a <= 2.2e-258) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - Float64(a - Float64(0.6666666666666666 / t))))) + 1.0)))); elseif (a <= 8.1e+211) 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 * -b))))); tmp = 0.0; if (a <= -6.6e-25) tmp = t_1; elseif (a <= -1.3e-190) tmp = 1.0; elseif (a <= 2.2e-258) tmp = x / (x + (y * ((2.0 * (b * (-0.8333333333333334 - (a - (0.6666666666666666 / t))))) + 1.0))); elseif (a <= 8.1e+211) 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 * (-b)), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.6e-25], t$95$1, If[LessEqual[a, -1.3e-190], 1.0, If[LessEqual[a, 2.2e-258], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(b * N[(-0.8333333333333334 - N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.1e+211], 1.0, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(-b\right)\right)}}\\
\mathbf{if}\;a \leq -6.6 \cdot 10^{-25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.3 \cdot 10^{-190}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{-258}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(b \cdot \left(-0.8333333333333334 - \left(a - \frac{0.6666666666666666}{t}\right)\right)\right) + 1\right)}\\
\mathbf{elif}\;a \leq 8.1 \cdot 10^{+211}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -6.5999999999999997e-25 or 8.09999999999999972e211 < a Initial program 93.1%
Taylor expanded in b around inf 72.4%
associate-*r/72.4%
metadata-eval72.4%
+-commutative72.4%
Simplified72.4%
Taylor expanded in a around inf 69.1%
mul-1-neg69.1%
Simplified69.1%
if -6.5999999999999997e-25 < a < -1.2999999999999999e-190 or 2.20000000000000015e-258 < a < 8.09999999999999972e211Initial program 95.8%
associate-*r/96.4%
associate-+r-96.4%
metadata-eval96.4%
add-log-exp96.4%
metadata-eval96.4%
associate-+r-96.4%
metadata-eval96.4%
Applied egg-rr96.4%
Taylor expanded in x around inf 58.6%
if -1.2999999999999999e-190 < a < 2.20000000000000015e-258Initial program 100.0%
Taylor expanded in b around inf 75.9%
associate-*r/75.9%
metadata-eval75.9%
+-commutative75.9%
Simplified75.9%
Taylor expanded in b around 0 67.1%
associate-*r*67.1%
associate-*r/67.1%
metadata-eval67.1%
+-commutative67.1%
associate--r+67.1%
sub-neg67.1%
metadata-eval67.1%
associate-*r/67.1%
+-commutative67.1%
neg-mul-167.1%
associate-*r*67.1%
sub-neg67.1%
neg-mul-167.1%
+-commutative67.1%
associate-*r/67.1%
metadata-eval67.1%
sub-neg67.1%
metadata-eval67.1%
+-commutative67.1%
Simplified67.1%
Final simplification62.0%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -2.05e+195) (not (<= c 1.5e-29)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* c (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -2.05e+195) || !(c <= 1.5e-29)) {
tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((c <= (-2.05d+195)) .or. (.not. (c <= 1.5d-29))) then
tmp = x / (x + (y * exp((2.0d0 * (c * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t)))))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -2.05e+195) || !(c <= 1.5e-29)) {
tmp = x / (x + (y * Math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (c <= -2.05e+195) or not (c <= 1.5e-29): tmp = x / (x + (y * math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((c <= -2.05e+195) || !(c <= 1.5e-29)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((c <= -2.05e+195) || ~((c <= 1.5e-29))) tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[c, -2.05e+195], N[Not[LessEqual[c, 1.5e-29]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.05 \cdot 10^{+195} \lor \neg \left(c \leq 1.5 \cdot 10^{-29}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if c < -2.05e195 or 1.5000000000000001e-29 < c Initial program 93.8%
Taylor expanded in c around inf 90.2%
+-commutative90.2%
associate-*r/90.2%
metadata-eval90.2%
Simplified90.2%
if -2.05e195 < c < 1.5000000000000001e-29Initial program 96.6%
Taylor expanded in b around inf 74.9%
associate-*r/74.9%
metadata-eval74.9%
+-commutative74.9%
Simplified74.9%
Final simplification79.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -2.25e-98)
1.0
(if (<= c -2.6e-123)
(/ x (* y (exp (* -2.0 (* a (- b c))))))
(if (<= c 1.6e+88) 1.0 (/ x (* y (exp (* 2.0 (* a c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -2.25e-98) {
tmp = 1.0;
} else if (c <= -2.6e-123) {
tmp = x / (y * exp((-2.0 * (a * (b - c)))));
} else if (c <= 1.6e+88) {
tmp = 1.0;
} else {
tmp = x / (y * exp((2.0 * (a * c))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-2.25d-98)) then
tmp = 1.0d0
else if (c <= (-2.6d-123)) then
tmp = x / (y * exp(((-2.0d0) * (a * (b - c)))))
else if (c <= 1.6d+88) then
tmp = 1.0d0
else
tmp = x / (y * exp((2.0d0 * (a * c))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -2.25e-98) {
tmp = 1.0;
} else if (c <= -2.6e-123) {
tmp = x / (y * Math.exp((-2.0 * (a * (b - c)))));
} else if (c <= 1.6e+88) {
tmp = 1.0;
} else {
tmp = x / (y * Math.exp((2.0 * (a * c))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -2.25e-98: tmp = 1.0 elif c <= -2.6e-123: tmp = x / (y * math.exp((-2.0 * (a * (b - c))))) elif c <= 1.6e+88: tmp = 1.0 else: tmp = x / (y * math.exp((2.0 * (a * c)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -2.25e-98) tmp = 1.0; elseif (c <= -2.6e-123) tmp = Float64(x / Float64(y * exp(Float64(-2.0 * Float64(a * Float64(b - c)))))); elseif (c <= 1.6e+88) tmp = 1.0; else tmp = Float64(x / Float64(y * exp(Float64(2.0 * Float64(a * c))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -2.25e-98) tmp = 1.0; elseif (c <= -2.6e-123) tmp = x / (y * exp((-2.0 * (a * (b - c))))); elseif (c <= 1.6e+88) tmp = 1.0; else tmp = x / (y * exp((2.0 * (a * c)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -2.25e-98], 1.0, If[LessEqual[c, -2.6e-123], N[(x / N[(y * N[Exp[N[(-2.0 * N[(a * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.6e+88], 1.0, N[(x / N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.25 \cdot 10^{-98}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -2.6 \cdot 10^{-123}:\\
\;\;\;\;\frac{x}{y \cdot e^{-2 \cdot \left(a \cdot \left(b - c\right)\right)}}\\
\mathbf{elif}\;c \leq 1.6 \cdot 10^{+88}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\end{array}
\end{array}
if c < -2.24999999999999998e-98 or -2.59999999999999995e-123 < c < 1.5999999999999999e88Initial program 95.3%
associate-*r/96.2%
associate-+r-96.2%
metadata-eval96.2%
add-log-exp96.2%
metadata-eval96.2%
associate-+r-96.2%
metadata-eval96.2%
Applied egg-rr96.2%
Taylor expanded in x around inf 59.4%
if -2.24999999999999998e-98 < c < -2.59999999999999995e-123Initial program 100.0%
Taylor expanded in z around 0 100.0%
mul-1-neg100.0%
distribute-rgt-neg-in100.0%
+-commutative100.0%
associate-*r/100.0%
metadata-eval100.0%
associate-+r-100.0%
+-commutative100.0%
distribute-neg-in100.0%
sub-neg100.0%
metadata-eval100.0%
associate-*r/100.0%
distribute-neg-in100.0%
metadata-eval100.0%
associate-*r/100.0%
metadata-eval100.0%
distribute-neg-frac2100.0%
distribute-frac-neg2100.0%
remove-double-neg100.0%
Simplified100.0%
Taylor expanded in a around inf 77.3%
mul-1-neg77.3%
distribute-lft-neg-out77.3%
Simplified77.3%
Taylor expanded in x around 0 65.2%
if 1.5999999999999999e88 < c Initial program 97.2%
Taylor expanded in z around 0 97.3%
mul-1-neg97.3%
distribute-rgt-neg-in97.3%
+-commutative97.3%
associate-*r/97.3%
metadata-eval97.3%
associate-+r-97.3%
+-commutative97.3%
distribute-neg-in97.3%
sub-neg97.3%
metadata-eval97.3%
associate-*r/97.3%
distribute-neg-in97.3%
metadata-eval97.3%
associate-*r/97.3%
metadata-eval97.3%
distribute-neg-frac297.3%
distribute-frac-neg297.3%
remove-double-neg97.3%
Simplified97.3%
Taylor expanded in a around inf 54.4%
mul-1-neg54.4%
distribute-lft-neg-out54.4%
Simplified54.4%
Taylor expanded in x around 0 54.1%
Taylor expanded in b around 0 56.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -2.25e-98)
1.0
(if (<= c -2.6e-123)
(/ x (* y (exp (* -2.0 (* a b)))))
(if (<= c 4.1e+89) 1.0 (/ x (* y (exp (* 2.0 (* a c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -2.25e-98) {
tmp = 1.0;
} else if (c <= -2.6e-123) {
tmp = x / (y * exp((-2.0 * (a * b))));
} else if (c <= 4.1e+89) {
tmp = 1.0;
} else {
tmp = x / (y * exp((2.0 * (a * c))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-2.25d-98)) then
tmp = 1.0d0
else if (c <= (-2.6d-123)) then
tmp = x / (y * exp(((-2.0d0) * (a * b))))
else if (c <= 4.1d+89) then
tmp = 1.0d0
else
tmp = x / (y * exp((2.0d0 * (a * c))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -2.25e-98) {
tmp = 1.0;
} else if (c <= -2.6e-123) {
tmp = x / (y * Math.exp((-2.0 * (a * b))));
} else if (c <= 4.1e+89) {
tmp = 1.0;
} else {
tmp = x / (y * Math.exp((2.0 * (a * c))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -2.25e-98: tmp = 1.0 elif c <= -2.6e-123: tmp = x / (y * math.exp((-2.0 * (a * b)))) elif c <= 4.1e+89: tmp = 1.0 else: tmp = x / (y * math.exp((2.0 * (a * c)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -2.25e-98) tmp = 1.0; elseif (c <= -2.6e-123) tmp = Float64(x / Float64(y * exp(Float64(-2.0 * Float64(a * b))))); elseif (c <= 4.1e+89) tmp = 1.0; else tmp = Float64(x / Float64(y * exp(Float64(2.0 * Float64(a * c))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -2.25e-98) tmp = 1.0; elseif (c <= -2.6e-123) tmp = x / (y * exp((-2.0 * (a * b)))); elseif (c <= 4.1e+89) tmp = 1.0; else tmp = x / (y * exp((2.0 * (a * c)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -2.25e-98], 1.0, If[LessEqual[c, -2.6e-123], N[(x / N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.1e+89], 1.0, N[(x / N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.25 \cdot 10^{-98}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -2.6 \cdot 10^{-123}:\\
\;\;\;\;\frac{x}{y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;c \leq 4.1 \cdot 10^{+89}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\end{array}
\end{array}
if c < -2.24999999999999998e-98 or -2.59999999999999995e-123 < c < 4.09999999999999985e89Initial program 95.3%
associate-*r/96.2%
associate-+r-96.2%
metadata-eval96.2%
add-log-exp96.2%
metadata-eval96.2%
associate-+r-96.2%
metadata-eval96.2%
Applied egg-rr96.2%
Taylor expanded in x around inf 59.4%
if -2.24999999999999998e-98 < c < -2.59999999999999995e-123Initial program 100.0%
Taylor expanded in b around inf 77.3%
associate-*r/77.3%
metadata-eval77.3%
+-commutative77.3%
Simplified77.3%
Taylor expanded in a around inf 77.3%
mul-1-neg77.3%
Simplified77.3%
Taylor expanded in x around 0 65.2%
if 4.09999999999999985e89 < c Initial program 97.2%
Taylor expanded in z around 0 97.3%
mul-1-neg97.3%
distribute-rgt-neg-in97.3%
+-commutative97.3%
associate-*r/97.3%
metadata-eval97.3%
associate-+r-97.3%
+-commutative97.3%
distribute-neg-in97.3%
sub-neg97.3%
metadata-eval97.3%
associate-*r/97.3%
distribute-neg-in97.3%
metadata-eval97.3%
associate-*r/97.3%
metadata-eval97.3%
distribute-neg-frac297.3%
distribute-frac-neg297.3%
remove-double-neg97.3%
Simplified97.3%
Taylor expanded in a around inf 54.4%
mul-1-neg54.4%
distribute-lft-neg-out54.4%
Simplified54.4%
Taylor expanded in x around 0 54.1%
Taylor expanded in b around 0 56.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= z -1.45e+183)
1.0
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
(- b c)
(- (+ -0.8333333333333334 (/ 0.6666666666666666 t)) a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -1.45e+183) {
tmp = 1.0;
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * ((-0.8333333333333334 + (0.6666666666666666 / t)) - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (z <= (-1.45d+183)) then
tmp = 1.0d0
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * (((-0.8333333333333334d0) + (0.6666666666666666d0 / t)) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -1.45e+183) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * ((-0.8333333333333334 + (0.6666666666666666 / t)) - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if z <= -1.45e+183: tmp = 1.0 else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * ((-0.8333333333333334 + (0.6666666666666666 / t)) - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (z <= -1.45e+183) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(Float64(-0.8333333333333334 + Float64(0.6666666666666666 / t)) - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (z <= -1.45e+183) tmp = 1.0; else tmp = x / (x + (y * exp((2.0 * ((b - c) * ((-0.8333333333333334 + (0.6666666666666666 / t)) - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -1.45e+183], 1.0, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(N[(-0.8333333333333334 + N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{+183}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(\left(-0.8333333333333334 + \frac{0.6666666666666666}{t}\right) - a\right)\right)}}\\
\end{array}
\end{array}
if z < -1.45e183Initial program 86.7%
associate-*r/90.0%
associate-+r-90.0%
metadata-eval90.0%
add-log-exp90.0%
metadata-eval90.0%
associate-+r-90.0%
metadata-eval90.0%
Applied egg-rr90.0%
Taylor expanded in x around inf 80.6%
if -1.45e183 < z Initial program 96.9%
Taylor expanded in z around 0 88.6%
mul-1-neg88.6%
distribute-rgt-neg-in88.6%
+-commutative88.6%
associate-*r/88.6%
metadata-eval88.6%
associate-+r-88.6%
+-commutative88.6%
distribute-neg-in88.6%
sub-neg88.6%
metadata-eval88.6%
associate-*r/88.6%
distribute-neg-in88.6%
metadata-eval88.6%
associate-*r/88.6%
metadata-eval88.6%
distribute-neg-frac288.6%
distribute-frac-neg288.6%
remove-double-neg88.6%
Simplified88.6%
Final simplification87.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 4.6e-68)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 1.15e-11)
1.0
(/ x (+ x (* y (exp (* -2.0 (* b (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 4.6e-68) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 1.15e-11) {
tmp = 1.0;
} else {
tmp = x / (x + (y * exp((-2.0 * (b * (a + 0.8333333333333334))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 4.6d-68) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 1.15d-11) then
tmp = 1.0d0
else
tmp = x / (x + (y * exp(((-2.0d0) * (b * (a + 0.8333333333333334d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 4.6e-68) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 1.15e-11) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp((-2.0 * (b * (a + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 4.6e-68: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 1.15e-11: tmp = 1.0 else: tmp = x / (x + (y * math.exp((-2.0 * (b * (a + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 4.6e-68) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 1.15e-11) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 4.6e-68) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 1.15e-11) tmp = 1.0; else tmp = x / (x + (y * exp((-2.0 * (b * (a + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 4.6e-68], 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, 1.15e-11], 1.0, N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 4.6 \cdot 10^{-68}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-11}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if t < 4.59999999999999994e-68Initial program 93.0%
Taylor expanded in t around 0 83.8%
Taylor expanded in z around 0 73.9%
if 4.59999999999999994e-68 < t < 1.15000000000000007e-11Initial program 100.0%
associate-*r/100.0%
associate-+r-100.0%
metadata-eval100.0%
add-log-exp100.0%
metadata-eval100.0%
associate-+r-100.0%
metadata-eval100.0%
Applied egg-rr100.0%
Taylor expanded in x around inf 82.9%
if 1.15000000000000007e-11 < t Initial program 98.2%
Taylor expanded in b around inf 69.1%
associate-*r/69.1%
metadata-eval69.1%
+-commutative69.1%
Simplified69.1%
Taylor expanded in t around inf 70.0%
Final simplification72.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -5.5e-98)
1.0
(if (<= c -2.6e-123)
(/ x (* y (exp (* -2.0 (* a b)))))
(if (<= c 1.7e+89) 1.0 (/ x (+ x (- y (* -2.0 (* a (* y (- c b)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -5.5e-98) {
tmp = 1.0;
} else if (c <= -2.6e-123) {
tmp = x / (y * exp((-2.0 * (a * b))));
} else if (c <= 1.7e+89) {
tmp = 1.0;
} else {
tmp = x / (x + (y - (-2.0 * (a * (y * (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 (c <= (-5.5d-98)) then
tmp = 1.0d0
else if (c <= (-2.6d-123)) then
tmp = x / (y * exp(((-2.0d0) * (a * b))))
else if (c <= 1.7d+89) then
tmp = 1.0d0
else
tmp = x / (x + (y - ((-2.0d0) * (a * (y * (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 (c <= -5.5e-98) {
tmp = 1.0;
} else if (c <= -2.6e-123) {
tmp = x / (y * Math.exp((-2.0 * (a * b))));
} else if (c <= 1.7e+89) {
tmp = 1.0;
} else {
tmp = x / (x + (y - (-2.0 * (a * (y * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -5.5e-98: tmp = 1.0 elif c <= -2.6e-123: tmp = x / (y * math.exp((-2.0 * (a * b)))) elif c <= 1.7e+89: tmp = 1.0 else: tmp = x / (x + (y - (-2.0 * (a * (y * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -5.5e-98) tmp = 1.0; elseif (c <= -2.6e-123) tmp = Float64(x / Float64(y * exp(Float64(-2.0 * Float64(a * b))))); elseif (c <= 1.7e+89) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y - Float64(-2.0 * Float64(a * Float64(y * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -5.5e-98) tmp = 1.0; elseif (c <= -2.6e-123) tmp = x / (y * exp((-2.0 * (a * b)))); elseif (c <= 1.7e+89) tmp = 1.0; else tmp = x / (x + (y - (-2.0 * (a * (y * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -5.5e-98], 1.0, If[LessEqual[c, -2.6e-123], N[(x / N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.7e+89], 1.0, N[(x / N[(x + N[(y - N[(-2.0 * N[(a * N[(y * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -5.5 \cdot 10^{-98}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -2.6 \cdot 10^{-123}:\\
\;\;\;\;\frac{x}{y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;c \leq 1.7 \cdot 10^{+89}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y - -2 \cdot \left(a \cdot \left(y \cdot \left(c - b\right)\right)\right)\right)}\\
\end{array}
\end{array}
if c < -5.4999999999999997e-98 or -2.59999999999999995e-123 < c < 1.7000000000000001e89Initial program 95.3%
associate-*r/96.2%
associate-+r-96.2%
metadata-eval96.2%
add-log-exp96.2%
metadata-eval96.2%
associate-+r-96.2%
metadata-eval96.2%
Applied egg-rr96.2%
Taylor expanded in x around inf 59.4%
if -5.4999999999999997e-98 < c < -2.59999999999999995e-123Initial program 100.0%
Taylor expanded in b around inf 77.3%
associate-*r/77.3%
metadata-eval77.3%
+-commutative77.3%
Simplified77.3%
Taylor expanded in a around inf 77.3%
mul-1-neg77.3%
Simplified77.3%
Taylor expanded in x around 0 65.2%
if 1.7000000000000001e89 < c Initial program 97.2%
Taylor expanded in z around 0 97.3%
mul-1-neg97.3%
distribute-rgt-neg-in97.3%
+-commutative97.3%
associate-*r/97.3%
metadata-eval97.3%
associate-+r-97.3%
+-commutative97.3%
distribute-neg-in97.3%
sub-neg97.3%
metadata-eval97.3%
associate-*r/97.3%
distribute-neg-in97.3%
metadata-eval97.3%
associate-*r/97.3%
metadata-eval97.3%
distribute-neg-frac297.3%
distribute-frac-neg297.3%
remove-double-neg97.3%
Simplified97.3%
Taylor expanded in a around inf 54.4%
mul-1-neg54.4%
distribute-lft-neg-out54.4%
Simplified54.4%
Taylor expanded in a around 0 54.9%
*-commutative54.9%
Simplified54.9%
Final simplification58.9%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 1.18e+82) 1.0 (/ x (+ x (- y (* -2.0 (* a (* y (- c b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.18e+82) {
tmp = 1.0;
} else {
tmp = x / (x + (y - (-2.0 * (a * (y * (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 (c <= 1.18d+82) then
tmp = 1.0d0
else
tmp = x / (x + (y - ((-2.0d0) * (a * (y * (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 (c <= 1.18e+82) {
tmp = 1.0;
} else {
tmp = x / (x + (y - (-2.0 * (a * (y * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 1.18e+82: tmp = 1.0 else: tmp = x / (x + (y - (-2.0 * (a * (y * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 1.18e+82) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y - Float64(-2.0 * Float64(a * Float64(y * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 1.18e+82) tmp = 1.0; else tmp = x / (x + (y - (-2.0 * (a * (y * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 1.18e+82], 1.0, N[(x / N[(x + N[(y - N[(-2.0 * N[(a * N[(y * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 1.18 \cdot 10^{+82}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y - -2 \cdot \left(a \cdot \left(y \cdot \left(c - b\right)\right)\right)\right)}\\
\end{array}
\end{array}
if c < 1.1800000000000001e82Initial program 95.5%
associate-*r/95.9%
associate-+r-95.9%
metadata-eval95.9%
add-log-exp95.9%
metadata-eval95.9%
associate-+r-95.9%
metadata-eval95.9%
Applied egg-rr95.9%
Taylor expanded in x around inf 57.8%
if 1.1800000000000001e82 < c Initial program 97.2%
Taylor expanded in z around 0 97.3%
mul-1-neg97.3%
distribute-rgt-neg-in97.3%
+-commutative97.3%
associate-*r/97.3%
metadata-eval97.3%
associate-+r-97.3%
+-commutative97.3%
distribute-neg-in97.3%
sub-neg97.3%
metadata-eval97.3%
associate-*r/97.3%
distribute-neg-in97.3%
metadata-eval97.3%
associate-*r/97.3%
metadata-eval97.3%
distribute-neg-frac297.3%
distribute-frac-neg297.3%
remove-double-neg97.3%
Simplified97.3%
Taylor expanded in a around inf 54.4%
mul-1-neg54.4%
distribute-lft-neg-out54.4%
Simplified54.4%
Taylor expanded in a around 0 54.9%
*-commutative54.9%
Simplified54.9%
Final simplification57.4%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 6.4e+92) 1.0 (/ x (+ y (* (* a -2.0) (* (- b c) y))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 6.4e+92) {
tmp = 1.0;
} else {
tmp = x / (y + ((a * -2.0) * ((b - 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 <= 6.4d+92) then
tmp = 1.0d0
else
tmp = x / (y + ((a * (-2.0d0)) * ((b - 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 <= 6.4e+92) {
tmp = 1.0;
} else {
tmp = x / (y + ((a * -2.0) * ((b - c) * y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 6.4e+92: tmp = 1.0 else: tmp = x / (y + ((a * -2.0) * ((b - c) * y))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 6.4e+92) tmp = 1.0; else tmp = Float64(x / Float64(y + Float64(Float64(a * -2.0) * Float64(Float64(b - c) * y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 6.4e+92) tmp = 1.0; else tmp = x / (y + ((a * -2.0) * ((b - c) * y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 6.4e+92], 1.0, N[(x / N[(y + N[(N[(a * -2.0), $MachinePrecision] * N[(N[(b - c), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 6.4 \cdot 10^{+92}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y + \left(a \cdot -2\right) \cdot \left(\left(b - c\right) \cdot y\right)}\\
\end{array}
\end{array}
if c < 6.40000000000000051e92Initial program 95.5%
associate-*r/95.9%
associate-+r-95.9%
metadata-eval95.9%
add-log-exp95.9%
metadata-eval95.9%
associate-+r-95.9%
metadata-eval95.9%
Applied egg-rr95.9%
Taylor expanded in x around inf 57.8%
if 6.40000000000000051e92 < c Initial program 97.2%
Taylor expanded in z around 0 97.3%
mul-1-neg97.3%
distribute-rgt-neg-in97.3%
+-commutative97.3%
associate-*r/97.3%
metadata-eval97.3%
associate-+r-97.3%
+-commutative97.3%
distribute-neg-in97.3%
sub-neg97.3%
metadata-eval97.3%
associate-*r/97.3%
distribute-neg-in97.3%
metadata-eval97.3%
associate-*r/97.3%
metadata-eval97.3%
distribute-neg-frac297.3%
distribute-frac-neg297.3%
remove-double-neg97.3%
Simplified97.3%
Taylor expanded in a around inf 54.4%
mul-1-neg54.4%
distribute-lft-neg-out54.4%
Simplified54.4%
Taylor expanded in x around 0 54.1%
Taylor expanded in a around 0 49.3%
associate-*r*49.3%
*-commutative49.3%
Simplified49.3%
Final simplification56.6%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 3e+178) 1.0 (/ x (+ x (* -2.0 (* a (* b y)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 3e+178) {
tmp = 1.0;
} else {
tmp = x / (x + (-2.0 * (a * (b * 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 <= 3d+178) then
tmp = 1.0d0
else
tmp = x / (x + ((-2.0d0) * (a * (b * 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 <= 3e+178) {
tmp = 1.0;
} else {
tmp = x / (x + (-2.0 * (a * (b * y))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 3e+178: tmp = 1.0 else: tmp = x / (x + (-2.0 * (a * (b * y)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 3e+178) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(-2.0 * Float64(a * Float64(b * y))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 3e+178) tmp = 1.0; else tmp = x / (x + (-2.0 * (a * (b * y)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 3e+178], 1.0, N[(x / N[(x + N[(-2.0 * N[(a * N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 3 \cdot 10^{+178}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + -2 \cdot \left(a \cdot \left(b \cdot y\right)\right)}\\
\end{array}
\end{array}
if c < 3.00000000000000016e178Initial program 95.8%
associate-*r/96.2%
associate-+r-96.2%
metadata-eval96.2%
add-log-exp96.2%
metadata-eval96.2%
associate-+r-96.2%
metadata-eval96.2%
Applied egg-rr96.2%
Taylor expanded in x around inf 54.9%
if 3.00000000000000016e178 < c Initial program 95.0%
Taylor expanded in b around inf 56.7%
associate-*r/56.7%
metadata-eval56.7%
+-commutative56.7%
Simplified56.7%
Taylor expanded in a around inf 37.4%
mul-1-neg37.4%
Simplified37.4%
Taylor expanded in a around 0 42.2%
*-commutative42.2%
Simplified42.2%
Taylor expanded in b around inf 56.3%
(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 95.7%
associate-*r/95.7%
associate-+r-95.7%
metadata-eval95.7%
add-log-exp95.7%
metadata-eval95.7%
associate-+r-95.7%
metadata-eval95.7%
Applied egg-rr95.7%
Taylor expanded in x around inf 52.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 2024103
(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)))))))))))