
(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 (sqrt (+ t a))))
(if (<=
(+
(/ (* z t_1) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))
INFINITY)
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(+
(/ z (/ t t_1))
(* (- b c) (- (- (/ (/ 2.0 t) 3.0) 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 = sqrt((t + a));
double tmp;
if ((((z * t_1) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))) <= ((double) INFINITY)) {
tmp = x / (x + (y * pow(exp(2.0), ((z / (t / t_1)) + ((b - c) * ((((2.0 / t) / 3.0) - 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 = Math.sqrt((t + a));
double tmp;
if ((((z * t_1) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))) <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), ((z / (t / t_1)) + ((b - c) * ((((2.0 / t) / 3.0) - 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 = math.sqrt((t + a)) tmp = 0 if (((z * t_1) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))) <= math.inf: tmp = x / (x + (y * math.pow(math.exp(2.0), ((z / (t / t_1)) + ((b - c) * ((((2.0 / t) / 3.0) - 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 = sqrt(Float64(t + a)) tmp = 0.0 if (Float64(Float64(Float64(z * t_1) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) <= Inf) tmp = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(Float64(z / Float64(t / t_1)) + Float64(Float64(b - c) * Float64(Float64(Float64(Float64(2.0 / t) / 3.0) - 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 = sqrt((t + a)); tmp = 0.0; if ((((z * t_1) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))) <= Inf) tmp = x / (x + (y * (exp(2.0) ^ ((z / (t / t_1)) + ((b - c) * ((((2.0 / t) / 3.0) - 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[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(N[(N[(z * t$95$1), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(z / N[(t / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(N[(N[(2.0 / t), $MachinePrecision] / 3.0), $MachinePrecision] - 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 := \sqrt{t + a}\\
\mathbf{if}\;\frac{z \cdot t\_1}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right) \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(\frac{z}{\frac{t}{t\_1}} + \left(b - c\right) \cdot \left(\left(\frac{\frac{2}{t}}{3} - 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 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 98.0%
exp-prod98.0%
associate-/l*99.6%
associate--l+99.6%
metadata-eval99.6%
associate-/r*99.6%
Simplified99.6%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) Initial program 0.0%
Taylor expanded in t around 0 88.4%
Final simplification98.8%
(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 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 98.0%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) Initial program 0.0%
Taylor expanded in t around 0 88.4%
Final simplification97.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 4e-187)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 5e+94)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (+ 0.8333333333333334 (/ -0.6666666666666666 t)) (- c b))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(* c (+ a 0.8333333333333334))
(* b (+ a 0.8333333333333334)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 4e-187) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 5e+94) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((0.8333333333333334 + (-0.6666666666666666 / t)) * (c - b)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((c * (a + 0.8333333333333334)) - (b * (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 4d-187) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 5d+94) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((0.8333333333333334d0 + ((-0.6666666666666666d0) / t)) * (c - b)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((c * (a + 0.8333333333333334d0)) - (b * (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 4e-187) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 5e+94) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((0.8333333333333334 + (-0.6666666666666666 / t)) * (c - b)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((c * (a + 0.8333333333333334)) - (b * (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 4e-187: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 5e+94: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((0.8333333333333334 + (-0.6666666666666666 / t)) * (c - b))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((c * (a + 0.8333333333333334)) - (b * (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 4e-187) 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 <= 5e+94) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t)) * Float64(c - b)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c * Float64(a + 0.8333333333333334)) - Float64(b * Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 4e-187) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 5e+94) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((0.8333333333333334 + (-0.6666666666666666 / t)) * (c - b))))))); else tmp = x / (x + (y * exp((2.0 * ((c * (a + 0.8333333333333334)) - (b * (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 4e-187], 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, 5e+94], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] - N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 4 \cdot 10^{-187}:\\
\;\;\;\;\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 5 \cdot 10^{+94}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right) - b \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if t < 4.0000000000000001e-187Initial program 83.7%
Taylor expanded in t around 0 91.8%
if 4.0000000000000001e-187 < t < 5.0000000000000001e94Initial program 97.9%
Taylor expanded in a around 0 92.9%
*-commutative92.9%
*-commutative92.9%
cancel-sign-sub-inv92.9%
metadata-eval92.9%
associate-*r/92.9%
metadata-eval92.9%
Simplified92.9%
if 5.0000000000000001e94 < t Initial program 93.0%
Taylor expanded in c around 0 100.0%
Taylor expanded in t around inf 94.5%
Final simplification92.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 2.5e-69)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 0.058)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t)))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(* c (+ a 0.8333333333333334))
(* b (+ a 0.8333333333333334)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2.5e-69) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 0.058) {
tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((c * (a + 0.8333333333333334)) - (b * (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 2.5d-69) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 0.058d0) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + (0.8333333333333334d0 + ((-0.6666666666666666d0) / t))))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((c * (a + 0.8333333333333334d0)) - (b * (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2.5e-69) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 0.058) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((c * (a + 0.8333333333333334)) - (b * (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 2.5e-69: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 0.058: tmp = x / (x + (y * math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((c * (a + 0.8333333333333334)) - (b * (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 2.5e-69) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); elseif (t <= 0.058) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c * Float64(a + 0.8333333333333334)) - Float64(b * Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 2.5e-69) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 0.058) tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))); else tmp = x / (x + (y * exp((2.0 * ((c * (a + 0.8333333333333334)) - (b * (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 2.5e-69], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.058], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] - N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.5 \cdot 10^{-69}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{elif}\;t \leq 0.058:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right) - b \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if t < 2.50000000000000017e-69Initial program 86.8%
Taylor expanded in t around 0 85.7%
if 2.50000000000000017e-69 < t < 0.0580000000000000029Initial program 100.0%
Taylor expanded in c around inf 77.1%
cancel-sign-sub-inv77.1%
+-commutative77.1%
metadata-eval77.1%
associate-*r/77.1%
metadata-eval77.1%
associate-+l+77.1%
Simplified77.1%
if 0.0580000000000000029 < t Initial program 95.6%
Taylor expanded in c around 0 100.0%
Taylor expanded in t around inf 89.5%
Final simplification86.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* -0.6666666666666666 (/ c t))))))))
(t_2 (/ x (+ x (* y (exp (* 1.6666666666666667 (- c b))))))))
(if (<= t -8.6e-296)
t_2
(if (<= t 1.6e-248)
(/ x (+ x (* y (+ (* (/ b t) 1.3333333333333333) 1.0))))
(if (<= t 4.2e-163)
t_1
(if (<= t 6e-121)
(/
x
(+
x
(*
y
(+
(*
(- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))
(* b 2.0))
1.0))))
(if (<= t 2200.0) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (-0.6666666666666666 * (c / t))))));
double t_2 = x / (x + (y * exp((1.6666666666666667 * (c - b)))));
double tmp;
if (t <= -8.6e-296) {
tmp = t_2;
} else if (t <= 1.6e-248) {
tmp = x / (x + (y * (((b / t) * 1.3333333333333333) + 1.0)));
} else if (t <= 4.2e-163) {
tmp = t_1;
} else if (t <= 6e-121) {
tmp = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0)));
} else if (t <= 2200.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((-0.6666666666666666d0) * (c / t))))))
t_2 = x / (x + (y * exp((1.6666666666666667d0 * (c - b)))))
if (t <= (-8.6d-296)) then
tmp = t_2
else if (t <= 1.6d-248) then
tmp = x / (x + (y * (((b / t) * 1.3333333333333333d0) + 1.0d0)))
else if (t <= 4.2d-163) then
tmp = t_1
else if (t <= 6d-121) then
tmp = x / (x + (y * ((((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)) * (b * 2.0d0)) + 1.0d0)))
else if (t <= 2200.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (-0.6666666666666666 * (c / t))))));
double t_2 = x / (x + (y * Math.exp((1.6666666666666667 * (c - b)))));
double tmp;
if (t <= -8.6e-296) {
tmp = t_2;
} else if (t <= 1.6e-248) {
tmp = x / (x + (y * (((b / t) * 1.3333333333333333) + 1.0)));
} else if (t <= 4.2e-163) {
tmp = t_1;
} else if (t <= 6e-121) {
tmp = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0)));
} else if (t <= 2200.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (-0.6666666666666666 * (c / t)))))) t_2 = x / (x + (y * math.exp((1.6666666666666667 * (c - b))))) tmp = 0 if t <= -8.6e-296: tmp = t_2 elif t <= 1.6e-248: tmp = x / (x + (y * (((b / t) * 1.3333333333333333) + 1.0))) elif t <= 4.2e-163: tmp = t_1 elif t <= 6e-121: tmp = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0))) elif t <= 2200.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(-0.6666666666666666 * Float64(c / t))))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(1.6666666666666667 * Float64(c - b)))))) tmp = 0.0 if (t <= -8.6e-296) tmp = t_2; elseif (t <= 1.6e-248) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(b / t) * 1.3333333333333333) + 1.0)))); elseif (t <= 4.2e-163) tmp = t_1; elseif (t <= 6e-121) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)) * Float64(b * 2.0)) + 1.0)))); elseif (t <= 2200.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (-0.6666666666666666 * (c / t)))))); t_2 = x / (x + (y * exp((1.6666666666666667 * (c - b))))); tmp = 0.0; if (t <= -8.6e-296) tmp = t_2; elseif (t <= 1.6e-248) tmp = x / (x + (y * (((b / t) * 1.3333333333333333) + 1.0))); elseif (t <= 4.2e-163) tmp = t_1; elseif (t <= 6e-121) tmp = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0))); elseif (t <= 2200.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(-0.6666666666666666 * N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(1.6666666666666667 * N[(c - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.6e-296], t$95$2, If[LessEqual[t, 1.6e-248], N[(x / N[(x + N[(y * N[(N[(N[(b / t), $MachinePrecision] * 1.3333333333333333), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.2e-163], t$95$1, If[LessEqual[t, 6e-121], N[(x / N[(x + N[(y * N[(N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] * N[(b * 2.0), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2200.0], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(-0.6666666666666666 \cdot \frac{c}{t}\right)}}\\
t_2 := \frac{x}{x + y \cdot e^{1.6666666666666667 \cdot \left(c - b\right)}}\\
\mathbf{if}\;t \leq -8.6 \cdot 10^{-296}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{-248}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\frac{b}{t} \cdot 1.3333333333333333 + 1\right)}\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-163}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 6 \cdot 10^{-121}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right) \cdot \left(b \cdot 2\right) + 1\right)}\\
\mathbf{elif}\;t \leq 2200:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -8.59999999999999956e-296 or 2200 < t Initial program 95.3%
Taylor expanded in t around inf 90.9%
mul-1-neg90.9%
distribute-rgt-neg-in90.9%
+-commutative90.9%
neg-sub090.9%
associate--r-90.9%
neg-sub090.9%
+-commutative90.9%
sub-neg90.9%
Simplified90.9%
Taylor expanded in a around 0 80.6%
if -8.59999999999999956e-296 < t < 1.60000000000000009e-248Initial program 55.6%
Taylor expanded in b around inf 57.2%
associate-*r/57.2%
metadata-eval57.2%
+-commutative57.2%
Simplified57.2%
Taylor expanded in t around 0 57.2%
Taylor expanded in b around 0 67.2%
if 1.60000000000000009e-248 < t < 4.19999999999999996e-163 or 5.9999999999999999e-121 < t < 2200Initial program 89.5%
Taylor expanded in c around inf 64.3%
cancel-sign-sub-inv64.3%
+-commutative64.3%
metadata-eval64.3%
associate-*r/64.3%
metadata-eval64.3%
associate-+l+64.3%
Simplified64.3%
Taylor expanded in t around 0 62.6%
if 4.19999999999999996e-163 < t < 5.9999999999999999e-121Initial program 100.0%
Taylor expanded in b around inf 79.7%
associate-*r/79.7%
metadata-eval79.7%
+-commutative79.7%
Simplified79.7%
Taylor expanded in b around 0 79.8%
associate-*r*79.8%
associate-*r/79.8%
metadata-eval79.8%
+-commutative79.8%
associate--l-79.8%
*-commutative79.8%
associate--l-79.8%
Simplified79.8%
Final simplification75.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(+
(*
(- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))
(* b 2.0))
1.0)))))
(t_2 (/ x (+ x (* y (exp (* 1.6666666666666667 (- c b))))))))
(if (<= t -1.25e-295)
t_2
(if (<= t 1.9e-71)
t_1
(if (<= t 6.2e-28) 1.0 (if (<= t 30000000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0)));
double t_2 = x / (x + (y * exp((1.6666666666666667 * (c - b)))));
double tmp;
if (t <= -1.25e-295) {
tmp = t_2;
} else if (t <= 1.9e-71) {
tmp = t_1;
} else if (t <= 6.2e-28) {
tmp = 1.0;
} else if (t <= 30000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * ((((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)) * (b * 2.0d0)) + 1.0d0)))
t_2 = x / (x + (y * exp((1.6666666666666667d0 * (c - b)))))
if (t <= (-1.25d-295)) then
tmp = t_2
else if (t <= 1.9d-71) then
tmp = t_1
else if (t <= 6.2d-28) then
tmp = 1.0d0
else if (t <= 30000000.0d0) then
tmp = t_1
else
tmp = t_2
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 * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0)));
double t_2 = x / (x + (y * Math.exp((1.6666666666666667 * (c - b)))));
double tmp;
if (t <= -1.25e-295) {
tmp = t_2;
} else if (t <= 1.9e-71) {
tmp = t_1;
} else if (t <= 6.2e-28) {
tmp = 1.0;
} else if (t <= 30000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0))) t_2 = x / (x + (y * math.exp((1.6666666666666667 * (c - b))))) tmp = 0 if t <= -1.25e-295: tmp = t_2 elif t <= 1.9e-71: tmp = t_1 elif t <= 6.2e-28: tmp = 1.0 elif t <= 30000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)) * Float64(b * 2.0)) + 1.0)))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(1.6666666666666667 * Float64(c - b)))))) tmp = 0.0 if (t <= -1.25e-295) tmp = t_2; elseif (t <= 1.9e-71) tmp = t_1; elseif (t <= 6.2e-28) tmp = 1.0; elseif (t <= 30000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0))); t_2 = x / (x + (y * exp((1.6666666666666667 * (c - b))))); tmp = 0.0; if (t <= -1.25e-295) tmp = t_2; elseif (t <= 1.9e-71) tmp = t_1; elseif (t <= 6.2e-28) tmp = 1.0; elseif (t <= 30000000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[(N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] * N[(b * 2.0), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(1.6666666666666667 * N[(c - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.25e-295], t$95$2, If[LessEqual[t, 1.9e-71], t$95$1, If[LessEqual[t, 6.2e-28], 1.0, If[LessEqual[t, 30000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot \left(\left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right) \cdot \left(b \cdot 2\right) + 1\right)}\\
t_2 := \frac{x}{x + y \cdot e^{1.6666666666666667 \cdot \left(c - b\right)}}\\
\mathbf{if}\;t \leq -1.25 \cdot 10^{-295}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{-71}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-28}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 30000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.25000000000000002e-295 or 3e7 < t Initial program 95.3%
Taylor expanded in t around inf 90.8%
mul-1-neg90.8%
distribute-rgt-neg-in90.8%
+-commutative90.8%
neg-sub090.8%
associate--r-90.8%
neg-sub090.8%
+-commutative90.8%
sub-neg90.8%
Simplified90.8%
Taylor expanded in a around 0 81.1%
if -1.25000000000000002e-295 < t < 1.89999999999999996e-71 or 6.19999999999999984e-28 < t < 3e7Initial program 82.1%
Taylor expanded in b around inf 70.5%
associate-*r/70.5%
metadata-eval70.5%
+-commutative70.5%
Simplified70.5%
Taylor expanded in b around 0 55.3%
associate-*r*55.3%
associate-*r/55.3%
metadata-eval55.3%
+-commutative55.3%
associate--l-55.3%
*-commutative55.3%
associate--l-55.3%
Simplified55.3%
if 1.89999999999999996e-71 < t < 6.19999999999999984e-28Initial program 100.0%
Taylor expanded in a around inf 35.4%
Taylor expanded in a around 0 19.4%
+-commutative19.4%
Simplified19.4%
Taylor expanded in x around inf 59.6%
Final simplification72.2%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= t -1.9e-259) (not (<= t 2600.0)))
(/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -1.9e-259) || !(t <= 2600.0)) {
tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
} 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 ((t <= (-1.9d-259)) .or. (.not. (t <= 2600.0d0))) then
tmp = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
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 ((t <= -1.9e-259) || !(t <= 2600.0)) {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -1.9e-259) or not (t <= 2600.0): tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -1.9e-259) || !(t <= 2600.0)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(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 ((t <= -1.9e-259) || ~((t <= 2600.0))) tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -1.9e-259], N[Not[LessEqual[t, 2600.0]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(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}\;t \leq -1.9 \cdot 10^{-259} \lor \neg \left(t \leq 2600\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if t < -1.9e-259 or 2600 < t Initial program 95.1%
Taylor expanded in t around inf 91.7%
mul-1-neg91.7%
distribute-rgt-neg-in91.7%
+-commutative91.7%
neg-sub091.7%
associate--r-91.7%
neg-sub091.7%
+-commutative91.7%
sub-neg91.7%
Simplified91.7%
if -1.9e-259 < t < 2600Initial program 85.3%
Taylor expanded in b around inf 68.7%
associate-*r/68.7%
metadata-eval68.7%
+-commutative68.7%
Simplified68.7%
Final simplification83.1%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -7e+48) (not (<= c 7e-25)))
(/
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 <= -7e+48) || !(c <= 7e-25)) {
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 <= (-7d+48)) .or. (.not. (c <= 7d-25))) 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 <= -7e+48) || !(c <= 7e-25)) {
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 <= -7e+48) or not (c <= 7e-25): 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 <= -7e+48) || !(c <= 7e-25)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(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 <= -7e+48) || ~((c <= 7e-25))) 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, -7e+48], N[Not[LessEqual[c, 7e-25]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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 -7 \cdot 10^{+48} \lor \neg \left(c \leq 7 \cdot 10^{-25}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if c < -6.9999999999999995e48 or 7.0000000000000004e-25 < c Initial program 90.9%
Taylor expanded in c around inf 85.1%
cancel-sign-sub-inv85.1%
+-commutative85.1%
metadata-eval85.1%
associate-*r/85.1%
metadata-eval85.1%
associate-+l+85.1%
Simplified85.1%
if -6.9999999999999995e48 < c < 7.0000000000000004e-25Initial program 91.9%
Taylor expanded in b around inf 81.1%
associate-*r/81.1%
metadata-eval81.1%
+-commutative81.1%
Simplified81.1%
Final simplification82.8%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= t -1.02e-260) (not (<= t 2200.0))) (/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b))))))) (/ x (+ x (* y (exp (* 2.0 (* 0.6666666666666666 (/ b t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -1.02e-260) || !(t <= 2200.0)) {
tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
} else {
tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((t <= (-1.02d-260)) .or. (.not. (t <= 2200.0d0))) then
tmp = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
else
tmp = x / (x + (y * exp((2.0d0 * (0.6666666666666666d0 * (b / t))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -1.02e-260) || !(t <= 2200.0)) {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (0.6666666666666666 * (b / t))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -1.02e-260) or not (t <= 2200.0): tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) else: tmp = x / (x + (y * math.exp((2.0 * (0.6666666666666666 * (b / t)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -1.02e-260) || !(t <= 2200.0)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(0.6666666666666666 * Float64(b / t))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((t <= -1.02e-260) || ~((t <= 2200.0))) tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); else tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -1.02e-260], N[Not[LessEqual[t, 2200.0]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(0.6666666666666666 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.02 \cdot 10^{-260} \lor \neg \left(t \leq 2200\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(0.6666666666666666 \cdot \frac{b}{t}\right)}}\\
\end{array}
\end{array}
if t < -1.01999999999999991e-260 or 2200 < t Initial program 95.1%
Taylor expanded in t around inf 91.7%
mul-1-neg91.7%
distribute-rgt-neg-in91.7%
+-commutative91.7%
neg-sub091.7%
associate--r-91.7%
neg-sub091.7%
+-commutative91.7%
sub-neg91.7%
Simplified91.7%
if -1.01999999999999991e-260 < t < 2200Initial program 85.3%
Taylor expanded in b around inf 68.7%
associate-*r/68.7%
metadata-eval68.7%
+-commutative68.7%
Simplified68.7%
Taylor expanded in t around 0 63.6%
Final simplification81.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* b -1.6666666666666667)))))))
(if (<= t -8e-293)
t_1
(if (<= t 1.5e-70)
(/
x
(+
x
(*
y
(+
(* (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)) (* b 2.0))
1.0))))
(if (<= t 7.8e+96) 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 <= -8e-293) {
tmp = t_1;
} else if (t <= 1.5e-70) {
tmp = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0)));
} else if (t <= 7.8e+96) {
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 <= (-8d-293)) then
tmp = t_1
else if (t <= 1.5d-70) then
tmp = x / (x + (y * ((((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)) * (b * 2.0d0)) + 1.0d0)))
else if (t <= 7.8d+96) 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 <= -8e-293) {
tmp = t_1;
} else if (t <= 1.5e-70) {
tmp = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0)));
} else if (t <= 7.8e+96) {
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 <= -8e-293: tmp = t_1 elif t <= 1.5e-70: tmp = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0))) elif t <= 7.8e+96: 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 <= -8e-293) tmp = t_1; elseif (t <= 1.5e-70) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)) * Float64(b * 2.0)) + 1.0)))); elseif (t <= 7.8e+96) 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 <= -8e-293) tmp = t_1; elseif (t <= 1.5e-70) tmp = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0))); elseif (t <= 7.8e+96) 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, -8e-293], t$95$1, If[LessEqual[t, 1.5e-70], N[(x / N[(x + N[(y * N[(N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] * N[(b * 2.0), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.8e+96], 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 -8 \cdot 10^{-293}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{-70}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right) \cdot \left(b \cdot 2\right) + 1\right)}\\
\mathbf{elif}\;t \leq 7.8 \cdot 10^{+96}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -8.0000000000000004e-293 or 7.8e96 < t Initial program 93.8%
Taylor expanded in c around 0 95.3%
Taylor expanded in t around inf 91.0%
Taylor expanded in a around 0 79.8%
Taylor expanded in c around 0 64.9%
if -8.0000000000000004e-293 < t < 1.5000000000000001e-70Initial program 79.7%
Taylor expanded in b around inf 72.2%
associate-*r/72.2%
metadata-eval72.2%
+-commutative72.2%
Simplified72.2%
Taylor expanded in b around 0 55.1%
associate-*r*55.1%
associate-*r/55.1%
metadata-eval55.1%
+-commutative55.1%
associate--l-55.1%
*-commutative55.1%
associate--l-55.1%
Simplified55.1%
if 1.5000000000000001e-70 < t < 7.8e96Initial program 100.0%
Taylor expanded in a around inf 54.9%
Taylor expanded in a around 0 32.9%
+-commutative32.9%
Simplified32.9%
Taylor expanded in x around inf 54.9%
Final simplification59.9%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= t -1.05e-258) (not (<= t 2200.0))) (/ x (+ x (* y (exp (* 1.6666666666666667 (- c b)))))) (/ x (+ x (* y (exp (* 2.0 (* 0.6666666666666666 (/ b t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -1.05e-258) || !(t <= 2200.0)) {
tmp = x / (x + (y * exp((1.6666666666666667 * (c - b)))));
} else {
tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((t <= (-1.05d-258)) .or. (.not. (t <= 2200.0d0))) then
tmp = x / (x + (y * exp((1.6666666666666667d0 * (c - b)))))
else
tmp = x / (x + (y * exp((2.0d0 * (0.6666666666666666d0 * (b / t))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -1.05e-258) || !(t <= 2200.0)) {
tmp = x / (x + (y * Math.exp((1.6666666666666667 * (c - b)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (0.6666666666666666 * (b / t))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -1.05e-258) or not (t <= 2200.0): tmp = x / (x + (y * math.exp((1.6666666666666667 * (c - b))))) else: tmp = x / (x + (y * math.exp((2.0 * (0.6666666666666666 * (b / t)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -1.05e-258) || !(t <= 2200.0)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.6666666666666667 * Float64(c - b)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(0.6666666666666666 * Float64(b / t))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((t <= -1.05e-258) || ~((t <= 2200.0))) tmp = x / (x + (y * exp((1.6666666666666667 * (c - b))))); else tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -1.05e-258], N[Not[LessEqual[t, 2200.0]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(1.6666666666666667 * N[(c - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(0.6666666666666666 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.05 \cdot 10^{-258} \lor \neg \left(t \leq 2200\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.6666666666666667 \cdot \left(c - b\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(0.6666666666666666 \cdot \frac{b}{t}\right)}}\\
\end{array}
\end{array}
if t < -1.05e-258 or 2200 < t Initial program 95.1%
Taylor expanded in t around inf 91.7%
mul-1-neg91.7%
distribute-rgt-neg-in91.7%
+-commutative91.7%
neg-sub091.7%
associate--r-91.7%
neg-sub091.7%
+-commutative91.7%
sub-neg91.7%
Simplified91.7%
Taylor expanded in a around 0 81.0%
if -1.05e-258 < t < 2200Initial program 85.3%
Taylor expanded in b around inf 68.7%
associate-*r/68.7%
metadata-eval68.7%
+-commutative68.7%
Simplified68.7%
Taylor expanded in t around 0 63.6%
Final simplification74.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -1.7e-255)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 2200.0)
(/ x (+ x (* y (exp (* 2.0 (* 0.6666666666666666 (/ b t)))))))
(/ x (+ x (* y (exp (* (- c b) 1.6666666666666667))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1.7e-255) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 2200.0) {
tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t))))));
} else {
tmp = x / (x + (y * exp(((c - 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 <= (-1.7d-255)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 2200.0d0) then
tmp = x / (x + (y * exp((2.0d0 * (0.6666666666666666d0 * (b / t))))))
else
tmp = x / (x + (y * exp(((c - 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 <= -1.7e-255) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 2200.0) {
tmp = x / (x + (y * Math.exp((2.0 * (0.6666666666666666 * (b / t))))));
} else {
tmp = x / (x + (y * Math.exp(((c - b) * 1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -1.7e-255: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 2200.0: tmp = x / (x + (y * math.exp((2.0 * (0.6666666666666666 * (b / t)))))) else: tmp = x / (x + (y * math.exp(((c - b) * 1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -1.7e-255) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 2200.0) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(0.6666666666666666 * Float64(b / t))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c - b) * 1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -1.7e-255) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 2200.0) tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t)))))); else tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -1.7e-255], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2200.0], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(0.6666666666666666 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(N[(c - b), $MachinePrecision] * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{-255}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 2200:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(0.6666666666666666 \cdot \frac{b}{t}\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if t < -1.69999999999999992e-255Initial program 94.3%
Taylor expanded in a around inf 87.6%
if -1.69999999999999992e-255 < t < 2200Initial program 85.3%
Taylor expanded in b around inf 68.7%
associate-*r/68.7%
metadata-eval68.7%
+-commutative68.7%
Simplified68.7%
Taylor expanded in t around 0 63.6%
if 2200 < t Initial program 95.5%
Taylor expanded in t around inf 91.1%
mul-1-neg91.1%
distribute-rgt-neg-in91.1%
+-commutative91.1%
neg-sub091.1%
associate--r-91.1%
neg-sub091.1%
+-commutative91.1%
sub-neg91.1%
Simplified91.1%
Taylor expanded in a around 0 80.3%
Final simplification75.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -2.8e+55)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= b 3.05e-5)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
(if (<= b 5.1e+166)
1.0
(if (or (<= b 1.36e+262) (not (<= b 9e+303)))
(/ x (+ x (* y (+ (* (/ b t) 1.3333333333333333) 1.0))))
1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.8e+55) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (b <= 3.05e-5) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else if (b <= 5.1e+166) {
tmp = 1.0;
} else if ((b <= 1.36e+262) || !(b <= 9e+303)) {
tmp = x / (x + (y * (((b / t) * 1.3333333333333333) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-2.8d+55)) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (b <= 3.05d-5) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else if (b <= 5.1d+166) then
tmp = 1.0d0
else if ((b <= 1.36d+262) .or. (.not. (b <= 9d+303))) then
tmp = x / (x + (y * (((b / t) * 1.3333333333333333d0) + 1.0d0)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.8e+55) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (b <= 3.05e-5) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else if (b <= 5.1e+166) {
tmp = 1.0;
} else if ((b <= 1.36e+262) || !(b <= 9e+303)) {
tmp = x / (x + (y * (((b / t) * 1.3333333333333333) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -2.8e+55: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif b <= 3.05e-5: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) elif b <= 5.1e+166: tmp = 1.0 elif (b <= 1.36e+262) or not (b <= 9e+303): tmp = x / (x + (y * (((b / t) * 1.3333333333333333) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -2.8e+55) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (b <= 3.05e-5) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); elseif (b <= 5.1e+166) tmp = 1.0; elseif ((b <= 1.36e+262) || !(b <= 9e+303)) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(b / t) * 1.3333333333333333) + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -2.8e+55) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (b <= 3.05e-5) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); elseif (b <= 5.1e+166) tmp = 1.0; elseif ((b <= 1.36e+262) || ~((b <= 9e+303))) tmp = x / (x + (y * (((b / t) * 1.3333333333333333) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -2.8e+55], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.05e-5], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.1e+166], 1.0, If[Or[LessEqual[b, 1.36e+262], N[Not[LessEqual[b, 9e+303]], $MachinePrecision]], N[(x / N[(x + N[(y * N[(N[(N[(b / t), $MachinePrecision] * 1.3333333333333333), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.8 \cdot 10^{+55}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b \leq 3.05 \cdot 10^{-5}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{elif}\;b \leq 5.1 \cdot 10^{+166}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 1.36 \cdot 10^{+262} \lor \neg \left(b \leq 9 \cdot 10^{+303}\right):\\
\;\;\;\;\frac{x}{x + y \cdot \left(\frac{b}{t} \cdot 1.3333333333333333 + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -2.8000000000000001e55Initial program 90.9%
Taylor expanded in c around 0 87.0%
Taylor expanded in t around inf 67.7%
Taylor expanded in a around 0 69.5%
Taylor expanded in c around 0 67.7%
if -2.8000000000000001e55 < b < 3.04999999999999994e-5Initial program 95.5%
Taylor expanded in c around 0 96.9%
Taylor expanded in t around inf 71.4%
Taylor expanded in a around 0 60.6%
Taylor expanded in b around 0 60.1%
if 3.04999999999999994e-5 < b < 5.1e166 or 1.36e262 < b < 8.9999999999999997e303Initial program 90.8%
Taylor expanded in a around inf 66.2%
Taylor expanded in a around 0 38.6%
+-commutative38.6%
Simplified38.6%
Taylor expanded in x around inf 75.2%
if 5.1e166 < b < 1.36e262 or 8.9999999999999997e303 < b Initial program 75.0%
Taylor expanded in b around inf 89.6%
associate-*r/89.6%
metadata-eval89.6%
+-commutative89.6%
Simplified89.6%
Taylor expanded in t around 0 72.3%
Taylor expanded in b around 0 79.2%
Final simplification66.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y -3e+159)
(/ x (+ x (+ y (* (* a 2.0) (* y (- c b))))))
(if (<= y -8.8e+103)
1.0
(if (<= y -8.5e-70)
(/
x
(+
x
(*
y
(+
(* (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)) (* b 2.0))
1.0))))
(if (<= y 6.5e+209)
1.0
(if (<= y 4.2e+231)
(*
0.5
(/
x
(*
c
(* y (+ 0.8333333333333334 (- a (/ 0.6666666666666666 t)))))))
1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -3e+159) {
tmp = x / (x + (y + ((a * 2.0) * (y * (c - b)))));
} else if (y <= -8.8e+103) {
tmp = 1.0;
} else if (y <= -8.5e-70) {
tmp = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0)));
} else if (y <= 6.5e+209) {
tmp = 1.0;
} else if (y <= 4.2e+231) {
tmp = 0.5 * (x / (c * (y * (0.8333333333333334 + (a - (0.6666666666666666 / t))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= (-3d+159)) then
tmp = x / (x + (y + ((a * 2.0d0) * (y * (c - b)))))
else if (y <= (-8.8d+103)) then
tmp = 1.0d0
else if (y <= (-8.5d-70)) then
tmp = x / (x + (y * ((((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)) * (b * 2.0d0)) + 1.0d0)))
else if (y <= 6.5d+209) then
tmp = 1.0d0
else if (y <= 4.2d+231) then
tmp = 0.5d0 * (x / (c * (y * (0.8333333333333334d0 + (a - (0.6666666666666666d0 / t))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -3e+159) {
tmp = x / (x + (y + ((a * 2.0) * (y * (c - b)))));
} else if (y <= -8.8e+103) {
tmp = 1.0;
} else if (y <= -8.5e-70) {
tmp = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0)));
} else if (y <= 6.5e+209) {
tmp = 1.0;
} else if (y <= 4.2e+231) {
tmp = 0.5 * (x / (c * (y * (0.8333333333333334 + (a - (0.6666666666666666 / t))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -3e+159: tmp = x / (x + (y + ((a * 2.0) * (y * (c - b))))) elif y <= -8.8e+103: tmp = 1.0 elif y <= -8.5e-70: tmp = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0))) elif y <= 6.5e+209: tmp = 1.0 elif y <= 4.2e+231: tmp = 0.5 * (x / (c * (y * (0.8333333333333334 + (a - (0.6666666666666666 / t)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -3e+159) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(a * 2.0) * Float64(y * Float64(c - b)))))); elseif (y <= -8.8e+103) tmp = 1.0; elseif (y <= -8.5e-70) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)) * Float64(b * 2.0)) + 1.0)))); elseif (y <= 6.5e+209) tmp = 1.0; elseif (y <= 4.2e+231) tmp = Float64(0.5 * Float64(x / Float64(c * Float64(y * Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= -3e+159) tmp = x / (x + (y + ((a * 2.0) * (y * (c - b))))); elseif (y <= -8.8e+103) tmp = 1.0; elseif (y <= -8.5e-70) tmp = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0))); elseif (y <= 6.5e+209) tmp = 1.0; elseif (y <= 4.2e+231) tmp = 0.5 * (x / (c * (y * (0.8333333333333334 + (a - (0.6666666666666666 / t)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -3e+159], N[(x / N[(x + N[(y + N[(N[(a * 2.0), $MachinePrecision] * N[(y * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -8.8e+103], 1.0, If[LessEqual[y, -8.5e-70], N[(x / N[(x + N[(y * N[(N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] * N[(b * 2.0), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.5e+209], 1.0, If[LessEqual[y, 4.2e+231], N[(0.5 * N[(x / N[(c * N[(y * N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3 \cdot 10^{+159}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(a \cdot 2\right) \cdot \left(y \cdot \left(c - b\right)\right)\right)}\\
\mathbf{elif}\;y \leq -8.8 \cdot 10^{+103}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq -8.5 \cdot 10^{-70}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right) \cdot \left(b \cdot 2\right) + 1\right)}\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{+209}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{+231}:\\
\;\;\;\;0.5 \cdot \frac{x}{c \cdot \left(y \cdot \left(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -3.0000000000000002e159Initial program 87.5%
Taylor expanded in a around inf 55.5%
Taylor expanded in a around 0 58.3%
associate-*r*58.3%
*-commutative58.3%
*-commutative58.3%
Simplified58.3%
if -3.0000000000000002e159 < y < -8.7999999999999997e103 or -8.5000000000000002e-70 < y < 6.49999999999999975e209 or 4.19999999999999969e231 < y Initial program 91.3%
Taylor expanded in a around inf 59.7%
Taylor expanded in a around 0 36.0%
+-commutative36.0%
Simplified36.0%
Taylor expanded in x around inf 55.3%
if -8.7999999999999997e103 < y < -8.5000000000000002e-70Initial program 93.5%
Taylor expanded in b around inf 70.8%
associate-*r/70.8%
metadata-eval70.8%
+-commutative70.8%
Simplified70.8%
Taylor expanded in b around 0 50.0%
associate-*r*50.0%
associate-*r/50.0%
metadata-eval50.0%
+-commutative50.0%
associate--l-50.0%
*-commutative50.0%
associate--l-50.0%
Simplified50.0%
if 6.49999999999999975e209 < y < 4.19999999999999969e231Initial program 100.0%
Taylor expanded in c around inf 83.9%
cancel-sign-sub-inv83.9%
+-commutative83.9%
metadata-eval83.9%
associate-*r/83.9%
metadata-eval83.9%
associate-+l+83.9%
Simplified83.9%
Taylor expanded in c around 0 100.0%
associate-*r*68.5%
sub-neg68.5%
+-commutative68.5%
associate-*r/68.5%
metadata-eval68.5%
distribute-neg-frac68.5%
metadata-eval68.5%
associate-+r+68.5%
Simplified68.5%
Taylor expanded in c around inf 100.0%
sub-neg100.0%
+-commutative100.0%
associate-*r/100.0%
metadata-eval100.0%
distribute-neg-frac100.0%
metadata-eval100.0%
associate-+r+100.0%
associate-+r+100.0%
+-commutative100.0%
metadata-eval100.0%
distribute-neg-frac100.0%
metadata-eval100.0%
associate-*r/100.0%
sub-neg100.0%
associate--l+100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Final simplification55.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y -1.22e+159)
(/ x (+ x (+ y (* (* a 2.0) (* y (- c b))))))
(if (<= y -2.4e+68)
1.0
(if (<= y -4.2e-78)
(/
x
(+
x
(+
y
(*
(* b 2.0)
(* y (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))))))
(if (<= y 6e+209)
1.0
(if (<= y 1.8e+229)
(*
0.5
(/
x
(*
c
(* y (+ 0.8333333333333334 (- a (/ 0.6666666666666666 t)))))))
1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -1.22e+159) {
tmp = x / (x + (y + ((a * 2.0) * (y * (c - b)))));
} else if (y <= -2.4e+68) {
tmp = 1.0;
} else if (y <= -4.2e-78) {
tmp = x / (x + (y + ((b * 2.0) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
} else if (y <= 6e+209) {
tmp = 1.0;
} else if (y <= 1.8e+229) {
tmp = 0.5 * (x / (c * (y * (0.8333333333333334 + (a - (0.6666666666666666 / t))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= (-1.22d+159)) then
tmp = x / (x + (y + ((a * 2.0d0) * (y * (c - b)))))
else if (y <= (-2.4d+68)) then
tmp = 1.0d0
else if (y <= (-4.2d-78)) then
tmp = x / (x + (y + ((b * 2.0d0) * (y * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0))))))
else if (y <= 6d+209) then
tmp = 1.0d0
else if (y <= 1.8d+229) then
tmp = 0.5d0 * (x / (c * (y * (0.8333333333333334d0 + (a - (0.6666666666666666d0 / t))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -1.22e+159) {
tmp = x / (x + (y + ((a * 2.0) * (y * (c - b)))));
} else if (y <= -2.4e+68) {
tmp = 1.0;
} else if (y <= -4.2e-78) {
tmp = x / (x + (y + ((b * 2.0) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
} else if (y <= 6e+209) {
tmp = 1.0;
} else if (y <= 1.8e+229) {
tmp = 0.5 * (x / (c * (y * (0.8333333333333334 + (a - (0.6666666666666666 / t))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -1.22e+159: tmp = x / (x + (y + ((a * 2.0) * (y * (c - b))))) elif y <= -2.4e+68: tmp = 1.0 elif y <= -4.2e-78: tmp = x / (x + (y + ((b * 2.0) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))) elif y <= 6e+209: tmp = 1.0 elif y <= 1.8e+229: tmp = 0.5 * (x / (c * (y * (0.8333333333333334 + (a - (0.6666666666666666 / t)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -1.22e+159) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(a * 2.0) * Float64(y * Float64(c - b)))))); elseif (y <= -2.4e+68) tmp = 1.0; elseif (y <= -4.2e-78) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(b * 2.0) * Float64(y * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334))))))); elseif (y <= 6e+209) tmp = 1.0; elseif (y <= 1.8e+229) tmp = Float64(0.5 * Float64(x / Float64(c * Float64(y * Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= -1.22e+159) tmp = x / (x + (y + ((a * 2.0) * (y * (c - b))))); elseif (y <= -2.4e+68) tmp = 1.0; elseif (y <= -4.2e-78) tmp = x / (x + (y + ((b * 2.0) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))); elseif (y <= 6e+209) tmp = 1.0; elseif (y <= 1.8e+229) tmp = 0.5 * (x / (c * (y * (0.8333333333333334 + (a - (0.6666666666666666 / t)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -1.22e+159], N[(x / N[(x + N[(y + N[(N[(a * 2.0), $MachinePrecision] * N[(y * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.4e+68], 1.0, If[LessEqual[y, -4.2e-78], N[(x / N[(x + N[(y + N[(N[(b * 2.0), $MachinePrecision] * N[(y * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6e+209], 1.0, If[LessEqual[y, 1.8e+229], N[(0.5 * N[(x / N[(c * N[(y * N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.22 \cdot 10^{+159}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(a \cdot 2\right) \cdot \left(y \cdot \left(c - b\right)\right)\right)}\\
\mathbf{elif}\;y \leq -2.4 \cdot 10^{+68}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq -4.2 \cdot 10^{-78}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(b \cdot 2\right) \cdot \left(y \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{elif}\;y \leq 6 \cdot 10^{+209}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{+229}:\\
\;\;\;\;0.5 \cdot \frac{x}{c \cdot \left(y \cdot \left(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -1.22000000000000004e159Initial program 87.5%
Taylor expanded in a around inf 55.5%
Taylor expanded in a around 0 58.3%
associate-*r*58.3%
*-commutative58.3%
*-commutative58.3%
Simplified58.3%
if -1.22000000000000004e159 < y < -2.40000000000000008e68 or -4.2000000000000001e-78 < y < 5.99999999999999971e209 or 1.79999999999999993e229 < y Initial program 91.6%
Taylor expanded in a around inf 60.9%
Taylor expanded in a around 0 36.3%
+-commutative36.3%
Simplified36.3%
Taylor expanded in x around inf 54.9%
if -2.40000000000000008e68 < y < -4.2000000000000001e-78Initial program 92.8%
Taylor expanded in b around inf 71.9%
associate-*r/71.9%
metadata-eval71.9%
+-commutative71.9%
Simplified71.9%
Taylor expanded in b around 0 53.1%
associate-*r*53.1%
associate-*r/53.1%
metadata-eval53.1%
+-commutative53.1%
Simplified53.1%
if 5.99999999999999971e209 < y < 1.79999999999999993e229Initial program 100.0%
Taylor expanded in c around inf 83.9%
cancel-sign-sub-inv83.9%
+-commutative83.9%
metadata-eval83.9%
associate-*r/83.9%
metadata-eval83.9%
associate-+l+83.9%
Simplified83.9%
Taylor expanded in c around 0 100.0%
associate-*r*68.5%
sub-neg68.5%
+-commutative68.5%
associate-*r/68.5%
metadata-eval68.5%
distribute-neg-frac68.5%
metadata-eval68.5%
associate-+r+68.5%
Simplified68.5%
Taylor expanded in c around inf 100.0%
sub-neg100.0%
+-commutative100.0%
associate-*r/100.0%
metadata-eval100.0%
distribute-neg-frac100.0%
metadata-eval100.0%
associate-+r+100.0%
associate-+r+100.0%
+-commutative100.0%
metadata-eval100.0%
distribute-neg-frac100.0%
metadata-eval100.0%
associate-*r/100.0%
sub-neg100.0%
associate--l+100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Final simplification56.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a 3.5e-204)
1.0
(if (or (<= a 3.4e-48) (and (not (<= a 10000.0)) (<= a 2.75e+135)))
(/ x (+ x (* y (+ (* (/ b t) 1.3333333333333333) 1.0))))
1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 3.5e-204) {
tmp = 1.0;
} else if ((a <= 3.4e-48) || (!(a <= 10000.0) && (a <= 2.75e+135))) {
tmp = x / (x + (y * (((b / t) * 1.3333333333333333) + 1.0)));
} 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 (a <= 3.5d-204) then
tmp = 1.0d0
else if ((a <= 3.4d-48) .or. (.not. (a <= 10000.0d0)) .and. (a <= 2.75d+135)) then
tmp = x / (x + (y * (((b / t) * 1.3333333333333333d0) + 1.0d0)))
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 (a <= 3.5e-204) {
tmp = 1.0;
} else if ((a <= 3.4e-48) || (!(a <= 10000.0) && (a <= 2.75e+135))) {
tmp = x / (x + (y * (((b / t) * 1.3333333333333333) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 3.5e-204: tmp = 1.0 elif (a <= 3.4e-48) or (not (a <= 10000.0) and (a <= 2.75e+135)): tmp = x / (x + (y * (((b / t) * 1.3333333333333333) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 3.5e-204) tmp = 1.0; elseif ((a <= 3.4e-48) || (!(a <= 10000.0) && (a <= 2.75e+135))) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(b / t) * 1.3333333333333333) + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= 3.5e-204) tmp = 1.0; elseif ((a <= 3.4e-48) || (~((a <= 10000.0)) && (a <= 2.75e+135))) tmp = x / (x + (y * (((b / t) * 1.3333333333333333) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 3.5e-204], 1.0, If[Or[LessEqual[a, 3.4e-48], And[N[Not[LessEqual[a, 10000.0]], $MachinePrecision], LessEqual[a, 2.75e+135]]], N[(x / N[(x + N[(y * N[(N[(N[(b / t), $MachinePrecision] * 1.3333333333333333), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 3.5 \cdot 10^{-204}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 3.4 \cdot 10^{-48} \lor \neg \left(a \leq 10000\right) \land a \leq 2.75 \cdot 10^{+135}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\frac{b}{t} \cdot 1.3333333333333333 + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if a < 3.50000000000000027e-204 or 3.40000000000000028e-48 < a < 1e4 or 2.7499999999999999e135 < a Initial program 94.2%
Taylor expanded in a around inf 61.3%
Taylor expanded in a around 0 31.0%
+-commutative31.0%
Simplified31.0%
Taylor expanded in x around inf 52.7%
if 3.50000000000000027e-204 < a < 3.40000000000000028e-48 or 1e4 < a < 2.7499999999999999e135Initial program 86.0%
Taylor expanded in b around inf 69.7%
associate-*r/69.7%
metadata-eval69.7%
+-commutative69.7%
Simplified69.7%
Taylor expanded in t around 0 59.4%
Taylor expanded in b around 0 58.2%
Final simplification54.5%
(FPCore (x y z t a b c) :precision binary64 (if (<= a 1.25e+29) 1.0 (if (<= a 2.5e+42) (* -0.75 (* x (/ t (* c y)))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 1.25e+29) {
tmp = 1.0;
} else if (a <= 2.5e+42) {
tmp = -0.75 * (x * (t / (c * 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 (a <= 1.25d+29) then
tmp = 1.0d0
else if (a <= 2.5d+42) then
tmp = (-0.75d0) * (x * (t / (c * 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 (a <= 1.25e+29) {
tmp = 1.0;
} else if (a <= 2.5e+42) {
tmp = -0.75 * (x * (t / (c * y)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 1.25e+29: tmp = 1.0 elif a <= 2.5e+42: tmp = -0.75 * (x * (t / (c * y))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 1.25e+29) tmp = 1.0; elseif (a <= 2.5e+42) tmp = Float64(-0.75 * Float64(x * Float64(t / Float64(c * y)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= 1.25e+29) tmp = 1.0; elseif (a <= 2.5e+42) tmp = -0.75 * (x * (t / (c * y))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 1.25e+29], 1.0, If[LessEqual[a, 2.5e+42], N[(-0.75 * N[(x * N[(t / N[(c * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.25 \cdot 10^{+29}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 2.5 \cdot 10^{+42}:\\
\;\;\;\;-0.75 \cdot \left(x \cdot \frac{t}{c \cdot y}\right)\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if a < 1.25e29 or 2.50000000000000003e42 < a Initial program 91.2%
Taylor expanded in a around inf 59.9%
Taylor expanded in a around 0 33.7%
+-commutative33.7%
Simplified33.7%
Taylor expanded in x around inf 48.5%
if 1.25e29 < a < 2.50000000000000003e42Initial program 100.0%
Taylor expanded in c around inf 72.3%
cancel-sign-sub-inv72.3%
+-commutative72.3%
metadata-eval72.3%
associate-*r/72.3%
metadata-eval72.3%
associate-+l+72.3%
Simplified72.3%
Taylor expanded in c around 0 86.5%
associate-*r*86.5%
sub-neg86.5%
+-commutative86.5%
associate-*r/86.5%
metadata-eval86.5%
distribute-neg-frac86.5%
metadata-eval86.5%
associate-+r+86.5%
Simplified86.5%
Taylor expanded in t around 0 45.0%
expm1-log1p-u45.0%
expm1-udef71.9%
times-frac57.6%
Applied egg-rr57.6%
expm1-def44.5%
expm1-log1p44.8%
times-frac45.0%
*-commutative45.0%
associate-*r/86.5%
Simplified86.5%
Final simplification49.6%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 91.5%
Taylor expanded in a around inf 59.9%
Taylor expanded in a around 0 33.7%
+-commutative33.7%
Simplified33.7%
Taylor expanded in x around inf 47.7%
Final simplification47.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* z (sqrt (+ t a)))) (t_2 (- a (/ 5.0 6.0))))
(if (< t -2.118326644891581e-50)
(/
x
(+
x
(* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b)))))))
(if (< t 5.196588770651547e-123)
(/
x
(+
x
(*
y
(exp
(*
2.0
(/
(-
(* t_1 (* (* 3.0 t) t_2))
(*
(- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0)
(* t_2 (* (- b c) t))))
(* (* (* t t) 3.0) t_2)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ t_1 t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = z * sqrt((t + a));
double t_2 = a - (5.0 / 6.0);
double tmp;
if (t < -2.118326644891581e-50) {
tmp = x / (x + (y * exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b))))));
} else if (t < 5.196588770651547e-123) {
tmp = x / (x + (y * exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * sqrt((t + a))
t_2 = a - (5.0d0 / 6.0d0)
if (t < (-2.118326644891581d-50)) then
tmp = x / (x + (y * exp((2.0d0 * (((a * c) + (0.8333333333333334d0 * c)) - (a * b))))))
else if (t < 5.196588770651547d-123) then
tmp = x / (x + (y * exp((2.0d0 * (((t_1 * ((3.0d0 * t) * t_2)) - (((((5.0d0 / 6.0d0) + a) * (3.0d0 * t)) - 2.0d0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0d0) * t_2))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((t_1 / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = z * Math.sqrt((t + a));
double t_2 = a - (5.0 / 6.0);
double tmp;
if (t < -2.118326644891581e-50) {
tmp = x / (x + (y * Math.exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b))))));
} else if (t < 5.196588770651547e-123) {
tmp = x / (x + (y * Math.exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = z * math.sqrt((t + a)) t_2 = a - (5.0 / 6.0) tmp = 0 if t < -2.118326644891581e-50: tmp = x / (x + (y * math.exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b)))))) elif t < 5.196588770651547e-123: tmp = x / (x + (y * math.exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2)))))) else: tmp = x / (x + (y * math.exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(z * sqrt(Float64(t + a))) t_2 = Float64(a - Float64(5.0 / 6.0)) tmp = 0.0 if (t < -2.118326644891581e-50) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(a * c) + Float64(0.8333333333333334 * c)) - Float64(a * b))))))); elseif (t < 5.196588770651547e-123) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(t_1 * Float64(Float64(3.0 * t) * t_2)) - Float64(Float64(Float64(Float64(Float64(5.0 / 6.0) + a) * Float64(3.0 * t)) - 2.0) * Float64(t_2 * Float64(Float64(b - c) * t)))) / Float64(Float64(Float64(t * t) * 3.0) * t_2))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(t_1 / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = z * sqrt((t + a)); t_2 = a - (5.0 / 6.0); tmp = 0.0; if (t < -2.118326644891581e-50) tmp = x / (x + (y * exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b)))))); elseif (t < 5.196588770651547e-123) tmp = x / (x + (y * exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2)))))); else tmp = x / (x + (y * exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a - N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -2.118326644891581e-50], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(a * c), $MachinePrecision] + N[(0.8333333333333334 * c), $MachinePrecision]), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[t, 5.196588770651547e-123], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(t$95$1 * N[(N[(3.0 * t), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(N[(N[(5.0 / 6.0), $MachinePrecision] + a), $MachinePrecision] * N[(3.0 * t), $MachinePrecision]), $MachinePrecision] - 2.0), $MachinePrecision] * N[(t$95$2 * N[(N[(b - c), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(t * t), $MachinePrecision] * 3.0), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(t$95$1 / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \sqrt{t + a}\\
t_2 := a - \frac{5}{6}\\
\mathbf{if}\;t < -2.118326644891581 \cdot 10^{-50}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a \cdot c + 0.8333333333333334 \cdot c\right) - a \cdot b\right)}}\\
\mathbf{elif}\;t < 5.196588770651547 \cdot 10^{-123}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{t\_1 \cdot \left(\left(3 \cdot t\right) \cdot t\_2\right) - \left(\left(\frac{5}{6} + a\right) \cdot \left(3 \cdot t\right) - 2\right) \cdot \left(t\_2 \cdot \left(\left(b - c\right) \cdot t\right)\right)}{\left(\left(t \cdot t\right) \cdot 3\right) \cdot t\_2}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{t\_1}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}\\
\end{array}
\end{array}
herbie shell --seed 2024029
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:herbie-target
(if (< t -2.118326644891581e-50) (/ x (+ x (* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b))))))) (if (< t 5.196588770651547e-123) (/ x (+ x (* y (exp (* 2.0 (/ (- (* (* z (sqrt (+ t a))) (* (* 3.0 t) (- a (/ 5.0 6.0)))) (* (- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0) (* (- a (/ 5.0 6.0)) (* (- b c) t)))) (* (* (* t t) 3.0) (- a (/ 5.0 6.0))))))))) (/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))