
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 18 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ 2.0 (* t 3.0))) (t_2 (sqrt (+ t a))))
(if (<=
(+ (/ (* z t_2) t) (* (- b c) (- t_1 (+ a 0.8333333333333334))))
INFINITY)
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(+ (* z (/ t_2 t)) (* (- b c) (- (- t_1 0.8333333333333334) a)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 2.0 / (t * 3.0);
double t_2 = sqrt((t + a));
double tmp;
if ((((z * t_2) / t) + ((b - c) * (t_1 - (a + 0.8333333333333334)))) <= ((double) INFINITY)) {
tmp = x / (x + (y * pow(exp(2.0), ((z * (t_2 / t)) + ((b - c) * ((t_1 - 0.8333333333333334) - a))))));
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 2.0 / (t * 3.0);
double t_2 = Math.sqrt((t + a));
double tmp;
if ((((z * t_2) / t) + ((b - c) * (t_1 - (a + 0.8333333333333334)))) <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), ((z * (t_2 / t)) + ((b - c) * ((t_1 - 0.8333333333333334) - a))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = 2.0 / (t * 3.0) t_2 = math.sqrt((t + a)) tmp = 0 if (((z * t_2) / t) + ((b - c) * (t_1 - (a + 0.8333333333333334)))) <= math.inf: tmp = x / (x + (y * math.pow(math.exp(2.0), ((z * (t_2 / t)) + ((b - c) * ((t_1 - 0.8333333333333334) - a)))))) else: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(2.0 / Float64(t * 3.0)) t_2 = sqrt(Float64(t + a)) tmp = 0.0 if (Float64(Float64(Float64(z * t_2) / t) + Float64(Float64(b - c) * Float64(t_1 - Float64(a + 0.8333333333333334)))) <= Inf) tmp = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(Float64(z * Float64(t_2 / t)) + Float64(Float64(b - c) * Float64(Float64(t_1 - 0.8333333333333334) - a))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = 2.0 / (t * 3.0); t_2 = sqrt((t + a)); tmp = 0.0; if ((((z * t_2) / t) + ((b - c) * (t_1 - (a + 0.8333333333333334)))) <= Inf) tmp = x / (x + (y * (exp(2.0) ^ ((z * (t_2 / t)) + ((b - c) * ((t_1 - 0.8333333333333334) - a)))))); else tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(N[(N[(z * t$95$2), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(t$95$1 - 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$95$2 / t), $MachinePrecision]), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(t$95$1 - 0.8333333333333334), $MachinePrecision] - a), $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[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{2}{t \cdot 3}\\
t_2 := \sqrt{t + a}\\
\mathbf{if}\;\frac{z \cdot t\_2}{t} + \left(b - c\right) \cdot \left(t\_1 - \left(a + 0.8333333333333334\right)\right) \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(z \cdot \frac{t\_2}{t} + \left(b - c\right) \cdot \left(\left(t\_1 - 0.8333333333333334\right) - a\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < +inf.0Initial program 98.8%
exp-prod98.8%
Simplified100.0%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 0.0%
Taylor expanded in t around 0 85.1%
Final simplification99.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t\_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < +inf.0Initial program 98.8%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 0.0%
Taylor expanded in t around 0 85.1%
Final simplification98.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 1.8e-206)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 3.8e-117)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (+ a 0.8333333333333334) (- c b)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.8e-206) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 3.8e-117) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 1.8d-206) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 3.8d-117) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((a + 0.8333333333333334d0) * (c - b)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.8e-206) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 3.8e-117) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1.8e-206: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 3.8e-117: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1.8e-206) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); elseif (t <= 3.8e-117) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(a + 0.8333333333333334) * Float64(c - b)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 1.8e-206) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 3.8e-117) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); else tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 1.8e-206], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.8e-117], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.8 \cdot 10^{-206}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{-117}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 1.79999999999999997e-206Initial program 87.2%
Taylor expanded in t around 0 94.3%
if 1.79999999999999997e-206 < t < 3.79999999999999972e-117Initial program 96.2%
Taylor expanded in t around 0 65.4%
Taylor expanded in z around 0 88.8%
if 3.79999999999999972e-117 < t Initial program 97.3%
Taylor expanded in t around inf 93.3%
Final simplification93.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (+ a 0.8333333333333334) (* c 2.0))))))))
(if (<= c -2.9e+59)
t_1
(if (<= c 3.5e+31)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(if (or (<= c 2.8e+135) (not (<= c 2.3e+183)))
t_1
(/ 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 t_1 = x / (x + (y * exp(((a + 0.8333333333333334) * (c * 2.0)))));
double tmp;
if (c <= -2.9e+59) {
tmp = t_1;
} else if (c <= 3.5e+31) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if ((c <= 2.8e+135) || !(c <= 2.3e+183)) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp(((a + 0.8333333333333334d0) * (c * 2.0d0)))))
if (c <= (-2.9d+59)) then
tmp = t_1
else if (c <= 3.5d+31) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else if ((c <= 2.8d+135) .or. (.not. (c <= 2.3d+183))) then
tmp = t_1
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 t_1 = x / (x + (y * Math.exp(((a + 0.8333333333333334) * (c * 2.0)))));
double tmp;
if (c <= -2.9e+59) {
tmp = t_1;
} else if (c <= 3.5e+31) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if ((c <= 2.8e+135) || !(c <= 2.3e+183)) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp(((a + 0.8333333333333334) * (c * 2.0))))) tmp = 0 if c <= -2.9e+59: tmp = t_1 elif c <= 3.5e+31: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) elif (c <= 2.8e+135) or not (c <= 2.3e+183): tmp = t_1 else: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(a + 0.8333333333333334) * Float64(c * 2.0)))))) tmp = 0.0 if (c <= -2.9e+59) tmp = t_1; elseif (c <= 3.5e+31) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); elseif ((c <= 2.8e+135) || !(c <= 2.3e+183)) tmp = t_1; 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) t_1 = x / (x + (y * exp(((a + 0.8333333333333334) * (c * 2.0))))); tmp = 0.0; if (c <= -2.9e+59) tmp = t_1; elseif (c <= 3.5e+31) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); elseif ((c <= 2.8e+135) || ~((c <= 2.3e+183))) tmp = t_1; else tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.9e+59], t$95$1, If[LessEqual[c, 3.5e+31], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[c, 2.8e+135], N[Not[LessEqual[c, 2.3e+183]], $MachinePrecision]], t$95$1, 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}
t_1 := \frac{x}{x + y \cdot e^{\left(a + 0.8333333333333334\right) \cdot \left(c \cdot 2\right)}}\\
\mathbf{if}\;c \leq -2.9 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 3.5 \cdot 10^{+31}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{elif}\;c \leq 2.8 \cdot 10^{+135} \lor \neg \left(c \leq 2.3 \cdot 10^{+183}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\end{array}
\end{array}
if c < -2.89999999999999991e59 or 3.5e31 < c < 2.80000000000000002e135 or 2.2999999999999998e183 < c Initial program 90.1%
Taylor expanded in c around inf 90.3%
+-commutative90.3%
associate-*r/90.3%
metadata-eval90.3%
Simplified90.3%
Taylor expanded in t around inf 80.6%
associate-*r*80.6%
Simplified80.6%
if -2.89999999999999991e59 < c < 3.5e31Initial program 96.5%
Taylor expanded in b around inf 85.8%
associate-*r/85.8%
metadata-eval85.8%
+-commutative85.8%
Simplified85.8%
if 2.80000000000000002e135 < c < 2.2999999999999998e183Initial program 91.7%
Taylor expanded in t around 0 58.3%
Taylor expanded in z around 0 83.9%
Final simplification83.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 5e-117)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 66000000.0)
1.0
(if (<= t 6.5e+24)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= t 1.75e+208)
(/ x (+ x (* y (exp (* (+ a 0.8333333333333334) (* c 2.0))))))
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 5e-117) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 66000000.0) {
tmp = 1.0;
} else if (t <= 6.5e+24) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (t <= 1.75e+208) {
tmp = x / (x + (y * exp(((a + 0.8333333333333334) * (c * 2.0)))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 5d-117) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 66000000.0d0) then
tmp = 1.0d0
else if (t <= 6.5d+24) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (t <= 1.75d+208) then
tmp = x / (x + (y * exp(((a + 0.8333333333333334d0) * (c * 2.0d0)))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 5e-117) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 66000000.0) {
tmp = 1.0;
} else if (t <= 6.5e+24) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (t <= 1.75e+208) {
tmp = x / (x + (y * Math.exp(((a + 0.8333333333333334) * (c * 2.0)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 5e-117: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 66000000.0: tmp = 1.0 elif t <= 6.5e+24: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif t <= 1.75e+208: tmp = x / (x + (y * math.exp(((a + 0.8333333333333334) * (c * 2.0))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 5e-117) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 66000000.0) tmp = 1.0; elseif (t <= 6.5e+24) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (t <= 1.75e+208) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(a + 0.8333333333333334) * Float64(c * 2.0)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 5e-117) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 66000000.0) tmp = 1.0; elseif (t <= 6.5e+24) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (t <= 1.75e+208) tmp = x / (x + (y * exp(((a + 0.8333333333333334) * (c * 2.0))))); else tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 5e-117], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 66000000.0], 1.0, If[LessEqual[t, 6.5e+24], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.75e+208], N[(x / N[(x + N[(y * N[Exp[N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 5 \cdot 10^{-117}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 66000000:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{+24}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{+208}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(a + 0.8333333333333334\right) \cdot \left(c \cdot 2\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < 5e-117Initial program 89.3%
Taylor expanded in t around 0 87.6%
Taylor expanded in z around 0 81.9%
if 5e-117 < t < 6.6e7Initial program 100.0%
Taylor expanded in c around inf 81.8%
+-commutative81.8%
associate-*r/81.8%
metadata-eval81.8%
Simplified81.8%
Taylor expanded in x around inf 72.8%
if 6.6e7 < t < 6.4999999999999996e24Initial program 100.0%
Taylor expanded in b around inf 83.9%
associate-*r/83.9%
metadata-eval83.9%
+-commutative83.9%
Simplified83.9%
Taylor expanded in t around inf 83.9%
mul-1-neg83.9%
distribute-rgt-neg-in83.9%
mul-1-neg83.9%
distribute-lft-in83.9%
metadata-eval83.9%
mul-1-neg83.9%
unsub-neg83.9%
Simplified83.9%
Taylor expanded in a around 0 83.9%
if 6.4999999999999996e24 < t < 1.75000000000000008e208Initial program 95.3%
Taylor expanded in c around inf 77.0%
+-commutative77.0%
associate-*r/77.0%
metadata-eval77.0%
Simplified77.0%
Taylor expanded in t around inf 77.0%
associate-*r*77.0%
Simplified77.0%
if 1.75000000000000008e208 < t Initial program 97.7%
Taylor expanded in b around inf 79.2%
associate-*r/79.2%
metadata-eval79.2%
+-commutative79.2%
Simplified79.2%
Taylor expanded in t around inf 79.2%
mul-1-neg79.2%
distribute-rgt-neg-in79.2%
mul-1-neg79.2%
distribute-lft-in79.2%
metadata-eval79.2%
mul-1-neg79.2%
unsub-neg79.2%
Simplified79.2%
Final simplification79.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* c 1.6666666666666667)))))))
(if (<= t -4.2e-201)
t_1
(if (<= t 1.32e-274)
(/
x
(+
x
(+
y
(*
2.0
(*
c
(*
a
(+
y
(*
y
(/ (- 0.8333333333333334 (/ 0.6666666666666666 t)) a)))))))))
(if (<= t 18000000000.0)
1.0
(if (<= t 3e+214)
t_1
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((c * 1.6666666666666667))));
double tmp;
if (t <= -4.2e-201) {
tmp = t_1;
} else if (t <= 1.32e-274) {
tmp = x / (x + (y + (2.0 * (c * (a * (y + (y * ((0.8333333333333334 - (0.6666666666666666 / t)) / a))))))));
} else if (t <= 18000000000.0) {
tmp = 1.0;
} else if (t <= 3e+214) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((b * -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) :: tmp
t_1 = x / (x + (y * exp((c * 1.6666666666666667d0))))
if (t <= (-4.2d-201)) then
tmp = t_1
else if (t <= 1.32d-274) then
tmp = x / (x + (y + (2.0d0 * (c * (a * (y + (y * ((0.8333333333333334d0 - (0.6666666666666666d0 / t)) / a))))))))
else if (t <= 18000000000.0d0) then
tmp = 1.0d0
else if (t <= 3d+214) then
tmp = t_1
else
tmp = x / (x + (y * exp((b * (-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 * Math.exp((c * 1.6666666666666667))));
double tmp;
if (t <= -4.2e-201) {
tmp = t_1;
} else if (t <= 1.32e-274) {
tmp = x / (x + (y + (2.0 * (c * (a * (y + (y * ((0.8333333333333334 - (0.6666666666666666 / t)) / a))))))));
} else if (t <= 18000000000.0) {
tmp = 1.0;
} else if (t <= 3e+214) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((c * 1.6666666666666667)))) tmp = 0 if t <= -4.2e-201: tmp = t_1 elif t <= 1.32e-274: tmp = x / (x + (y + (2.0 * (c * (a * (y + (y * ((0.8333333333333334 - (0.6666666666666666 / t)) / a)))))))) elif t <= 18000000000.0: tmp = 1.0 elif t <= 3e+214: tmp = t_1 else: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))) tmp = 0.0 if (t <= -4.2e-201) tmp = t_1; elseif (t <= 1.32e-274) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * Float64(a * Float64(y + Float64(y * Float64(Float64(0.8333333333333334 - Float64(0.6666666666666666 / t)) / a))))))))); elseif (t <= 18000000000.0) tmp = 1.0; elseif (t <= 3e+214) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((c * 1.6666666666666667)))); tmp = 0.0; if (t <= -4.2e-201) tmp = t_1; elseif (t <= 1.32e-274) tmp = x / (x + (y + (2.0 * (c * (a * (y + (y * ((0.8333333333333334 - (0.6666666666666666 / t)) / a)))))))); elseif (t <= 18000000000.0) tmp = 1.0; elseif (t <= 3e+214) tmp = t_1; else tmp = x / (x + (y * exp((b * -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[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.2e-201], t$95$1, If[LessEqual[t, 1.32e-274], N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[(a * N[(y + N[(y * N[(N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 18000000000.0], 1.0, If[LessEqual[t, 3e+214], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{if}\;t \leq -4.2 \cdot 10^{-201}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.32 \cdot 10^{-274}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \left(a \cdot \left(y + y \cdot \frac{0.8333333333333334 - \frac{0.6666666666666666}{t}}{a}\right)\right)\right)\right)}\\
\mathbf{elif}\;t \leq 18000000000:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 3 \cdot 10^{+214}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -4.20000000000000024e-201 or 1.8e10 < t < 3.0000000000000001e214Initial program 96.1%
Taylor expanded in c around inf 73.9%
+-commutative73.9%
associate-*r/73.9%
metadata-eval73.9%
Simplified73.9%
Taylor expanded in t around inf 73.9%
associate-*r*73.9%
Simplified73.9%
Taylor expanded in a around 0 72.1%
*-commutative72.1%
Simplified72.1%
if -4.20000000000000024e-201 < t < 1.32e-274Initial program 82.5%
Taylor expanded in c around inf 75.2%
+-commutative75.2%
associate-*r/75.2%
metadata-eval75.2%
Simplified75.2%
Taylor expanded in c around 0 56.0%
associate--l+56.0%
associate-*r/56.0%
metadata-eval56.0%
Simplified56.0%
Taylor expanded in a around inf 60.8%
associate-/l*65.6%
associate-*r/65.6%
metadata-eval65.6%
Simplified65.6%
if 1.32e-274 < t < 1.8e10Initial program 94.6%
Taylor expanded in c around inf 66.7%
+-commutative66.7%
associate-*r/66.7%
metadata-eval66.7%
Simplified66.7%
Taylor expanded in x around inf 62.0%
if 3.0000000000000001e214 < t Initial program 97.6%
Taylor expanded in b around inf 78.2%
associate-*r/78.2%
metadata-eval78.2%
+-commutative78.2%
Simplified78.2%
Taylor expanded in t around inf 78.2%
mul-1-neg78.2%
distribute-rgt-neg-in78.2%
mul-1-neg78.2%
distribute-lft-in78.2%
metadata-eval78.2%
mul-1-neg78.2%
unsub-neg78.2%
Simplified78.2%
Taylor expanded in a around 0 73.4%
Final simplification68.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -5.2e-288)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= t 1.56e-273)
(/
x
(+
x
(+
y
(*
2.0
(*
c
(*
a
(+
y
(* y (/ (- 0.8333333333333334 (/ 0.6666666666666666 t)) a)))))))))
(if (<= t 36000000000.0)
1.0
(if (<= t 5.8e+213)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
(/ x (+ x (* y (exp (* b -1.6666666666666667))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -5.2e-288) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (t <= 1.56e-273) {
tmp = x / (x + (y + (2.0 * (c * (a * (y + (y * ((0.8333333333333334 - (0.6666666666666666 / t)) / a))))))));
} else if (t <= 36000000000.0) {
tmp = 1.0;
} else if (t <= 5.8e+213) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-5.2d-288)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (t <= 1.56d-273) then
tmp = x / (x + (y + (2.0d0 * (c * (a * (y + (y * ((0.8333333333333334d0 - (0.6666666666666666d0 / t)) / a))))))))
else if (t <= 36000000000.0d0) then
tmp = 1.0d0
else if (t <= 5.8d+213) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -5.2e-288) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (t <= 1.56e-273) {
tmp = x / (x + (y + (2.0 * (c * (a * (y + (y * ((0.8333333333333334 - (0.6666666666666666 / t)) / a))))))));
} else if (t <= 36000000000.0) {
tmp = 1.0;
} else if (t <= 5.8e+213) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -5.2e-288: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif t <= 1.56e-273: tmp = x / (x + (y + (2.0 * (c * (a * (y + (y * ((0.8333333333333334 - (0.6666666666666666 / t)) / a)))))))) elif t <= 36000000000.0: tmp = 1.0 elif t <= 5.8e+213: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) else: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -5.2e-288) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (t <= 1.56e-273) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * Float64(a * Float64(y + Float64(y * Float64(Float64(0.8333333333333334 - Float64(0.6666666666666666 / t)) / a))))))))); elseif (t <= 36000000000.0) tmp = 1.0; elseif (t <= 5.8e+213) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -5.2e-288) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (t <= 1.56e-273) tmp = x / (x + (y + (2.0 * (c * (a * (y + (y * ((0.8333333333333334 - (0.6666666666666666 / t)) / a)))))))); elseif (t <= 36000000000.0) tmp = 1.0; elseif (t <= 5.8e+213) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); else tmp = x / (x + (y * exp((b * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -5.2e-288], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.56e-273], N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[(a * N[(y + N[(y * N[(N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 36000000000.0], 1.0, If[LessEqual[t, 5.8e+213], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.2 \cdot 10^{-288}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;t \leq 1.56 \cdot 10^{-273}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \left(a \cdot \left(y + y \cdot \frac{0.8333333333333334 - \frac{0.6666666666666666}{t}}{a}\right)\right)\right)\right)}\\
\mathbf{elif}\;t \leq 36000000000:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{+213}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -5.19999999999999979e-288Initial program 88.7%
Taylor expanded in c around inf 74.0%
+-commutative74.0%
associate-*r/74.0%
metadata-eval74.0%
Simplified74.0%
Taylor expanded in a around inf 67.9%
if -5.19999999999999979e-288 < t < 1.55999999999999994e-273Initial program 88.9%
Taylor expanded in c around inf 78.5%
+-commutative78.5%
associate-*r/78.5%
metadata-eval78.5%
Simplified78.5%
Taylor expanded in c around 0 62.4%
associate--l+62.4%
associate-*r/62.4%
metadata-eval62.4%
Simplified62.4%
Taylor expanded in a around inf 73.1%
associate-/l*78.5%
associate-*r/78.5%
metadata-eval78.5%
Simplified78.5%
if 1.55999999999999994e-273 < t < 3.6e10Initial program 94.6%
Taylor expanded in c around inf 66.7%
+-commutative66.7%
associate-*r/66.7%
metadata-eval66.7%
Simplified66.7%
Taylor expanded in x around inf 62.0%
if 3.6e10 < t < 5.8000000000000006e213Initial program 95.8%
Taylor expanded in c around inf 73.3%
+-commutative73.3%
associate-*r/73.3%
metadata-eval73.3%
Simplified73.3%
Taylor expanded in t around inf 73.3%
associate-*r*73.3%
Simplified73.3%
Taylor expanded in a around 0 73.5%
*-commutative73.5%
Simplified73.5%
if 5.8000000000000006e213 < t Initial program 97.6%
Taylor expanded in b around inf 78.2%
associate-*r/78.2%
metadata-eval78.2%
+-commutative78.2%
Simplified78.2%
Taylor expanded in t around inf 78.2%
mul-1-neg78.2%
distribute-rgt-neg-in78.2%
mul-1-neg78.2%
distribute-lft-in78.2%
metadata-eval78.2%
mul-1-neg78.2%
unsub-neg78.2%
Simplified78.2%
Taylor expanded in a around 0 73.4%
Final simplification69.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 2.6e-119)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 4200000000.0)
1.0
(if (<= t 1.25e+163)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2.6e-119) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 4200000000.0) {
tmp = 1.0;
} else if (t <= 1.25e+163) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 2.6d-119) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 4200000000.0d0) then
tmp = 1.0d0
else if (t <= 1.25d+163) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2.6e-119) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 4200000000.0) {
tmp = 1.0;
} else if (t <= 1.25e+163) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 2.6e-119: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 4200000000.0: tmp = 1.0 elif t <= 1.25e+163: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) else: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 2.6e-119) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 4200000000.0) tmp = 1.0; elseif (t <= 1.25e+163) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 2.6e-119) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 4200000000.0) tmp = 1.0; elseif (t <= 1.25e+163) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); else tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 2.6e-119], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4200000000.0], 1.0, If[LessEqual[t, 1.25e+163], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.6 \cdot 10^{-119}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 4200000000:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{+163}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < 2.60000000000000012e-119Initial program 89.3%
Taylor expanded in t around 0 87.6%
Taylor expanded in z around 0 81.9%
if 2.60000000000000012e-119 < t < 4.2e9Initial program 100.0%
Taylor expanded in c around inf 79.5%
+-commutative79.5%
associate-*r/79.5%
metadata-eval79.5%
Simplified79.5%
Taylor expanded in x around inf 73.6%
if 4.2e9 < t < 1.25e163Initial program 94.4%
Taylor expanded in c around inf 71.6%
+-commutative71.6%
associate-*r/71.6%
metadata-eval71.6%
Simplified71.6%
Taylor expanded in t around inf 71.6%
associate-*r*71.6%
Simplified71.6%
Taylor expanded in a around 0 73.5%
*-commutative73.5%
Simplified73.5%
if 1.25e163 < t Initial program 98.4%
Taylor expanded in b around inf 78.3%
associate-*r/78.3%
metadata-eval78.3%
+-commutative78.3%
Simplified78.3%
Taylor expanded in t around inf 78.3%
mul-1-neg78.3%
distribute-rgt-neg-in78.3%
mul-1-neg78.3%
distribute-lft-in78.3%
metadata-eval78.3%
mul-1-neg78.3%
unsub-neg78.3%
Simplified78.3%
Final simplification78.3%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -6.5e+16) (not (<= c 1.15e+32)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* c (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -6.5e+16) || !(c <= 1.15e+32)) {
tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((c <= (-6.5d+16)) .or. (.not. (c <= 1.15d+32))) then
tmp = x / (x + (y * exp((2.0d0 * (c * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t)))))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -6.5e+16) || !(c <= 1.15e+32)) {
tmp = x / (x + (y * Math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (c <= -6.5e+16) or not (c <= 1.15e+32): tmp = x / (x + (y * math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((c <= -6.5e+16) || !(c <= 1.15e+32)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((c <= -6.5e+16) || ~((c <= 1.15e+32))) tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[c, -6.5e+16], N[Not[LessEqual[c, 1.15e+32]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -6.5 \cdot 10^{+16} \lor \neg \left(c \leq 1.15 \cdot 10^{+32}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if c < -6.5e16 or 1.15e32 < c Initial program 90.7%
Taylor expanded in c around inf 89.3%
+-commutative89.3%
associate-*r/89.3%
metadata-eval89.3%
Simplified89.3%
if -6.5e16 < c < 1.15e32Initial program 96.4%
Taylor expanded in b around inf 87.2%
associate-*r/87.2%
metadata-eval87.2%
+-commutative87.2%
Simplified87.2%
Final simplification88.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* b -1.6666666666666667)))))))
(if (<= t -1.1e-291)
t_1
(if (<= t 1.05e-243)
(/
x
(-
x
(-
(*
2.0
(* b (* y (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t)))))
y)))
(if (<= t 270.0) 1.0 t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((b * -1.6666666666666667))));
double tmp;
if (t <= -1.1e-291) {
tmp = t_1;
} else if (t <= 1.05e-243) {
tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y));
} else if (t <= 270.0) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
if (t <= (-1.1d-291)) then
tmp = t_1
else if (t <= 1.05d-243) then
tmp = x / (x - ((2.0d0 * (b * (y * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t))))) - y))
else if (t <= 270.0d0) then
tmp = 1.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((b * -1.6666666666666667))));
double tmp;
if (t <= -1.1e-291) {
tmp = t_1;
} else if (t <= 1.05e-243) {
tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y));
} else if (t <= 270.0) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((b * -1.6666666666666667)))) tmp = 0 if t <= -1.1e-291: tmp = t_1 elif t <= 1.05e-243: tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y)) elif t <= 270.0: tmp = 1.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))) tmp = 0.0 if (t <= -1.1e-291) tmp = t_1; elseif (t <= 1.05e-243) tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(b * Float64(y * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t))))) - y))); elseif (t <= 270.0) tmp = 1.0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((b * -1.6666666666666667)))); tmp = 0.0; if (t <= -1.1e-291) tmp = t_1; elseif (t <= 1.05e-243) tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y)); elseif (t <= 270.0) tmp = 1.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.1e-291], t$95$1, If[LessEqual[t, 1.05e-243], N[(x / N[(x - N[(N[(2.0 * N[(b * N[(y * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 270.0], 1.0, t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{if}\;t \leq -1.1 \cdot 10^{-291}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{-243}:\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \left(b \cdot \left(y \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)\right) - y\right)}\\
\mathbf{elif}\;t \leq 270:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.10000000000000001e-291 or 270 < t Initial program 94.1%
Taylor expanded in b around inf 71.5%
associate-*r/71.5%
metadata-eval71.5%
+-commutative71.5%
Simplified71.5%
Taylor expanded in t around inf 69.8%
mul-1-neg69.8%
distribute-rgt-neg-in69.8%
mul-1-neg69.8%
distribute-lft-in69.8%
metadata-eval69.8%
mul-1-neg69.8%
unsub-neg69.8%
Simplified69.8%
Taylor expanded in a around 0 63.3%
if -1.10000000000000001e-291 < t < 1.05e-243Initial program 85.7%
Taylor expanded in b around inf 79.3%
associate-*r/79.3%
metadata-eval79.3%
+-commutative79.3%
Simplified79.3%
Taylor expanded in b around 0 65.4%
*-commutative65.4%
associate-*r/65.4%
metadata-eval65.4%
Simplified65.4%
if 1.05e-243 < t < 270Initial program 96.7%
Taylor expanded in c around inf 69.1%
+-commutative69.1%
associate-*r/69.1%
metadata-eval69.1%
Simplified69.1%
Taylor expanded in x around inf 63.5%
Final simplification63.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 3.1e-117)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 7500000000.0)
1.0
(if (<= t 1.35e+212)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 3.1e-117) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 7500000000.0) {
tmp = 1.0;
} else if (t <= 1.35e+212) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 3.1d-117) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 7500000000.0d0) then
tmp = 1.0d0
else if (t <= 1.35d+212) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 3.1e-117) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 7500000000.0) {
tmp = 1.0;
} else if (t <= 1.35e+212) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 3.1e-117: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 7500000000.0: tmp = 1.0 elif t <= 1.35e+212: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) else: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 3.1e-117) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 7500000000.0) tmp = 1.0; elseif (t <= 1.35e+212) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 3.1e-117) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 7500000000.0) tmp = 1.0; elseif (t <= 1.35e+212) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); else tmp = x / (x + (y * exp((b * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 3.1e-117], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7500000000.0], 1.0, If[LessEqual[t, 1.35e+212], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 3.1 \cdot 10^{-117}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 7500000000:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{+212}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < 3.10000000000000011e-117Initial program 89.3%
Taylor expanded in t around 0 87.6%
Taylor expanded in z around 0 81.9%
if 3.10000000000000011e-117 < t < 7.5e9Initial program 100.0%
Taylor expanded in c around inf 79.5%
+-commutative79.5%
associate-*r/79.5%
metadata-eval79.5%
Simplified79.5%
Taylor expanded in x around inf 73.6%
if 7.5e9 < t < 1.35e212Initial program 95.8%
Taylor expanded in c around inf 73.3%
+-commutative73.3%
associate-*r/73.3%
metadata-eval73.3%
Simplified73.3%
Taylor expanded in t around inf 73.3%
associate-*r*73.3%
Simplified73.3%
Taylor expanded in a around 0 73.5%
*-commutative73.5%
Simplified73.5%
if 1.35e212 < t Initial program 97.6%
Taylor expanded in b around inf 78.2%
associate-*r/78.2%
metadata-eval78.2%
+-commutative78.2%
Simplified78.2%
Taylor expanded in t around inf 78.2%
mul-1-neg78.2%
distribute-rgt-neg-in78.2%
mul-1-neg78.2%
distribute-lft-in78.2%
metadata-eval78.2%
mul-1-neg78.2%
unsub-neg78.2%
Simplified78.2%
Taylor expanded in a around 0 73.4%
Final simplification77.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(-
y
(*
2.0
(*
c
(*
y
(- (- (/ 0.6666666666666666 t) a) 0.8333333333333334)))))))))
(if (<= y -3e+220)
t_1
(if (<= y -3.8e+167)
1.0
(if (<= y -9.8e-20)
t_1
(if (<= y 4.5e+168)
1.0
(/
x
(-
x
(-
(*
2.0
(*
b
(* y (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t)))))
y)))))))))
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) - a) - 0.8333333333333334))))));
double tmp;
if (y <= -3e+220) {
tmp = t_1;
} else if (y <= -3.8e+167) {
tmp = 1.0;
} else if (y <= -9.8e-20) {
tmp = t_1;
} else if (y <= 4.5e+168) {
tmp = 1.0;
} else {
tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y - (2.0d0 * (c * (y * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0))))))
if (y <= (-3d+220)) then
tmp = t_1
else if (y <= (-3.8d+167)) then
tmp = 1.0d0
else if (y <= (-9.8d-20)) then
tmp = t_1
else if (y <= 4.5d+168) then
tmp = 1.0d0
else
tmp = x / (x - ((2.0d0 * (b * (y * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t))))) - y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y - (2.0 * (c * (y * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
double tmp;
if (y <= -3e+220) {
tmp = t_1;
} else if (y <= -3.8e+167) {
tmp = 1.0;
} else if (y <= -9.8e-20) {
tmp = t_1;
} else if (y <= 4.5e+168) {
tmp = 1.0;
} else {
tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y - (2.0 * (c * (y * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))) tmp = 0 if y <= -3e+220: tmp = t_1 elif y <= -3.8e+167: tmp = 1.0 elif y <= -9.8e-20: tmp = t_1 elif y <= 4.5e+168: tmp = 1.0 else: tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y)) 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(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334))))))) tmp = 0.0 if (y <= -3e+220) tmp = t_1; elseif (y <= -3.8e+167) tmp = 1.0; elseif (y <= -9.8e-20) tmp = t_1; elseif (y <= 4.5e+168) tmp = 1.0; else tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(b * Float64(y * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t))))) - y))); 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) - a) - 0.8333333333333334)))))); tmp = 0.0; if (y <= -3e+220) tmp = t_1; elseif (y <= -3.8e+167) tmp = 1.0; elseif (y <= -9.8e-20) tmp = t_1; elseif (y <= 4.5e+168) tmp = 1.0; else tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y)); 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[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3e+220], t$95$1, If[LessEqual[y, -3.8e+167], 1.0, If[LessEqual[y, -9.8e-20], t$95$1, If[LessEqual[y, 4.5e+168], 1.0, N[(x / N[(x - N[(N[(2.0 * N[(b * N[(y * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $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(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{if}\;y \leq -3 \cdot 10^{+220}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3.8 \cdot 10^{+167}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq -9.8 \cdot 10^{-20}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{+168}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \left(b \cdot \left(y \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)\right) - y\right)}\\
\end{array}
\end{array}
if y < -3.00000000000000024e220 or -3.79999999999999994e167 < y < -9.8000000000000003e-20Initial program 94.5%
Taylor expanded in c around inf 72.6%
+-commutative72.6%
associate-*r/72.6%
metadata-eval72.6%
Simplified72.6%
Taylor expanded in c around 0 65.2%
associate--l+65.2%
associate-*r/65.2%
metadata-eval65.2%
Simplified65.2%
if -3.00000000000000024e220 < y < -3.79999999999999994e167 or -9.8000000000000003e-20 < y < 4.50000000000000012e168Initial program 93.3%
Taylor expanded in c around inf 69.3%
+-commutative69.3%
associate-*r/69.3%
metadata-eval69.3%
Simplified69.3%
Taylor expanded in x around inf 58.2%
if 4.50000000000000012e168 < y Initial program 94.9%
Taylor expanded in b around inf 72.1%
associate-*r/72.1%
metadata-eval72.1%
+-commutative72.1%
Simplified72.1%
Taylor expanded in b around 0 56.8%
*-commutative56.8%
associate-*r/56.8%
metadata-eval56.8%
Simplified56.8%
Final simplification59.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y -4.8e+220)
(/
x
(+
x
(+
y
(*
2.0
(*
c
(*
a
(+
y
(* y (/ (- 0.8333333333333334 (/ 0.6666666666666666 t)) a)))))))))
(if (<= y -5.8e+168)
1.0
(if (<= y -7.3e-19)
(/
x
(+
x
(-
y
(*
2.0
(*
c
(* y (- (- (/ 0.6666666666666666 t) a) 0.8333333333333334)))))))
(if (<= y 6.5e+168)
1.0
(/
x
(-
x
(-
(*
2.0
(* b (* y (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t)))))
y))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -4.8e+220) {
tmp = x / (x + (y + (2.0 * (c * (a * (y + (y * ((0.8333333333333334 - (0.6666666666666666 / t)) / a))))))));
} else if (y <= -5.8e+168) {
tmp = 1.0;
} else if (y <= -7.3e-19) {
tmp = x / (x + (y - (2.0 * (c * (y * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else if (y <= 6.5e+168) {
tmp = 1.0;
} else {
tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= (-4.8d+220)) then
tmp = x / (x + (y + (2.0d0 * (c * (a * (y + (y * ((0.8333333333333334d0 - (0.6666666666666666d0 / t)) / a))))))))
else if (y <= (-5.8d+168)) then
tmp = 1.0d0
else if (y <= (-7.3d-19)) then
tmp = x / (x + (y - (2.0d0 * (c * (y * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0))))))
else if (y <= 6.5d+168) then
tmp = 1.0d0
else
tmp = x / (x - ((2.0d0 * (b * (y * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t))))) - y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -4.8e+220) {
tmp = x / (x + (y + (2.0 * (c * (a * (y + (y * ((0.8333333333333334 - (0.6666666666666666 / t)) / a))))))));
} else if (y <= -5.8e+168) {
tmp = 1.0;
} else if (y <= -7.3e-19) {
tmp = x / (x + (y - (2.0 * (c * (y * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else if (y <= 6.5e+168) {
tmp = 1.0;
} else {
tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -4.8e+220: tmp = x / (x + (y + (2.0 * (c * (a * (y + (y * ((0.8333333333333334 - (0.6666666666666666 / t)) / a)))))))) elif y <= -5.8e+168: tmp = 1.0 elif y <= -7.3e-19: tmp = x / (x + (y - (2.0 * (c * (y * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))) elif y <= 6.5e+168: tmp = 1.0 else: tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -4.8e+220) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * Float64(a * Float64(y + Float64(y * Float64(Float64(0.8333333333333334 - Float64(0.6666666666666666 / t)) / a))))))))); elseif (y <= -5.8e+168) tmp = 1.0; elseif (y <= -7.3e-19) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(c * Float64(y * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334))))))); elseif (y <= 6.5e+168) tmp = 1.0; else tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(b * Float64(y * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t))))) - y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= -4.8e+220) tmp = x / (x + (y + (2.0 * (c * (a * (y + (y * ((0.8333333333333334 - (0.6666666666666666 / t)) / a)))))))); elseif (y <= -5.8e+168) tmp = 1.0; elseif (y <= -7.3e-19) tmp = x / (x + (y - (2.0 * (c * (y * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))); elseif (y <= 6.5e+168) tmp = 1.0; else tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -4.8e+220], N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[(a * N[(y + N[(y * N[(N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -5.8e+168], 1.0, If[LessEqual[y, -7.3e-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], If[LessEqual[y, 6.5e+168], 1.0, N[(x / N[(x - N[(N[(2.0 * N[(b * N[(y * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.8 \cdot 10^{+220}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \left(a \cdot \left(y + y \cdot \frac{0.8333333333333334 - \frac{0.6666666666666666}{t}}{a}\right)\right)\right)\right)}\\
\mathbf{elif}\;y \leq -5.8 \cdot 10^{+168}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq -7.3 \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{elif}\;y \leq 6.5 \cdot 10^{+168}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \left(b \cdot \left(y \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)\right) - y\right)}\\
\end{array}
\end{array}
if y < -4.7999999999999996e220Initial program 94.4%
Taylor expanded in c around inf 70.0%
+-commutative70.0%
associate-*r/70.0%
metadata-eval70.0%
Simplified70.0%
Taylor expanded in c around 0 62.5%
associate--l+62.5%
associate-*r/62.5%
metadata-eval62.5%
Simplified62.5%
Taylor expanded in a around inf 67.9%
associate-/l*67.9%
associate-*r/67.9%
metadata-eval67.9%
Simplified67.9%
if -4.7999999999999996e220 < y < -5.8e168 or -7.2999999999999997e-19 < y < 6.49999999999999999e168Initial program 93.3%
Taylor expanded in c around inf 69.3%
+-commutative69.3%
associate-*r/69.3%
metadata-eval69.3%
Simplified69.3%
Taylor expanded in x around inf 58.2%
if -5.8e168 < y < -7.2999999999999997e-19Initial program 94.6%
Taylor expanded in c around inf 73.9%
+-commutative73.9%
associate-*r/73.9%
metadata-eval73.9%
Simplified73.9%
Taylor expanded in c around 0 66.4%
associate--l+66.4%
associate-*r/66.4%
metadata-eval66.4%
Simplified66.4%
if 6.49999999999999999e168 < y Initial program 94.9%
Taylor expanded in b around inf 72.1%
associate-*r/72.1%
metadata-eval72.1%
+-commutative72.1%
Simplified72.1%
Taylor expanded in b around 0 56.8%
*-commutative56.8%
associate-*r/56.8%
metadata-eval56.8%
Simplified56.8%
Final simplification59.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c 1.22e-185)
1.0
(if (or (<= c 4.4e-26) (not (<= c 2.35e+31)))
(/
x
(-
x
(-
(*
2.0
(* b (* y (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t)))))
y)))
1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.22e-185) {
tmp = 1.0;
} else if ((c <= 4.4e-26) || !(c <= 2.35e+31)) {
tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - 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 (c <= 1.22d-185) then
tmp = 1.0d0
else if ((c <= 4.4d-26) .or. (.not. (c <= 2.35d+31))) then
tmp = x / (x - ((2.0d0 * (b * (y * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t))))) - 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 (c <= 1.22e-185) {
tmp = 1.0;
} else if ((c <= 4.4e-26) || !(c <= 2.35e+31)) {
tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 1.22e-185: tmp = 1.0 elif (c <= 4.4e-26) or not (c <= 2.35e+31): tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y)) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 1.22e-185) tmp = 1.0; elseif ((c <= 4.4e-26) || !(c <= 2.35e+31)) tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(b * Float64(y * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t))))) - y))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 1.22e-185) tmp = 1.0; elseif ((c <= 4.4e-26) || ~((c <= 2.35e+31))) tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 1.22e-185], 1.0, If[Or[LessEqual[c, 4.4e-26], N[Not[LessEqual[c, 2.35e+31]], $MachinePrecision]], N[(x / N[(x - N[(N[(2.0 * N[(b * N[(y * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 1.22 \cdot 10^{-185}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 4.4 \cdot 10^{-26} \lor \neg \left(c \leq 2.35 \cdot 10^{+31}\right):\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \left(b \cdot \left(y \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)\right) - y\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if c < 1.21999999999999996e-185 or 4.4000000000000002e-26 < c < 2.3500000000000001e31Initial program 95.2%
Taylor expanded in c around inf 65.7%
+-commutative65.7%
associate-*r/65.7%
metadata-eval65.7%
Simplified65.7%
Taylor expanded in x around inf 61.2%
if 1.21999999999999996e-185 < c < 4.4000000000000002e-26 or 2.3500000000000001e31 < c Initial program 91.0%
Taylor expanded in b around inf 62.0%
associate-*r/62.0%
metadata-eval62.0%
+-commutative62.0%
Simplified62.0%
Taylor expanded in b around 0 53.3%
*-commutative53.3%
associate-*r/53.3%
metadata-eval53.3%
Simplified53.3%
Final simplification58.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -5e-143)
1.0
(if (<= c -9.8e-306)
(/
x
(+
x
(+
y
(*
2.0
(*
c
(/
(+ (* y -0.6666666666666666) (* t (* (+ a 0.8333333333333334) y)))
t))))))
(if (<= c 3.9e-186)
1.0
(/
x
(-
x
(-
(*
2.0
(* b (* y (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t)))))
y)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -5e-143) {
tmp = 1.0;
} else if (c <= -9.8e-306) {
tmp = x / (x + (y + (2.0 * (c * (((y * -0.6666666666666666) + (t * ((a + 0.8333333333333334) * y))) / t)))));
} else if (c <= 3.9e-186) {
tmp = 1.0;
} else {
tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-5d-143)) then
tmp = 1.0d0
else if (c <= (-9.8d-306)) then
tmp = x / (x + (y + (2.0d0 * (c * (((y * (-0.6666666666666666d0)) + (t * ((a + 0.8333333333333334d0) * y))) / t)))))
else if (c <= 3.9d-186) then
tmp = 1.0d0
else
tmp = x / (x - ((2.0d0 * (b * (y * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t))))) - y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -5e-143) {
tmp = 1.0;
} else if (c <= -9.8e-306) {
tmp = x / (x + (y + (2.0 * (c * (((y * -0.6666666666666666) + (t * ((a + 0.8333333333333334) * y))) / t)))));
} else if (c <= 3.9e-186) {
tmp = 1.0;
} else {
tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -5e-143: tmp = 1.0 elif c <= -9.8e-306: tmp = x / (x + (y + (2.0 * (c * (((y * -0.6666666666666666) + (t * ((a + 0.8333333333333334) * y))) / t))))) elif c <= 3.9e-186: tmp = 1.0 else: tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -5e-143) tmp = 1.0; elseif (c <= -9.8e-306) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * Float64(Float64(Float64(y * -0.6666666666666666) + Float64(t * Float64(Float64(a + 0.8333333333333334) * y))) / t)))))); elseif (c <= 3.9e-186) tmp = 1.0; else tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(b * Float64(y * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t))))) - y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -5e-143) tmp = 1.0; elseif (c <= -9.8e-306) tmp = x / (x + (y + (2.0 * (c * (((y * -0.6666666666666666) + (t * ((a + 0.8333333333333334) * y))) / t))))); elseif (c <= 3.9e-186) tmp = 1.0; else tmp = x / (x - ((2.0 * (b * (y * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))) - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -5e-143], 1.0, If[LessEqual[c, -9.8e-306], N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[(N[(N[(y * -0.6666666666666666), $MachinePrecision] + N[(t * N[(N[(a + 0.8333333333333334), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.9e-186], 1.0, N[(x / N[(x - N[(N[(2.0 * N[(b * N[(y * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -5 \cdot 10^{-143}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -9.8 \cdot 10^{-306}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \frac{y \cdot -0.6666666666666666 + t \cdot \left(\left(a + 0.8333333333333334\right) \cdot y\right)}{t}\right)\right)}\\
\mathbf{elif}\;c \leq 3.9 \cdot 10^{-186}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \left(b \cdot \left(y \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)\right) - y\right)}\\
\end{array}
\end{array}
if c < -5.0000000000000002e-143 or -9.80000000000000049e-306 < c < 3.9000000000000001e-186Initial program 94.4%
Taylor expanded in c around inf 68.7%
+-commutative68.7%
associate-*r/68.7%
metadata-eval68.7%
Simplified68.7%
Taylor expanded in x around inf 64.4%
if -5.0000000000000002e-143 < c < -9.80000000000000049e-306Initial program 100.0%
Taylor expanded in c around inf 58.2%
+-commutative58.2%
associate-*r/58.2%
metadata-eval58.2%
Simplified58.2%
Taylor expanded in c around 0 63.6%
associate--l+63.6%
associate-*r/63.6%
metadata-eval63.6%
Simplified63.6%
Taylor expanded in t around 0 66.9%
if 3.9000000000000001e-186 < c Initial program 91.2%
Taylor expanded in b around inf 65.0%
associate-*r/65.0%
metadata-eval65.0%
+-commutative65.0%
Simplified65.0%
Taylor expanded in b around 0 50.8%
*-commutative50.8%
associate-*r/50.8%
metadata-eval50.8%
Simplified50.8%
Final simplification59.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c 1.45e-167)
1.0
(if (<= c 1.55e+108)
(/ x (+ x (* c (+ (* -1.3333333333333333 (/ y t)) (/ y c)))))
(/ x (- x (* y (- -1.0 (* b (* a -2.0)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.45e-167) {
tmp = 1.0;
} else if (c <= 1.55e+108) {
tmp = x / (x + (c * ((-1.3333333333333333 * (y / t)) + (y / c))));
} else {
tmp = x / (x - (y * (-1.0 - (b * (a * -2.0)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 1.45d-167) then
tmp = 1.0d0
else if (c <= 1.55d+108) then
tmp = x / (x + (c * (((-1.3333333333333333d0) * (y / t)) + (y / c))))
else
tmp = x / (x - (y * ((-1.0d0) - (b * (a * (-2.0d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.45e-167) {
tmp = 1.0;
} else if (c <= 1.55e+108) {
tmp = x / (x + (c * ((-1.3333333333333333 * (y / t)) + (y / c))));
} else {
tmp = x / (x - (y * (-1.0 - (b * (a * -2.0)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 1.45e-167: tmp = 1.0 elif c <= 1.55e+108: tmp = x / (x + (c * ((-1.3333333333333333 * (y / t)) + (y / c)))) else: tmp = x / (x - (y * (-1.0 - (b * (a * -2.0))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 1.45e-167) tmp = 1.0; elseif (c <= 1.55e+108) tmp = Float64(x / Float64(x + Float64(c * Float64(Float64(-1.3333333333333333 * Float64(y / t)) + Float64(y / c))))); else tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(b * Float64(a * -2.0)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 1.45e-167) tmp = 1.0; elseif (c <= 1.55e+108) tmp = x / (x + (c * ((-1.3333333333333333 * (y / t)) + (y / c)))); else tmp = x / (x - (y * (-1.0 - (b * (a * -2.0))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 1.45e-167], 1.0, If[LessEqual[c, 1.55e+108], N[(x / N[(x + N[(c * N[(N[(-1.3333333333333333 * N[(y / t), $MachinePrecision]), $MachinePrecision] + N[(y / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x - N[(y * N[(-1.0 - N[(b * N[(a * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 1.45 \cdot 10^{-167}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.55 \cdot 10^{+108}:\\
\;\;\;\;\frac{x}{x + c \cdot \left(-1.3333333333333333 \cdot \frac{y}{t} + \frac{y}{c}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - b \cdot \left(a \cdot -2\right)\right)}\\
\end{array}
\end{array}
if c < 1.45000000000000001e-167Initial program 95.6%
Taylor expanded in c around inf 67.0%
+-commutative67.0%
associate-*r/67.0%
metadata-eval67.0%
Simplified67.0%
Taylor expanded in x around inf 60.2%
if 1.45000000000000001e-167 < c < 1.5500000000000001e108Initial program 90.1%
Taylor expanded in c around inf 64.1%
+-commutative64.1%
associate-*r/64.1%
metadata-eval64.1%
Simplified64.1%
Taylor expanded in t around 0 57.7%
associate-*r/57.7%
*-commutative57.7%
Simplified57.7%
Taylor expanded in c around 0 46.4%
*-commutative46.4%
associate-/l*49.6%
Simplified49.6%
Taylor expanded in c around inf 54.3%
if 1.5500000000000001e108 < c Initial program 92.2%
Taylor expanded in b around inf 54.1%
associate-*r/54.1%
metadata-eval54.1%
+-commutative54.1%
Simplified54.1%
Taylor expanded in a around inf 43.4%
associate-*r*43.4%
mul-1-neg43.4%
Simplified43.4%
Taylor expanded in a around 0 48.7%
associate-*r*48.7%
*-commutative48.7%
Simplified48.7%
Final simplification57.1%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 3.3e-214) 1.0 (/ x (- x (* y (- -1.0 (* b (* a -2.0))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 3.3e-214) {
tmp = 1.0;
} else {
tmp = x / (x - (y * (-1.0 - (b * (a * -2.0)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 3.3d-214) then
tmp = 1.0d0
else
tmp = x / (x - (y * ((-1.0d0) - (b * (a * (-2.0d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 3.3e-214) {
tmp = 1.0;
} else {
tmp = x / (x - (y * (-1.0 - (b * (a * -2.0)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 3.3e-214: tmp = 1.0 else: tmp = x / (x - (y * (-1.0 - (b * (a * -2.0))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 3.3e-214) tmp = 1.0; else tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(b * Float64(a * -2.0)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 3.3e-214) tmp = 1.0; else tmp = x / (x - (y * (-1.0 - (b * (a * -2.0))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 3.3e-214], 1.0, N[(x / N[(x - N[(y * N[(-1.0 - N[(b * N[(a * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 3.3 \cdot 10^{-214}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - b \cdot \left(a \cdot -2\right)\right)}\\
\end{array}
\end{array}
if c < 3.2999999999999998e-214Initial program 95.3%
Taylor expanded in c around inf 66.5%
+-commutative66.5%
associate-*r/66.5%
metadata-eval66.5%
Simplified66.5%
Taylor expanded in x around inf 60.5%
if 3.2999999999999998e-214 < c Initial program 91.8%
Taylor expanded in b around inf 67.2%
associate-*r/67.2%
metadata-eval67.2%
+-commutative67.2%
Simplified67.2%
Taylor expanded in a around inf 51.0%
associate-*r*51.0%
mul-1-neg51.0%
Simplified51.0%
Taylor expanded in a around 0 47.7%
associate-*r*47.7%
*-commutative47.7%
Simplified47.7%
Final simplification55.0%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 93.8%
Taylor expanded in c around inf 69.7%
+-commutative69.7%
associate-*r/69.7%
metadata-eval69.7%
Simplified69.7%
Taylor expanded in x around inf 52.0%
Final simplification52.0%
(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 2024066
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:alt
(if (< t -2.118326644891581e-50) (/ x (+ x (* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b))))))) (if (< t 5.196588770651547e-123) (/ x (+ x (* y (exp (* 2.0 (/ (- (* (* z (sqrt (+ t a))) (* (* 3.0 t) (- a (/ 5.0 6.0)))) (* (- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0) (* (- a (/ 5.0 6.0)) (* (- b c) t)))) (* (* (* t t) 3.0) (- a (/ 5.0 6.0))))))))) (/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))