
(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 24 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 (sqrt (+ a t))))
(if (<=
(+
(/ (* z t_1) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))
INFINITY)
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(+
(/ z (/ t t_1))
(* (- a (- (/ (/ 2.0 t) 3.0) 0.8333333333333334)) (- c b)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (- (* z (sqrt a)) (* -0.6666666666666666 (- b c))) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = sqrt((a + t));
double tmp;
if ((((z * t_1) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))) <= ((double) INFINITY)) {
tmp = x / (x + (y * pow(exp(2.0), ((z / (t / t_1)) + ((a - (((2.0 / t) / 3.0) - 0.8333333333333334)) * (c - b))))));
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = Math.sqrt((a + t));
double tmp;
if ((((z * t_1) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))) <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), ((z / (t / t_1)) + ((a - (((2.0 / t) / 3.0) - 0.8333333333333334)) * (c - b))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = math.sqrt((a + t)) tmp = 0 if (((z * t_1) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))) <= math.inf: tmp = x / (x + (y * math.pow(math.exp(2.0), ((z / (t / t_1)) + ((a - (((2.0 / t) / 3.0) - 0.8333333333333334)) * (c - b)))))) else: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = sqrt(Float64(a + t)) tmp = 0.0 if (Float64(Float64(Float64(z * t_1) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) <= Inf) tmp = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(Float64(z / Float64(t / t_1)) + Float64(Float64(a - Float64(Float64(Float64(2.0 / t) / 3.0) - 0.8333333333333334)) * Float64(c - b))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) - Float64(-0.6666666666666666 * Float64(b - c))) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = sqrt((a + t)); tmp = 0.0; if ((((z * t_1) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))) <= Inf) tmp = x / (x + (y * (exp(2.0) ^ ((z / (t / t_1)) + ((a - (((2.0 / t) / 3.0) - 0.8333333333333334)) * (c - b)))))); else tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(N[(N[(z * t$95$1), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(z / N[(t / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(a - N[(N[(N[(2.0 / t), $MachinePrecision] / 3.0), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] - N[(-0.6666666666666666 * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt{a + t}\\
\mathbf{if}\;\frac{z \cdot t_1}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right) \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(\frac{z}{\frac{t}{t_1}} + \left(a - \left(\frac{\frac{2}{t}}{3} - 0.8333333333333334\right)\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} - -0.6666666666666666 \cdot \left(b - c\right)}{t}}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 99.6%
exp-prod99.6%
associate-/l*100.0%
associate--l+100.0%
metadata-eval100.0%
associate-/r*100.0%
Simplified100.0%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) Initial program 0.0%
Taylor expanded in t around 0 72.3%
Final simplification99.2%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
(+ (+ a 0.8333333333333334) (/ -0.6666666666666666 t))
(- c b)
(* (/ z t) (sqrt (+ a t)))))
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(((a + 0.8333333333333334) + (-0.6666666666666666 / t)), (c - b), ((z / t) * sqrt((a + t))))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(Float64(Float64(a + 0.8333333333333334) + Float64(-0.6666666666666666 / t)), Float64(c - b), Float64(Float64(z / t) * sqrt(Float64(a + t))))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision] + N[(N[(z / t), $MachinePrecision] * N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(\left(a + 0.8333333333333334\right) + \frac{-0.6666666666666666}{t}, c - b, \frac{z}{t} \cdot \sqrt{a + t}\right)\right)}, x\right)}
\end{array}
Initial program 96.9%
Simplified98.5%
Final simplification98.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ a t))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (- (* z (sqrt a)) (* -0.6666666666666666 (- b c))) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * Math.sqrt((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(a + t))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) - Float64(-0.6666666666666666 * Float64(b - c))) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] - N[(-0.6666666666666666 * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{a + t}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} - -0.6666666666666666 \cdot \left(b - c\right)}{t}}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 99.6%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) Initial program 0.0%
Taylor expanded in t around 0 72.3%
Final simplification98.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -2.4e-29)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 1.7e-165)
(/
x
(+
x
(*
y
(exp
(* 2.0 (/ (- (* z (sqrt a)) (* -0.6666666666666666 (- b c))) t))))))
(if (<= t 1.95e+119)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (+ 0.8333333333333334 (/ -0.6666666666666666 t)) (- c b))))))))
(/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -2.4e-29) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 1.7e-165) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
} else if (t <= 1.95e+119) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((0.8333333333333334 + (-0.6666666666666666 / t)) * (c - b)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-2.4d-29)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 1.7d-165) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) - ((-0.6666666666666666d0) * (b - c))) / t)))))
else if (t <= 1.95d+119) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((0.8333333333333334d0 + ((-0.6666666666666666d0) / t)) * (c - b)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -2.4e-29) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 1.7e-165) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
} else if (t <= 1.95e+119) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((0.8333333333333334 + (-0.6666666666666666 / t)) * (c - b)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -2.4e-29: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 1.7e-165: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))) elif t <= 1.95e+119: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((0.8333333333333334 + (-0.6666666666666666 / t)) * (c - b))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -2.4e-29) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 1.7e-165) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) - Float64(-0.6666666666666666 * Float64(b - c))) / t)))))); elseif (t <= 1.95e+119) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t)) * Float64(c - b)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -2.4e-29) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 1.7e-165) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))); elseif (t <= 1.95e+119) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((0.8333333333333334 + (-0.6666666666666666 / t)) * (c - b))))))); else tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -2.4e-29], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e-165], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] - N[(-0.6666666666666666 * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.95e+119], 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[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.4 \cdot 10^{-29}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-165}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} - -0.6666666666666666 \cdot \left(b - c\right)}{t}}}\\
\mathbf{elif}\;t \leq 1.95 \cdot 10^{+119}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < -2.39999999999999992e-29Initial program 95.0%
Taylor expanded in a around inf 95.2%
if -2.39999999999999992e-29 < t < 1.7e-165Initial program 93.1%
Taylor expanded in t around 0 95.9%
if 1.7e-165 < t < 1.9499999999999999e119Initial program 100.0%
Taylor expanded in a around 0 85.3%
*-commutative85.3%
*-commutative85.3%
cancel-sign-sub-inv85.3%
metadata-eval85.3%
associate-*r/85.3%
metadata-eval85.3%
Simplified85.3%
if 1.9499999999999999e119 < t Initial program 97.0%
Taylor expanded in t around inf 94.1%
mul-1-neg94.1%
+-commutative94.1%
distribute-rgt-neg-in94.1%
neg-sub094.1%
associate--r-94.1%
neg-sub094.1%
+-commutative94.1%
sub-neg94.1%
*-commutative94.1%
Simplified94.1%
Final simplification91.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -1e-27)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 8.8e-209)
(/
x
(+
x
(*
y
(exp
(* 2.0 (/ (- (* z (sqrt a)) (* -0.6666666666666666 (- b c))) t))))))
(if (<= t 0.79)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t)))))))))
(/ x (+ x (* y (exp (* 2.0 (* (+ 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 <= -1e-27) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 8.8e-209) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
} else if (t <= 0.79) {
tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((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 <= (-1d-27)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 8.8d-209) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) - ((-0.6666666666666666d0) * (b - c))) / t)))))
else if (t <= 0.79d0) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + (0.8333333333333334d0 + ((-0.6666666666666666d0) / t))))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((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 <= -1e-27) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 8.8e-209) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
} else if (t <= 0.79) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -1e-27: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 8.8e-209: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))) elif t <= 0.79: tmp = x / (x + (y * math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -1e-27) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 8.8e-209) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) - Float64(-0.6666666666666666 * Float64(b - c))) / t)))))); elseif (t <= 0.79) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * 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 <= -1e-27) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 8.8e-209) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))); elseif (t <= 0.79) tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))); else tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -1e-27], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.8e-209], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] - N[(-0.6666666666666666 * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.79], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(0.8333333333333334 + 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[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{-27}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 8.8 \cdot 10^{-209}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} - -0.6666666666666666 \cdot \left(b - c\right)}{t}}}\\
\mathbf{elif}\;t \leq 0.79:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < -1e-27Initial program 95.0%
Taylor expanded in a around inf 95.2%
if -1e-27 < t < 8.80000000000000039e-209Initial program 95.1%
Taylor expanded in t around 0 100.0%
if 8.80000000000000039e-209 < t < 0.79000000000000004Initial program 97.1%
Taylor expanded in c around inf 74.8%
cancel-sign-sub-inv74.8%
+-commutative74.8%
metadata-eval74.8%
associate-*r/74.8%
metadata-eval74.8%
associate-+r+74.8%
Simplified74.8%
if 0.79000000000000004 < t Initial program 98.1%
Taylor expanded in t around inf 88.2%
mul-1-neg88.2%
+-commutative88.2%
distribute-rgt-neg-in88.2%
neg-sub088.2%
associate--r-88.2%
neg-sub088.2%
+-commutative88.2%
sub-neg88.2%
*-commutative88.2%
Simplified88.2%
Final simplification87.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(-
y
(*
2.0
(* c (* y (- (/ 0.6666666666666666 t) 0.8333333333333334))))))))
(t_2 (/ x (+ x (* y (- 1.0 (* 1.3333333333333333 (/ (- c b) t))))))))
(if (<= c -8.2e+184)
1.0
(if (<= c -5.2e+103)
t_2
(if (<= c -5.5e-31)
1.0
(if (<= c -1.15e-72)
t_1
(if (<= c -4.5e-138)
t_2
(if (<= c -2.2e-212)
1.0
(if (<= c 1.5e-263)
t_1
(if (<= c 10000.0)
1.0
(/ x (* y (exp (* c 1.6666666666666667))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - 0.8333333333333334))))));
double t_2 = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t)))));
double tmp;
if (c <= -8.2e+184) {
tmp = 1.0;
} else if (c <= -5.2e+103) {
tmp = t_2;
} else if (c <= -5.5e-31) {
tmp = 1.0;
} else if (c <= -1.15e-72) {
tmp = t_1;
} else if (c <= -4.5e-138) {
tmp = t_2;
} else if (c <= -2.2e-212) {
tmp = 1.0;
} else if (c <= 1.5e-263) {
tmp = t_1;
} else if (c <= 10000.0) {
tmp = 1.0;
} else {
tmp = x / (y * exp((c * 1.6666666666666667)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y - (2.0d0 * (c * (y * ((0.6666666666666666d0 / t) - 0.8333333333333334d0))))))
t_2 = x / (x + (y * (1.0d0 - (1.3333333333333333d0 * ((c - b) / t)))))
if (c <= (-8.2d+184)) then
tmp = 1.0d0
else if (c <= (-5.2d+103)) then
tmp = t_2
else if (c <= (-5.5d-31)) then
tmp = 1.0d0
else if (c <= (-1.15d-72)) then
tmp = t_1
else if (c <= (-4.5d-138)) then
tmp = t_2
else if (c <= (-2.2d-212)) then
tmp = 1.0d0
else if (c <= 1.5d-263) then
tmp = t_1
else if (c <= 10000.0d0) then
tmp = 1.0d0
else
tmp = x / (y * exp((c * 1.6666666666666667d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - 0.8333333333333334))))));
double t_2 = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t)))));
double tmp;
if (c <= -8.2e+184) {
tmp = 1.0;
} else if (c <= -5.2e+103) {
tmp = t_2;
} else if (c <= -5.5e-31) {
tmp = 1.0;
} else if (c <= -1.15e-72) {
tmp = t_1;
} else if (c <= -4.5e-138) {
tmp = t_2;
} else if (c <= -2.2e-212) {
tmp = 1.0;
} else if (c <= 1.5e-263) {
tmp = t_1;
} else if (c <= 10000.0) {
tmp = 1.0;
} else {
tmp = x / (y * Math.exp((c * 1.6666666666666667)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - 0.8333333333333334)))))) t_2 = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t))))) tmp = 0 if c <= -8.2e+184: tmp = 1.0 elif c <= -5.2e+103: tmp = t_2 elif c <= -5.5e-31: tmp = 1.0 elif c <= -1.15e-72: tmp = t_1 elif c <= -4.5e-138: tmp = t_2 elif c <= -2.2e-212: tmp = 1.0 elif c <= 1.5e-263: tmp = t_1 elif c <= 10000.0: tmp = 1.0 else: tmp = x / (y * math.exp((c * 1.6666666666666667))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(c * Float64(y * Float64(Float64(0.6666666666666666 / t) - 0.8333333333333334))))))) t_2 = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(1.3333333333333333 * Float64(Float64(c - b) / t)))))) tmp = 0.0 if (c <= -8.2e+184) tmp = 1.0; elseif (c <= -5.2e+103) tmp = t_2; elseif (c <= -5.5e-31) tmp = 1.0; elseif (c <= -1.15e-72) tmp = t_1; elseif (c <= -4.5e-138) tmp = t_2; elseif (c <= -2.2e-212) tmp = 1.0; elseif (c <= 1.5e-263) tmp = t_1; elseif (c <= 10000.0) tmp = 1.0; else tmp = Float64(x / Float64(y * exp(Float64(c * 1.6666666666666667)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - 0.8333333333333334)))))); t_2 = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t))))); tmp = 0.0; if (c <= -8.2e+184) tmp = 1.0; elseif (c <= -5.2e+103) tmp = t_2; elseif (c <= -5.5e-31) tmp = 1.0; elseif (c <= -1.15e-72) tmp = t_1; elseif (c <= -4.5e-138) tmp = t_2; elseif (c <= -2.2e-212) tmp = 1.0; elseif (c <= 1.5e-263) tmp = t_1; elseif (c <= 10000.0) tmp = 1.0; else tmp = x / (y * exp((c * 1.6666666666666667))); 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[(c * N[(y * N[(N[(0.6666666666666666 / t), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[(1.0 - N[(1.3333333333333333 * N[(N[(c - b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -8.2e+184], 1.0, If[LessEqual[c, -5.2e+103], t$95$2, If[LessEqual[c, -5.5e-31], 1.0, If[LessEqual[c, -1.15e-72], t$95$1, If[LessEqual[c, -4.5e-138], t$95$2, If[LessEqual[c, -2.2e-212], 1.0, If[LessEqual[c, 1.5e-263], t$95$1, If[LessEqual[c, 10000.0], 1.0, N[(x / N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + \left(y - 2 \cdot \left(c \cdot \left(y \cdot \left(\frac{0.6666666666666666}{t} - 0.8333333333333334\right)\right)\right)\right)}\\
t_2 := \frac{x}{x + y \cdot \left(1 - 1.3333333333333333 \cdot \frac{c - b}{t}\right)}\\
\mathbf{if}\;c \leq -8.2 \cdot 10^{+184}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -5.2 \cdot 10^{+103}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -5.5 \cdot 10^{-31}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.15 \cdot 10^{-72}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -4.5 \cdot 10^{-138}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -2.2 \cdot 10^{-212}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.5 \cdot 10^{-263}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 10000:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if c < -8.1999999999999993e184 or -5.2000000000000003e103 < c < -5.49999999999999958e-31 or -4.50000000000000008e-138 < c < -2.20000000000000003e-212 or 1.5e-263 < c < 1e4Initial program 98.3%
Taylor expanded in c around inf 65.1%
cancel-sign-sub-inv65.1%
+-commutative65.1%
metadata-eval65.1%
associate-*r/65.1%
metadata-eval65.1%
associate-+r+65.1%
Simplified65.1%
Taylor expanded in c around 0 31.2%
Taylor expanded in x around inf 64.2%
if -8.1999999999999993e184 < c < -5.2000000000000003e103 or -1.14999999999999997e-72 < c < -4.50000000000000008e-138Initial program 100.0%
Taylor expanded in t around 0 65.4%
Taylor expanded in a around 0 63.2%
Taylor expanded in t around inf 63.2%
if -5.49999999999999958e-31 < c < -1.14999999999999997e-72 or -2.20000000000000003e-212 < c < 1.5e-263Initial program 100.0%
Taylor expanded in c around inf 70.7%
cancel-sign-sub-inv70.7%
+-commutative70.7%
metadata-eval70.7%
associate-*r/70.7%
metadata-eval70.7%
associate-+r+70.7%
Simplified70.7%
Taylor expanded in c around 0 59.6%
Taylor expanded in a around 0 64.8%
associate-*r/64.8%
metadata-eval64.8%
Simplified64.8%
if 1e4 < c Initial program 91.4%
Taylor expanded in t around inf 82.0%
mul-1-neg82.0%
+-commutative82.0%
distribute-rgt-neg-in82.0%
neg-sub082.0%
associate--r-82.0%
neg-sub082.0%
+-commutative82.0%
sub-neg82.0%
*-commutative82.0%
Simplified82.0%
Taylor expanded in a around 0 76.5%
Taylor expanded in c around inf 70.9%
Taylor expanded in x around 0 70.9%
Final simplification66.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a -1.75)
(/ x (+ x (exp (* b (* a -2.0)))))
(if (<= a -1.15e-157)
(/ x (* y (exp (* c 1.6666666666666667))))
(if (<= a -1.95e-177)
1.0
(if (<= a -2.4e-286)
(/ x (+ x (- y (* 2.0 (* a (* y (- b c)))))))
(if (<= a 1.45e-194)
(/ x (+ x (* y (- 1.0 (* 1.3333333333333333 (/ (- c b) t))))))
(if (<= a 4.4e-135)
1.0
(if (<= a 1.15e+19)
(/
x
(+
x
(-
y
(*
2.0
(*
c
(*
y
(-
(- (/ 0.6666666666666666 t) a)
0.8333333333333334)))))))
(/ x (+ x (exp (* c (* 2.0 a)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -1.75) {
tmp = x / (x + exp((b * (a * -2.0))));
} else if (a <= -1.15e-157) {
tmp = x / (y * exp((c * 1.6666666666666667)));
} else if (a <= -1.95e-177) {
tmp = 1.0;
} else if (a <= -2.4e-286) {
tmp = x / (x + (y - (2.0 * (a * (y * (b - c))))));
} else if (a <= 1.45e-194) {
tmp = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t)))));
} else if (a <= 4.4e-135) {
tmp = 1.0;
} else if (a <= 1.15e+19) {
tmp = x / (x + (y - (2.0 * (c * (y * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else {
tmp = x / (x + exp((c * (2.0 * 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 (a <= (-1.75d0)) then
tmp = x / (x + exp((b * (a * (-2.0d0)))))
else if (a <= (-1.15d-157)) then
tmp = x / (y * exp((c * 1.6666666666666667d0)))
else if (a <= (-1.95d-177)) then
tmp = 1.0d0
else if (a <= (-2.4d-286)) then
tmp = x / (x + (y - (2.0d0 * (a * (y * (b - c))))))
else if (a <= 1.45d-194) then
tmp = x / (x + (y * (1.0d0 - (1.3333333333333333d0 * ((c - b) / t)))))
else if (a <= 4.4d-135) then
tmp = 1.0d0
else if (a <= 1.15d+19) then
tmp = x / (x + (y - (2.0d0 * (c * (y * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0))))))
else
tmp = x / (x + exp((c * (2.0d0 * 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 (a <= -1.75) {
tmp = x / (x + Math.exp((b * (a * -2.0))));
} else if (a <= -1.15e-157) {
tmp = x / (y * Math.exp((c * 1.6666666666666667)));
} else if (a <= -1.95e-177) {
tmp = 1.0;
} else if (a <= -2.4e-286) {
tmp = x / (x + (y - (2.0 * (a * (y * (b - c))))));
} else if (a <= 1.45e-194) {
tmp = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t)))));
} else if (a <= 4.4e-135) {
tmp = 1.0;
} else if (a <= 1.15e+19) {
tmp = x / (x + (y - (2.0 * (c * (y * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else {
tmp = x / (x + Math.exp((c * (2.0 * a))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= -1.75: tmp = x / (x + math.exp((b * (a * -2.0)))) elif a <= -1.15e-157: tmp = x / (y * math.exp((c * 1.6666666666666667))) elif a <= -1.95e-177: tmp = 1.0 elif a <= -2.4e-286: tmp = x / (x + (y - (2.0 * (a * (y * (b - c)))))) elif a <= 1.45e-194: tmp = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t))))) elif a <= 4.4e-135: tmp = 1.0 elif a <= 1.15e+19: tmp = x / (x + (y - (2.0 * (c * (y * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))) else: tmp = x / (x + math.exp((c * (2.0 * a)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= -1.75) tmp = Float64(x / Float64(x + exp(Float64(b * Float64(a * -2.0))))); elseif (a <= -1.15e-157) tmp = Float64(x / Float64(y * exp(Float64(c * 1.6666666666666667)))); elseif (a <= -1.95e-177) tmp = 1.0; elseif (a <= -2.4e-286) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(a * Float64(y * Float64(b - c))))))); elseif (a <= 1.45e-194) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(1.3333333333333333 * Float64(Float64(c - b) / t)))))); elseif (a <= 4.4e-135) tmp = 1.0; elseif (a <= 1.15e+19) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(c * Float64(y * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334))))))); else tmp = Float64(x / Float64(x + exp(Float64(c * Float64(2.0 * a))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= -1.75) tmp = x / (x + exp((b * (a * -2.0)))); elseif (a <= -1.15e-157) tmp = x / (y * exp((c * 1.6666666666666667))); elseif (a <= -1.95e-177) tmp = 1.0; elseif (a <= -2.4e-286) tmp = x / (x + (y - (2.0 * (a * (y * (b - c)))))); elseif (a <= 1.45e-194) tmp = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t))))); elseif (a <= 4.4e-135) tmp = 1.0; elseif (a <= 1.15e+19) tmp = x / (x + (y - (2.0 * (c * (y * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))); else tmp = x / (x + exp((c * (2.0 * a)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, -1.75], N[(x / N[(x + N[Exp[N[(b * N[(a * -2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.15e-157], N[(x / N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.95e-177], 1.0, If[LessEqual[a, -2.4e-286], N[(x / N[(x + N[(y - N[(2.0 * N[(a * N[(y * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.45e-194], N[(x / N[(x + N[(y * N[(1.0 - N[(1.3333333333333333 * N[(N[(c - b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.4e-135], 1.0, If[LessEqual[a, 1.15e+19], N[(x / N[(x + N[(y - N[(2.0 * N[(c * N[(y * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[Exp[N[(c * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.75:\\
\;\;\;\;\frac{x}{x + e^{b \cdot \left(a \cdot -2\right)}}\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{-157}:\\
\;\;\;\;\frac{x}{y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{elif}\;a \leq -1.95 \cdot 10^{-177}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq -2.4 \cdot 10^{-286}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(a \cdot \left(y \cdot \left(b - c\right)\right)\right)\right)}\\
\mathbf{elif}\;a \leq 1.45 \cdot 10^{-194}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - 1.3333333333333333 \cdot \frac{c - b}{t}\right)}\\
\mathbf{elif}\;a \leq 4.4 \cdot 10^{-135}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{+19}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(c \cdot \left(y \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + e^{c \cdot \left(2 \cdot a\right)}}\\
\end{array}
\end{array}
if a < -1.75Initial program 100.0%
Taylor expanded in a around inf 93.5%
add-exp-log60.2%
*-commutative60.2%
log-prod46.9%
add-log-exp46.9%
*-commutative46.9%
Applied egg-rr46.9%
Taylor expanded in b around inf 87.1%
associate-*r*87.1%
Simplified87.1%
if -1.75 < a < -1.14999999999999994e-157Initial program 100.0%
Taylor expanded in t around inf 71.0%
mul-1-neg71.0%
+-commutative71.0%
distribute-rgt-neg-in71.0%
neg-sub071.0%
associate--r-71.0%
neg-sub071.0%
+-commutative71.0%
sub-neg71.0%
*-commutative71.0%
Simplified71.0%
Taylor expanded in a around 0 71.0%
Taylor expanded in c around inf 66.4%
Taylor expanded in x around 0 46.7%
if -1.14999999999999994e-157 < a < -1.95000000000000007e-177 or 1.44999999999999985e-194 < a < 4.3999999999999999e-135Initial program 100.0%
Taylor expanded in c around inf 63.2%
cancel-sign-sub-inv63.2%
+-commutative63.2%
metadata-eval63.2%
associate-*r/63.2%
metadata-eval63.2%
associate-+r+63.2%
Simplified63.2%
Taylor expanded in c around 0 40.1%
Taylor expanded in x around inf 67.7%
if -1.95000000000000007e-177 < a < -2.39999999999999993e-286Initial program 100.0%
Taylor expanded in a around inf 39.9%
Taylor expanded in a around 0 61.5%
*-commutative61.5%
Simplified61.5%
if -2.39999999999999993e-286 < a < 1.44999999999999985e-194Initial program 94.0%
Taylor expanded in t around 0 73.0%
Taylor expanded in a around 0 73.7%
Taylor expanded in t around inf 59.0%
if 4.3999999999999999e-135 < a < 1.15e19Initial program 95.5%
Taylor expanded in c around inf 78.0%
cancel-sign-sub-inv78.0%
+-commutative78.0%
metadata-eval78.0%
associate-*r/78.0%
metadata-eval78.0%
associate-+r+78.0%
Simplified78.0%
Taylor expanded in c around 0 58.5%
remove-double-neg58.5%
mul-1-neg58.5%
sub-neg58.5%
associate--r+58.5%
sub-neg58.5%
associate-*r/58.5%
metadata-eval58.5%
distribute-neg-in58.5%
mul-1-neg58.5%
remove-double-neg58.5%
sub-neg58.5%
Simplified58.5%
if 1.15e19 < a Initial program 96.1%
Taylor expanded in a around inf 79.3%
add-exp-log59.6%
*-commutative59.6%
log-prod39.1%
add-log-exp39.1%
*-commutative39.1%
Applied egg-rr39.1%
Taylor expanded in c around inf 68.3%
associate-*r*68.3%
Simplified68.3%
Final simplification64.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* -1.3333333333333333 (/ c t)))))))
(t_2 (/ x (+ x (* y (exp (* 1.6666666666666667 (- c b))))))))
(if (<= t -5e-291)
t_2
(if (<= t 1.45e-223)
t_1
(if (<= t 5.2e-142)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ b t))))))
(if (<= t 6.8e-30)
t_1
(if (or (<= t 3.1e+225) (not (<= t 1.25e+280)))
t_2
(/ x (+ x (* y (exp (* -2.0 (* a b)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((-1.3333333333333333 * (c / t)))));
double t_2 = x / (x + (y * exp((1.6666666666666667 * (c - b)))));
double tmp;
if (t <= -5e-291) {
tmp = t_2;
} else if (t <= 1.45e-223) {
tmp = t_1;
} else if (t <= 5.2e-142) {
tmp = x / (x + (y * exp((1.3333333333333333 * (b / t)))));
} else if (t <= 6.8e-30) {
tmp = t_1;
} else if ((t <= 3.1e+225) || !(t <= 1.25e+280)) {
tmp = t_2;
} else {
tmp = x / (x + (y * exp((-2.0 * (a * b)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp(((-1.3333333333333333d0) * (c / t)))))
t_2 = x / (x + (y * exp((1.6666666666666667d0 * (c - b)))))
if (t <= (-5d-291)) then
tmp = t_2
else if (t <= 1.45d-223) then
tmp = t_1
else if (t <= 5.2d-142) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * (b / t)))))
else if (t <= 6.8d-30) then
tmp = t_1
else if ((t <= 3.1d+225) .or. (.not. (t <= 1.25d+280))) then
tmp = t_2
else
tmp = x / (x + (y * exp(((-2.0d0) * (a * b)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((-1.3333333333333333 * (c / t)))));
double t_2 = x / (x + (y * Math.exp((1.6666666666666667 * (c - b)))));
double tmp;
if (t <= -5e-291) {
tmp = t_2;
} else if (t <= 1.45e-223) {
tmp = t_1;
} else if (t <= 5.2e-142) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * (b / t)))));
} else if (t <= 6.8e-30) {
tmp = t_1;
} else if ((t <= 3.1e+225) || !(t <= 1.25e+280)) {
tmp = t_2;
} else {
tmp = x / (x + (y * Math.exp((-2.0 * (a * b)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((-1.3333333333333333 * (c / t))))) t_2 = x / (x + (y * math.exp((1.6666666666666667 * (c - b))))) tmp = 0 if t <= -5e-291: tmp = t_2 elif t <= 1.45e-223: tmp = t_1 elif t <= 5.2e-142: tmp = x / (x + (y * math.exp((1.3333333333333333 * (b / t))))) elif t <= 6.8e-30: tmp = t_1 elif (t <= 3.1e+225) or not (t <= 1.25e+280): tmp = t_2 else: tmp = x / (x + (y * math.exp((-2.0 * (a * b))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(-1.3333333333333333 * Float64(c / t)))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(1.6666666666666667 * Float64(c - b)))))) tmp = 0.0 if (t <= -5e-291) tmp = t_2; elseif (t <= 1.45e-223) tmp = t_1; elseif (t <= 5.2e-142) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(b / t)))))); elseif (t <= 6.8e-30) tmp = t_1; elseif ((t <= 3.1e+225) || !(t <= 1.25e+280)) tmp = t_2; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((-1.3333333333333333 * (c / t))))); t_2 = x / (x + (y * exp((1.6666666666666667 * (c - b))))); tmp = 0.0; if (t <= -5e-291) tmp = t_2; elseif (t <= 1.45e-223) tmp = t_1; elseif (t <= 5.2e-142) tmp = x / (x + (y * exp((1.3333333333333333 * (b / t))))); elseif (t <= 6.8e-30) tmp = t_1; elseif ((t <= 3.1e+225) || ~((t <= 1.25e+280))) tmp = t_2; else tmp = x / (x + (y * exp((-2.0 * (a * b))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(-1.3333333333333333 * N[(c / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(1.6666666666666667 * N[(c - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5e-291], t$95$2, If[LessEqual[t, 1.45e-223], t$95$1, If[LessEqual[t, 5.2e-142], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.8e-30], t$95$1, If[Or[LessEqual[t, 3.1e+225], N[Not[LessEqual[t, 1.25e+280]], $MachinePrecision]], t$95$2, N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{-1.3333333333333333 \cdot \frac{c}{t}}}\\
t_2 := \frac{x}{x + y \cdot e^{1.6666666666666667 \cdot \left(c - b\right)}}\\
\mathbf{if}\;t \leq -5 \cdot 10^{-291}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{-223}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{-142}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b}{t}}}\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{-30}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{+225} \lor \neg \left(t \leq 1.25 \cdot 10^{+280}\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\end{array}
\end{array}
if t < -5.0000000000000003e-291 or 6.8000000000000006e-30 < t < 3.0999999999999998e225 or 1.25e280 < t Initial program 96.1%
Taylor expanded in t around inf 88.6%
mul-1-neg88.6%
+-commutative88.6%
distribute-rgt-neg-in88.6%
neg-sub088.6%
associate--r-88.6%
neg-sub088.6%
+-commutative88.6%
sub-neg88.6%
*-commutative88.6%
Simplified88.6%
Taylor expanded in a around 0 80.3%
if -5.0000000000000003e-291 < t < 1.45e-223 or 5.1999999999999999e-142 < t < 6.8000000000000006e-30Initial program 100.0%
Taylor expanded in t around 0 79.7%
Taylor expanded in a around 0 78.5%
Taylor expanded in b around 0 75.0%
if 1.45e-223 < t < 5.1999999999999999e-142Initial program 91.3%
Taylor expanded in t around 0 65.6%
Taylor expanded in a around 0 62.0%
Taylor expanded in b around inf 66.2%
if 3.0999999999999998e225 < t < 1.25e280Initial program 100.0%
Taylor expanded in a around inf 78.6%
Taylor expanded in c around 0 73.2%
Final simplification77.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* -1.3333333333333333 (/ c t)))))))
(t_2 (/ x (+ x (* y (exp (* c 1.6666666666666667)))))))
(if (<= a -0.85)
(/ x (+ x (* y (exp (* -2.0 (* a b))))))
(if (<= a -1.85e-302)
t_2
(if (<= a 1.8e-117)
t_1
(if (<= a 4.9e-21)
t_2
(if (<= a 1.75e+19) t_1 (/ x (+ x (exp (* c (* 2.0 a))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((-1.3333333333333333 * (c / t)))));
double t_2 = x / (x + (y * exp((c * 1.6666666666666667))));
double tmp;
if (a <= -0.85) {
tmp = x / (x + (y * exp((-2.0 * (a * b)))));
} else if (a <= -1.85e-302) {
tmp = t_2;
} else if (a <= 1.8e-117) {
tmp = t_1;
} else if (a <= 4.9e-21) {
tmp = t_2;
} else if (a <= 1.75e+19) {
tmp = t_1;
} else {
tmp = x / (x + exp((c * (2.0 * a))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp(((-1.3333333333333333d0) * (c / t)))))
t_2 = x / (x + (y * exp((c * 1.6666666666666667d0))))
if (a <= (-0.85d0)) then
tmp = x / (x + (y * exp(((-2.0d0) * (a * b)))))
else if (a <= (-1.85d-302)) then
tmp = t_2
else if (a <= 1.8d-117) then
tmp = t_1
else if (a <= 4.9d-21) then
tmp = t_2
else if (a <= 1.75d+19) then
tmp = t_1
else
tmp = x / (x + exp((c * (2.0d0 * a))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((-1.3333333333333333 * (c / t)))));
double t_2 = x / (x + (y * Math.exp((c * 1.6666666666666667))));
double tmp;
if (a <= -0.85) {
tmp = x / (x + (y * Math.exp((-2.0 * (a * b)))));
} else if (a <= -1.85e-302) {
tmp = t_2;
} else if (a <= 1.8e-117) {
tmp = t_1;
} else if (a <= 4.9e-21) {
tmp = t_2;
} else if (a <= 1.75e+19) {
tmp = t_1;
} else {
tmp = x / (x + Math.exp((c * (2.0 * a))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((-1.3333333333333333 * (c / t))))) t_2 = x / (x + (y * math.exp((c * 1.6666666666666667)))) tmp = 0 if a <= -0.85: tmp = x / (x + (y * math.exp((-2.0 * (a * b))))) elif a <= -1.85e-302: tmp = t_2 elif a <= 1.8e-117: tmp = t_1 elif a <= 4.9e-21: tmp = t_2 elif a <= 1.75e+19: tmp = t_1 else: tmp = x / (x + math.exp((c * (2.0 * a)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(-1.3333333333333333 * Float64(c / t)))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))) tmp = 0.0 if (a <= -0.85) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))); elseif (a <= -1.85e-302) tmp = t_2; elseif (a <= 1.8e-117) tmp = t_1; elseif (a <= 4.9e-21) tmp = t_2; elseif (a <= 1.75e+19) tmp = t_1; else tmp = Float64(x / Float64(x + exp(Float64(c * Float64(2.0 * a))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((-1.3333333333333333 * (c / t))))); t_2 = x / (x + (y * exp((c * 1.6666666666666667)))); tmp = 0.0; if (a <= -0.85) tmp = x / (x + (y * exp((-2.0 * (a * b))))); elseif (a <= -1.85e-302) tmp = t_2; elseif (a <= 1.8e-117) tmp = t_1; elseif (a <= 4.9e-21) tmp = t_2; elseif (a <= 1.75e+19) tmp = t_1; else tmp = x / (x + exp((c * (2.0 * a)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(-1.3333333333333333 * N[(c / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -0.85], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.85e-302], t$95$2, If[LessEqual[a, 1.8e-117], t$95$1, If[LessEqual[a, 4.9e-21], t$95$2, If[LessEqual[a, 1.75e+19], t$95$1, N[(x / N[(x + N[Exp[N[(c * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{-1.3333333333333333 \cdot \frac{c}{t}}}\\
t_2 := \frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{if}\;a \leq -0.85:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;a \leq -1.85 \cdot 10^{-302}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-117}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 4.9 \cdot 10^{-21}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{+19}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + e^{c \cdot \left(2 \cdot a\right)}}\\
\end{array}
\end{array}
if a < -0.849999999999999978Initial program 100.0%
Taylor expanded in a around inf 93.5%
Taylor expanded in c around 0 93.5%
if -0.849999999999999978 < a < -1.85e-302 or 1.8e-117 < a < 4.9000000000000002e-21Initial program 98.6%
Taylor expanded in t around inf 69.5%
mul-1-neg69.5%
+-commutative69.5%
distribute-rgt-neg-in69.5%
neg-sub069.5%
associate--r-69.5%
neg-sub069.5%
+-commutative69.5%
sub-neg69.5%
*-commutative69.5%
Simplified69.5%
Taylor expanded in a around 0 69.5%
Taylor expanded in c around inf 71.1%
if -1.85e-302 < a < 1.8e-117 or 4.9000000000000002e-21 < a < 1.75e19Initial program 95.4%
Taylor expanded in t around 0 82.1%
Taylor expanded in a around 0 76.3%
Taylor expanded in b around 0 74.8%
if 1.75e19 < a Initial program 96.1%
Taylor expanded in a around inf 79.3%
add-exp-log59.6%
*-commutative59.6%
log-prod39.1%
add-log-exp39.1%
*-commutative39.1%
Applied egg-rr39.1%
Taylor expanded in c around inf 68.3%
associate-*r*68.3%
Simplified68.3%
Final simplification72.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (exp (* b (* a -2.0)))))))
(if (<= b -6.5e+120)
t_1
(if (<= b -1.95e-215)
1.0
(if (<= b 1.35e-91)
(/
x
(+
x
(-
y
(*
2.0
(* c (* y (- (/ 0.6666666666666666 t) 0.8333333333333334)))))))
(if (<= b 1.46e+137) 1.0 (if (<= b 4e+240) t_1 1.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + exp((b * (a * -2.0))));
double tmp;
if (b <= -6.5e+120) {
tmp = t_1;
} else if (b <= -1.95e-215) {
tmp = 1.0;
} else if (b <= 1.35e-91) {
tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - 0.8333333333333334))))));
} else if (b <= 1.46e+137) {
tmp = 1.0;
} else if (b <= 4e+240) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x / (x + exp((b * (a * (-2.0d0)))))
if (b <= (-6.5d+120)) then
tmp = t_1
else if (b <= (-1.95d-215)) then
tmp = 1.0d0
else if (b <= 1.35d-91) then
tmp = x / (x + (y - (2.0d0 * (c * (y * ((0.6666666666666666d0 / t) - 0.8333333333333334d0))))))
else if (b <= 1.46d+137) then
tmp = 1.0d0
else if (b <= 4d+240) then
tmp = t_1
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 t_1 = x / (x + Math.exp((b * (a * -2.0))));
double tmp;
if (b <= -6.5e+120) {
tmp = t_1;
} else if (b <= -1.95e-215) {
tmp = 1.0;
} else if (b <= 1.35e-91) {
tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - 0.8333333333333334))))));
} else if (b <= 1.46e+137) {
tmp = 1.0;
} else if (b <= 4e+240) {
tmp = t_1;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + math.exp((b * (a * -2.0)))) tmp = 0 if b <= -6.5e+120: tmp = t_1 elif b <= -1.95e-215: tmp = 1.0 elif b <= 1.35e-91: tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - 0.8333333333333334)))))) elif b <= 1.46e+137: tmp = 1.0 elif b <= 4e+240: tmp = t_1 else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + exp(Float64(b * Float64(a * -2.0))))) tmp = 0.0 if (b <= -6.5e+120) tmp = t_1; elseif (b <= -1.95e-215) tmp = 1.0; elseif (b <= 1.35e-91) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(c * Float64(y * Float64(Float64(0.6666666666666666 / t) - 0.8333333333333334))))))); elseif (b <= 1.46e+137) tmp = 1.0; elseif (b <= 4e+240) tmp = t_1; else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + exp((b * (a * -2.0)))); tmp = 0.0; if (b <= -6.5e+120) tmp = t_1; elseif (b <= -1.95e-215) tmp = 1.0; elseif (b <= 1.35e-91) tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - 0.8333333333333334)))))); elseif (b <= 1.46e+137) tmp = 1.0; elseif (b <= 4e+240) tmp = t_1; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[Exp[N[(b * N[(a * -2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.5e+120], t$95$1, If[LessEqual[b, -1.95e-215], 1.0, If[LessEqual[b, 1.35e-91], N[(x / N[(x + N[(y - N[(2.0 * N[(c * N[(y * N[(N[(0.6666666666666666 / t), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.46e+137], 1.0, If[LessEqual[b, 4e+240], t$95$1, 1.0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + e^{b \cdot \left(a \cdot -2\right)}}\\
\mathbf{if}\;b \leq -6.5 \cdot 10^{+120}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.95 \cdot 10^{-215}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{-91}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(c \cdot \left(y \cdot \left(\frac{0.6666666666666666}{t} - 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{elif}\;b \leq 1.46 \cdot 10^{+137}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+240}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -6.4999999999999997e120 or 1.46e137 < b < 4.00000000000000006e240Initial program 94.2%
Taylor expanded in a around inf 72.2%
add-exp-log48.7%
*-commutative48.7%
log-prod33.1%
add-log-exp33.1%
*-commutative33.1%
Applied egg-rr33.1%
Taylor expanded in b around inf 70.2%
associate-*r*70.2%
Simplified70.2%
if -6.4999999999999997e120 < b < -1.95e-215 or 1.3499999999999999e-91 < b < 1.46e137 or 4.00000000000000006e240 < b Initial program 96.3%
Taylor expanded in c around inf 68.3%
cancel-sign-sub-inv68.3%
+-commutative68.3%
metadata-eval68.3%
associate-*r/68.3%
metadata-eval68.3%
associate-+r+68.3%
Simplified68.3%
Taylor expanded in c around 0 31.2%
Taylor expanded in x around inf 58.8%
if -1.95e-215 < b < 1.3499999999999999e-91Initial program 100.0%
Taylor expanded in c around inf 88.9%
cancel-sign-sub-inv88.9%
+-commutative88.9%
metadata-eval88.9%
associate-*r/88.9%
metadata-eval88.9%
associate-+r+88.9%
Simplified88.9%
Taylor expanded in c around 0 57.4%
Taylor expanded in a around 0 58.7%
associate-*r/58.7%
metadata-eval58.7%
Simplified58.7%
Final simplification61.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= t -5e-20)
t_1
(if (<= t 5.8e-30)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (or (<= t 5.4e+165) (not (<= t 3.2e+280)))
(/ x (+ x (* y (exp (* 1.6666666666666667 (- c b))))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= -5e-20) {
tmp = t_1;
} else if (t <= 5.8e-30) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if ((t <= 5.4e+165) || !(t <= 3.2e+280)) {
tmp = x / (x + (y * exp((1.6666666666666667 * (c - b)))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
if (t <= (-5d-20)) then
tmp = t_1
else if (t <= 5.8d-30) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if ((t <= 5.4d+165) .or. (.not. (t <= 3.2d+280))) then
tmp = x / (x + (y * exp((1.6666666666666667d0 * (c - b)))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= -5e-20) {
tmp = t_1;
} else if (t <= 5.8e-30) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if ((t <= 5.4e+165) || !(t <= 3.2e+280)) {
tmp = x / (x + (y * Math.exp((1.6666666666666667 * (c - b)))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) tmp = 0 if t <= -5e-20: tmp = t_1 elif t <= 5.8e-30: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif (t <= 5.4e+165) or not (t <= 3.2e+280): tmp = x / (x + (y * math.exp((1.6666666666666667 * (c - b))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))) tmp = 0.0 if (t <= -5e-20) tmp = t_1; elseif (t <= 5.8e-30) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif ((t <= 5.4e+165) || !(t <= 3.2e+280)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.6666666666666667 * Float64(c - b)))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (a * (c - b)))))); tmp = 0.0; if (t <= -5e-20) tmp = t_1; elseif (t <= 5.8e-30) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif ((t <= 5.4e+165) || ~((t <= 3.2e+280))) tmp = x / (x + (y * exp((1.6666666666666667 * (c - b))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5e-20], t$95$1, If[LessEqual[t, 5.8e-30], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 5.4e+165], N[Not[LessEqual[t, 3.2e+280]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(1.6666666666666667 * N[(c - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq -5 \cdot 10^{-20}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{-30}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 5.4 \cdot 10^{+165} \lor \neg \left(t \leq 3.2 \cdot 10^{+280}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.6666666666666667 \cdot \left(c - b\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -4.9999999999999999e-20 or 5.3999999999999999e165 < t < 3.20000000000000019e280Initial program 98.2%
Taylor expanded in a around inf 86.2%
if -4.9999999999999999e-20 < t < 5.79999999999999978e-30Initial program 96.0%
Taylor expanded in t around 0 82.8%
Taylor expanded in a around 0 79.3%
if 5.79999999999999978e-30 < t < 5.3999999999999999e165 or 3.20000000000000019e280 < t Initial program 97.3%
Taylor expanded in t around inf 83.0%
mul-1-neg83.0%
+-commutative83.0%
distribute-rgt-neg-in83.0%
neg-sub083.0%
associate--r-83.0%
neg-sub083.0%
+-commutative83.0%
sub-neg83.0%
*-commutative83.0%
Simplified83.0%
Taylor expanded in a around 0 76.5%
Final simplification80.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* b -1.6666666666666667)))))))
(if (<= a -2.15e-10)
(/ x (+ x (exp (* b (* a -2.0)))))
(if (<= a -2.45e-126)
t_1
(if (<= a -5e-285)
(/ x (- x (* y (- -1.0 (* c 1.6666666666666667)))))
(if (<= a 1.8e+21) t_1 (/ x (+ x (exp (* c (* 2.0 a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((b * -1.6666666666666667))));
double tmp;
if (a <= -2.15e-10) {
tmp = x / (x + exp((b * (a * -2.0))));
} else if (a <= -2.45e-126) {
tmp = t_1;
} else if (a <= -5e-285) {
tmp = x / (x - (y * (-1.0 - (c * 1.6666666666666667))));
} else if (a <= 1.8e+21) {
tmp = t_1;
} else {
tmp = x / (x + exp((c * (2.0 * a))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
if (a <= (-2.15d-10)) then
tmp = x / (x + exp((b * (a * (-2.0d0)))))
else if (a <= (-2.45d-126)) then
tmp = t_1
else if (a <= (-5d-285)) then
tmp = x / (x - (y * ((-1.0d0) - (c * 1.6666666666666667d0))))
else if (a <= 1.8d+21) then
tmp = t_1
else
tmp = x / (x + exp((c * (2.0d0 * a))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((b * -1.6666666666666667))));
double tmp;
if (a <= -2.15e-10) {
tmp = x / (x + Math.exp((b * (a * -2.0))));
} else if (a <= -2.45e-126) {
tmp = t_1;
} else if (a <= -5e-285) {
tmp = x / (x - (y * (-1.0 - (c * 1.6666666666666667))));
} else if (a <= 1.8e+21) {
tmp = t_1;
} else {
tmp = x / (x + Math.exp((c * (2.0 * a))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((b * -1.6666666666666667)))) tmp = 0 if a <= -2.15e-10: tmp = x / (x + math.exp((b * (a * -2.0)))) elif a <= -2.45e-126: tmp = t_1 elif a <= -5e-285: tmp = x / (x - (y * (-1.0 - (c * 1.6666666666666667)))) elif a <= 1.8e+21: tmp = t_1 else: tmp = x / (x + math.exp((c * (2.0 * a)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))) tmp = 0.0 if (a <= -2.15e-10) tmp = Float64(x / Float64(x + exp(Float64(b * Float64(a * -2.0))))); elseif (a <= -2.45e-126) tmp = t_1; elseif (a <= -5e-285) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(c * 1.6666666666666667))))); elseif (a <= 1.8e+21) tmp = t_1; else tmp = Float64(x / Float64(x + exp(Float64(c * Float64(2.0 * a))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((b * -1.6666666666666667)))); tmp = 0.0; if (a <= -2.15e-10) tmp = x / (x + exp((b * (a * -2.0)))); elseif (a <= -2.45e-126) tmp = t_1; elseif (a <= -5e-285) tmp = x / (x - (y * (-1.0 - (c * 1.6666666666666667)))); elseif (a <= 1.8e+21) tmp = t_1; else tmp = x / (x + exp((c * (2.0 * a)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.15e-10], N[(x / N[(x + N[Exp[N[(b * N[(a * -2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.45e-126], t$95$1, If[LessEqual[a, -5e-285], N[(x / N[(x - N[(y * N[(-1.0 - N[(c * 1.6666666666666667), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.8e+21], t$95$1, N[(x / N[(x + N[Exp[N[(c * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{if}\;a \leq -2.15 \cdot 10^{-10}:\\
\;\;\;\;\frac{x}{x + e^{b \cdot \left(a \cdot -2\right)}}\\
\mathbf{elif}\;a \leq -2.45 \cdot 10^{-126}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -5 \cdot 10^{-285}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - c \cdot 1.6666666666666667\right)}\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{+21}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + e^{c \cdot \left(2 \cdot a\right)}}\\
\end{array}
\end{array}
if a < -2.15000000000000007e-10Initial program 100.0%
Taylor expanded in a around inf 87.9%
add-exp-log56.6%
*-commutative56.6%
log-prod44.1%
add-log-exp44.1%
*-commutative44.1%
Applied egg-rr44.1%
Taylor expanded in b around inf 81.8%
associate-*r*81.8%
Simplified81.8%
if -2.15000000000000007e-10 < a < -2.45000000000000005e-126 or -5.00000000000000018e-285 < a < 1.8e21Initial program 96.4%
Taylor expanded in t around inf 63.1%
mul-1-neg63.1%
+-commutative63.1%
distribute-rgt-neg-in63.1%
neg-sub063.1%
associate--r-63.1%
neg-sub063.1%
+-commutative63.1%
sub-neg63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in a around 0 63.1%
Taylor expanded in c around 0 61.4%
if -2.45000000000000005e-126 < a < -5.00000000000000018e-285Initial program 100.0%
Taylor expanded in t around inf 60.6%
mul-1-neg60.6%
+-commutative60.6%
distribute-rgt-neg-in60.6%
neg-sub060.6%
associate--r-60.6%
neg-sub060.6%
+-commutative60.6%
sub-neg60.6%
*-commutative60.6%
Simplified60.6%
Taylor expanded in a around 0 60.6%
Taylor expanded in c around inf 71.7%
Taylor expanded in c around 0 57.5%
*-commutative57.5%
Simplified57.5%
if 1.8e21 < a Initial program 96.1%
Taylor expanded in a around inf 79.3%
add-exp-log59.6%
*-commutative59.6%
log-prod39.1%
add-log-exp39.1%
*-commutative39.1%
Applied egg-rr39.1%
Taylor expanded in c around inf 68.3%
associate-*r*68.3%
Simplified68.3%
Final simplification65.0%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= t -1.15e-294) (not (<= t 0.84)))
(/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -1.15e-294) || !(t <= 0.84)) {
tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
} else {
tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((t <= (-1.15d-294)) .or. (.not. (t <= 0.84d0))) then
tmp = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
else
tmp = x / (x + (y * exp((2.0d0 * (c * (a + (0.8333333333333334d0 + ((-0.6666666666666666d0) / t))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -1.15e-294) || !(t <= 0.84)) {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -1.15e-294) or not (t <= 0.84): tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -1.15e-294) || !(t <= 0.84)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((t <= -1.15e-294) || ~((t <= 0.84))) tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); else tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -1.15e-294], N[Not[LessEqual[t, 0.84]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.15 \cdot 10^{-294} \lor \neg \left(t \leq 0.84\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right)\right)}}\\
\end{array}
\end{array}
if t < -1.15000000000000008e-294 or 0.839999999999999969 < t Initial program 96.4%
Taylor expanded in t around inf 89.4%
mul-1-neg89.4%
+-commutative89.4%
distribute-rgt-neg-in89.4%
neg-sub089.4%
associate--r-89.4%
neg-sub089.4%
+-commutative89.4%
sub-neg89.4%
*-commutative89.4%
Simplified89.4%
if -1.15000000000000008e-294 < t < 0.839999999999999969Initial program 97.8%
Taylor expanded in c around inf 74.8%
cancel-sign-sub-inv74.8%
+-commutative74.8%
metadata-eval74.8%
associate-*r/74.8%
metadata-eval74.8%
associate-+r+74.8%
Simplified74.8%
Final simplification84.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 1.15e-29)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (or (<= t 3.1e+225) (not (<= t 7.5e+279)))
(/ x (+ x (* y (exp (* 1.6666666666666667 (- c b))))))
(/ x (+ x (* y (exp (* -2.0 (* a b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.15e-29) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if ((t <= 3.1e+225) || !(t <= 7.5e+279)) {
tmp = x / (x + (y * exp((1.6666666666666667 * (c - b)))));
} else {
tmp = x / (x + (y * exp((-2.0 * (a * b)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 1.15d-29) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if ((t <= 3.1d+225) .or. (.not. (t <= 7.5d+279))) then
tmp = x / (x + (y * exp((1.6666666666666667d0 * (c - b)))))
else
tmp = x / (x + (y * exp(((-2.0d0) * (a * b)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.15e-29) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if ((t <= 3.1e+225) || !(t <= 7.5e+279)) {
tmp = x / (x + (y * Math.exp((1.6666666666666667 * (c - b)))));
} else {
tmp = x / (x + (y * Math.exp((-2.0 * (a * b)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1.15e-29: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif (t <= 3.1e+225) or not (t <= 7.5e+279): tmp = x / (x + (y * math.exp((1.6666666666666667 * (c - b))))) else: tmp = x / (x + (y * math.exp((-2.0 * (a * b))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1.15e-29) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif ((t <= 3.1e+225) || !(t <= 7.5e+279)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.6666666666666667 * Float64(c - b)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 1.15e-29) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif ((t <= 3.1e+225) || ~((t <= 7.5e+279))) tmp = x / (x + (y * exp((1.6666666666666667 * (c - b))))); else tmp = x / (x + (y * exp((-2.0 * (a * b))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 1.15e-29], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 3.1e+225], N[Not[LessEqual[t, 7.5e+279]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(1.6666666666666667 * N[(c - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.15 \cdot 10^{-29}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{+225} \lor \neg \left(t \leq 7.5 \cdot 10^{+279}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.6666666666666667 \cdot \left(c - b\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\end{array}
\end{array}
if t < 1.14999999999999996e-29Initial program 95.8%
Taylor expanded in t around 0 81.6%
Taylor expanded in a around 0 77.1%
if 1.14999999999999996e-29 < t < 3.0999999999999998e225 or 7.5000000000000002e279 < t Initial program 97.9%
Taylor expanded in t around inf 86.6%
mul-1-neg86.6%
+-commutative86.6%
distribute-rgt-neg-in86.6%
neg-sub086.6%
associate--r-86.6%
neg-sub086.6%
+-commutative86.6%
sub-neg86.6%
*-commutative86.6%
Simplified86.6%
Taylor expanded in a around 0 77.4%
if 3.0999999999999998e225 < t < 7.5000000000000002e279Initial program 100.0%
Taylor expanded in a around inf 78.6%
Taylor expanded in c around 0 73.2%
Final simplification76.9%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= t -4e-297) (not (<= t 9.5e-30))) (/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b))))))) (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -4e-297) || !(t <= 9.5e-30)) {
tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
} else {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / 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 ((t <= (-4d-297)) .or. (.not. (t <= 9.5d-30))) then
tmp = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
else
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / 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 ((t <= -4e-297) || !(t <= 9.5e-30)) {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
} else {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -4e-297) or not (t <= 9.5e-30): tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) else: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -4e-297) || !(t <= 9.5e-30)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((t <= -4e-297) || ~((t <= 9.5e-30))) tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); else tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -4e-297], N[Not[LessEqual[t, 9.5e-30]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{-297} \lor \neg \left(t \leq 9.5 \cdot 10^{-30}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\end{array}
\end{array}
if t < -4.00000000000000016e-297 or 9.49999999999999939e-30 < t Initial program 96.5%
Taylor expanded in t around inf 87.2%
mul-1-neg87.2%
+-commutative87.2%
distribute-rgt-neg-in87.2%
neg-sub087.2%
associate--r-87.2%
neg-sub087.2%
+-commutative87.2%
sub-neg87.2%
*-commutative87.2%
Simplified87.2%
if -4.00000000000000016e-297 < t < 9.49999999999999939e-30Initial program 97.6%
Taylor expanded in t around 0 75.1%
Taylor expanded in a around 0 75.5%
Final simplification83.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a -0.98)
(/ x (+ x (exp (* b (* a -2.0)))))
(if (<= a -2.35e-302)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
(if (<= a 9.6e+19)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(/ x (+ x (exp (* c (* 2.0 a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -0.98) {
tmp = x / (x + exp((b * (a * -2.0))));
} else if (a <= -2.35e-302) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else if (a <= 9.6e+19) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else {
tmp = x / (x + exp((c * (2.0 * 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 (a <= (-0.98d0)) then
tmp = x / (x + exp((b * (a * (-2.0d0)))))
else if (a <= (-2.35d-302)) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else if (a <= 9.6d+19) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else
tmp = x / (x + exp((c * (2.0d0 * 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 (a <= -0.98) {
tmp = x / (x + Math.exp((b * (a * -2.0))));
} else if (a <= -2.35e-302) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else if (a <= 9.6e+19) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else {
tmp = x / (x + Math.exp((c * (2.0 * a))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= -0.98: tmp = x / (x + math.exp((b * (a * -2.0)))) elif a <= -2.35e-302: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) elif a <= 9.6e+19: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) else: tmp = x / (x + math.exp((c * (2.0 * a)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= -0.98) tmp = Float64(x / Float64(x + exp(Float64(b * Float64(a * -2.0))))); elseif (a <= -2.35e-302) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); elseif (a <= 9.6e+19) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); else tmp = Float64(x / Float64(x + exp(Float64(c * Float64(2.0 * a))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= -0.98) tmp = x / (x + exp((b * (a * -2.0)))); elseif (a <= -2.35e-302) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); elseif (a <= 9.6e+19) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); else tmp = x / (x + exp((c * (2.0 * a)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, -0.98], N[(x / N[(x + N[Exp[N[(b * N[(a * -2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.35e-302], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.6e+19], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[Exp[N[(c * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -0.98:\\
\;\;\;\;\frac{x}{x + e^{b \cdot \left(a \cdot -2\right)}}\\
\mathbf{elif}\;a \leq -2.35 \cdot 10^{-302}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{elif}\;a \leq 9.6 \cdot 10^{+19}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + e^{c \cdot \left(2 \cdot a\right)}}\\
\end{array}
\end{array}
if a < -0.97999999999999998Initial program 100.0%
Taylor expanded in a around inf 93.5%
add-exp-log60.2%
*-commutative60.2%
log-prod46.9%
add-log-exp46.9%
*-commutative46.9%
Applied egg-rr46.9%
Taylor expanded in b around inf 87.1%
associate-*r*87.1%
Simplified87.1%
if -0.97999999999999998 < a < -2.3500000000000002e-302Initial program 100.0%
Taylor expanded in t around inf 66.3%
mul-1-neg66.3%
+-commutative66.3%
distribute-rgt-neg-in66.3%
neg-sub066.3%
associate--r-66.3%
neg-sub066.3%
+-commutative66.3%
sub-neg66.3%
*-commutative66.3%
Simplified66.3%
Taylor expanded in a around 0 66.3%
Taylor expanded in c around inf 68.8%
if -2.3500000000000002e-302 < a < 9.6e19Initial program 95.7%
Taylor expanded in t around inf 61.2%
mul-1-neg61.2%
+-commutative61.2%
distribute-rgt-neg-in61.2%
neg-sub061.2%
associate--r-61.2%
neg-sub061.2%
+-commutative61.2%
sub-neg61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in a around 0 61.2%
Taylor expanded in c around 0 63.2%
if 9.6e19 < a Initial program 96.1%
Taylor expanded in a around inf 79.3%
add-exp-log59.6%
*-commutative59.6%
log-prod39.1%
add-log-exp39.1%
*-commutative39.1%
Applied egg-rr39.1%
Taylor expanded in c around inf 68.3%
associate-*r*68.3%
Simplified68.3%
Final simplification67.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a -0.85)
(/ x (+ x (* y (exp (* -2.0 (* a b))))))
(if (<= a -1.12e-302)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
(if (<= a 2.1e+19)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(/ x (+ x (exp (* c (* 2.0 a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -0.85) {
tmp = x / (x + (y * exp((-2.0 * (a * b)))));
} else if (a <= -1.12e-302) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else if (a <= 2.1e+19) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else {
tmp = x / (x + exp((c * (2.0 * 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 (a <= (-0.85d0)) then
tmp = x / (x + (y * exp(((-2.0d0) * (a * b)))))
else if (a <= (-1.12d-302)) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else if (a <= 2.1d+19) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else
tmp = x / (x + exp((c * (2.0d0 * 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 (a <= -0.85) {
tmp = x / (x + (y * Math.exp((-2.0 * (a * b)))));
} else if (a <= -1.12e-302) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else if (a <= 2.1e+19) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else {
tmp = x / (x + Math.exp((c * (2.0 * a))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= -0.85: tmp = x / (x + (y * math.exp((-2.0 * (a * b))))) elif a <= -1.12e-302: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) elif a <= 2.1e+19: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) else: tmp = x / (x + math.exp((c * (2.0 * a)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= -0.85) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))); elseif (a <= -1.12e-302) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); elseif (a <= 2.1e+19) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); else tmp = Float64(x / Float64(x + exp(Float64(c * Float64(2.0 * a))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= -0.85) tmp = x / (x + (y * exp((-2.0 * (a * b))))); elseif (a <= -1.12e-302) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); elseif (a <= 2.1e+19) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); else tmp = x / (x + exp((c * (2.0 * a)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, -0.85], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.12e-302], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.1e+19], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[Exp[N[(c * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -0.85:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;a \leq -1.12 \cdot 10^{-302}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{+19}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + e^{c \cdot \left(2 \cdot a\right)}}\\
\end{array}
\end{array}
if a < -0.849999999999999978Initial program 100.0%
Taylor expanded in a around inf 93.5%
Taylor expanded in c around 0 93.5%
if -0.849999999999999978 < a < -1.12e-302Initial program 100.0%
Taylor expanded in t around inf 66.3%
mul-1-neg66.3%
+-commutative66.3%
distribute-rgt-neg-in66.3%
neg-sub066.3%
associate--r-66.3%
neg-sub066.3%
+-commutative66.3%
sub-neg66.3%
*-commutative66.3%
Simplified66.3%
Taylor expanded in a around 0 66.3%
Taylor expanded in c around inf 68.8%
if -1.12e-302 < a < 2.1e19Initial program 95.7%
Taylor expanded in t around inf 61.2%
mul-1-neg61.2%
+-commutative61.2%
distribute-rgt-neg-in61.2%
neg-sub061.2%
associate--r-61.2%
neg-sub061.2%
+-commutative61.2%
sub-neg61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in a around 0 61.2%
Taylor expanded in c around 0 63.2%
if 2.1e19 < a Initial program 96.1%
Taylor expanded in a around inf 79.3%
add-exp-log59.6%
*-commutative59.6%
log-prod39.1%
add-log-exp39.1%
*-commutative39.1%
Applied egg-rr39.1%
Taylor expanded in c around inf 68.3%
associate-*r*68.3%
Simplified68.3%
Final simplification68.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -2.8e+230)
(/ x (+ x (+ y (* 2.0 (* c (* y a))))))
(if (<= b -6.8e+146)
(/ x (+ x (* y (- 1.0 (* 1.3333333333333333 (/ (- c b) t))))))
(if (<= b -2.7e-215)
1.0
(if (<= b 3.5e-99)
(/
x
(+
x
(-
y
(*
2.0
(* c (* y (- (/ 0.6666666666666666 t) 0.8333333333333334)))))))
1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.8e+230) {
tmp = x / (x + (y + (2.0 * (c * (y * a)))));
} else if (b <= -6.8e+146) {
tmp = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t)))));
} else if (b <= -2.7e-215) {
tmp = 1.0;
} else if (b <= 3.5e-99) {
tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - 0.8333333333333334))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-2.8d+230)) then
tmp = x / (x + (y + (2.0d0 * (c * (y * a)))))
else if (b <= (-6.8d+146)) then
tmp = x / (x + (y * (1.0d0 - (1.3333333333333333d0 * ((c - b) / t)))))
else if (b <= (-2.7d-215)) then
tmp = 1.0d0
else if (b <= 3.5d-99) then
tmp = x / (x + (y - (2.0d0 * (c * (y * ((0.6666666666666666d0 / t) - 0.8333333333333334d0))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.8e+230) {
tmp = x / (x + (y + (2.0 * (c * (y * a)))));
} else if (b <= -6.8e+146) {
tmp = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t)))));
} else if (b <= -2.7e-215) {
tmp = 1.0;
} else if (b <= 3.5e-99) {
tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - 0.8333333333333334))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -2.8e+230: tmp = x / (x + (y + (2.0 * (c * (y * a))))) elif b <= -6.8e+146: tmp = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t))))) elif b <= -2.7e-215: tmp = 1.0 elif b <= 3.5e-99: tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - 0.8333333333333334)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -2.8e+230) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * Float64(y * a)))))); elseif (b <= -6.8e+146) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(1.3333333333333333 * Float64(Float64(c - b) / t)))))); elseif (b <= -2.7e-215) tmp = 1.0; elseif (b <= 3.5e-99) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(c * Float64(y * Float64(Float64(0.6666666666666666 / t) - 0.8333333333333334))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -2.8e+230) tmp = x / (x + (y + (2.0 * (c * (y * a))))); elseif (b <= -6.8e+146) tmp = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t))))); elseif (b <= -2.7e-215) tmp = 1.0; elseif (b <= 3.5e-99) tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - 0.8333333333333334)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -2.8e+230], N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.8e+146], N[(x / N[(x + N[(y * N[(1.0 - N[(1.3333333333333333 * N[(N[(c - b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.7e-215], 1.0, If[LessEqual[b, 3.5e-99], N[(x / N[(x + N[(y - N[(2.0 * N[(c * N[(y * N[(N[(0.6666666666666666 / t), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.8 \cdot 10^{+230}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \left(y \cdot a\right)\right)\right)}\\
\mathbf{elif}\;b \leq -6.8 \cdot 10^{+146}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - 1.3333333333333333 \cdot \frac{c - b}{t}\right)}\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{-215}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 3.5 \cdot 10^{-99}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(c \cdot \left(y \cdot \left(\frac{0.6666666666666666}{t} - 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -2.8000000000000002e230Initial program 92.3%
Taylor expanded in c around inf 47.8%
cancel-sign-sub-inv47.8%
+-commutative47.8%
metadata-eval47.8%
associate-*r/47.8%
metadata-eval47.8%
associate-+r+47.8%
Simplified47.8%
Taylor expanded in c around 0 48.2%
Taylor expanded in a around inf 70.2%
*-commutative70.2%
Simplified70.2%
if -2.8000000000000002e230 < b < -6.79999999999999981e146Initial program 92.9%
Taylor expanded in t around 0 57.8%
Taylor expanded in a around 0 58.7%
Taylor expanded in t around inf 51.8%
if -6.79999999999999981e146 < b < -2.70000000000000018e-215 or 3.4999999999999999e-99 < b Initial program 96.2%
Taylor expanded in c around inf 66.6%
cancel-sign-sub-inv66.6%
+-commutative66.6%
metadata-eval66.6%
associate-*r/66.6%
metadata-eval66.6%
associate-+r+66.6%
Simplified66.6%
Taylor expanded in c around 0 33.5%
Taylor expanded in x around inf 58.0%
if -2.70000000000000018e-215 < b < 3.4999999999999999e-99Initial program 100.0%
Taylor expanded in c around inf 88.9%
cancel-sign-sub-inv88.9%
+-commutative88.9%
metadata-eval88.9%
associate-*r/88.9%
metadata-eval88.9%
associate-+r+88.9%
Simplified88.9%
Taylor expanded in c around 0 57.4%
Taylor expanded in a around 0 58.7%
associate-*r/58.7%
metadata-eval58.7%
Simplified58.7%
Final simplification58.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -8.5e+229)
(/ x (+ x (+ y (* 2.0 (* c (* y a))))))
(if (or (<= b -6.8e+146) (and (not (<= b -7.4e-214)) (<= b 1.55e-26)))
(/ x (+ x (* y (- 1.0 (* 1.3333333333333333 (/ (- c b) t))))))
1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -8.5e+229) {
tmp = x / (x + (y + (2.0 * (c * (y * a)))));
} else if ((b <= -6.8e+146) || (!(b <= -7.4e-214) && (b <= 1.55e-26))) {
tmp = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-8.5d+229)) then
tmp = x / (x + (y + (2.0d0 * (c * (y * a)))))
else if ((b <= (-6.8d+146)) .or. (.not. (b <= (-7.4d-214))) .and. (b <= 1.55d-26)) then
tmp = x / (x + (y * (1.0d0 - (1.3333333333333333d0 * ((c - b) / t)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -8.5e+229) {
tmp = x / (x + (y + (2.0 * (c * (y * a)))));
} else if ((b <= -6.8e+146) || (!(b <= -7.4e-214) && (b <= 1.55e-26))) {
tmp = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -8.5e+229: tmp = x / (x + (y + (2.0 * (c * (y * a))))) elif (b <= -6.8e+146) or (not (b <= -7.4e-214) and (b <= 1.55e-26)): tmp = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -8.5e+229) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * Float64(y * a)))))); elseif ((b <= -6.8e+146) || (!(b <= -7.4e-214) && (b <= 1.55e-26))) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(1.3333333333333333 * Float64(Float64(c - b) / t)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -8.5e+229) tmp = x / (x + (y + (2.0 * (c * (y * a))))); elseif ((b <= -6.8e+146) || (~((b <= -7.4e-214)) && (b <= 1.55e-26))) tmp = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -8.5e+229], N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, -6.8e+146], And[N[Not[LessEqual[b, -7.4e-214]], $MachinePrecision], LessEqual[b, 1.55e-26]]], N[(x / N[(x + N[(y * N[(1.0 - N[(1.3333333333333333 * N[(N[(c - b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.5 \cdot 10^{+229}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \left(y \cdot a\right)\right)\right)}\\
\mathbf{elif}\;b \leq -6.8 \cdot 10^{+146} \lor \neg \left(b \leq -7.4 \cdot 10^{-214}\right) \land b \leq 1.55 \cdot 10^{-26}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - 1.3333333333333333 \cdot \frac{c - b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -8.49999999999999966e229Initial program 92.3%
Taylor expanded in c around inf 47.8%
cancel-sign-sub-inv47.8%
+-commutative47.8%
metadata-eval47.8%
associate-*r/47.8%
metadata-eval47.8%
associate-+r+47.8%
Simplified47.8%
Taylor expanded in c around 0 48.2%
Taylor expanded in a around inf 70.2%
*-commutative70.2%
Simplified70.2%
if -8.49999999999999966e229 < b < -6.79999999999999981e146 or -7.4000000000000004e-214 < b < 1.54999999999999992e-26Initial program 98.1%
Taylor expanded in t around 0 64.9%
Taylor expanded in a around 0 63.3%
Taylor expanded in t around inf 55.5%
if -6.79999999999999981e146 < b < -7.4000000000000004e-214 or 1.54999999999999992e-26 < b Initial program 96.4%
Taylor expanded in c around inf 65.9%
cancel-sign-sub-inv65.9%
+-commutative65.9%
metadata-eval65.9%
associate-*r/65.9%
metadata-eval65.9%
associate-+r+65.9%
Simplified65.9%
Taylor expanded in c around 0 32.2%
Taylor expanded in x around inf 58.9%
Final simplification58.1%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -5.5e-214) 1.0 (if (<= b 3.2e-207) (/ x (+ x (+ y (* 2.0 (* c (* y a)))))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -5.5e-214) {
tmp = 1.0;
} else if (b <= 3.2e-207) {
tmp = x / (x + (y + (2.0 * (c * (y * a)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-5.5d-214)) then
tmp = 1.0d0
else if (b <= 3.2d-207) then
tmp = x / (x + (y + (2.0d0 * (c * (y * a)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -5.5e-214) {
tmp = 1.0;
} else if (b <= 3.2e-207) {
tmp = x / (x + (y + (2.0 * (c * (y * a)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -5.5e-214: tmp = 1.0 elif b <= 3.2e-207: tmp = x / (x + (y + (2.0 * (c * (y * a))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -5.5e-214) tmp = 1.0; elseif (b <= 3.2e-207) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * Float64(y * a)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -5.5e-214) tmp = 1.0; elseif (b <= 3.2e-207) tmp = x / (x + (y + (2.0 * (c * (y * a))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -5.5e-214], 1.0, If[LessEqual[b, 3.2e-207], N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.5 \cdot 10^{-214}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{-207}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \left(y \cdot a\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -5.50000000000000024e-214 or 3.2000000000000003e-207 < b Initial program 96.1%
Taylor expanded in c around inf 65.7%
cancel-sign-sub-inv65.7%
+-commutative65.7%
metadata-eval65.7%
associate-*r/65.7%
metadata-eval65.7%
associate-+r+65.7%
Simplified65.7%
Taylor expanded in c around 0 33.3%
Taylor expanded in x around inf 52.8%
if -5.50000000000000024e-214 < b < 3.2000000000000003e-207Initial program 100.0%
Taylor expanded in c around inf 90.9%
cancel-sign-sub-inv90.9%
+-commutative90.9%
metadata-eval90.9%
associate-*r/90.9%
metadata-eval90.9%
associate-+r+90.9%
Simplified90.9%
Taylor expanded in c around 0 67.3%
Taylor expanded in a around inf 59.2%
*-commutative59.2%
Simplified59.2%
Final simplification54.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -7e-214)
1.0
(if (<= b 2.2e-306)
(/ x (- x (* y (- -1.0 (* c 1.6666666666666667)))))
1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -7e-214) {
tmp = 1.0;
} else if (b <= 2.2e-306) {
tmp = x / (x - (y * (-1.0 - (c * 1.6666666666666667))));
} 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 <= (-7d-214)) then
tmp = 1.0d0
else if (b <= 2.2d-306) then
tmp = x / (x - (y * ((-1.0d0) - (c * 1.6666666666666667d0))))
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 <= -7e-214) {
tmp = 1.0;
} else if (b <= 2.2e-306) {
tmp = x / (x - (y * (-1.0 - (c * 1.6666666666666667))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -7e-214: tmp = 1.0 elif b <= 2.2e-306: tmp = x / (x - (y * (-1.0 - (c * 1.6666666666666667)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -7e-214) tmp = 1.0; elseif (b <= 2.2e-306) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(c * 1.6666666666666667))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -7e-214) tmp = 1.0; elseif (b <= 2.2e-306) tmp = x / (x - (y * (-1.0 - (c * 1.6666666666666667)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -7e-214], 1.0, If[LessEqual[b, 2.2e-306], N[(x / N[(x - N[(y * N[(-1.0 - N[(c * 1.6666666666666667), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7 \cdot 10^{-214}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{-306}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - c \cdot 1.6666666666666667\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -7e-214 or 2.20000000000000016e-306 < b Initial program 96.5%
Taylor expanded in c around inf 67.7%
cancel-sign-sub-inv67.7%
+-commutative67.7%
metadata-eval67.7%
associate-*r/67.7%
metadata-eval67.7%
associate-+r+67.7%
Simplified67.7%
Taylor expanded in c around 0 35.2%
Taylor expanded in x around inf 51.3%
if -7e-214 < b < 2.20000000000000016e-306Initial program 100.0%
Taylor expanded in t around inf 79.9%
mul-1-neg79.9%
+-commutative79.9%
distribute-rgt-neg-in79.9%
neg-sub079.9%
associate--r-79.9%
neg-sub079.9%
+-commutative79.9%
sub-neg79.9%
*-commutative79.9%
Simplified79.9%
Taylor expanded in a around 0 76.6%
Taylor expanded in c around inf 76.6%
Taylor expanded in c around 0 73.6%
*-commutative73.6%
Simplified73.6%
Final simplification53.9%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -6.5e-216) 1.0 (if (<= b -4e-297) (/ x (+ x y)) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -6.5e-216) {
tmp = 1.0;
} else if (b <= -4e-297) {
tmp = x / (x + y);
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-6.5d-216)) then
tmp = 1.0d0
else if (b <= (-4d-297)) then
tmp = x / (x + y)
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -6.5e-216) {
tmp = 1.0;
} else if (b <= -4e-297) {
tmp = x / (x + y);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -6.5e-216: tmp = 1.0 elif b <= -4e-297: tmp = x / (x + y) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -6.5e-216) tmp = 1.0; elseif (b <= -4e-297) tmp = Float64(x / Float64(x + y)); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -6.5e-216) tmp = 1.0; elseif (b <= -4e-297) tmp = x / (x + y); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -6.5e-216], 1.0, If[LessEqual[b, -4e-297], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.5 \cdot 10^{-216}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -4 \cdot 10^{-297}:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -6.4999999999999999e-216 or -4.00000000000000016e-297 < b Initial program 96.6%
Taylor expanded in c around inf 68.2%
cancel-sign-sub-inv68.2%
+-commutative68.2%
metadata-eval68.2%
associate-*r/68.2%
metadata-eval68.2%
associate-+r+68.2%
Simplified68.2%
Taylor expanded in c around 0 35.5%
Taylor expanded in x around inf 51.4%
if -6.4999999999999999e-216 < b < -4.00000000000000016e-297Initial program 100.0%
Taylor expanded in a around inf 71.1%
Taylor expanded in a around 0 63.6%
Final simplification52.5%
(FPCore (x y z t a b c) :precision binary64 (if (<= x -1.1e-242) 1.0 (if (<= x 1.1e-265) (/ x y) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= -1.1e-242) {
tmp = 1.0;
} else if (x <= 1.1e-265) {
tmp = x / y;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (x <= (-1.1d-242)) then
tmp = 1.0d0
else if (x <= 1.1d-265) then
tmp = x / y
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= -1.1e-242) {
tmp = 1.0;
} else if (x <= 1.1e-265) {
tmp = x / y;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= -1.1e-242: tmp = 1.0 elif x <= 1.1e-265: tmp = x / y else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= -1.1e-242) tmp = 1.0; elseif (x <= 1.1e-265) tmp = Float64(x / y); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= -1.1e-242) tmp = 1.0; elseif (x <= 1.1e-265) tmp = x / y; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, -1.1e-242], 1.0, If[LessEqual[x, 1.1e-265], N[(x / y), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.1 \cdot 10^{-242}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{-265}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -1.10000000000000001e-242 or 1.10000000000000005e-265 < x Initial program 97.0%
Taylor expanded in c around inf 70.5%
cancel-sign-sub-inv70.5%
+-commutative70.5%
metadata-eval70.5%
associate-*r/70.5%
metadata-eval70.5%
associate-+r+70.5%
Simplified70.5%
Taylor expanded in c around 0 38.3%
Taylor expanded in x around inf 51.4%
if -1.10000000000000001e-242 < x < 1.10000000000000005e-265Initial program 96.3%
Taylor expanded in c around inf 74.9%
cancel-sign-sub-inv74.9%
+-commutative74.9%
metadata-eval74.9%
associate-*r/74.9%
metadata-eval74.9%
associate-+r+74.9%
Simplified74.9%
Taylor expanded in c around 0 57.4%
Taylor expanded in y around inf 57.4%
Taylor expanded in c around 0 53.7%
Final simplification51.6%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 96.9%
Taylor expanded in c around inf 70.9%
cancel-sign-sub-inv70.9%
+-commutative70.9%
metadata-eval70.9%
associate-*r/70.9%
metadata-eval70.9%
associate-+r+70.9%
Simplified70.9%
Taylor expanded in c around 0 40.3%
Taylor expanded in x around inf 48.9%
Final simplification48.9%
(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 2024019
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:herbie-target
(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)))))))))))