
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ 2.0 (* t 3.0))) (t_2 (sqrt (+ t a))))
(if (<=
(+ (/ (* z t_2) t) (* (- (+ a 0.8333333333333334) t_1) (- c b)))
INFINITY)
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(+ (* z (/ t_2 t)) (* (+ a (- 0.8333333333333334 t_1)) (- c b)))))))
(/
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 t_1 = 2.0 / (t * 3.0);
double t_2 = sqrt((t + a));
double tmp;
if ((((z * t_2) / t) + (((a + 0.8333333333333334) - t_1) * (c - b))) <= ((double) INFINITY)) {
tmp = x / (x + (y * pow(exp(2.0), ((z * (t_2 / t)) + ((a + (0.8333333333333334 - t_1)) * (c - b))))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 2.0 / (t * 3.0);
double t_2 = Math.sqrt((t + a));
double tmp;
if ((((z * t_2) / t) + (((a + 0.8333333333333334) - t_1) * (c - b))) <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), ((z * (t_2 / t)) + ((a + (0.8333333333333334 - t_1)) * (c - b))))));
} 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): t_1 = 2.0 / (t * 3.0) t_2 = math.sqrt((t + a)) tmp = 0 if (((z * t_2) / t) + (((a + 0.8333333333333334) - t_1) * (c - b))) <= math.inf: tmp = x / (x + (y * math.pow(math.exp(2.0), ((z * (t_2 / t)) + ((a + (0.8333333333333334 - t_1)) * (c - b)))))) 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) t_1 = Float64(2.0 / Float64(t * 3.0)) t_2 = sqrt(Float64(t + a)) tmp = 0.0 if (Float64(Float64(Float64(z * t_2) / t) + Float64(Float64(Float64(a + 0.8333333333333334) - t_1) * Float64(c - b))) <= Inf) tmp = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(Float64(z * Float64(t_2 / t)) + Float64(Float64(a + Float64(0.8333333333333334 - t_1)) * Float64(c - b))))))); 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) t_1 = 2.0 / (t * 3.0); t_2 = sqrt((t + a)); tmp = 0.0; if ((((z * t_2) / t) + (((a + 0.8333333333333334) - t_1) * (c - b))) <= Inf) tmp = x / (x + (y * (exp(2.0) ^ ((z * (t_2 / t)) + ((a + (0.8333333333333334 - t_1)) * (c - b)))))); 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_] := Block[{t$95$1 = N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(N[(N[(z * t$95$2), $MachinePrecision] / t), $MachinePrecision] + N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] - t$95$1), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(z * N[(t$95$2 / t), $MachinePrecision]), $MachinePrecision] + N[(N[(a + N[(0.8333333333333334 - t$95$1), $MachinePrecision]), $MachinePrecision] * N[(c - b), $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}
t_1 := \frac{2}{t \cdot 3}\\
t_2 := \sqrt{t + a}\\
\mathbf{if}\;\frac{z \cdot t\_2}{t} + \left(\left(a + 0.8333333333333334\right) - t\_1\right) \cdot \left(c - b\right) \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(z \cdot \frac{t\_2}{t} + \left(a + \left(0.8333333333333334 - t\_1\right)\right) \cdot \left(c - b\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 (-.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 98.8%
exp-prod98.8%
Simplified99.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 b around inf 75.8%
associate-*r/75.8%
metadata-eval75.8%
+-commutative75.8%
Simplified75.8%
Final simplification98.1%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
z
(/ (sqrt (+ t a)) t)
(* (+ a (- 0.8333333333333334 (/ 0.6666666666666666 t))) (- c b))))
x)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / fma(y, pow(exp(2.0), fma(z, (sqrt((t + a)) / t), ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * (c - b)))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(z, Float64(sqrt(Float64(t + a)) / t), Float64(Float64(a + Float64(0.8333333333333334 - Float64(0.6666666666666666 / t))) * Float64(c - b)))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(z * N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] / t), $MachinePrecision] + N[(N[(a + N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(z, \frac{\sqrt{t + a}}{t}, \left(a + \left(0.8333333333333334 - \frac{0.6666666666666666}{t}\right)\right) \cdot \left(c - b\right)\right)\right)}, x\right)}
\end{array}
Initial program 94.2%
Simplified97.7%
Final simplification97.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- (+ a 0.8333333333333334) (/ 2.0 (* t 3.0))) (- c b)))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/
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 t_1 = ((z * sqrt((t + a))) / t) + (((a + 0.8333333333333334) - (2.0 / (t * 3.0))) * (c - b));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
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) + (((a + 0.8333333333333334) - (2.0 / (t * 3.0))) * (c - b));
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 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((t + a))) / t) + (((a + 0.8333333333333334) - (2.0 / (t * 3.0))) * (c - b)) 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 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(Float64(a + 0.8333333333333334) - Float64(2.0 / Float64(t * 3.0))) * Float64(c - b))) 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(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) t_1 = ((z * sqrt((t + a))) / t) + (((a + 0.8333333333333334) - (2.0 / (t * 3.0))) * (c - b)); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); 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_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(c - b), $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[(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}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(\left(a + 0.8333333333333334\right) - \frac{2}{t \cdot 3}\right) \cdot \left(c - b\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(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\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 98.8%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 0.0%
Taylor expanded in b around inf 75.8%
associate-*r/75.8%
metadata-eval75.8%
+-commutative75.8%
Simplified75.8%
Final simplification97.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
c
(+ 0.8333333333333334 (- a (/ 0.6666666666666666 t)))))))))))
(if (<= c -3e+86)
t_1
(if (<= c 2.6e-43)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
a
(*
b
(+
-1.0
(/ (+ (/ 0.6666666666666666 t) -0.8333333333333334) a)))))))))
(if (<= c 6200000000.0)
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= c 3.2e+83)
(/
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 * (0.8333333333333334 + (a - (0.6666666666666666 / t))))))));
double tmp;
if (c <= -3e+86) {
tmp = t_1;
} else if (c <= 2.6e-43) {
tmp = x / (x + (y * exp((2.0 * (a * (b * (-1.0 + (((0.6666666666666666 / t) + -0.8333333333333334) / a))))))));
} else if (c <= 6200000000.0) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (c <= 3.2e+83) {
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 * (0.8333333333333334d0 + (a - (0.6666666666666666d0 / t))))))))
if (c <= (-3d+86)) then
tmp = t_1
else if (c <= 2.6d-43) then
tmp = x / (x + (y * exp((2.0d0 * (a * (b * ((-1.0d0) + (((0.6666666666666666d0 / t) + (-0.8333333333333334d0)) / a))))))))
else if (c <= 6200000000.0d0) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (c <= 3.2d+83) 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 * (0.8333333333333334 + (a - (0.6666666666666666 / t))))))));
double tmp;
if (c <= -3e+86) {
tmp = t_1;
} else if (c <= 2.6e-43) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (b * (-1.0 + (((0.6666666666666666 / t) + -0.8333333333333334) / a))))))));
} else if (c <= 6200000000.0) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (c <= 3.2e+83) {
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 * (0.8333333333333334 + (a - (0.6666666666666666 / t)))))))) tmp = 0 if c <= -3e+86: tmp = t_1 elif c <= 2.6e-43: tmp = x / (x + (y * math.exp((2.0 * (a * (b * (-1.0 + (((0.6666666666666666 / t) + -0.8333333333333334) / a)))))))) elif c <= 6200000000.0: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif c <= 3.2e+83: 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(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))))))))) tmp = 0.0 if (c <= -3e+86) tmp = t_1; elseif (c <= 2.6e-43) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(b * Float64(-1.0 + Float64(Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334) / a))))))))); elseif (c <= 6200000000.0) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); elseif (c <= 3.2e+83) 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 * (0.8333333333333334 + (a - (0.6666666666666666 / t)))))))); tmp = 0.0; if (c <= -3e+86) tmp = t_1; elseif (c <= 2.6e-43) tmp = x / (x + (y * exp((2.0 * (a * (b * (-1.0 + (((0.6666666666666666 / t) + -0.8333333333333334) / a)))))))); elseif (c <= 6200000000.0) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (c <= 3.2e+83) 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[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3e+86], t$95$1, If[LessEqual[c, 2.6e-43], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(b * N[(-1.0 + N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6200000000.0], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.2e+83], 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(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\right)\right)}}\\
\mathbf{if}\;c \leq -3 \cdot 10^{+86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2.6 \cdot 10^{-43}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(b \cdot \left(-1 + \frac{\frac{0.6666666666666666}{t} + -0.8333333333333334}{a}\right)\right)\right)}}\\
\mathbf{elif}\;c \leq 6200000000:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{elif}\;c \leq 3.2 \cdot 10^{+83}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -2.99999999999999977e86 or 3.1999999999999999e83 < c Initial program 89.7%
Taylor expanded in c around inf 90.0%
associate--l+90.0%
associate-*r/90.0%
metadata-eval90.0%
Simplified90.0%
if -2.99999999999999977e86 < c < 2.6e-43Initial program 97.3%
Taylor expanded in b around inf 83.1%
associate-*r/83.1%
metadata-eval83.1%
+-commutative83.1%
Simplified83.1%
Taylor expanded in a around inf 81.8%
*-commutative81.8%
associate-/l*85.8%
distribute-lft-out85.8%
sub-neg85.8%
associate-*r/85.8%
metadata-eval85.8%
metadata-eval85.8%
Simplified85.8%
if 2.6e-43 < c < 6.2e9Initial program 84.6%
Taylor expanded in t around 0 84.9%
if 6.2e9 < c < 3.1999999999999999e83Initial program 100.0%
Taylor expanded in b around inf 100.0%
associate-*r/100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Final simplification87.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 4.8e-238)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 0.38)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
a
(*
b
(+
-1.0
(/ (+ (/ 0.6666666666666666 t) -0.8333333333333334) 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 <= 4.8e-238) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 0.38) {
tmp = x / (x + (y * exp((2.0 * (a * (b * (-1.0 + (((0.6666666666666666 / t) + -0.8333333333333334) / 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 <= 4.8d-238) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 0.38d0) then
tmp = x / (x + (y * exp((2.0d0 * (a * (b * ((-1.0d0) + (((0.6666666666666666d0 / t) + (-0.8333333333333334d0)) / 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 <= 4.8e-238) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 0.38) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (b * (-1.0 + (((0.6666666666666666 / t) + -0.8333333333333334) / 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 <= 4.8e-238: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 0.38: tmp = x / (x + (y * math.exp((2.0 * (a * (b * (-1.0 + (((0.6666666666666666 / t) + -0.8333333333333334) / 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 <= 4.8e-238) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); elseif (t <= 0.38) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(b * Float64(-1.0 + Float64(Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334) / 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 <= 4.8e-238) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 0.38) tmp = x / (x + (y * exp((2.0 * (a * (b * (-1.0 + (((0.6666666666666666 / t) + -0.8333333333333334) / 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, 4.8e-238], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.38], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(b * N[(-1.0 + N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 4.8 \cdot 10^{-238}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{elif}\;t \leq 0.38:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(b \cdot \left(-1 + \frac{\frac{0.6666666666666666}{t} + -0.8333333333333334}{a}\right)\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 < 4.7999999999999997e-238Initial program 87.1%
Taylor expanded in t around 0 89.9%
if 4.7999999999999997e-238 < t < 0.38Initial program 98.4%
Taylor expanded in b around inf 70.0%
associate-*r/70.0%
metadata-eval70.0%
+-commutative70.0%
Simplified70.0%
Taylor expanded in a around inf 65.2%
*-commutative65.2%
associate-/l*77.8%
distribute-lft-out77.8%
sub-neg77.8%
associate-*r/77.8%
metadata-eval77.8%
metadata-eval77.8%
Simplified77.8%
if 0.38 < t Initial program 96.7%
Taylor expanded in t around inf 99.2%
Final simplification91.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) 0.8333333333333334)))))))))
(if (<= b -5.8e+60)
t_1
(if (<= b 7.5e-147)
(/ x (+ x (* y (exp (* 2.0 (* c (+ a 0.8333333333333334)))))))
(if (<= b 1e-68)
(/ x (+ x (* y (exp (* 2.0 (* c (/ -0.6666666666666666 t)))))))
(if (<= b 1.12e+33)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
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) - 0.8333333333333334))))));
double tmp;
if (b <= -5.8e+60) {
tmp = t_1;
} else if (b <= 7.5e-147) {
tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334))))));
} else if (b <= 1e-68) {
tmp = x / (x + (y * exp((2.0 * (c * (-0.6666666666666666 / t))))));
} else if (b <= 1.12e+33) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} 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) - 0.8333333333333334d0))))))
if (b <= (-5.8d+60)) then
tmp = t_1
else if (b <= 7.5d-147) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + 0.8333333333333334d0))))))
else if (b <= 1d-68) then
tmp = x / (x + (y * exp((2.0d0 * (c * ((-0.6666666666666666d0) / t))))))
else if (b <= 1.12d+33) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
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) - 0.8333333333333334))))));
double tmp;
if (b <= -5.8e+60) {
tmp = t_1;
} else if (b <= 7.5e-147) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + 0.8333333333333334))))));
} else if (b <= 1e-68) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (-0.6666666666666666 / t))))));
} else if (b <= 1.12e+33) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} 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) - 0.8333333333333334)))))) tmp = 0 if b <= -5.8e+60: tmp = t_1 elif b <= 7.5e-147: tmp = x / (x + (y * math.exp((2.0 * (c * (a + 0.8333333333333334)))))) elif b <= 1e-68: tmp = x / (x + (y * math.exp((2.0 * (c * (-0.6666666666666666 / t)))))) elif b <= 1.12e+33: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) 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) - 0.8333333333333334))))))) tmp = 0.0 if (b <= -5.8e+60) tmp = t_1; elseif (b <= 7.5e-147) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))))))); elseif (b <= 1e-68) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(-0.6666666666666666 / t))))))); elseif (b <= 1.12e+33) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); 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) - 0.8333333333333334)))))); tmp = 0.0; if (b <= -5.8e+60) tmp = t_1; elseif (b <= 7.5e-147) tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334)))))); elseif (b <= 1e-68) tmp = x / (x + (y * exp((2.0 * (c * (-0.6666666666666666 / t)))))); elseif (b <= 1.12e+33) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); 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] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.8e+60], t$95$1, If[LessEqual[b, 7.5e-147], 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, 1e-68], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.12e+33], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $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} - 0.8333333333333334\right)\right)}}\\
\mathbf{if}\;b \leq -5.8 \cdot 10^{+60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{-147}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\mathbf{elif}\;b \leq 10^{-68}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \frac{-0.6666666666666666}{t}\right)}}\\
\mathbf{elif}\;b \leq 1.12 \cdot 10^{+33}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -5.79999999999999999e60 or 1.12e33 < b Initial program 90.8%
Taylor expanded in b around inf 89.3%
associate-*r/89.3%
metadata-eval89.3%
+-commutative89.3%
Simplified89.3%
Taylor expanded in a around 0 82.8%
if -5.79999999999999999e60 < b < 7.50000000000000047e-147Initial program 97.2%
Taylor expanded in c around inf 75.4%
associate--l+75.4%
associate-*r/75.4%
metadata-eval75.4%
Simplified75.4%
Taylor expanded in t around inf 71.9%
if 7.50000000000000047e-147 < b < 1.00000000000000007e-68Initial program 94.4%
Taylor expanded in c around inf 84.1%
associate--l+84.1%
associate-*r/84.1%
metadata-eval84.1%
Simplified84.1%
Taylor expanded in t around 0 84.1%
if 1.00000000000000007e-68 < b < 1.12e33Initial program 100.0%
Taylor expanded in c around inf 92.5%
associate--l+92.5%
associate-*r/92.5%
metadata-eval92.5%
Simplified92.5%
Taylor expanded in t around inf 77.6%
Taylor expanded in a around 0 77.6%
Final simplification78.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -5.2e-168)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= t 5.1e-160)
(/ x (+ x (* y (exp (* 2.0 (* c (/ -0.6666666666666666 t)))))))
(if (<= t 28.5)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ b t))))))
(if (<= t 2.65e+132)
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a)))))))
(/ x (+ x (* y (exp (* 2.0 (* c (+ a 0.8333333333333334))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -5.2e-168) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (t <= 5.1e-160) {
tmp = x / (x + (y * exp((2.0 * (c * (-0.6666666666666666 / t))))));
} else if (t <= 28.5) {
tmp = x / (x + (y * exp((1.3333333333333333 * (b / t)))));
} else if (t <= 2.65e+132) {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else {
tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-5.2d-168)) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (t <= 5.1d-160) then
tmp = x / (x + (y * exp((2.0d0 * (c * ((-0.6666666666666666d0) / t))))))
else if (t <= 28.5d0) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * (b / t)))))
else if (t <= 2.65d+132) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
else
tmp = x / (x + (y * exp((2.0d0 * (c * (a + 0.8333333333333334d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -5.2e-168) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (t <= 5.1e-160) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (-0.6666666666666666 / t))))));
} else if (t <= 28.5) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * (b / t)))));
} else if (t <= 2.65e+132) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -5.2e-168: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif t <= 5.1e-160: tmp = x / (x + (y * math.exp((2.0 * (c * (-0.6666666666666666 / t)))))) elif t <= 28.5: tmp = x / (x + (y * math.exp((1.3333333333333333 * (b / t))))) elif t <= 2.65e+132: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * (a + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -5.2e-168) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (t <= 5.1e-160) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(-0.6666666666666666 / t))))))); elseif (t <= 28.5) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(b / t)))))); elseif (t <= 2.65e+132) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -5.2e-168) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (t <= 5.1e-160) tmp = x / (x + (y * exp((2.0 * (c * (-0.6666666666666666 / t)))))); elseif (t <= 28.5) tmp = x / (x + (y * exp((1.3333333333333333 * (b / t))))); elseif (t <= 2.65e+132) tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); else tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -5.2e-168], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.1e-160], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 28.5], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.65e+132], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.2 \cdot 10^{-168}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;t \leq 5.1 \cdot 10^{-160}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \frac{-0.6666666666666666}{t}\right)}}\\
\mathbf{elif}\;t \leq 28.5:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b}{t}}}\\
\mathbf{elif}\;t \leq 2.65 \cdot 10^{+132}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if t < -5.2000000000000002e-168Initial program 88.3%
Taylor expanded in b around inf 74.3%
associate-*r/74.3%
metadata-eval74.3%
+-commutative74.3%
Simplified74.3%
Taylor expanded in t around inf 74.3%
mul-1-neg74.3%
+-commutative74.3%
distribute-rgt-neg-in74.3%
+-commutative74.3%
mul-1-neg74.3%
distribute-lft-in74.3%
metadata-eval74.3%
mul-1-neg74.3%
unsub-neg74.3%
Simplified74.3%
Taylor expanded in a around 0 79.3%
if -5.2000000000000002e-168 < t < 5.1e-160Initial program 90.6%
Taylor expanded in c around inf 68.3%
associate--l+68.3%
associate-*r/68.3%
metadata-eval68.3%
Simplified68.3%
Taylor expanded in t around 0 63.8%
if 5.1e-160 < t < 28.5Initial program 97.6%
Taylor expanded in b around inf 74.2%
associate-*r/74.2%
metadata-eval74.2%
+-commutative74.2%
Simplified74.2%
Taylor expanded in t around 0 67.3%
associate-*r/67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in y around 0 67.3%
if 28.5 < t < 2.65e132Initial program 96.1%
Taylor expanded in b around inf 84.1%
associate-*r/84.1%
metadata-eval84.1%
+-commutative84.1%
Simplified84.1%
Taylor expanded in t around inf 84.1%
mul-1-neg84.1%
+-commutative84.1%
distribute-rgt-neg-in84.1%
+-commutative84.1%
mul-1-neg84.1%
distribute-lft-in84.1%
metadata-eval84.1%
mul-1-neg84.1%
unsub-neg84.1%
Simplified84.1%
if 2.65e132 < t Initial program 97.1%
Taylor expanded in c around inf 84.1%
associate--l+84.1%
associate-*r/84.1%
metadata-eval84.1%
Simplified84.1%
Taylor expanded in t around inf 84.1%
Final simplification75.7%
(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 -126000.0)
t_1
(if (<= b 1.7e-270)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= b 3.6e+17)
(/
x
(+
x
(*
y
(exp
(* 2.0 (* c (+ 0.8333333333333334 (/ -0.6666666666666666 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 <= -126000.0) {
tmp = t_1;
} else if (b <= 1.7e-270) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (b <= 3.6e+17) {
tmp = x / (x + (y * exp((2.0 * (c * (0.8333333333333334 + (-0.6666666666666666 / 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 <= (-126000.0d0)) then
tmp = t_1
else if (b <= 1.7d-270) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (b <= 3.6d+17) then
tmp = x / (x + (y * exp((2.0d0 * (c * (0.8333333333333334d0 + ((-0.6666666666666666d0) / 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 <= -126000.0) {
tmp = t_1;
} else if (b <= 1.7e-270) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (b <= 3.6e+17) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (0.8333333333333334 + (-0.6666666666666666 / 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 <= -126000.0: tmp = t_1 elif b <= 1.7e-270: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif b <= 3.6e+17: tmp = x / (x + (y * math.exp((2.0 * (c * (0.8333333333333334 + (-0.6666666666666666 / 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 <= -126000.0) tmp = t_1; elseif (b <= 1.7e-270) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (b <= 3.6e+17) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(0.8333333333333334 + Float64(-0.6666666666666666 / 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 <= -126000.0) tmp = t_1; elseif (b <= 1.7e-270) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (b <= 3.6e+17) tmp = x / (x + (y * exp((2.0 * (c * (0.8333333333333334 + (-0.6666666666666666 / 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, -126000.0], t$95$1, If[LessEqual[b, 1.7e-270], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.6e+17], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{if}\;b \leq -126000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{-270}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{+17}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -126000 or 3.6e17 < b Initial program 91.6%
Taylor expanded in b around inf 88.1%
associate-*r/88.1%
metadata-eval88.1%
+-commutative88.1%
Simplified88.1%
if -126000 < b < 1.7e-270Initial program 97.2%
Taylor expanded in c around inf 72.2%
associate--l+72.2%
associate-*r/72.2%
metadata-eval72.2%
Simplified72.2%
Taylor expanded in a around inf 75.1%
if 1.7e-270 < b < 3.6e17Initial program 96.4%
Taylor expanded in c around inf 82.8%
associate--l+82.8%
associate-*r/82.8%
metadata-eval82.8%
Simplified82.8%
Taylor expanded in a around 0 79.3%
sub-neg79.3%
associate-*r/79.3%
metadata-eval79.3%
distribute-neg-frac79.3%
metadata-eval79.3%
Simplified79.3%
Final simplification82.6%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -1.95e+87) (not (<= c 3e+82)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* c (+ 0.8333333333333334 (- a (/ 0.6666666666666666 t)))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
a
(*
b
(+
-1.0
(/ (+ (/ 0.6666666666666666 t) -0.8333333333333334) a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -1.95e+87) || !(c <= 3e+82)) {
tmp = x / (x + (y * exp((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * exp((2.0 * (a * (b * (-1.0 + (((0.6666666666666666 / t) + -0.8333333333333334) / a))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((c <= (-1.95d+87)) .or. (.not. (c <= 3d+82))) then
tmp = x / (x + (y * exp((2.0d0 * (c * (0.8333333333333334d0 + (a - (0.6666666666666666d0 / t))))))))
else
tmp = x / (x + (y * exp((2.0d0 * (a * (b * ((-1.0d0) + (((0.6666666666666666d0 / t) + (-0.8333333333333334d0)) / a))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -1.95e+87) || !(c <= 3e+82)) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * (b * (-1.0 + (((0.6666666666666666 / t) + -0.8333333333333334) / a))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (c <= -1.95e+87) or not (c <= 3e+82): tmp = x / (x + (y * math.exp((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t)))))))) else: tmp = x / (x + (y * math.exp((2.0 * (a * (b * (-1.0 + (((0.6666666666666666 / t) + -0.8333333333333334) / a)))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((c <= -1.95e+87) || !(c <= 3e+82)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(b * Float64(-1.0 + Float64(Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334) / a))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((c <= -1.95e+87) || ~((c <= 3e+82))) tmp = x / (x + (y * exp((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t)))))))); else tmp = x / (x + (y * exp((2.0 * (a * (b * (-1.0 + (((0.6666666666666666 / t) + -0.8333333333333334) / a)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[c, -1.95e+87], N[Not[LessEqual[c, 3e+82]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(b * N[(-1.0 + N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.95 \cdot 10^{+87} \lor \neg \left(c \leq 3 \cdot 10^{+82}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(b \cdot \left(-1 + \frac{\frac{0.6666666666666666}{t} + -0.8333333333333334}{a}\right)\right)\right)}}\\
\end{array}
\end{array}
if c < -1.9500000000000001e87 or 2.99999999999999989e82 < c Initial program 89.7%
Taylor expanded in c around inf 90.0%
associate--l+90.0%
associate-*r/90.0%
metadata-eval90.0%
Simplified90.0%
if -1.9500000000000001e87 < c < 2.99999999999999989e82Initial program 96.5%
Taylor expanded in b around inf 81.6%
associate-*r/81.6%
metadata-eval81.6%
+-commutative81.6%
Simplified81.6%
Taylor expanded in a around inf 80.5%
*-commutative80.5%
associate-/l*83.9%
distribute-lft-out83.9%
sub-neg83.9%
associate-*r/83.9%
metadata-eval83.9%
metadata-eval83.9%
Simplified83.9%
Final simplification86.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) 0.8333333333333334)))))))))
(if (<= b -1.8e+59)
t_1
(if (<= b 4.4e-269)
(/ x (+ x (* y (exp (* 2.0 (* c (+ a 0.8333333333333334)))))))
(if (<= b 2.3e+34)
(/
x
(+
x
(*
y
(exp
(* 2.0 (* c (+ 0.8333333333333334 (/ -0.6666666666666666 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) - 0.8333333333333334))))));
double tmp;
if (b <= -1.8e+59) {
tmp = t_1;
} else if (b <= 4.4e-269) {
tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334))))));
} else if (b <= 2.3e+34) {
tmp = x / (x + (y * exp((2.0 * (c * (0.8333333333333334 + (-0.6666666666666666 / 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) - 0.8333333333333334d0))))))
if (b <= (-1.8d+59)) then
tmp = t_1
else if (b <= 4.4d-269) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + 0.8333333333333334d0))))))
else if (b <= 2.3d+34) then
tmp = x / (x + (y * exp((2.0d0 * (c * (0.8333333333333334d0 + ((-0.6666666666666666d0) / 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) - 0.8333333333333334))))));
double tmp;
if (b <= -1.8e+59) {
tmp = t_1;
} else if (b <= 4.4e-269) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + 0.8333333333333334))))));
} else if (b <= 2.3e+34) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (0.8333333333333334 + (-0.6666666666666666 / 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) - 0.8333333333333334)))))) tmp = 0 if b <= -1.8e+59: tmp = t_1 elif b <= 4.4e-269: tmp = x / (x + (y * math.exp((2.0 * (c * (a + 0.8333333333333334)))))) elif b <= 2.3e+34: tmp = x / (x + (y * math.exp((2.0 * (c * (0.8333333333333334 + (-0.6666666666666666 / 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) - 0.8333333333333334))))))) tmp = 0.0 if (b <= -1.8e+59) tmp = t_1; elseif (b <= 4.4e-269) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))))))); elseif (b <= 2.3e+34) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(0.8333333333333334 + Float64(-0.6666666666666666 / 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) - 0.8333333333333334)))))); tmp = 0.0; if (b <= -1.8e+59) tmp = t_1; elseif (b <= 4.4e-269) tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334)))))); elseif (b <= 2.3e+34) tmp = x / (x + (y * exp((2.0 * (c * (0.8333333333333334 + (-0.6666666666666666 / 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] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.8e+59], t$95$1, If[LessEqual[b, 4.4e-269], 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, 2.3e+34], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - 0.8333333333333334\right)\right)}}\\
\mathbf{if}\;b \leq -1.8 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{-269}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\mathbf{elif}\;b \leq 2.3 \cdot 10^{+34}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.7999999999999999e59 or 2.2999999999999998e34 < b Initial program 90.8%
Taylor expanded in b around inf 89.3%
associate-*r/89.3%
metadata-eval89.3%
+-commutative89.3%
Simplified89.3%
Taylor expanded in a around 0 82.8%
if -1.7999999999999999e59 < b < 4.39999999999999968e-269Initial program 97.6%
Taylor expanded in c around inf 74.8%
associate--l+74.8%
associate-*r/74.8%
metadata-eval74.8%
Simplified74.8%
Taylor expanded in t around inf 73.7%
if 4.39999999999999968e-269 < b < 2.2999999999999998e34Initial program 96.4%
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 0 77.9%
sub-neg77.9%
associate-*r/77.9%
metadata-eval77.9%
distribute-neg-frac77.9%
metadata-eval77.9%
Simplified77.9%
Final simplification78.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a)))))))))
(if (<= b -235000.0)
t_1
(if (<= b 1.45e+32)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= b 2e+202)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ b 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.8333333333333334 - a))))));
double tmp;
if (b <= -235000.0) {
tmp = t_1;
} else if (b <= 1.45e+32) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (b <= 2e+202) {
tmp = x / (x + (y * exp((1.3333333333333333 * (b / 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.8333333333333334d0) - a))))))
if (b <= (-235000.0d0)) then
tmp = t_1
else if (b <= 1.45d+32) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (b <= 2d+202) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * (b / 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.8333333333333334 - a))))));
double tmp;
if (b <= -235000.0) {
tmp = t_1;
} else if (b <= 1.45e+32) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (b <= 2e+202) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * (b / 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.8333333333333334 - a)))))) tmp = 0 if b <= -235000.0: tmp = t_1 elif b <= 1.45e+32: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif b <= 2e+202: tmp = x / (x + (y * math.exp((1.3333333333333333 * (b / 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(-0.8333333333333334 - a))))))) tmp = 0.0 if (b <= -235000.0) tmp = t_1; elseif (b <= 1.45e+32) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (b <= 2e+202) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(b / 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.8333333333333334 - a)))))); tmp = 0.0; if (b <= -235000.0) tmp = t_1; elseif (b <= 1.45e+32) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (b <= 2e+202) tmp = x / (x + (y * exp((1.3333333333333333 * (b / 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[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -235000.0], t$95$1, If[LessEqual[b, 1.45e+32], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2e+202], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(b / 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(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{if}\;b \leq -235000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{+32}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;b \leq 2 \cdot 10^{+202}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b}{t}}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -235000 or 1.9999999999999998e202 < b Initial program 93.8%
Taylor expanded in b around inf 91.8%
associate-*r/91.8%
metadata-eval91.8%
+-commutative91.8%
Simplified91.8%
Taylor expanded in t around inf 76.5%
mul-1-neg76.5%
+-commutative76.5%
distribute-rgt-neg-in76.5%
+-commutative76.5%
mul-1-neg76.5%
distribute-lft-in76.5%
metadata-eval76.5%
mul-1-neg76.5%
unsub-neg76.5%
Simplified76.5%
if -235000 < b < 1.45000000000000001e32Initial program 96.9%
Taylor expanded in c around inf 77.0%
associate--l+77.0%
associate-*r/77.0%
metadata-eval77.0%
Simplified77.0%
Taylor expanded in a around inf 71.8%
if 1.45000000000000001e32 < b < 1.9999999999999998e202Initial program 85.4%
Taylor expanded in b around inf 77.2%
associate-*r/77.2%
metadata-eval77.2%
+-commutative77.2%
Simplified77.2%
Taylor expanded in t around 0 71.5%
associate-*r/71.5%
*-commutative71.5%
Simplified71.5%
Taylor expanded in y around 0 71.5%
Final simplification73.5%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -6.6e+86) (not (<= c 9.6e+81)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* c (+ 0.8333333333333334 (- a (/ 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 <= -6.6e+86) || !(c <= 9.6e+81)) {
tmp = x / (x + (y * exp((2.0 * (c * (0.8333333333333334 + (a - (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 <= (-6.6d+86)) .or. (.not. (c <= 9.6d+81))) then
tmp = x / (x + (y * exp((2.0d0 * (c * (0.8333333333333334d0 + (a - (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 <= -6.6e+86) || !(c <= 9.6e+81)) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (0.8333333333333334 + (a - (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 <= -6.6e+86) or not (c <= 9.6e+81): tmp = x / (x + (y * math.exp((2.0 * (c * (0.8333333333333334 + (a - (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 <= -6.6e+86) || !(c <= 9.6e+81)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(0.8333333333333334 + Float64(a - 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 <= -6.6e+86) || ~((c <= 9.6e+81))) tmp = x / (x + (y * exp((2.0 * (c * (0.8333333333333334 + (a - (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, -6.6e+86], N[Not[LessEqual[c, 9.6e+81]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $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 -6.6 \cdot 10^{+86} \lor \neg \left(c \leq 9.6 \cdot 10^{+81}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\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 < -6.5999999999999998e86 or 9.59999999999999958e81 < c Initial program 89.7%
Taylor expanded in c around inf 90.0%
associate--l+90.0%
associate-*r/90.0%
metadata-eval90.0%
Simplified90.0%
if -6.5999999999999998e86 < c < 9.59999999999999958e81Initial program 96.5%
Taylor expanded in b around inf 81.6%
associate-*r/81.6%
metadata-eval81.6%
+-commutative81.6%
Simplified81.6%
Final simplification84.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 28.5)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ b t))))))
(if (or (<= t 2.6e+132) (not (<= t 1.75e+195)))
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(/ 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 <= 28.5) {
tmp = x / (x + (y * exp((1.3333333333333333 * (b / t)))));
} else if ((t <= 2.6e+132) || !(t <= 1.75e+195)) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} 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 <= 28.5d0) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * (b / t)))))
else if ((t <= 2.6d+132) .or. (.not. (t <= 1.75d+195))) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
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 <= 28.5) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * (b / t)))));
} else if ((t <= 2.6e+132) || !(t <= 1.75e+195)) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} 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 <= 28.5: tmp = x / (x + (y * math.exp((1.3333333333333333 * (b / t))))) elif (t <= 2.6e+132) or not (t <= 1.75e+195): tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) 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 <= 28.5) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(b / t)))))); elseif ((t <= 2.6e+132) || !(t <= 1.75e+195)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); 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 <= 28.5) tmp = x / (x + (y * exp((1.3333333333333333 * (b / t))))); elseif ((t <= 2.6e+132) || ~((t <= 1.75e+195))) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); 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, 28.5], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 2.6e+132], N[Not[LessEqual[t, 1.75e+195]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $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 28.5:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b}{t}}}\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{+132} \lor \neg \left(t \leq 1.75 \cdot 10^{+195}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if t < 28.5Initial program 92.1%
Taylor expanded in b around inf 68.1%
associate-*r/68.1%
metadata-eval68.1%
+-commutative68.1%
Simplified68.1%
Taylor expanded in t around 0 65.1%
associate-*r/65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in y around 0 65.1%
if 28.5 < t < 2.6e132 or 1.7500000000000001e195 < t Initial program 95.9%
Taylor expanded in b around inf 82.7%
associate-*r/82.7%
metadata-eval82.7%
+-commutative82.7%
Simplified82.7%
Taylor expanded in t around inf 82.7%
mul-1-neg82.7%
+-commutative82.7%
distribute-rgt-neg-in82.7%
+-commutative82.7%
mul-1-neg82.7%
distribute-lft-in82.7%
metadata-eval82.7%
mul-1-neg82.7%
unsub-neg82.7%
Simplified82.7%
Taylor expanded in a around 0 73.6%
if 2.6e132 < t < 1.7500000000000001e195Initial program 100.0%
Taylor expanded in c around inf 86.1%
associate--l+86.1%
associate-*r/86.1%
metadata-eval86.1%
Simplified86.1%
Taylor expanded in t around inf 86.1%
Taylor expanded in a around 0 77.0%
Final simplification69.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(+
y
(*
2.0
(*
y
(*
c
(+ (+ a 0.8333333333333334) (/ -0.6666666666666666 t))))))))))
(if (<= c -3.9e+272)
t_1
(if (<= c -1.9e+24)
1.0
(if (<= c 4.4e+103)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y + (2.0 * (y * (c * ((a + 0.8333333333333334) + (-0.6666666666666666 / t)))))));
double tmp;
if (c <= -3.9e+272) {
tmp = t_1;
} else if (c <= -1.9e+24) {
tmp = 1.0;
} else if (c <= 4.4e+103) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} 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 + (2.0d0 * (y * (c * ((a + 0.8333333333333334d0) + ((-0.6666666666666666d0) / t)))))))
if (c <= (-3.9d+272)) then
tmp = t_1
else if (c <= (-1.9d+24)) then
tmp = 1.0d0
else if (c <= 4.4d+103) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
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 + (2.0 * (y * (c * ((a + 0.8333333333333334) + (-0.6666666666666666 / t)))))));
double tmp;
if (c <= -3.9e+272) {
tmp = t_1;
} else if (c <= -1.9e+24) {
tmp = 1.0;
} else if (c <= 4.4e+103) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y + (2.0 * (y * (c * ((a + 0.8333333333333334) + (-0.6666666666666666 / t))))))) tmp = 0 if c <= -3.9e+272: tmp = t_1 elif c <= -1.9e+24: tmp = 1.0 elif c <= 4.4e+103: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(y * Float64(c * Float64(Float64(a + 0.8333333333333334) + Float64(-0.6666666666666666 / t)))))))) tmp = 0.0 if (c <= -3.9e+272) tmp = t_1; elseif (c <= -1.9e+24) tmp = 1.0; elseif (c <= 4.4e+103) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y + (2.0 * (y * (c * ((a + 0.8333333333333334) + (-0.6666666666666666 / t))))))); tmp = 0.0; if (c <= -3.9e+272) tmp = t_1; elseif (c <= -1.9e+24) tmp = 1.0; elseif (c <= 4.4e+103) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); 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[(2.0 * N[(y * N[(c * N[(N[(a + 0.8333333333333334), $MachinePrecision] + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.9e+272], t$95$1, If[LessEqual[c, -1.9e+24], 1.0, If[LessEqual[c, 4.4e+103], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + \left(y + 2 \cdot \left(y \cdot \left(c \cdot \left(\left(a + 0.8333333333333334\right) + \frac{-0.6666666666666666}{t}\right)\right)\right)\right)}\\
\mathbf{if}\;c \leq -3.9 \cdot 10^{+272}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.9 \cdot 10^{+24}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 4.4 \cdot 10^{+103}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -3.9e272 or 4.39999999999999985e103 < c Initial program 91.8%
Taylor expanded in c around inf 88.1%
associate--l+88.1%
associate-*r/88.1%
metadata-eval88.1%
Simplified88.1%
Taylor expanded in c around 0 72.1%
distribute-lft-out72.1%
associate--l+72.1%
sub-neg72.1%
associate-*r/72.1%
metadata-eval72.1%
distribute-neg-frac72.1%
metadata-eval72.1%
Simplified72.1%
Taylor expanded in c around 0 59.3%
*-commutative59.3%
associate-*l*67.1%
sub-neg67.1%
associate-*r/67.1%
metadata-eval67.1%
distribute-neg-frac67.1%
metadata-eval67.1%
Simplified67.1%
if -3.9e272 < c < -1.90000000000000008e24Initial program 89.4%
Taylor expanded in c around inf 87.6%
associate--l+87.6%
associate-*r/87.6%
metadata-eval87.6%
Simplified87.6%
Taylor expanded in c around 0 33.7%
distribute-lft-out33.7%
associate--l+33.7%
sub-neg33.7%
associate-*r/33.7%
metadata-eval33.7%
distribute-neg-frac33.7%
metadata-eval33.7%
Simplified33.7%
Taylor expanded in c around 0 36.3%
sub-neg36.3%
associate-*r/36.3%
metadata-eval36.3%
distribute-neg-frac36.3%
metadata-eval36.3%
Simplified36.3%
Taylor expanded in x around inf 71.1%
if -1.90000000000000008e24 < c < 4.39999999999999985e103Initial program 96.3%
Taylor expanded in b around inf 81.2%
associate-*r/81.2%
metadata-eval81.2%
+-commutative81.2%
Simplified81.2%
Taylor expanded in t around inf 70.3%
mul-1-neg70.3%
+-commutative70.3%
distribute-rgt-neg-in70.3%
+-commutative70.3%
mul-1-neg70.3%
distribute-lft-in70.3%
metadata-eval70.3%
mul-1-neg70.3%
unsub-neg70.3%
Simplified70.3%
Taylor expanded in a around 0 65.0%
Final simplification66.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -1e+272)
(/
x
(+
x
(+
y
(*
2.0
(* y (* c (+ (+ a 0.8333333333333334) (/ -0.6666666666666666 t))))))))
(if (<= c -3.15e+25)
1.0
(if (<= c 7.5e+97)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(/ 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 (c <= -1e+272) {
tmp = x / (x + (y + (2.0 * (y * (c * ((a + 0.8333333333333334) + (-0.6666666666666666 / t)))))));
} else if (c <= -3.15e+25) {
tmp = 1.0;
} else if (c <= 7.5e+97) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} 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 (c <= (-1d+272)) then
tmp = x / (x + (y + (2.0d0 * (y * (c * ((a + 0.8333333333333334d0) + ((-0.6666666666666666d0) / t)))))))
else if (c <= (-3.15d+25)) then
tmp = 1.0d0
else if (c <= 7.5d+97) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
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 (c <= -1e+272) {
tmp = x / (x + (y + (2.0 * (y * (c * ((a + 0.8333333333333334) + (-0.6666666666666666 / t)))))));
} else if (c <= -3.15e+25) {
tmp = 1.0;
} else if (c <= 7.5e+97) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -1e+272: tmp = x / (x + (y + (2.0 * (y * (c * ((a + 0.8333333333333334) + (-0.6666666666666666 / t))))))) elif c <= -3.15e+25: tmp = 1.0 elif c <= 7.5e+97: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) 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 (c <= -1e+272) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(y * Float64(c * Float64(Float64(a + 0.8333333333333334) + Float64(-0.6666666666666666 / t)))))))); elseif (c <= -3.15e+25) tmp = 1.0; elseif (c <= 7.5e+97) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); 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 (c <= -1e+272) tmp = x / (x + (y + (2.0 * (y * (c * ((a + 0.8333333333333334) + (-0.6666666666666666 / t))))))); elseif (c <= -3.15e+25) tmp = 1.0; elseif (c <= 7.5e+97) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); else tmp = x / (x + (y * exp((c * 1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -1e+272], N[(x / N[(x + N[(y + N[(2.0 * N[(y * N[(c * N[(N[(a + 0.8333333333333334), $MachinePrecision] + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.15e+25], 1.0, If[LessEqual[c, 7.5e+97], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $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}\;c \leq -1 \cdot 10^{+272}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(y \cdot \left(c \cdot \left(\left(a + 0.8333333333333334\right) + \frac{-0.6666666666666666}{t}\right)\right)\right)\right)}\\
\mathbf{elif}\;c \leq -3.15 \cdot 10^{+25}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 7.5 \cdot 10^{+97}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if c < -1.0000000000000001e272Initial program 85.7%
Taylor expanded in c around inf 93.1%
associate--l+93.1%
associate-*r/93.1%
metadata-eval93.1%
Simplified93.1%
Taylor expanded in c around 0 71.9%
distribute-lft-out71.9%
associate--l+71.9%
sub-neg71.9%
associate-*r/71.9%
metadata-eval71.9%
distribute-neg-frac71.9%
metadata-eval71.9%
Simplified71.9%
Taylor expanded in c around 0 58.5%
*-commutative58.5%
associate-*l*72.3%
sub-neg72.3%
associate-*r/72.3%
metadata-eval72.3%
distribute-neg-frac72.3%
metadata-eval72.3%
Simplified72.3%
if -1.0000000000000001e272 < c < -3.14999999999999987e25Initial program 89.4%
Taylor expanded in c around inf 87.6%
associate--l+87.6%
associate-*r/87.6%
metadata-eval87.6%
Simplified87.6%
Taylor expanded in c around 0 33.7%
distribute-lft-out33.7%
associate--l+33.7%
sub-neg33.7%
associate-*r/33.7%
metadata-eval33.7%
distribute-neg-frac33.7%
metadata-eval33.7%
Simplified33.7%
Taylor expanded in c around 0 36.3%
sub-neg36.3%
associate-*r/36.3%
metadata-eval36.3%
distribute-neg-frac36.3%
metadata-eval36.3%
Simplified36.3%
Taylor expanded in x around inf 71.1%
if -3.14999999999999987e25 < c < 7.5000000000000004e97Initial program 96.3%
Taylor expanded in b around inf 81.1%
associate-*r/81.1%
metadata-eval81.1%
+-commutative81.1%
Simplified81.1%
Taylor expanded in t around inf 70.1%
mul-1-neg70.1%
+-commutative70.1%
distribute-rgt-neg-in70.1%
+-commutative70.1%
mul-1-neg70.1%
distribute-lft-in70.1%
metadata-eval70.1%
mul-1-neg70.1%
unsub-neg70.1%
Simplified70.1%
Taylor expanded in a around 0 64.7%
if 7.5000000000000004e97 < c Initial program 94.4%
Taylor expanded in c around inf 86.5%
associate--l+86.5%
associate-*r/86.5%
metadata-eval86.5%
Simplified86.5%
Taylor expanded in t around inf 78.5%
Taylor expanded in a around 0 75.8%
Final simplification67.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 28.5)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ b t))))))
(if (<= t 7e+132)
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a)))))))
(/ x (+ x (* y (exp (* 2.0 (* c (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 28.5) {
tmp = x / (x + (y * exp((1.3333333333333333 * (b / t)))));
} else if (t <= 7e+132) {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else {
tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 28.5d0) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * (b / t)))))
else if (t <= 7d+132) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
else
tmp = x / (x + (y * exp((2.0d0 * (c * (a + 0.8333333333333334d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 28.5) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * (b / t)))));
} else if (t <= 7e+132) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 28.5: tmp = x / (x + (y * math.exp((1.3333333333333333 * (b / t))))) elif t <= 7e+132: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * (a + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 28.5) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(b / t)))))); elseif (t <= 7e+132) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 28.5) tmp = x / (x + (y * exp((1.3333333333333333 * (b / t))))); elseif (t <= 7e+132) tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); else tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 28.5], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7e+132], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 28.5:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b}{t}}}\\
\mathbf{elif}\;t \leq 7 \cdot 10^{+132}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if t < 28.5Initial program 92.1%
Taylor expanded in b around inf 68.1%
associate-*r/68.1%
metadata-eval68.1%
+-commutative68.1%
Simplified68.1%
Taylor expanded in t around 0 65.1%
associate-*r/65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in y around 0 65.1%
if 28.5 < t < 7.00000000000000041e132Initial program 96.1%
Taylor expanded in b around inf 84.1%
associate-*r/84.1%
metadata-eval84.1%
+-commutative84.1%
Simplified84.1%
Taylor expanded in t around inf 84.1%
mul-1-neg84.1%
+-commutative84.1%
distribute-rgt-neg-in84.1%
+-commutative84.1%
mul-1-neg84.1%
distribute-lft-in84.1%
metadata-eval84.1%
mul-1-neg84.1%
unsub-neg84.1%
Simplified84.1%
if 7.00000000000000041e132 < t Initial program 97.1%
Taylor expanded in c around inf 84.1%
associate--l+84.1%
associate-*r/84.1%
metadata-eval84.1%
Simplified84.1%
Taylor expanded in t around inf 84.1%
Final simplification73.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 28.5)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ b t))))))
(if (<= t 5.8e+107)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(/ x (+ x (* y (exp (* 2.0 (* a c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 28.5) {
tmp = x / (x + (y * exp((1.3333333333333333 * (b / t)))));
} else if (t <= 5.8e+107) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 28.5d0) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * (b / t)))))
else if (t <= 5.8d+107) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 28.5) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * (b / t)))));
} else if (t <= 5.8e+107) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 28.5: tmp = x / (x + (y * math.exp((1.3333333333333333 * (b / t))))) elif t <= 5.8e+107: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) else: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 28.5) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(b / t)))))); elseif (t <= 5.8e+107) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 28.5) tmp = x / (x + (y * exp((1.3333333333333333 * (b / t))))); elseif (t <= 5.8e+107) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); else tmp = x / (x + (y * exp((2.0 * (a * c))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 28.5], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.8e+107], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 28.5:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b}{t}}}\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{+107}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\end{array}
\end{array}
if t < 28.5Initial program 92.1%
Taylor expanded in b around inf 68.1%
associate-*r/68.1%
metadata-eval68.1%
+-commutative68.1%
Simplified68.1%
Taylor expanded in t around 0 65.1%
associate-*r/65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in y around 0 65.1%
if 28.5 < t < 5.79999999999999975e107Initial program 97.6%
Taylor expanded in b around inf 83.5%
associate-*r/83.5%
metadata-eval83.5%
+-commutative83.5%
Simplified83.5%
Taylor expanded in t around inf 83.5%
mul-1-neg83.5%
+-commutative83.5%
distribute-rgt-neg-in83.5%
+-commutative83.5%
mul-1-neg83.5%
distribute-lft-in83.5%
metadata-eval83.5%
mul-1-neg83.5%
unsub-neg83.5%
Simplified83.5%
Taylor expanded in a around 0 76.2%
if 5.79999999999999975e107 < t Initial program 96.1%
Taylor expanded in c around inf 79.5%
associate--l+79.5%
associate-*r/79.5%
metadata-eval79.5%
Simplified79.5%
Taylor expanded in a around inf 75.7%
Final simplification70.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -3.8e+272)
(/
(/ x y)
(+
(* 2.0 (* c (+ 0.8333333333333334 (- a (/ 0.6666666666666666 t)))))
1.0))
(if (<= c -1.1e-119)
1.0
(if (<= c -9e-193)
(/ x (+ x (+ y (* 1.3333333333333333 (/ (* y b) t)))))
(if (<= c 4.35e+105)
1.0
(/
x
(+
x
(+
y
(*
2.0
(*
c
(*
y
(+
0.8333333333333334
(+ a (/ -0.6666666666666666 t))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -3.8e+272) {
tmp = (x / y) / ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0);
} else if (c <= -1.1e-119) {
tmp = 1.0;
} else if (c <= -9e-193) {
tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t))));
} else if (c <= 4.35e+105) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (2.0 * (c * (y * (0.8333333333333334 + (a + (-0.6666666666666666 / t))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-3.8d+272)) then
tmp = (x / y) / ((2.0d0 * (c * (0.8333333333333334d0 + (a - (0.6666666666666666d0 / t))))) + 1.0d0)
else if (c <= (-1.1d-119)) then
tmp = 1.0d0
else if (c <= (-9d-193)) then
tmp = x / (x + (y + (1.3333333333333333d0 * ((y * b) / t))))
else if (c <= 4.35d+105) then
tmp = 1.0d0
else
tmp = x / (x + (y + (2.0d0 * (c * (y * (0.8333333333333334d0 + (a + ((-0.6666666666666666d0) / t))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -3.8e+272) {
tmp = (x / y) / ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0);
} else if (c <= -1.1e-119) {
tmp = 1.0;
} else if (c <= -9e-193) {
tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t))));
} else if (c <= 4.35e+105) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (2.0 * (c * (y * (0.8333333333333334 + (a + (-0.6666666666666666 / t))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -3.8e+272: tmp = (x / y) / ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0) elif c <= -1.1e-119: tmp = 1.0 elif c <= -9e-193: tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t)))) elif c <= 4.35e+105: tmp = 1.0 else: tmp = x / (x + (y + (2.0 * (c * (y * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -3.8e+272) tmp = Float64(Float64(x / y) / Float64(Float64(2.0 * Float64(c * Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))))) + 1.0)); elseif (c <= -1.1e-119) tmp = 1.0; elseif (c <= -9e-193) tmp = Float64(x / Float64(x + Float64(y + Float64(1.3333333333333333 * Float64(Float64(y * b) / t))))); elseif (c <= 4.35e+105) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * Float64(y * Float64(0.8333333333333334 + Float64(a + Float64(-0.6666666666666666 / t))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -3.8e+272) tmp = (x / y) / ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0); elseif (c <= -1.1e-119) tmp = 1.0; elseif (c <= -9e-193) tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t)))); elseif (c <= 4.35e+105) tmp = 1.0; else tmp = x / (x + (y + (2.0 * (c * (y * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -3.8e+272], N[(N[(x / y), $MachinePrecision] / N[(N[(2.0 * N[(c * N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.1e-119], 1.0, If[LessEqual[c, -9e-193], N[(x / N[(x + N[(y + N[(1.3333333333333333 * N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.35e+105], 1.0, N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[(y * N[(0.8333333333333334 + N[(a + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.8 \cdot 10^{+272}:\\
\;\;\;\;\frac{\frac{x}{y}}{2 \cdot \left(c \cdot \left(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\right)\right) + 1}\\
\mathbf{elif}\;c \leq -1.1 \cdot 10^{-119}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -9 \cdot 10^{-193}:\\
\;\;\;\;\frac{x}{x + \left(y + 1.3333333333333333 \cdot \frac{y \cdot b}{t}\right)}\\
\mathbf{elif}\;c \leq 4.35 \cdot 10^{+105}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \left(y \cdot \left(0.8333333333333334 + \left(a + \frac{-0.6666666666666666}{t}\right)\right)\right)\right)\right)}\\
\end{array}
\end{array}
if c < -3.8e272Initial program 85.7%
Taylor expanded in c around inf 93.1%
associate--l+93.1%
associate-*r/93.1%
metadata-eval93.1%
Simplified93.1%
Taylor expanded in c around 0 71.9%
distribute-lft-out71.9%
associate--l+71.9%
sub-neg71.9%
associate-*r/71.9%
metadata-eval71.9%
distribute-neg-frac71.9%
metadata-eval71.9%
Simplified71.9%
Taylor expanded in c around 0 58.5%
sub-neg58.5%
associate-*r/58.5%
metadata-eval58.5%
distribute-neg-frac58.5%
metadata-eval58.5%
Simplified58.5%
Taylor expanded in y around inf 72.3%
associate-/r*65.2%
associate--l+65.2%
associate-*r/65.2%
metadata-eval65.2%
Simplified65.2%
if -3.8e272 < c < -1.1e-119 or -8.9999999999999997e-193 < c < 4.3499999999999999e105Initial program 94.7%
Taylor expanded in c around inf 67.8%
associate--l+67.8%
associate-*r/67.8%
metadata-eval67.8%
Simplified67.8%
Taylor expanded in c around 0 48.5%
distribute-lft-out48.5%
associate--l+48.5%
sub-neg48.5%
associate-*r/48.5%
metadata-eval48.5%
distribute-neg-frac48.5%
metadata-eval48.5%
Simplified48.5%
Taylor expanded in c around 0 44.8%
sub-neg44.8%
associate-*r/44.8%
metadata-eval44.8%
distribute-neg-frac44.8%
metadata-eval44.8%
Simplified44.8%
Taylor expanded in x around inf 62.0%
if -1.1e-119 < c < -8.9999999999999997e-193Initial program 95.2%
Taylor expanded in b around inf 100.0%
associate-*r/100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in t around 0 75.8%
associate-*r/75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in b around 0 71.3%
+-commutative71.3%
Simplified71.3%
if 4.3499999999999999e105 < c Initial program 94.1%
Taylor expanded in c around inf 85.8%
associate--l+85.8%
associate-*r/85.8%
metadata-eval85.8%
Simplified85.8%
Taylor expanded in c around 0 61.2%
associate--l+61.2%
sub-neg61.2%
associate-*r/61.2%
metadata-eval61.2%
distribute-neg-frac61.2%
metadata-eval61.2%
Simplified61.2%
Final simplification62.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(+
y
(*
2.0
(*
y
(*
c
(+ (+ a 0.8333333333333334) (/ -0.6666666666666666 t))))))))))
(if (<= c -2.7e+271)
t_1
(if (<= c -5e-119)
1.0
(if (<= c -2.35e-193)
(/ x (+ x (+ y (* 1.3333333333333333 (/ (* y b) t)))))
(if (<= c 1.1e+105) 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 + (2.0 * (y * (c * ((a + 0.8333333333333334) + (-0.6666666666666666 / t)))))));
double tmp;
if (c <= -2.7e+271) {
tmp = t_1;
} else if (c <= -5e-119) {
tmp = 1.0;
} else if (c <= -2.35e-193) {
tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t))));
} else if (c <= 1.1e+105) {
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 + (2.0d0 * (y * (c * ((a + 0.8333333333333334d0) + ((-0.6666666666666666d0) / t)))))))
if (c <= (-2.7d+271)) then
tmp = t_1
else if (c <= (-5d-119)) then
tmp = 1.0d0
else if (c <= (-2.35d-193)) then
tmp = x / (x + (y + (1.3333333333333333d0 * ((y * b) / t))))
else if (c <= 1.1d+105) 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 + (2.0 * (y * (c * ((a + 0.8333333333333334) + (-0.6666666666666666 / t)))))));
double tmp;
if (c <= -2.7e+271) {
tmp = t_1;
} else if (c <= -5e-119) {
tmp = 1.0;
} else if (c <= -2.35e-193) {
tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t))));
} else if (c <= 1.1e+105) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y + (2.0 * (y * (c * ((a + 0.8333333333333334) + (-0.6666666666666666 / t))))))) tmp = 0 if c <= -2.7e+271: tmp = t_1 elif c <= -5e-119: tmp = 1.0 elif c <= -2.35e-193: tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t)))) elif c <= 1.1e+105: 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 + Float64(2.0 * Float64(y * Float64(c * Float64(Float64(a + 0.8333333333333334) + Float64(-0.6666666666666666 / t)))))))) tmp = 0.0 if (c <= -2.7e+271) tmp = t_1; elseif (c <= -5e-119) tmp = 1.0; elseif (c <= -2.35e-193) tmp = Float64(x / Float64(x + Float64(y + Float64(1.3333333333333333 * Float64(Float64(y * b) / t))))); elseif (c <= 1.1e+105) 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 + (2.0 * (y * (c * ((a + 0.8333333333333334) + (-0.6666666666666666 / t))))))); tmp = 0.0; if (c <= -2.7e+271) tmp = t_1; elseif (c <= -5e-119) tmp = 1.0; elseif (c <= -2.35e-193) tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t)))); elseif (c <= 1.1e+105) 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[(2.0 * N[(y * N[(c * N[(N[(a + 0.8333333333333334), $MachinePrecision] + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.7e+271], t$95$1, If[LessEqual[c, -5e-119], 1.0, If[LessEqual[c, -2.35e-193], N[(x / N[(x + N[(y + N[(1.3333333333333333 * N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.1e+105], 1.0, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + \left(y + 2 \cdot \left(y \cdot \left(c \cdot \left(\left(a + 0.8333333333333334\right) + \frac{-0.6666666666666666}{t}\right)\right)\right)\right)}\\
\mathbf{if}\;c \leq -2.7 \cdot 10^{+271}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -5 \cdot 10^{-119}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -2.35 \cdot 10^{-193}:\\
\;\;\;\;\frac{x}{x + \left(y + 1.3333333333333333 \cdot \frac{y \cdot b}{t}\right)}\\
\mathbf{elif}\;c \leq 1.1 \cdot 10^{+105}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -2.69999999999999989e271 or 1.10000000000000003e105 < c Initial program 91.7%
Taylor expanded in c around inf 87.9%
associate--l+87.9%
associate-*r/87.9%
metadata-eval87.9%
Simplified87.9%
Taylor expanded in c around 0 73.5%
distribute-lft-out73.5%
associate--l+73.5%
sub-neg73.5%
associate-*r/73.5%
metadata-eval73.5%
distribute-neg-frac73.5%
metadata-eval73.5%
Simplified73.5%
Taylor expanded in c around 0 60.4%
*-commutative60.4%
associate-*l*68.4%
sub-neg68.4%
associate-*r/68.4%
metadata-eval68.4%
distribute-neg-frac68.4%
metadata-eval68.4%
Simplified68.4%
if -2.69999999999999989e271 < c < -4.99999999999999993e-119 or -2.34999999999999976e-193 < c < 1.10000000000000003e105Initial program 94.7%
Taylor expanded in c around inf 67.8%
associate--l+67.8%
associate-*r/67.8%
metadata-eval67.8%
Simplified67.8%
Taylor expanded in c around 0 48.5%
distribute-lft-out48.5%
associate--l+48.5%
sub-neg48.5%
associate-*r/48.5%
metadata-eval48.5%
distribute-neg-frac48.5%
metadata-eval48.5%
Simplified48.5%
Taylor expanded in c around 0 44.8%
sub-neg44.8%
associate-*r/44.8%
metadata-eval44.8%
distribute-neg-frac44.8%
metadata-eval44.8%
Simplified44.8%
Taylor expanded in x around inf 62.0%
if -4.99999999999999993e-119 < c < -2.34999999999999976e-193Initial program 95.2%
Taylor expanded in b around inf 100.0%
associate-*r/100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in t around 0 75.8%
associate-*r/75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in b around 0 71.3%
+-commutative71.3%
Simplified71.3%
Final simplification63.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
(/ x y)
(+
(* 2.0 (* c (+ 0.8333333333333334 (- a (/ 0.6666666666666666 t)))))
1.0))))
(if (<= c -3.9e+272)
t_1
(if (<= c -6.5e-119)
1.0
(if (<= c -1.08e-197)
(/ x (+ x (+ y (* 1.3333333333333333 (/ (* y b) t)))))
(if (<= c 6.8e+105) 1.0 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (x / y) / ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0);
double tmp;
if (c <= -3.9e+272) {
tmp = t_1;
} else if (c <= -6.5e-119) {
tmp = 1.0;
} else if (c <= -1.08e-197) {
tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t))));
} else if (c <= 6.8e+105) {
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 / y) / ((2.0d0 * (c * (0.8333333333333334d0 + (a - (0.6666666666666666d0 / t))))) + 1.0d0)
if (c <= (-3.9d+272)) then
tmp = t_1
else if (c <= (-6.5d-119)) then
tmp = 1.0d0
else if (c <= (-1.08d-197)) then
tmp = x / (x + (y + (1.3333333333333333d0 * ((y * b) / t))))
else if (c <= 6.8d+105) 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 / y) / ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0);
double tmp;
if (c <= -3.9e+272) {
tmp = t_1;
} else if (c <= -6.5e-119) {
tmp = 1.0;
} else if (c <= -1.08e-197) {
tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t))));
} else if (c <= 6.8e+105) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (x / y) / ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0) tmp = 0 if c <= -3.9e+272: tmp = t_1 elif c <= -6.5e-119: tmp = 1.0 elif c <= -1.08e-197: tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t)))) elif c <= 6.8e+105: tmp = 1.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(x / y) / Float64(Float64(2.0 * Float64(c * Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))))) + 1.0)) tmp = 0.0 if (c <= -3.9e+272) tmp = t_1; elseif (c <= -6.5e-119) tmp = 1.0; elseif (c <= -1.08e-197) tmp = Float64(x / Float64(x + Float64(y + Float64(1.3333333333333333 * Float64(Float64(y * b) / t))))); elseif (c <= 6.8e+105) 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 / y) / ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0); tmp = 0.0; if (c <= -3.9e+272) tmp = t_1; elseif (c <= -6.5e-119) tmp = 1.0; elseif (c <= -1.08e-197) tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t)))); elseif (c <= 6.8e+105) 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[(N[(x / y), $MachinePrecision] / N[(N[(2.0 * N[(c * N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.9e+272], t$95$1, If[LessEqual[c, -6.5e-119], 1.0, If[LessEqual[c, -1.08e-197], N[(x / N[(x + N[(y + N[(1.3333333333333333 * N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.8e+105], 1.0, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{y}}{2 \cdot \left(c \cdot \left(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\right)\right) + 1}\\
\mathbf{if}\;c \leq -3.9 \cdot 10^{+272}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -6.5 \cdot 10^{-119}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.08 \cdot 10^{-197}:\\
\;\;\;\;\frac{x}{x + \left(y + 1.3333333333333333 \cdot \frac{y \cdot b}{t}\right)}\\
\mathbf{elif}\;c \leq 6.8 \cdot 10^{+105}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -3.9e272 or 6.7999999999999999e105 < c Initial program 91.7%
Taylor expanded in c around inf 87.9%
associate--l+87.9%
associate-*r/87.9%
metadata-eval87.9%
Simplified87.9%
Taylor expanded in c around 0 73.5%
distribute-lft-out73.5%
associate--l+73.5%
sub-neg73.5%
associate-*r/73.5%
metadata-eval73.5%
distribute-neg-frac73.5%
metadata-eval73.5%
Simplified73.5%
Taylor expanded in c around 0 60.4%
sub-neg60.4%
associate-*r/60.4%
metadata-eval60.4%
distribute-neg-frac60.4%
metadata-eval60.4%
Simplified60.4%
Taylor expanded in y around inf 66.3%
associate-/r*62.2%
associate--l+62.2%
associate-*r/62.2%
metadata-eval62.2%
Simplified62.2%
if -3.9e272 < c < -6.5e-119 or -1.0800000000000001e-197 < c < 6.7999999999999999e105Initial program 94.7%
Taylor expanded in c around inf 67.8%
associate--l+67.8%
associate-*r/67.8%
metadata-eval67.8%
Simplified67.8%
Taylor expanded in c around 0 48.5%
distribute-lft-out48.5%
associate--l+48.5%
sub-neg48.5%
associate-*r/48.5%
metadata-eval48.5%
distribute-neg-frac48.5%
metadata-eval48.5%
Simplified48.5%
Taylor expanded in c around 0 44.8%
sub-neg44.8%
associate-*r/44.8%
metadata-eval44.8%
distribute-neg-frac44.8%
metadata-eval44.8%
Simplified44.8%
Taylor expanded in x around inf 62.0%
if -6.5e-119 < c < -1.0800000000000001e-197Initial program 95.2%
Taylor expanded in b around inf 100.0%
associate-*r/100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in t around 0 75.8%
associate-*r/75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in b around 0 71.3%
+-commutative71.3%
Simplified71.3%
Final simplification62.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -1.75e-119)
1.0
(if (<= c -6.8e-193)
(/ x (+ x (+ y (* 1.3333333333333333 (/ (* y b) t)))))
(if (<= c 1.52e+106)
1.0
(*
0.5
(/
(/ x c)
(* y (+ 0.8333333333333334 (- a (/ 0.6666666666666666 t))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1.75e-119) {
tmp = 1.0;
} else if (c <= -6.8e-193) {
tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t))));
} else if (c <= 1.52e+106) {
tmp = 1.0;
} else {
tmp = 0.5 * ((x / c) / (y * (0.8333333333333334 + (a - (0.6666666666666666 / t)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-1.75d-119)) then
tmp = 1.0d0
else if (c <= (-6.8d-193)) then
tmp = x / (x + (y + (1.3333333333333333d0 * ((y * b) / t))))
else if (c <= 1.52d+106) then
tmp = 1.0d0
else
tmp = 0.5d0 * ((x / c) / (y * (0.8333333333333334d0 + (a - (0.6666666666666666d0 / t)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1.75e-119) {
tmp = 1.0;
} else if (c <= -6.8e-193) {
tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t))));
} else if (c <= 1.52e+106) {
tmp = 1.0;
} else {
tmp = 0.5 * ((x / c) / (y * (0.8333333333333334 + (a - (0.6666666666666666 / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -1.75e-119: tmp = 1.0 elif c <= -6.8e-193: tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t)))) elif c <= 1.52e+106: tmp = 1.0 else: tmp = 0.5 * ((x / c) / (y * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -1.75e-119) tmp = 1.0; elseif (c <= -6.8e-193) tmp = Float64(x / Float64(x + Float64(y + Float64(1.3333333333333333 * Float64(Float64(y * b) / t))))); elseif (c <= 1.52e+106) tmp = 1.0; else tmp = Float64(0.5 * Float64(Float64(x / c) / Float64(y * Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -1.75e-119) tmp = 1.0; elseif (c <= -6.8e-193) tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t)))); elseif (c <= 1.52e+106) tmp = 1.0; else tmp = 0.5 * ((x / c) / (y * (0.8333333333333334 + (a - (0.6666666666666666 / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -1.75e-119], 1.0, If[LessEqual[c, -6.8e-193], N[(x / N[(x + N[(y + N[(1.3333333333333333 * N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.52e+106], 1.0, N[(0.5 * N[(N[(x / c), $MachinePrecision] / N[(y * N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.75 \cdot 10^{-119}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -6.8 \cdot 10^{-193}:\\
\;\;\;\;\frac{x}{x + \left(y + 1.3333333333333333 \cdot \frac{y \cdot b}{t}\right)}\\
\mathbf{elif}\;c \leq 1.52 \cdot 10^{+106}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{\frac{x}{c}}{y \cdot \left(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\right)}\\
\end{array}
\end{array}
if c < -1.75e-119 or -6.8000000000000004e-193 < c < 1.52e106Initial program 94.1%
Taylor expanded in c around inf 69.6%
associate--l+69.6%
associate-*r/69.6%
metadata-eval69.6%
Simplified69.6%
Taylor expanded in c around 0 50.1%
distribute-lft-out50.1%
associate--l+50.1%
sub-neg50.1%
associate-*r/50.1%
metadata-eval50.1%
distribute-neg-frac50.1%
metadata-eval50.1%
Simplified50.1%
Taylor expanded in c around 0 45.8%
sub-neg45.8%
associate-*r/45.8%
metadata-eval45.8%
distribute-neg-frac45.8%
metadata-eval45.8%
Simplified45.8%
Taylor expanded in x around inf 59.8%
if -1.75e-119 < c < -6.8000000000000004e-193Initial program 95.2%
Taylor expanded in b around inf 100.0%
associate-*r/100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in t around 0 75.8%
associate-*r/75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in b around 0 71.3%
+-commutative71.3%
Simplified71.3%
if 1.52e106 < c Initial program 94.1%
Taylor expanded in c around inf 85.8%
associate--l+85.8%
associate-*r/85.8%
metadata-eval85.8%
Simplified85.8%
Taylor expanded in c around 0 74.2%
distribute-lft-out74.2%
associate--l+74.2%
sub-neg74.2%
associate-*r/74.2%
metadata-eval74.2%
distribute-neg-frac74.2%
metadata-eval74.2%
Simplified74.2%
Taylor expanded in c around 0 61.2%
sub-neg61.2%
associate-*r/61.2%
metadata-eval61.2%
distribute-neg-frac61.2%
metadata-eval61.2%
Simplified61.2%
Taylor expanded in c around inf 58.3%
associate-/r*60.1%
cancel-sign-sub-inv60.1%
metadata-eval60.1%
associate-*r/60.1%
metadata-eval60.1%
associate-+l+60.1%
metadata-eval60.1%
associate-*r/60.1%
metadata-eval60.1%
cancel-sign-sub-inv60.1%
associate-*r/60.1%
metadata-eval60.1%
Simplified60.1%
Final simplification60.8%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -1.45e-45) (/ x (+ x (+ y (* -2.0 (* a (* y b)))))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.45e-45) {
tmp = x / (x + (y + (-2.0 * (a * (y * b)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-1.45d-45)) then
tmp = x / (x + (y + ((-2.0d0) * (a * (y * b)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.45e-45) {
tmp = x / (x + (y + (-2.0 * (a * (y * b)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -1.45e-45: tmp = x / (x + (y + (-2.0 * (a * (y * b))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -1.45e-45) tmp = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(a * Float64(y * b)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -1.45e-45) tmp = x / (x + (y + (-2.0 * (a * (y * b))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -1.45e-45], N[(x / N[(x + N[(y + N[(-2.0 * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.45 \cdot 10^{-45}:\\
\;\;\;\;\frac{x}{x + \left(y + -2 \cdot \left(a \cdot \left(y \cdot b\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.45e-45Initial program 94.5%
Taylor expanded in b around inf 85.2%
associate-*r/85.2%
metadata-eval85.2%
+-commutative85.2%
Simplified85.2%
Taylor expanded in a around inf 59.8%
associate-*r*59.8%
mul-1-neg59.8%
Simplified59.8%
Taylor expanded in a around 0 51.5%
if -1.45e-45 < b Initial program 94.1%
Taylor expanded in c around inf 70.8%
associate--l+70.8%
associate-*r/70.8%
metadata-eval70.8%
Simplified70.8%
Taylor expanded in c around 0 54.6%
distribute-lft-out54.6%
associate--l+54.6%
sub-neg54.6%
associate-*r/54.6%
metadata-eval54.6%
distribute-neg-frac54.6%
metadata-eval54.6%
Simplified54.6%
Taylor expanded in c around 0 48.9%
sub-neg48.9%
associate-*r/48.9%
metadata-eval48.9%
distribute-neg-frac48.9%
metadata-eval48.9%
Simplified48.9%
Taylor expanded in x around inf 58.0%
Final simplification56.2%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 94.2%
Taylor expanded in c around inf 70.0%
associate--l+70.0%
associate-*r/70.0%
metadata-eval70.0%
Simplified70.0%
Taylor expanded in c around 0 54.1%
distribute-lft-out54.1%
associate--l+54.1%
sub-neg54.1%
associate-*r/54.1%
metadata-eval54.1%
distribute-neg-frac54.1%
metadata-eval54.1%
Simplified54.1%
Taylor expanded in c around 0 47.5%
sub-neg47.5%
associate-*r/47.5%
metadata-eval47.5%
distribute-neg-frac47.5%
metadata-eval47.5%
Simplified47.5%
Taylor expanded in x around inf 53.2%
Final simplification53.2%
(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 2024095
(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)))))))))))