
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ a t))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (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((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(a + t))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (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[(a + t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{a + t}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(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 99.2%
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 83.6%
Final simplification98.5%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
(+ (+ a 0.8333333333333334) (/ -0.6666666666666666 t))
(- c b)
(* (/ z t) (sqrt (+ a t)))))
x)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / fma(y, pow(exp(2.0), fma(((a + 0.8333333333333334) + (-0.6666666666666666 / t)), (c - b), ((z / t) * sqrt((a + t))))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(Float64(Float64(a + 0.8333333333333334) + Float64(-0.6666666666666666 / t)), Float64(c - b), Float64(Float64(z / t) * sqrt(Float64(a + t))))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision] + N[(N[(z / t), $MachinePrecision] * N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(\left(a + 0.8333333333333334\right) + \frac{-0.6666666666666666}{t}, c - b, \frac{z}{t} \cdot \sqrt{a + t}\right)\right)}, x\right)}
\end{array}
Initial program 94.6%
Simplified98.1%
Final simplification98.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 2.5e-183)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 2.35e+15)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (+ (/ -0.6666666666666666 t) 0.8333333333333334) (- c b))))))))
(/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2.5e-183) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 2.35e+15) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + (((-0.6666666666666666 / t) + 0.8333333333333334) * (c - b)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 2.5d-183) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 2.35d+15) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((((-0.6666666666666666d0) / t) + 0.8333333333333334d0) * (c - b)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2.5e-183) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 2.35e+15) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + (((-0.6666666666666666 / t) + 0.8333333333333334) * (c - b)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 2.5e-183: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 2.35e+15: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + (((-0.6666666666666666 / t) + 0.8333333333333334) * (c - b))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 2.5e-183) 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 <= 2.35e+15) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334) * Float64(c - b)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 2.5e-183) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 2.35e+15) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + (((-0.6666666666666666 / t) + 0.8333333333333334) * (c - b))))))); else tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 2.5e-183], 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, 2.35e+15], 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[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.5 \cdot 10^{-183}:\\
\;\;\;\;\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 2.35 \cdot 10^{+15}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(\frac{-0.6666666666666666}{t} + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 2.5000000000000001e-183Initial program 87.7%
Taylor expanded in t around 0 96.4%
if 2.5000000000000001e-183 < t < 2.35e15Initial program 98.1%
Taylor expanded in a around 0 83.9%
*-commutative83.9%
*-commutative83.9%
cancel-sign-sub-inv83.9%
metadata-eval83.9%
associate-*r/83.9%
metadata-eval83.9%
Simplified83.9%
if 2.35e15 < t Initial program 97.6%
Taylor expanded in t around inf 92.0%
+-commutative92.0%
*-commutative92.0%
associate-*r*92.0%
neg-mul-192.0%
neg-sub092.0%
associate--r-92.0%
neg-sub092.0%
+-commutative92.0%
sub-neg92.0%
Simplified92.0%
Final simplification91.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b)))))))))
(if (<= t -1.3e-203)
t_1
(if (<= t 4.5e-293)
(/ x (+ x (* y (exp (* 2.0 (* (/ z t) (sqrt a)))))))
(if (<= t 1.6e-146)
(/ x (+ x (* y (exp (* 2.0 (* 0.6666666666666666 (/ b t)))))))
(if (<= t 2.7e-27)
(/
x
(+
x
(*
y
(pow
(exp (+ (+ a 0.8333333333333334) (/ -0.6666666666666666 t)))
(* 2.0 c)))))
(if (<= t 1.18e-5)
(/ x (+ x (* y (exp (* 2.0 (* z (sqrt (/ 1.0 t))))))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
double tmp;
if (t <= -1.3e-203) {
tmp = t_1;
} else if (t <= 4.5e-293) {
tmp = x / (x + (y * exp((2.0 * ((z / t) * sqrt(a))))));
} else if (t <= 1.6e-146) {
tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t))))));
} else if (t <= 2.7e-27) {
tmp = x / (x + (y * pow(exp(((a + 0.8333333333333334) + (-0.6666666666666666 / t))), (2.0 * c))));
} else if (t <= 1.18e-5) {
tmp = x / (x + (y * exp((2.0 * (z * sqrt((1.0 / t)))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
if (t <= (-1.3d-203)) then
tmp = t_1
else if (t <= 4.5d-293) then
tmp = x / (x + (y * exp((2.0d0 * ((z / t) * sqrt(a))))))
else if (t <= 1.6d-146) then
tmp = x / (x + (y * exp((2.0d0 * (0.6666666666666666d0 * (b / t))))))
else if (t <= 2.7d-27) then
tmp = x / (x + (y * (exp(((a + 0.8333333333333334d0) + ((-0.6666666666666666d0) / t))) ** (2.0d0 * c))))
else if (t <= 1.18d-5) then
tmp = x / (x + (y * exp((2.0d0 * (z * sqrt((1.0d0 / t)))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
double tmp;
if (t <= -1.3e-203) {
tmp = t_1;
} else if (t <= 4.5e-293) {
tmp = x / (x + (y * Math.exp((2.0 * ((z / t) * Math.sqrt(a))))));
} else if (t <= 1.6e-146) {
tmp = x / (x + (y * Math.exp((2.0 * (0.6666666666666666 * (b / t))))));
} else if (t <= 2.7e-27) {
tmp = x / (x + (y * Math.pow(Math.exp(((a + 0.8333333333333334) + (-0.6666666666666666 / t))), (2.0 * c))));
} else if (t <= 1.18e-5) {
tmp = x / (x + (y * Math.exp((2.0 * (z * Math.sqrt((1.0 / t)))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) tmp = 0 if t <= -1.3e-203: tmp = t_1 elif t <= 4.5e-293: tmp = x / (x + (y * math.exp((2.0 * ((z / t) * math.sqrt(a)))))) elif t <= 1.6e-146: tmp = x / (x + (y * math.exp((2.0 * (0.6666666666666666 * (b / t)))))) elif t <= 2.7e-27: tmp = x / (x + (y * math.pow(math.exp(((a + 0.8333333333333334) + (-0.6666666666666666 / t))), (2.0 * c)))) elif t <= 1.18e-5: tmp = x / (x + (y * math.exp((2.0 * (z * math.sqrt((1.0 / t))))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))) tmp = 0.0 if (t <= -1.3e-203) tmp = t_1; elseif (t <= 4.5e-293) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z / t) * sqrt(a))))))); elseif (t <= 1.6e-146) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(0.6666666666666666 * Float64(b / t))))))); elseif (t <= 2.7e-27) tmp = Float64(x / Float64(x + Float64(y * (exp(Float64(Float64(a + 0.8333333333333334) + Float64(-0.6666666666666666 / t))) ^ Float64(2.0 * c))))); elseif (t <= 1.18e-5) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(z * sqrt(Float64(1.0 / t)))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); tmp = 0.0; if (t <= -1.3e-203) tmp = t_1; elseif (t <= 4.5e-293) tmp = x / (x + (y * exp((2.0 * ((z / t) * sqrt(a)))))); elseif (t <= 1.6e-146) tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t)))))); elseif (t <= 2.7e-27) tmp = x / (x + (y * (exp(((a + 0.8333333333333334) + (-0.6666666666666666 / t))) ^ (2.0 * c)))); elseif (t <= 1.18e-5) tmp = x / (x + (y * exp((2.0 * (z * sqrt((1.0 / t))))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.3e-203], t$95$1, If[LessEqual[t, 4.5e-293], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z / t), $MachinePrecision] * N[Sqrt[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.6e-146], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(0.6666666666666666 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.7e-27], N[(x / N[(x + N[(y * N[Power[N[Exp[N[(N[(a + 0.8333333333333334), $MachinePrecision] + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(2.0 * c), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.18e-5], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{-203}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-293}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z}{t} \cdot \sqrt{a}\right)}}\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{-146}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(0.6666666666666666 \cdot \frac{b}{t}\right)}}\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-27}:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{\left(a + 0.8333333333333334\right) + \frac{-0.6666666666666666}{t}}\right)}^{\left(2 \cdot c\right)}}\\
\mathbf{elif}\;t \leq 1.18 \cdot 10^{-5}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}}\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.29999999999999988e-203 or 1.18000000000000005e-5 < t Initial program 96.5%
Taylor expanded in t around inf 90.2%
+-commutative90.2%
*-commutative90.2%
associate-*r*90.2%
neg-mul-190.2%
neg-sub090.2%
associate--r-90.2%
neg-sub090.2%
+-commutative90.2%
sub-neg90.2%
Simplified90.2%
if -1.29999999999999988e-203 < t < 4.5000000000000002e-293Initial program 77.8%
Taylor expanded in t around 0 100.0%
Taylor expanded in z around inf 78.5%
if 4.5000000000000002e-293 < t < 1.6e-146Initial program 89.3%
Taylor expanded in b around inf 71.1%
associate-*r/71.1%
metadata-eval71.1%
+-commutative71.1%
Simplified71.1%
Taylor expanded in t around 0 78.0%
if 1.6e-146 < t < 2.69999999999999989e-27Initial program 97.1%
Taylor expanded in c around inf 57.4%
cancel-sign-sub-inv57.4%
+-commutative57.4%
metadata-eval57.4%
associate-*r/57.4%
metadata-eval57.4%
associate-+r+57.4%
Simplified57.4%
*-commutative57.4%
exp-lft-sqr57.4%
*-commutative57.4%
exp-prod71.5%
associate-+r+71.5%
*-commutative71.5%
exp-prod71.5%
associate-+r+71.5%
Applied egg-rr71.5%
pow-sqr71.5%
+-commutative71.5%
*-commutative71.5%
Simplified71.5%
if 2.69999999999999989e-27 < t < 1.18000000000000005e-5Initial program 100.0%
Taylor expanded in a around 0 75.8%
*-commutative75.8%
*-commutative75.8%
cancel-sign-sub-inv75.8%
metadata-eval75.8%
associate-*r/75.8%
metadata-eval75.8%
Simplified75.8%
Taylor expanded in z around inf 75.8%
Final simplification85.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b)))))))))
(if (<= t -1.05e-206)
t_1
(if (<= t 4.9e-293)
(/ x (+ x (* y (exp (* 2.0 (* (/ z t) (sqrt a)))))))
(if (<= t 5.1e-138)
(/ x (+ x (* y (exp (* 2.0 (* 0.6666666666666666 (/ b t)))))))
(if (<= t 1.6e-51)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
c
(+ a (+ (/ -0.6666666666666666 t) 0.8333333333333334))))))))
(if (<= t 1.95e-5)
(/ x (+ x (* y (exp (* 2.0 (* z (sqrt (/ 1.0 t))))))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
double tmp;
if (t <= -1.05e-206) {
tmp = t_1;
} else if (t <= 4.9e-293) {
tmp = x / (x + (y * exp((2.0 * ((z / t) * sqrt(a))))));
} else if (t <= 5.1e-138) {
tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t))))));
} else if (t <= 1.6e-51) {
tmp = x / (x + (y * exp((2.0 * (c * (a + ((-0.6666666666666666 / t) + 0.8333333333333334)))))));
} else if (t <= 1.95e-5) {
tmp = x / (x + (y * exp((2.0 * (z * sqrt((1.0 / t)))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
if (t <= (-1.05d-206)) then
tmp = t_1
else if (t <= 4.9d-293) then
tmp = x / (x + (y * exp((2.0d0 * ((z / t) * sqrt(a))))))
else if (t <= 5.1d-138) then
tmp = x / (x + (y * exp((2.0d0 * (0.6666666666666666d0 * (b / t))))))
else if (t <= 1.6d-51) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + (((-0.6666666666666666d0) / t) + 0.8333333333333334d0)))))))
else if (t <= 1.95d-5) then
tmp = x / (x + (y * exp((2.0d0 * (z * sqrt((1.0d0 / t)))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
double tmp;
if (t <= -1.05e-206) {
tmp = t_1;
} else if (t <= 4.9e-293) {
tmp = x / (x + (y * Math.exp((2.0 * ((z / t) * Math.sqrt(a))))));
} else if (t <= 5.1e-138) {
tmp = x / (x + (y * Math.exp((2.0 * (0.6666666666666666 * (b / t))))));
} else if (t <= 1.6e-51) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + ((-0.6666666666666666 / t) + 0.8333333333333334)))))));
} else if (t <= 1.95e-5) {
tmp = x / (x + (y * Math.exp((2.0 * (z * Math.sqrt((1.0 / t)))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) tmp = 0 if t <= -1.05e-206: tmp = t_1 elif t <= 4.9e-293: tmp = x / (x + (y * math.exp((2.0 * ((z / t) * math.sqrt(a)))))) elif t <= 5.1e-138: tmp = x / (x + (y * math.exp((2.0 * (0.6666666666666666 * (b / t)))))) elif t <= 1.6e-51: tmp = x / (x + (y * math.exp((2.0 * (c * (a + ((-0.6666666666666666 / t) + 0.8333333333333334))))))) elif t <= 1.95e-5: tmp = x / (x + (y * math.exp((2.0 * (z * math.sqrt((1.0 / t))))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))) tmp = 0.0 if (t <= -1.05e-206) tmp = t_1; elseif (t <= 4.9e-293) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z / t) * sqrt(a))))))); elseif (t <= 5.1e-138) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(0.6666666666666666 * Float64(b / t))))))); elseif (t <= 1.6e-51) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334)))))))); elseif (t <= 1.95e-5) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(z * sqrt(Float64(1.0 / t)))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); tmp = 0.0; if (t <= -1.05e-206) tmp = t_1; elseif (t <= 4.9e-293) tmp = x / (x + (y * exp((2.0 * ((z / t) * sqrt(a)))))); elseif (t <= 5.1e-138) tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t)))))); elseif (t <= 1.6e-51) tmp = x / (x + (y * exp((2.0 * (c * (a + ((-0.6666666666666666 / t) + 0.8333333333333334))))))); elseif (t <= 1.95e-5) tmp = x / (x + (y * exp((2.0 * (z * sqrt((1.0 / t))))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.05e-206], t$95$1, If[LessEqual[t, 4.9e-293], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z / t), $MachinePrecision] * N[Sqrt[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.1e-138], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(0.6666666666666666 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.6e-51], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.95e-5], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{-206}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4.9 \cdot 10^{-293}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z}{t} \cdot \sqrt{a}\right)}}\\
\mathbf{elif}\;t \leq 5.1 \cdot 10^{-138}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(0.6666666666666666 \cdot \frac{b}{t}\right)}}\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{-51}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(\frac{-0.6666666666666666}{t} + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{elif}\;t \leq 1.95 \cdot 10^{-5}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}}\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.05000000000000005e-206 or 1.95e-5 < t Initial program 96.5%
Taylor expanded in t around inf 90.2%
+-commutative90.2%
*-commutative90.2%
associate-*r*90.2%
neg-mul-190.2%
neg-sub090.2%
associate--r-90.2%
neg-sub090.2%
+-commutative90.2%
sub-neg90.2%
Simplified90.2%
if -1.05000000000000005e-206 < t < 4.9e-293Initial program 77.8%
Taylor expanded in t around 0 100.0%
Taylor expanded in z around inf 78.5%
if 4.9e-293 < t < 5.1000000000000002e-138Initial program 89.7%
Taylor expanded in b around inf 72.1%
associate-*r/72.1%
metadata-eval72.1%
+-commutative72.1%
Simplified72.1%
Taylor expanded in t around 0 78.8%
if 5.1000000000000002e-138 < t < 1.6e-51Initial program 96.3%
Taylor expanded in c around inf 71.4%
cancel-sign-sub-inv71.4%
+-commutative71.4%
metadata-eval71.4%
associate-*r/71.4%
metadata-eval71.4%
associate-+r+71.4%
Simplified71.4%
if 1.6e-51 < t < 1.95e-5Initial program 100.0%
Taylor expanded in a around 0 86.2%
*-commutative86.2%
*-commutative86.2%
cancel-sign-sub-inv86.2%
metadata-eval86.2%
associate-*r/86.2%
metadata-eval86.2%
Simplified86.2%
Taylor expanded in z around inf 65.4%
Final simplification84.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 1.35e-73)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 1.85e-5)
(/ x (+ x (* y (exp (* 2.0 (* z (sqrt (/ 1.0 t))))))))
(/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.35e-73) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 1.85e-5) {
tmp = x / (x + (y * exp((2.0 * (z * sqrt((1.0 / t)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 1.35d-73) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 1.85d-5) then
tmp = x / (x + (y * exp((2.0d0 * (z * sqrt((1.0d0 / t)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.35e-73) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 1.85e-5) {
tmp = x / (x + (y * Math.exp((2.0 * (z * Math.sqrt((1.0 / t)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1.35e-73: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 1.85e-5: tmp = x / (x + (y * math.exp((2.0 * (z * math.sqrt((1.0 / t))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1.35e-73) 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 <= 1.85e-5) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(z * sqrt(Float64(1.0 / t)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 1.35e-73) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 1.85e-5) tmp = x / (x + (y * exp((2.0 * (z * sqrt((1.0 / t))))))); else tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 1.35e-73], 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, 1.85e-5], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.35 \cdot 10^{-73}:\\
\;\;\;\;\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 1.85 \cdot 10^{-5}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}}\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 1.34999999999999997e-73Initial program 89.4%
Taylor expanded in t around 0 91.5%
if 1.34999999999999997e-73 < t < 1.84999999999999991e-5Initial program 100.0%
Taylor expanded in a around 0 87.4%
*-commutative87.4%
*-commutative87.4%
cancel-sign-sub-inv87.4%
metadata-eval87.4%
associate-*r/87.4%
metadata-eval87.4%
Simplified87.4%
Taylor expanded in z around inf 66.3%
if 1.84999999999999991e-5 < t Initial program 97.7%
Taylor expanded in t around inf 91.7%
+-commutative91.7%
*-commutative91.7%
associate-*r*91.7%
neg-mul-191.7%
neg-sub091.7%
associate--r-91.7%
neg-sub091.7%
+-commutative91.7%
sub-neg91.7%
Simplified91.7%
Final simplification89.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b)))))))))
(if (<= t -2e-206)
t_1
(if (<= t 4.3e-293)
(/ x (+ x (* y (exp (* 2.0 (* (/ z t) (sqrt a)))))))
(if (<= t 1.02e-140)
(/ x (+ x (* y (exp (* 2.0 (* 0.6666666666666666 (/ b t)))))))
(if (<= t 1.2e-52)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
c
(+ a (+ (/ -0.6666666666666666 t) 0.8333333333333334))))))))
(if (<= t 4.8e-5)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
b
(- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
double tmp;
if (t <= -2e-206) {
tmp = t_1;
} else if (t <= 4.3e-293) {
tmp = x / (x + (y * exp((2.0 * ((z / t) * sqrt(a))))));
} else if (t <= 1.02e-140) {
tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t))))));
} else if (t <= 1.2e-52) {
tmp = x / (x + (y * exp((2.0 * (c * (a + ((-0.6666666666666666 / t) + 0.8333333333333334)))))));
} else if (t <= 4.8e-5) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
if (t <= (-2d-206)) then
tmp = t_1
else if (t <= 4.3d-293) then
tmp = x / (x + (y * exp((2.0d0 * ((z / t) * sqrt(a))))))
else if (t <= 1.02d-140) then
tmp = x / (x + (y * exp((2.0d0 * (0.6666666666666666d0 * (b / t))))))
else if (t <= 1.2d-52) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + (((-0.6666666666666666d0) / t) + 0.8333333333333334d0)))))))
else if (t <= 4.8d-5) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
double tmp;
if (t <= -2e-206) {
tmp = t_1;
} else if (t <= 4.3e-293) {
tmp = x / (x + (y * Math.exp((2.0 * ((z / t) * Math.sqrt(a))))));
} else if (t <= 1.02e-140) {
tmp = x / (x + (y * Math.exp((2.0 * (0.6666666666666666 * (b / t))))));
} else if (t <= 1.2e-52) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + ((-0.6666666666666666 / t) + 0.8333333333333334)))))));
} else if (t <= 4.8e-5) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) tmp = 0 if t <= -2e-206: tmp = t_1 elif t <= 4.3e-293: tmp = x / (x + (y * math.exp((2.0 * ((z / t) * math.sqrt(a)))))) elif t <= 1.02e-140: tmp = x / (x + (y * math.exp((2.0 * (0.6666666666666666 * (b / t)))))) elif t <= 1.2e-52: tmp = x / (x + (y * math.exp((2.0 * (c * (a + ((-0.6666666666666666 / t) + 0.8333333333333334))))))) elif t <= 4.8e-5: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))) tmp = 0.0 if (t <= -2e-206) tmp = t_1; elseif (t <= 4.3e-293) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z / t) * sqrt(a))))))); elseif (t <= 1.02e-140) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(0.6666666666666666 * Float64(b / t))))))); elseif (t <= 1.2e-52) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334)))))))); elseif (t <= 4.8e-5) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); tmp = 0.0; if (t <= -2e-206) tmp = t_1; elseif (t <= 4.3e-293) tmp = x / (x + (y * exp((2.0 * ((z / t) * sqrt(a)))))); elseif (t <= 1.02e-140) tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t)))))); elseif (t <= 1.2e-52) tmp = x / (x + (y * exp((2.0 * (c * (a + ((-0.6666666666666666 / t) + 0.8333333333333334))))))); elseif (t <= 4.8e-5) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2e-206], t$95$1, If[LessEqual[t, 4.3e-293], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z / t), $MachinePrecision] * N[Sqrt[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.02e-140], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(0.6666666666666666 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.2e-52], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.8e-5], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq -2 \cdot 10^{-206}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4.3 \cdot 10^{-293}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z}{t} \cdot \sqrt{a}\right)}}\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{-140}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(0.6666666666666666 \cdot \frac{b}{t}\right)}}\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-52}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(\frac{-0.6666666666666666}{t} + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{-5}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -2.00000000000000006e-206 or 4.8000000000000001e-5 < t Initial program 96.5%
Taylor expanded in t around inf 90.2%
+-commutative90.2%
*-commutative90.2%
associate-*r*90.2%
neg-mul-190.2%
neg-sub090.2%
associate--r-90.2%
neg-sub090.2%
+-commutative90.2%
sub-neg90.2%
Simplified90.2%
if -2.00000000000000006e-206 < t < 4.2999999999999998e-293Initial program 77.8%
Taylor expanded in t around 0 100.0%
Taylor expanded in z around inf 78.5%
if 4.2999999999999998e-293 < t < 1.01999999999999995e-140Initial program 89.7%
Taylor expanded in b around inf 72.1%
associate-*r/72.1%
metadata-eval72.1%
+-commutative72.1%
Simplified72.1%
Taylor expanded in t around 0 78.8%
if 1.01999999999999995e-140 < t < 1.2000000000000001e-52Initial program 96.3%
Taylor expanded in c around inf 71.4%
cancel-sign-sub-inv71.4%
+-commutative71.4%
metadata-eval71.4%
associate-*r/71.4%
metadata-eval71.4%
associate-+r+71.4%
Simplified71.4%
if 1.2000000000000001e-52 < t < 4.8000000000000001e-5Initial program 100.0%
Taylor expanded in b around inf 65.4%
associate-*r/65.4%
metadata-eval65.4%
+-commutative65.4%
Simplified65.4%
Final simplification84.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -1.65e-180)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 3e-293)
(/ x (+ x (* y (exp (* 2.0 (* (/ -0.6666666666666666 t) c))))))
(if (<= t 9.2e-138)
(/ x (+ x (* y (exp (* 2.0 (* 0.6666666666666666 (/ b t)))))))
(if (<= t 1.18e-52)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (+ a (+ (/ -0.6666666666666666 t) 0.8333333333333334))))))))
(if (<= t 4.6e-5)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
b
(- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/
x
(+
x
(* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1.65e-180) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 3e-293) {
tmp = x / (x + (y * exp((2.0 * ((-0.6666666666666666 / t) * c)))));
} else if (t <= 9.2e-138) {
tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t))))));
} else if (t <= 1.18e-52) {
tmp = x / (x + (y * exp((2.0 * (c * (a + ((-0.6666666666666666 / t) + 0.8333333333333334)))))));
} else if (t <= 4.6e-5) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-1.65d-180)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 3d-293) then
tmp = x / (x + (y * exp((2.0d0 * (((-0.6666666666666666d0) / t) * c)))))
else if (t <= 9.2d-138) then
tmp = x / (x + (y * exp((2.0d0 * (0.6666666666666666d0 * (b / t))))))
else if (t <= 1.18d-52) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + (((-0.6666666666666666d0) / t) + 0.8333333333333334d0)))))))
else if (t <= 4.6d-5) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1.65e-180) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 3e-293) {
tmp = x / (x + (y * Math.exp((2.0 * ((-0.6666666666666666 / t) * c)))));
} else if (t <= 9.2e-138) {
tmp = x / (x + (y * Math.exp((2.0 * (0.6666666666666666 * (b / t))))));
} else if (t <= 1.18e-52) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + ((-0.6666666666666666 / t) + 0.8333333333333334)))))));
} else if (t <= 4.6e-5) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -1.65e-180: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 3e-293: tmp = x / (x + (y * math.exp((2.0 * ((-0.6666666666666666 / t) * c))))) elif t <= 9.2e-138: tmp = x / (x + (y * math.exp((2.0 * (0.6666666666666666 * (b / t)))))) elif t <= 1.18e-52: tmp = x / (x + (y * math.exp((2.0 * (c * (a + ((-0.6666666666666666 / t) + 0.8333333333333334))))))) elif t <= 4.6e-5: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -1.65e-180) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 3e-293) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(-0.6666666666666666 / t) * c)))))); elseif (t <= 9.2e-138) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(0.6666666666666666 * Float64(b / t))))))); elseif (t <= 1.18e-52) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334)))))))); elseif (t <= 4.6e-5) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -1.65e-180) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 3e-293) tmp = x / (x + (y * exp((2.0 * ((-0.6666666666666666 / t) * c))))); elseif (t <= 9.2e-138) tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t)))))); elseif (t <= 1.18e-52) tmp = x / (x + (y * exp((2.0 * (c * (a + ((-0.6666666666666666 / t) + 0.8333333333333334))))))); elseif (t <= 4.6e-5) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -1.65e-180], 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, 3e-293], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(-0.6666666666666666 / t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.2e-138], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(0.6666666666666666 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.18e-52], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.6e-5], 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], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.65 \cdot 10^{-180}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 3 \cdot 10^{-293}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{-0.6666666666666666}{t} \cdot c\right)}}\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{-138}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(0.6666666666666666 \cdot \frac{b}{t}\right)}}\\
\mathbf{elif}\;t \leq 1.18 \cdot 10^{-52}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(\frac{-0.6666666666666666}{t} + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{-5}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < -1.64999999999999999e-180Initial program 93.8%
Taylor expanded in a around inf 87.9%
if -1.64999999999999999e-180 < t < 3.0000000000000002e-293Initial program 80.0%
Taylor expanded in c around inf 76.8%
cancel-sign-sub-inv76.8%
+-commutative76.8%
metadata-eval76.8%
associate-*r/76.8%
metadata-eval76.8%
associate-+r+76.8%
Simplified76.8%
Taylor expanded in t around 0 76.8%
*-commutative76.8%
associate-*l/76.8%
associate-*r/76.8%
Simplified76.8%
if 3.0000000000000002e-293 < t < 9.1999999999999996e-138Initial program 89.7%
Taylor expanded in b around inf 72.1%
associate-*r/72.1%
metadata-eval72.1%
+-commutative72.1%
Simplified72.1%
Taylor expanded in t around 0 78.8%
if 9.1999999999999996e-138 < t < 1.18e-52Initial program 96.3%
Taylor expanded in c around inf 71.4%
cancel-sign-sub-inv71.4%
+-commutative71.4%
metadata-eval71.4%
associate-*r/71.4%
metadata-eval71.4%
associate-+r+71.4%
Simplified71.4%
if 1.18e-52 < t < 4.6e-5Initial program 100.0%
Taylor expanded in b around inf 65.4%
associate-*r/65.4%
metadata-eval65.4%
+-commutative65.4%
Simplified65.4%
if 4.6e-5 < t Initial program 97.7%
Taylor expanded in t around inf 91.7%
+-commutative91.7%
*-commutative91.7%
associate-*r*91.7%
neg-mul-191.7%
neg-sub091.7%
associate--r-91.7%
neg-sub091.7%
+-commutative91.7%
sub-neg91.7%
Simplified91.7%
Final simplification84.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* 0.6666666666666666 (/ b t))))))))
(t_2 (/ x (+ x (* y (exp (* 2.0 (* (/ -0.6666666666666666 t) c))))))))
(if (<= t -1.6e-180)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 2.7e-293)
t_2
(if (<= t 9.5e-139)
t_1
(if (<= t 3.7e-50)
t_2
(if (<= t 3.5e-5)
t_1
(/
x
(+
x
(*
y
(exp (* 2.0 (* (+ a 0.8333333333333334) (- c b))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t))))));
double t_2 = x / (x + (y * exp((2.0 * ((-0.6666666666666666 / t) * c)))));
double tmp;
if (t <= -1.6e-180) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 2.7e-293) {
tmp = t_2;
} else if (t <= 9.5e-139) {
tmp = t_1;
} else if (t <= 3.7e-50) {
tmp = t_2;
} else if (t <= 3.5e-5) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (0.6666666666666666d0 * (b / t))))))
t_2 = x / (x + (y * exp((2.0d0 * (((-0.6666666666666666d0) / t) * c)))))
if (t <= (-1.6d-180)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 2.7d-293) then
tmp = t_2
else if (t <= 9.5d-139) then
tmp = t_1
else if (t <= 3.7d-50) then
tmp = t_2
else if (t <= 3.5d-5) then
tmp = t_1
else
tmp = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (0.6666666666666666 * (b / t))))));
double t_2 = x / (x + (y * Math.exp((2.0 * ((-0.6666666666666666 / t) * c)))));
double tmp;
if (t <= -1.6e-180) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 2.7e-293) {
tmp = t_2;
} else if (t <= 9.5e-139) {
tmp = t_1;
} else if (t <= 3.7e-50) {
tmp = t_2;
} else if (t <= 3.5e-5) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (0.6666666666666666 * (b / t)))))) t_2 = x / (x + (y * math.exp((2.0 * ((-0.6666666666666666 / t) * c))))) tmp = 0 if t <= -1.6e-180: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 2.7e-293: tmp = t_2 elif t <= 9.5e-139: tmp = t_1 elif t <= 3.7e-50: tmp = t_2 elif t <= 3.5e-5: tmp = t_1 else: tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(0.6666666666666666 * Float64(b / t))))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(-0.6666666666666666 / t) * c)))))) tmp = 0.0 if (t <= -1.6e-180) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 2.7e-293) tmp = t_2; elseif (t <= 9.5e-139) tmp = t_1; elseif (t <= 3.7e-50) tmp = t_2; elseif (t <= 3.5e-5) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t)))))); t_2 = x / (x + (y * exp((2.0 * ((-0.6666666666666666 / t) * c))))); tmp = 0.0; if (t <= -1.6e-180) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 2.7e-293) tmp = t_2; elseif (t <= 9.5e-139) tmp = t_1; elseif (t <= 3.7e-50) tmp = t_2; elseif (t <= 3.5e-5) tmp = t_1; else tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(0.6666666666666666 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(-0.6666666666666666 / t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.6e-180], 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, 2.7e-293], t$95$2, If[LessEqual[t, 9.5e-139], t$95$1, If[LessEqual[t, 3.7e-50], t$95$2, If[LessEqual[t, 3.5e-5], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(0.6666666666666666 \cdot \frac{b}{t}\right)}}\\
t_2 := \frac{x}{x + y \cdot e^{2 \cdot \left(\frac{-0.6666666666666666}{t} \cdot c\right)}}\\
\mathbf{if}\;t \leq -1.6 \cdot 10^{-180}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-293}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{-139}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.7 \cdot 10^{-50}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-5}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < -1.60000000000000008e-180Initial program 93.8%
Taylor expanded in a around inf 87.9%
if -1.60000000000000008e-180 < t < 2.70000000000000003e-293 or 9.5000000000000006e-139 < t < 3.7000000000000001e-50Initial program 88.5%
Taylor expanded in c around inf 74.0%
cancel-sign-sub-inv74.0%
+-commutative74.0%
metadata-eval74.0%
associate-*r/74.0%
metadata-eval74.0%
associate-+r+74.0%
Simplified74.0%
Taylor expanded in t around 0 70.3%
*-commutative70.3%
associate-*l/70.3%
associate-*r/70.3%
Simplified70.3%
if 2.70000000000000003e-293 < t < 9.5000000000000006e-139 or 3.7000000000000001e-50 < t < 3.4999999999999997e-5Initial program 93.0%
Taylor expanded in b around inf 69.9%
associate-*r/69.9%
metadata-eval69.9%
+-commutative69.9%
Simplified69.9%
Taylor expanded in t around 0 69.9%
if 3.4999999999999997e-5 < t Initial program 97.7%
Taylor expanded in t around inf 91.7%
+-commutative91.7%
*-commutative91.7%
associate-*r*91.7%
neg-mul-191.7%
neg-sub091.7%
associate--r-91.7%
neg-sub091.7%
+-commutative91.7%
sub-neg91.7%
Simplified91.7%
Final simplification83.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -3.1e-180)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 4e-293)
(/ x (+ x (* y (exp (* 2.0 (* (/ -0.6666666666666666 t) c))))))
(if (<= t 1.5e-5)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -3.1e-180) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 4e-293) {
tmp = x / (x + (y * exp((2.0 * ((-0.6666666666666666 / t) * c)))));
} else if (t <= 1.5e-5) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-3.1d-180)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 4d-293) then
tmp = x / (x + (y * exp((2.0d0 * (((-0.6666666666666666d0) / t) * c)))))
else if (t <= 1.5d-5) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -3.1e-180) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 4e-293) {
tmp = x / (x + (y * Math.exp((2.0 * ((-0.6666666666666666 / t) * c)))));
} else if (t <= 1.5e-5) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -3.1e-180: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 4e-293: tmp = x / (x + (y * math.exp((2.0 * ((-0.6666666666666666 / t) * c))))) elif t <= 1.5e-5: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -3.1e-180) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 4e-293) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(-0.6666666666666666 / t) * c)))))); elseif (t <= 1.5e-5) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -3.1e-180) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 4e-293) tmp = x / (x + (y * exp((2.0 * ((-0.6666666666666666 / t) * c))))); elseif (t <= 1.5e-5) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -3.1e-180], 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, 4e-293], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(-0.6666666666666666 / t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e-5], 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], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.1 \cdot 10^{-180}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-293}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{-0.6666666666666666}{t} \cdot c\right)}}\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{-5}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < -3.0999999999999999e-180Initial program 93.8%
Taylor expanded in a around inf 87.9%
if -3.0999999999999999e-180 < t < 4.0000000000000002e-293Initial program 80.0%
Taylor expanded in c around inf 76.8%
cancel-sign-sub-inv76.8%
+-commutative76.8%
metadata-eval76.8%
associate-*r/76.8%
metadata-eval76.8%
associate-+r+76.8%
Simplified76.8%
Taylor expanded in t around 0 76.8%
*-commutative76.8%
associate-*l/76.8%
associate-*r/76.8%
Simplified76.8%
if 4.0000000000000002e-293 < t < 1.50000000000000004e-5Initial program 94.3%
Taylor expanded in b around inf 65.2%
associate-*r/65.2%
metadata-eval65.2%
+-commutative65.2%
Simplified65.2%
if 1.50000000000000004e-5 < t Initial program 97.7%
Taylor expanded in t around inf 91.7%
+-commutative91.7%
*-commutative91.7%
associate-*r*91.7%
neg-mul-191.7%
neg-sub091.7%
associate--r-91.7%
neg-sub091.7%
+-commutative91.7%
sub-neg91.7%
Simplified91.7%
Final simplification82.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -2.4e+52)
1.0
(if (<= c -4.2e-113)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= c 4.6e-182)
(/ x (+ x (* y (exp (* -2.0 (* a b))))))
(if (<= c 9.2e+102)
1.0
(if (<= c 1.72e+126)
(/
x
(+
x
(-
y
(*
2.0
(*
b
(*
y
(+
(+ a 0.8333333333333334)
(* 0.6666666666666666 (/ -1.0 t)))))))))
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -2.4e+52) {
tmp = 1.0;
} else if (c <= -4.2e-113) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (c <= 4.6e-182) {
tmp = x / (x + (y * exp((-2.0 * (a * b)))));
} else if (c <= 9.2e+102) {
tmp = 1.0;
} else if (c <= 1.72e+126) {
tmp = x / (x + (y - (2.0 * (b * (y * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t))))))));
} else {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-2.4d+52)) then
tmp = 1.0d0
else if (c <= (-4.2d-113)) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (c <= 4.6d-182) then
tmp = x / (x + (y * exp(((-2.0d0) * (a * b)))))
else if (c <= 9.2d+102) then
tmp = 1.0d0
else if (c <= 1.72d+126) then
tmp = x / (x + (y - (2.0d0 * (b * (y * ((a + 0.8333333333333334d0) + (0.6666666666666666d0 * ((-1.0d0) / t))))))))
else
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -2.4e+52) {
tmp = 1.0;
} else if (c <= -4.2e-113) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (c <= 4.6e-182) {
tmp = x / (x + (y * Math.exp((-2.0 * (a * b)))));
} else if (c <= 9.2e+102) {
tmp = 1.0;
} else if (c <= 1.72e+126) {
tmp = x / (x + (y - (2.0 * (b * (y * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t))))))));
} else {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -2.4e+52: tmp = 1.0 elif c <= -4.2e-113: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif c <= 4.6e-182: tmp = x / (x + (y * math.exp((-2.0 * (a * b))))) elif c <= 9.2e+102: tmp = 1.0 elif c <= 1.72e+126: tmp = x / (x + (y - (2.0 * (b * (y * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t)))))))) else: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -2.4e+52) tmp = 1.0; elseif (c <= -4.2e-113) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (c <= 4.6e-182) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))); elseif (c <= 9.2e+102) tmp = 1.0; elseif (c <= 1.72e+126) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(b * Float64(y * Float64(Float64(a + 0.8333333333333334) + Float64(0.6666666666666666 * Float64(-1.0 / t))))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -2.4e+52) tmp = 1.0; elseif (c <= -4.2e-113) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (c <= 4.6e-182) tmp = x / (x + (y * exp((-2.0 * (a * b))))); elseif (c <= 9.2e+102) tmp = 1.0; elseif (c <= 1.72e+126) tmp = x / (x + (y - (2.0 * (b * (y * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t)))))))); else tmp = x / (x + (y * exp((c * 1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -2.4e+52], 1.0, If[LessEqual[c, -4.2e-113], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.6e-182], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.2e+102], 1.0, If[LessEqual[c, 1.72e+126], N[(x / N[(x + N[(y - N[(2.0 * N[(b * N[(y * N[(N[(a + 0.8333333333333334), $MachinePrecision] + N[(0.6666666666666666 * N[(-1.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.4 \cdot 10^{+52}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -4.2 \cdot 10^{-113}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;c \leq 4.6 \cdot 10^{-182}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;c \leq 9.2 \cdot 10^{+102}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.72 \cdot 10^{+126}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(b \cdot \left(y \cdot \left(\left(a + 0.8333333333333334\right) + 0.6666666666666666 \cdot \frac{-1}{t}\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if c < -2.4e52 or 4.5999999999999998e-182 < c < 9.1999999999999995e102Initial program 92.6%
Taylor expanded in b around inf 59.3%
associate-*r/59.3%
metadata-eval59.3%
+-commutative59.3%
Simplified59.3%
Taylor expanded in b around 0 41.6%
Taylor expanded in x around inf 66.5%
if -2.4e52 < c < -4.2e-113Initial program 100.0%
Taylor expanded in t around inf 74.4%
+-commutative74.4%
*-commutative74.4%
associate-*r*74.4%
neg-mul-174.4%
neg-sub074.4%
associate--r-74.4%
neg-sub074.4%
+-commutative74.4%
sub-neg74.4%
Simplified74.4%
Taylor expanded in a around 0 72.5%
Taylor expanded in c around 0 70.6%
if -4.2e-113 < c < 4.5999999999999998e-182Initial program 96.0%
Taylor expanded in a around inf 70.5%
Taylor expanded in c around 0 69.2%
associate-*r*69.2%
mul-1-neg69.2%
Simplified69.2%
Taylor expanded in a around inf 69.2%
if 9.1999999999999995e102 < c < 1.72000000000000014e126Initial program 100.0%
Taylor expanded in b around inf 64.2%
associate-*r/64.2%
metadata-eval64.2%
+-commutative64.2%
Simplified64.2%
Taylor expanded in b around 0 87.9%
if 1.72000000000000014e126 < c Initial program 84.4%
Taylor expanded in t around inf 84.7%
+-commutative84.7%
*-commutative84.7%
associate-*r*84.7%
neg-mul-184.7%
neg-sub084.7%
associate--r-84.7%
neg-sub084.7%
+-commutative84.7%
sub-neg84.7%
Simplified84.7%
Taylor expanded in a around 0 84.7%
Taylor expanded in c around inf 84.7%
Final simplification70.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 1.6666666666666667 (- c b))))))))
(if (<= t -3.7e-202)
t_1
(if (<= t 3.5e-12)
1.0
(if (or (<= t 1.2e+154) (not (<= t 2.25e+222)))
t_1
(/ x (+ x (* y (exp (* -2.0 (* a b)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((1.6666666666666667 * (c - b)))));
double tmp;
if (t <= -3.7e-202) {
tmp = t_1;
} else if (t <= 3.5e-12) {
tmp = 1.0;
} else if ((t <= 1.2e+154) || !(t <= 2.25e+222)) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((-2.0 * (a * b)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((1.6666666666666667d0 * (c - b)))))
if (t <= (-3.7d-202)) then
tmp = t_1
else if (t <= 3.5d-12) then
tmp = 1.0d0
else if ((t <= 1.2d+154) .or. (.not. (t <= 2.25d+222))) then
tmp = t_1
else
tmp = x / (x + (y * exp(((-2.0d0) * (a * b)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((1.6666666666666667 * (c - b)))));
double tmp;
if (t <= -3.7e-202) {
tmp = t_1;
} else if (t <= 3.5e-12) {
tmp = 1.0;
} else if ((t <= 1.2e+154) || !(t <= 2.25e+222)) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((-2.0 * (a * b)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((1.6666666666666667 * (c - b))))) tmp = 0 if t <= -3.7e-202: tmp = t_1 elif t <= 3.5e-12: tmp = 1.0 elif (t <= 1.2e+154) or not (t <= 2.25e+222): tmp = t_1 else: tmp = x / (x + (y * math.exp((-2.0 * (a * b))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(1.6666666666666667 * Float64(c - b)))))) tmp = 0.0 if (t <= -3.7e-202) tmp = t_1; elseif (t <= 3.5e-12) tmp = 1.0; elseif ((t <= 1.2e+154) || !(t <= 2.25e+222)) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((1.6666666666666667 * (c - b))))); tmp = 0.0; if (t <= -3.7e-202) tmp = t_1; elseif (t <= 3.5e-12) tmp = 1.0; elseif ((t <= 1.2e+154) || ~((t <= 2.25e+222))) tmp = t_1; else tmp = x / (x + (y * exp((-2.0 * (a * b))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(1.6666666666666667 * N[(c - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.7e-202], t$95$1, If[LessEqual[t, 3.5e-12], 1.0, If[Or[LessEqual[t, 1.2e+154], N[Not[LessEqual[t, 2.25e+222]], $MachinePrecision]], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{1.6666666666666667 \cdot \left(c - b\right)}}\\
\mathbf{if}\;t \leq -3.7 \cdot 10^{-202}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-12}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{+154} \lor \neg \left(t \leq 2.25 \cdot 10^{+222}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\end{array}
\end{array}
if t < -3.69999999999999991e-202 or 3.5e-12 < t < 1.20000000000000007e154 or 2.24999999999999994e222 < t Initial program 96.6%
Taylor expanded in t around inf 90.1%
+-commutative90.1%
*-commutative90.1%
associate-*r*90.1%
neg-mul-190.1%
neg-sub090.1%
associate--r-90.1%
neg-sub090.1%
+-commutative90.1%
sub-neg90.1%
Simplified90.1%
Taylor expanded in a around 0 79.7%
if -3.69999999999999991e-202 < t < 3.5e-12Initial program 89.5%
Taylor expanded in b around inf 61.6%
associate-*r/61.6%
metadata-eval61.6%
+-commutative61.6%
Simplified61.6%
Taylor expanded in b around 0 36.4%
Taylor expanded in x around inf 58.3%
if 1.20000000000000007e154 < t < 2.24999999999999994e222Initial program 100.0%
Taylor expanded in a around inf 91.9%
Taylor expanded in c around 0 80.0%
associate-*r*80.0%
mul-1-neg80.0%
Simplified80.0%
Taylor expanded in a around inf 80.0%
Final simplification72.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= a -0.00185)
t_1
(if (<= a 1e-233)
(/ x (+ x (* y (exp (* (- c b) 1.6666666666666667)))))
(if (<= a 2.7e-58)
(/ x (+ x (* y (exp (* 2.0 (* 0.6666666666666666 (/ b t)))))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (a * (c - b))))));
double tmp;
if (a <= -0.00185) {
tmp = t_1;
} else if (a <= 1e-233) {
tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667))));
} else if (a <= 2.7e-58) {
tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
if (a <= (-0.00185d0)) then
tmp = t_1
else if (a <= 1d-233) then
tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667d0))))
else if (a <= 2.7d-58) then
tmp = x / (x + (y * exp((2.0d0 * (0.6666666666666666d0 * (b / t))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double tmp;
if (a <= -0.00185) {
tmp = t_1;
} else if (a <= 1e-233) {
tmp = x / (x + (y * Math.exp(((c - b) * 1.6666666666666667))));
} else if (a <= 2.7e-58) {
tmp = x / (x + (y * Math.exp((2.0 * (0.6666666666666666 * (b / t))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) tmp = 0 if a <= -0.00185: tmp = t_1 elif a <= 1e-233: tmp = x / (x + (y * math.exp(((c - b) * 1.6666666666666667)))) elif a <= 2.7e-58: tmp = x / (x + (y * math.exp((2.0 * (0.6666666666666666 * (b / t)))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))) tmp = 0.0 if (a <= -0.00185) tmp = t_1; elseif (a <= 1e-233) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c - b) * 1.6666666666666667))))); elseif (a <= 2.7e-58) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(0.6666666666666666 * Float64(b / t))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (a * (c - b)))))); tmp = 0.0; if (a <= -0.00185) tmp = t_1; elseif (a <= 1e-233) tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667)))); elseif (a <= 2.7e-58) tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t)))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -0.00185], t$95$1, If[LessEqual[a, 1e-233], N[(x / N[(x + N[(y * N[Exp[N[(N[(c - b), $MachinePrecision] * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.7e-58], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(0.6666666666666666 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;a \leq -0.00185:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 10^{-233}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{-58}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(0.6666666666666666 \cdot \frac{b}{t}\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -0.0018500000000000001 or 2.6999999999999999e-58 < a Initial program 92.3%
Taylor expanded in a around inf 80.7%
if -0.0018500000000000001 < a < 9.99999999999999958e-234Initial program 97.4%
Taylor expanded in t around inf 70.3%
+-commutative70.3%
*-commutative70.3%
associate-*r*70.3%
neg-mul-170.3%
neg-sub070.3%
associate--r-70.3%
neg-sub070.3%
+-commutative70.3%
sub-neg70.3%
Simplified70.3%
Taylor expanded in a around 0 70.3%
if 9.99999999999999958e-234 < a < 2.6999999999999999e-58Initial program 96.1%
Taylor expanded in b around inf 71.1%
associate-*r/71.1%
metadata-eval71.1%
+-commutative71.1%
Simplified71.1%
Taylor expanded in t around 0 63.6%
Final simplification74.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -1e-135)
(/ x (+ x (* y (exp (* 1.6666666666666667 (- c b))))))
(if (<= c 5.7e-28)
(/ x (+ x (* y (exp (* -2.0 (* (+ a 0.8333333333333334) b))))))
(/ x (+ x (* y (exp (* c 1.6666666666666667))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1e-135) {
tmp = x / (x + (y * exp((1.6666666666666667 * (c - b)))));
} else if (c <= 5.7e-28) {
tmp = x / (x + (y * exp((-2.0 * ((a + 0.8333333333333334) * b)))));
} else {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-1d-135)) then
tmp = x / (x + (y * exp((1.6666666666666667d0 * (c - b)))))
else if (c <= 5.7d-28) then
tmp = x / (x + (y * exp(((-2.0d0) * ((a + 0.8333333333333334d0) * b)))))
else
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1e-135) {
tmp = x / (x + (y * Math.exp((1.6666666666666667 * (c - b)))));
} else if (c <= 5.7e-28) {
tmp = x / (x + (y * Math.exp((-2.0 * ((a + 0.8333333333333334) * b)))));
} else {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -1e-135: tmp = x / (x + (y * math.exp((1.6666666666666667 * (c - b))))) elif c <= 5.7e-28: tmp = x / (x + (y * math.exp((-2.0 * ((a + 0.8333333333333334) * b))))) else: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -1e-135) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.6666666666666667 * Float64(c - b)))))); elseif (c <= 5.7e-28) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(Float64(a + 0.8333333333333334) * b)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -1e-135) tmp = x / (x + (y * exp((1.6666666666666667 * (c - b))))); elseif (c <= 5.7e-28) tmp = x / (x + (y * exp((-2.0 * ((a + 0.8333333333333334) * b))))); else tmp = x / (x + (y * exp((c * 1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -1e-135], N[(x / N[(x + N[(y * N[Exp[N[(1.6666666666666667 * N[(c - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.7e-28], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1 \cdot 10^{-135}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.6666666666666667 \cdot \left(c - b\right)}}\\
\mathbf{elif}\;c \leq 5.7 \cdot 10^{-28}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot b\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if c < -1e-135Initial program 94.5%
Taylor expanded in t around inf 77.4%
+-commutative77.4%
*-commutative77.4%
associate-*r*77.4%
neg-mul-177.4%
neg-sub077.4%
associate--r-77.4%
neg-sub077.4%
+-commutative77.4%
sub-neg77.4%
Simplified77.4%
Taylor expanded in a around 0 71.3%
if -1e-135 < c < 5.7000000000000004e-28Initial program 95.6%
Taylor expanded in t around inf 68.2%
+-commutative68.2%
*-commutative68.2%
associate-*r*68.2%
neg-mul-168.2%
neg-sub068.2%
associate--r-68.2%
neg-sub068.2%
+-commutative68.2%
sub-neg68.2%
Simplified68.2%
Taylor expanded in c around 0 66.1%
if 5.7000000000000004e-28 < c Initial program 93.0%
Taylor expanded in t around inf 60.3%
+-commutative60.3%
*-commutative60.3%
associate-*r*60.3%
neg-mul-160.3%
neg-sub060.3%
associate--r-60.3%
neg-sub060.3%
+-commutative60.3%
sub-neg60.3%
Simplified60.3%
Taylor expanded in a around 0 58.6%
Taylor expanded in c around inf 67.2%
Final simplification68.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -2.05e+52)
1.0
(if (<= c 1e-102)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= c 5.9e+103)
1.0
(/
x
(+
x
(*
y
(+
(* 2.0 (* c (+ (- a (/ 0.6666666666666666 t)) 0.8333333333333334)))
1.0))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -2.05e+52) {
tmp = 1.0;
} else if (c <= 1e-102) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (c <= 5.9e+103) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))) + 1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-2.05d+52)) then
tmp = 1.0d0
else if (c <= 1d-102) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (c <= 5.9d+103) then
tmp = 1.0d0
else
tmp = x / (x + (y * ((2.0d0 * (c * ((a - (0.6666666666666666d0 / t)) + 0.8333333333333334d0))) + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -2.05e+52) {
tmp = 1.0;
} else if (c <= 1e-102) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (c <= 5.9e+103) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -2.05e+52: tmp = 1.0 elif c <= 1e-102: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif c <= 5.9e+103: tmp = 1.0 else: tmp = x / (x + (y * ((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -2.05e+52) tmp = 1.0; elseif (c <= 1e-102) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (c <= 5.9e+103) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(c * Float64(Float64(a - Float64(0.6666666666666666 / t)) + 0.8333333333333334))) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -2.05e+52) tmp = 1.0; elseif (c <= 1e-102) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (c <= 5.9e+103) tmp = 1.0; else tmp = x / (x + (y * ((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -2.05e+52], 1.0, If[LessEqual[c, 1e-102], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.9e+103], 1.0, N[(x / N[(x + N[(y * N[(N[(2.0 * N[(c * N[(N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.05 \cdot 10^{+52}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 10^{-102}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;c \leq 5.9 \cdot 10^{+103}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(c \cdot \left(\left(a - \frac{0.6666666666666666}{t}\right) + 0.8333333333333334\right)\right) + 1\right)}\\
\end{array}
\end{array}
if c < -2.05e52 or 9.99999999999999933e-103 < c < 5.8999999999999999e103Initial program 91.8%
Taylor expanded in b around inf 59.1%
associate-*r/59.1%
metadata-eval59.1%
+-commutative59.1%
Simplified59.1%
Taylor expanded in b around 0 43.6%
Taylor expanded in x around inf 68.0%
if -2.05e52 < c < 9.99999999999999933e-103Initial program 97.7%
Taylor expanded in t around inf 71.9%
+-commutative71.9%
*-commutative71.9%
associate-*r*71.9%
neg-mul-171.9%
neg-sub071.9%
associate--r-71.9%
neg-sub071.9%
+-commutative71.9%
sub-neg71.9%
Simplified71.9%
Taylor expanded in a around 0 62.5%
Taylor expanded in c around 0 61.8%
if 5.8999999999999999e103 < c Initial program 89.0%
Taylor expanded in c around inf 82.1%
cancel-sign-sub-inv82.1%
+-commutative82.1%
metadata-eval82.1%
associate-*r/82.1%
metadata-eval82.1%
associate-+r+82.1%
Simplified82.1%
Taylor expanded in c around 0 68.1%
associate--l+68.1%
associate-*r/68.1%
metadata-eval68.1%
Simplified68.1%
Final simplification64.9%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -6.6e-35) (/ x (+ x (* y (exp (* b -1.6666666666666667))))) (if (<= b 1.1e-154) (/ x (+ x (* y (exp (* c 1.6666666666666667))))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -6.6e-35) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (b <= 1.1e-154) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-6.6d-35)) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (b <= 1.1d-154) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -6.6e-35) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (b <= 1.1e-154) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -6.6e-35: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif b <= 1.1e-154: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -6.6e-35) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (b <= 1.1e-154) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -6.6e-35) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (b <= 1.1e-154) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -6.6e-35], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.1e-154], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.6 \cdot 10^{-35}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{-154}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -6.6000000000000001e-35Initial program 94.0%
Taylor expanded in t around inf 71.1%
+-commutative71.1%
*-commutative71.1%
associate-*r*71.1%
neg-mul-171.1%
neg-sub071.1%
associate--r-71.1%
neg-sub071.1%
+-commutative71.1%
sub-neg71.1%
Simplified71.1%
Taylor expanded in a around 0 61.0%
Taylor expanded in c around 0 62.5%
if -6.6000000000000001e-35 < b < 1.10000000000000004e-154Initial program 97.0%
Taylor expanded in t around inf 72.3%
+-commutative72.3%
*-commutative72.3%
associate-*r*72.3%
neg-mul-172.3%
neg-sub072.3%
associate--r-72.3%
neg-sub072.3%
+-commutative72.3%
sub-neg72.3%
Simplified72.3%
Taylor expanded in a around 0 63.6%
Taylor expanded in c around inf 63.6%
if 1.10000000000000004e-154 < b Initial program 92.3%
Taylor expanded in b around inf 76.4%
associate-*r/76.4%
metadata-eval76.4%
+-commutative76.4%
Simplified76.4%
Taylor expanded in b around 0 40.9%
Taylor expanded in x around inf 64.5%
Final simplification63.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -5e-27)
1.0
(if (<= c -2.1e-74)
(/
x
(+
x
(*
y
(-
1.0
(*
2.0
(* b (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t))))))))
(if (<= c 5.5e+104)
1.0
(/
x
(+
x
(*
y
(+
(* 2.0 (* c (+ (- a (/ 0.6666666666666666 t)) 0.8333333333333334)))
1.0))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -5e-27) {
tmp = 1.0;
} else if (c <= -2.1e-74) {
tmp = x / (x + (y * (1.0 - (2.0 * (b * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else if (c <= 5.5e+104) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))) + 1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-5d-27)) then
tmp = 1.0d0
else if (c <= (-2.1d-74)) then
tmp = x / (x + (y * (1.0d0 - (2.0d0 * (b * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t)))))))
else if (c <= 5.5d+104) then
tmp = 1.0d0
else
tmp = x / (x + (y * ((2.0d0 * (c * ((a - (0.6666666666666666d0 / t)) + 0.8333333333333334d0))) + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -5e-27) {
tmp = 1.0;
} else if (c <= -2.1e-74) {
tmp = x / (x + (y * (1.0 - (2.0 * (b * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else if (c <= 5.5e+104) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -5e-27: tmp = 1.0 elif c <= -2.1e-74: tmp = x / (x + (y * (1.0 - (2.0 * (b * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))) elif c <= 5.5e+104: tmp = 1.0 else: tmp = x / (x + (y * ((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -5e-27) tmp = 1.0; elseif (c <= -2.1e-74) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(2.0 * Float64(b * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t)))))))); elseif (c <= 5.5e+104) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(c * Float64(Float64(a - Float64(0.6666666666666666 / t)) + 0.8333333333333334))) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -5e-27) tmp = 1.0; elseif (c <= -2.1e-74) tmp = x / (x + (y * (1.0 - (2.0 * (b * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))); elseif (c <= 5.5e+104) tmp = 1.0; else tmp = x / (x + (y * ((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -5e-27], 1.0, If[LessEqual[c, -2.1e-74], N[(x / N[(x + N[(y * N[(1.0 - N[(2.0 * N[(b * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.5e+104], 1.0, N[(x / N[(x + N[(y * N[(N[(2.0 * N[(c * N[(N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -5 \cdot 10^{-27}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -2.1 \cdot 10^{-74}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - 2 \cdot \left(b \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)\right)}\\
\mathbf{elif}\;c \leq 5.5 \cdot 10^{+104}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(c \cdot \left(\left(a - \frac{0.6666666666666666}{t}\right) + 0.8333333333333334\right)\right) + 1\right)}\\
\end{array}
\end{array}
if c < -5.0000000000000002e-27 or -2.1e-74 < c < 5.50000000000000017e104Initial program 94.9%
Taylor expanded in b around inf 68.9%
associate-*r/68.9%
metadata-eval68.9%
+-commutative68.9%
Simplified68.9%
Taylor expanded in b around 0 42.3%
Taylor expanded in x around inf 59.8%
if -5.0000000000000002e-27 < c < -2.1e-74Initial program 100.0%
Taylor expanded in b around inf 84.6%
associate-*r/84.6%
metadata-eval84.6%
+-commutative84.6%
Simplified84.6%
Taylor expanded in b around 0 71.9%
associate-*r/71.9%
metadata-eval71.9%
Simplified71.9%
if 5.50000000000000017e104 < c Initial program 89.0%
Taylor expanded in c around inf 82.1%
cancel-sign-sub-inv82.1%
+-commutative82.1%
metadata-eval82.1%
associate-*r/82.1%
metadata-eval82.1%
associate-+r+82.1%
Simplified82.1%
Taylor expanded in c around 0 68.1%
associate--l+68.1%
associate-*r/68.1%
metadata-eval68.1%
Simplified68.1%
Final simplification61.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -6e-27)
1.0
(if (<= c -8.5e-74)
(/
x
(+
x
(*
y
(-
1.0
(*
2.0
(* b (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t))))))))
(if (<= c 7.2e+103)
1.0
(/ x (+ x (+ y (* -1.3333333333333333 (/ (* y c) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -6e-27) {
tmp = 1.0;
} else if (c <= -8.5e-74) {
tmp = x / (x + (y * (1.0 - (2.0 * (b * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else if (c <= 7.2e+103) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (-1.3333333333333333 * ((y * c) / t))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-6d-27)) then
tmp = 1.0d0
else if (c <= (-8.5d-74)) then
tmp = x / (x + (y * (1.0d0 - (2.0d0 * (b * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t)))))))
else if (c <= 7.2d+103) then
tmp = 1.0d0
else
tmp = x / (x + (y + ((-1.3333333333333333d0) * ((y * c) / t))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -6e-27) {
tmp = 1.0;
} else if (c <= -8.5e-74) {
tmp = x / (x + (y * (1.0 - (2.0 * (b * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else if (c <= 7.2e+103) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (-1.3333333333333333 * ((y * c) / t))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -6e-27: tmp = 1.0 elif c <= -8.5e-74: tmp = x / (x + (y * (1.0 - (2.0 * (b * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))) elif c <= 7.2e+103: tmp = 1.0 else: tmp = x / (x + (y + (-1.3333333333333333 * ((y * c) / t)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -6e-27) tmp = 1.0; elseif (c <= -8.5e-74) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(2.0 * Float64(b * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t)))))))); elseif (c <= 7.2e+103) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y + Float64(-1.3333333333333333 * Float64(Float64(y * c) / t))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -6e-27) tmp = 1.0; elseif (c <= -8.5e-74) tmp = x / (x + (y * (1.0 - (2.0 * (b * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))); elseif (c <= 7.2e+103) tmp = 1.0; else tmp = x / (x + (y + (-1.3333333333333333 * ((y * c) / t)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -6e-27], 1.0, If[LessEqual[c, -8.5e-74], N[(x / N[(x + N[(y * N[(1.0 - N[(2.0 * N[(b * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.2e+103], 1.0, N[(x / N[(x + N[(y + N[(-1.3333333333333333 * N[(N[(y * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -6 \cdot 10^{-27}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -8.5 \cdot 10^{-74}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - 2 \cdot \left(b \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)\right)}\\
\mathbf{elif}\;c \leq 7.2 \cdot 10^{+103}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + -1.3333333333333333 \cdot \frac{y \cdot c}{t}\right)}\\
\end{array}
\end{array}
if c < -6.0000000000000002e-27 or -8.50000000000000052e-74 < c < 7.20000000000000033e103Initial program 94.9%
Taylor expanded in b around inf 68.9%
associate-*r/68.9%
metadata-eval68.9%
+-commutative68.9%
Simplified68.9%
Taylor expanded in b around 0 42.3%
Taylor expanded in x around inf 59.8%
if -6.0000000000000002e-27 < c < -8.50000000000000052e-74Initial program 100.0%
Taylor expanded in b around inf 84.6%
associate-*r/84.6%
metadata-eval84.6%
+-commutative84.6%
Simplified84.6%
Taylor expanded in b around 0 71.9%
associate-*r/71.9%
metadata-eval71.9%
Simplified71.9%
if 7.20000000000000033e103 < c Initial program 89.0%
Taylor expanded in c around inf 82.1%
cancel-sign-sub-inv82.1%
+-commutative82.1%
metadata-eval82.1%
associate-*r/82.1%
metadata-eval82.1%
associate-+r+82.1%
Simplified82.1%
Taylor expanded in t around 0 42.6%
*-commutative42.6%
associate-*l/42.6%
associate-*r/42.6%
Simplified42.6%
Taylor expanded in c around 0 54.0%
Final simplification59.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -1.7e-26)
1.0
(if (<= c -1.3e-74)
(/ x (+ x (+ y (* b (* 2.0 (* y a))))))
(if (<= c 1.06e+104)
1.0
(/ x (+ x (+ y (* -1.3333333333333333 (/ (* y c) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1.7e-26) {
tmp = 1.0;
} else if (c <= -1.3e-74) {
tmp = x / (x + (y + (b * (2.0 * (y * a)))));
} else if (c <= 1.06e+104) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (-1.3333333333333333 * ((y * c) / t))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-1.7d-26)) then
tmp = 1.0d0
else if (c <= (-1.3d-74)) then
tmp = x / (x + (y + (b * (2.0d0 * (y * a)))))
else if (c <= 1.06d+104) then
tmp = 1.0d0
else
tmp = x / (x + (y + ((-1.3333333333333333d0) * ((y * c) / t))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1.7e-26) {
tmp = 1.0;
} else if (c <= -1.3e-74) {
tmp = x / (x + (y + (b * (2.0 * (y * a)))));
} else if (c <= 1.06e+104) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (-1.3333333333333333 * ((y * c) / t))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -1.7e-26: tmp = 1.0 elif c <= -1.3e-74: tmp = x / (x + (y + (b * (2.0 * (y * a))))) elif c <= 1.06e+104: tmp = 1.0 else: tmp = x / (x + (y + (-1.3333333333333333 * ((y * c) / t)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -1.7e-26) tmp = 1.0; elseif (c <= -1.3e-74) tmp = Float64(x / Float64(x + Float64(y + Float64(b * Float64(2.0 * Float64(y * a)))))); elseif (c <= 1.06e+104) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y + Float64(-1.3333333333333333 * Float64(Float64(y * c) / t))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -1.7e-26) tmp = 1.0; elseif (c <= -1.3e-74) tmp = x / (x + (y + (b * (2.0 * (y * a))))); elseif (c <= 1.06e+104) tmp = 1.0; else tmp = x / (x + (y + (-1.3333333333333333 * ((y * c) / t)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -1.7e-26], 1.0, If[LessEqual[c, -1.3e-74], N[(x / N[(x + N[(y + N[(b * N[(2.0 * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.06e+104], 1.0, N[(x / N[(x + N[(y + N[(-1.3333333333333333 * N[(N[(y * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.7 \cdot 10^{-26}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.3 \cdot 10^{-74}:\\
\;\;\;\;\frac{x}{x + \left(y + b \cdot \left(2 \cdot \left(y \cdot a\right)\right)\right)}\\
\mathbf{elif}\;c \leq 1.06 \cdot 10^{+104}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + -1.3333333333333333 \cdot \frac{y \cdot c}{t}\right)}\\
\end{array}
\end{array}
if c < -1.70000000000000007e-26 or -1.3e-74 < c < 1.05999999999999994e104Initial program 94.9%
Taylor expanded in b around inf 68.9%
associate-*r/68.9%
metadata-eval68.9%
+-commutative68.9%
Simplified68.9%
Taylor expanded in b around 0 42.3%
Taylor expanded in x around inf 59.8%
if -1.70000000000000007e-26 < c < -1.3e-74Initial program 100.0%
Taylor expanded in b around inf 84.6%
associate-*r/84.6%
metadata-eval84.6%
+-commutative84.6%
Simplified84.6%
Taylor expanded in b around 0 61.5%
Taylor expanded in a around inf 59.0%
mul-1-neg59.0%
*-commutative59.0%
distribute-rgt-neg-in59.0%
Simplified59.0%
expm1-log1p-u52.1%
expm1-udef52.1%
*-commutative52.1%
add-sqr-sqrt0.5%
sqrt-unprod32.1%
sqr-neg32.1%
sqrt-unprod38.1%
add-sqr-sqrt38.6%
Applied egg-rr38.6%
expm1-def38.6%
expm1-log1p59.0%
associate-*l*59.0%
Simplified59.0%
if 1.05999999999999994e104 < c Initial program 89.0%
Taylor expanded in c around inf 82.1%
cancel-sign-sub-inv82.1%
+-commutative82.1%
metadata-eval82.1%
associate-*r/82.1%
metadata-eval82.1%
associate-+r+82.1%
Simplified82.1%
Taylor expanded in t around 0 42.6%
*-commutative42.6%
associate-*l/42.6%
associate-*r/42.6%
Simplified42.6%
Taylor expanded in c around 0 54.0%
Final simplification59.1%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 4.4e+104) 1.0 (/ x (+ x (+ y (* -1.3333333333333333 (/ (* y c) t)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 4.4e+104) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (-1.3333333333333333 * ((y * c) / t))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 4.4d+104) then
tmp = 1.0d0
else
tmp = x / (x + (y + ((-1.3333333333333333d0) * ((y * c) / t))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 4.4e+104) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (-1.3333333333333333 * ((y * c) / t))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 4.4e+104: tmp = 1.0 else: tmp = x / (x + (y + (-1.3333333333333333 * ((y * c) / t)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 4.4e+104) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y + Float64(-1.3333333333333333 * Float64(Float64(y * c) / t))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 4.4e+104) tmp = 1.0; else tmp = x / (x + (y + (-1.3333333333333333 * ((y * c) / t)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 4.4e+104], 1.0, N[(x / N[(x + N[(y + N[(-1.3333333333333333 * N[(N[(y * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 4.4 \cdot 10^{+104}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + -1.3333333333333333 \cdot \frac{y \cdot c}{t}\right)}\\
\end{array}
\end{array}
if c < 4.40000000000000001e104Initial program 95.2%
Taylor expanded in b around inf 69.9%
associate-*r/69.9%
metadata-eval69.9%
+-commutative69.9%
Simplified69.9%
Taylor expanded in b around 0 42.5%
Taylor expanded in x around inf 57.7%
if 4.40000000000000001e104 < c Initial program 89.0%
Taylor expanded in c around inf 82.1%
cancel-sign-sub-inv82.1%
+-commutative82.1%
metadata-eval82.1%
associate-*r/82.1%
metadata-eval82.1%
associate-+r+82.1%
Simplified82.1%
Taylor expanded in t around 0 42.6%
*-commutative42.6%
associate-*l/42.6%
associate-*r/42.6%
Simplified42.6%
Taylor expanded in c around 0 54.0%
Final simplification57.3%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 1.8e+156) 1.0 (/ x (+ y (* -1.3333333333333333 (/ c (/ t y)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.8e+156) {
tmp = 1.0;
} else {
tmp = x / (y + (-1.3333333333333333 * (c / (t / y))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 1.8d+156) then
tmp = 1.0d0
else
tmp = x / (y + ((-1.3333333333333333d0) * (c / (t / y))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.8e+156) {
tmp = 1.0;
} else {
tmp = x / (y + (-1.3333333333333333 * (c / (t / y))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 1.8e+156: tmp = 1.0 else: tmp = x / (y + (-1.3333333333333333 * (c / (t / y)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 1.8e+156) tmp = 1.0; else tmp = Float64(x / Float64(y + Float64(-1.3333333333333333 * Float64(c / Float64(t / y))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 1.8e+156) tmp = 1.0; else tmp = x / (y + (-1.3333333333333333 * (c / (t / y)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 1.8e+156], 1.0, N[(x / N[(y + N[(-1.3333333333333333 * N[(c / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 1.8 \cdot 10^{+156}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y + -1.3333333333333333 \cdot \frac{c}{\frac{t}{y}}}\\
\end{array}
\end{array}
if c < 1.79999999999999989e156Initial program 95.4%
Taylor expanded in b around inf 68.9%
associate-*r/68.9%
metadata-eval68.9%
+-commutative68.9%
Simplified68.9%
Taylor expanded in b around 0 42.4%
Taylor expanded in x around inf 56.4%
if 1.79999999999999989e156 < c Initial program 81.4%
Taylor expanded in c around inf 93.9%
cancel-sign-sub-inv93.9%
+-commutative93.9%
metadata-eval93.9%
associate-*r/93.9%
metadata-eval93.9%
associate-+r+93.9%
Simplified93.9%
Taylor expanded in t around 0 45.5%
*-commutative45.5%
associate-*l/45.5%
associate-*r/45.5%
Simplified45.5%
Taylor expanded in x around 0 32.4%
Taylor expanded in c around 0 63.6%
associate-/l*63.6%
Simplified63.6%
Final simplification56.9%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 2.45e+105) 1.0 (/ x (+ y (* -1.3333333333333333 (/ (* y c) t))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 2.45e+105) {
tmp = 1.0;
} else {
tmp = x / (y + (-1.3333333333333333 * ((y * c) / t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 2.45d+105) then
tmp = 1.0d0
else
tmp = x / (y + ((-1.3333333333333333d0) * ((y * c) / t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 2.45e+105) {
tmp = 1.0;
} else {
tmp = x / (y + (-1.3333333333333333 * ((y * c) / t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 2.45e+105: tmp = 1.0 else: tmp = x / (y + (-1.3333333333333333 * ((y * c) / t))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 2.45e+105) tmp = 1.0; else tmp = Float64(x / Float64(y + Float64(-1.3333333333333333 * Float64(Float64(y * c) / t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 2.45e+105) tmp = 1.0; else tmp = x / (y + (-1.3333333333333333 * ((y * c) / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 2.45e+105], 1.0, N[(x / N[(y + N[(-1.3333333333333333 * N[(N[(y * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 2.45 \cdot 10^{+105}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y + -1.3333333333333333 \cdot \frac{y \cdot c}{t}}\\
\end{array}
\end{array}
if c < 2.45e105Initial program 95.2%
Taylor expanded in b around inf 69.9%
associate-*r/69.9%
metadata-eval69.9%
+-commutative69.9%
Simplified69.9%
Taylor expanded in b around 0 42.5%
Taylor expanded in x around inf 57.7%
if 2.45e105 < c Initial program 89.0%
Taylor expanded in c around inf 82.1%
cancel-sign-sub-inv82.1%
+-commutative82.1%
metadata-eval82.1%
associate-*r/82.1%
metadata-eval82.1%
associate-+r+82.1%
Simplified82.1%
Taylor expanded in t around 0 42.6%
*-commutative42.6%
associate-*l/42.6%
associate-*r/42.6%
Simplified42.6%
Taylor expanded in x around 0 27.4%
Taylor expanded in c around 0 53.8%
Final simplification57.3%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 1.8e+92) 1.0 (/ x (+ x y))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.8e+92) {
tmp = 1.0;
} else {
tmp = x / (x + y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 1.8d+92) then
tmp = 1.0d0
else
tmp = x / (x + y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.8e+92) {
tmp = 1.0;
} else {
tmp = x / (x + y);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 1.8e+92: tmp = 1.0 else: tmp = x / (x + y) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 1.8e+92) tmp = 1.0; else tmp = Float64(x / Float64(x + y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 1.8e+92) tmp = 1.0; else tmp = x / (x + y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 1.8e+92], 1.0, N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 1.8 \cdot 10^{+92}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y}\\
\end{array}
\end{array}
if c < 1.8e92Initial program 95.1%
Taylor expanded in b around inf 70.4%
associate-*r/70.4%
metadata-eval70.4%
+-commutative70.4%
Simplified70.4%
Taylor expanded in b around 0 42.2%
Taylor expanded in x around inf 57.6%
if 1.8e92 < c Initial program 90.1%
Taylor expanded in b around inf 38.9%
associate-*r/38.9%
metadata-eval38.9%
+-commutative38.9%
Simplified38.9%
Taylor expanded in b around 0 39.1%
Final simplification55.4%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 94.6%
Taylor expanded in b around inf 66.7%
associate-*r/66.7%
metadata-eval66.7%
+-commutative66.7%
Simplified66.7%
Taylor expanded in b around 0 41.8%
Taylor expanded in x around inf 53.9%
Final simplification53.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* z (sqrt (+ t a)))) (t_2 (- a (/ 5.0 6.0))))
(if (< t -2.118326644891581e-50)
(/
x
(+
x
(* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b)))))))
(if (< t 5.196588770651547e-123)
(/
x
(+
x
(*
y
(exp
(*
2.0
(/
(-
(* t_1 (* (* 3.0 t) t_2))
(*
(- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0)
(* t_2 (* (- b c) t))))
(* (* (* t t) 3.0) t_2)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ t_1 t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = z * sqrt((t + a));
double t_2 = a - (5.0 / 6.0);
double tmp;
if (t < -2.118326644891581e-50) {
tmp = x / (x + (y * exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b))))));
} else if (t < 5.196588770651547e-123) {
tmp = x / (x + (y * exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * sqrt((t + a))
t_2 = a - (5.0d0 / 6.0d0)
if (t < (-2.118326644891581d-50)) then
tmp = x / (x + (y * exp((2.0d0 * (((a * c) + (0.8333333333333334d0 * c)) - (a * b))))))
else if (t < 5.196588770651547d-123) then
tmp = x / (x + (y * exp((2.0d0 * (((t_1 * ((3.0d0 * t) * t_2)) - (((((5.0d0 / 6.0d0) + a) * (3.0d0 * t)) - 2.0d0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0d0) * t_2))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((t_1 / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = z * Math.sqrt((t + a));
double t_2 = a - (5.0 / 6.0);
double tmp;
if (t < -2.118326644891581e-50) {
tmp = x / (x + (y * Math.exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b))))));
} else if (t < 5.196588770651547e-123) {
tmp = x / (x + (y * Math.exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = z * math.sqrt((t + a)) t_2 = a - (5.0 / 6.0) tmp = 0 if t < -2.118326644891581e-50: tmp = x / (x + (y * math.exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b)))))) elif t < 5.196588770651547e-123: tmp = x / (x + (y * math.exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2)))))) else: tmp = x / (x + (y * math.exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(z * sqrt(Float64(t + a))) t_2 = Float64(a - Float64(5.0 / 6.0)) tmp = 0.0 if (t < -2.118326644891581e-50) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(a * c) + Float64(0.8333333333333334 * c)) - Float64(a * b))))))); elseif (t < 5.196588770651547e-123) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(t_1 * Float64(Float64(3.0 * t) * t_2)) - Float64(Float64(Float64(Float64(Float64(5.0 / 6.0) + a) * Float64(3.0 * t)) - 2.0) * Float64(t_2 * Float64(Float64(b - c) * t)))) / Float64(Float64(Float64(t * t) * 3.0) * t_2))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(t_1 / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = z * sqrt((t + a)); t_2 = a - (5.0 / 6.0); tmp = 0.0; if (t < -2.118326644891581e-50) tmp = x / (x + (y * exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b)))))); elseif (t < 5.196588770651547e-123) tmp = x / (x + (y * exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2)))))); else tmp = x / (x + (y * exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a - N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -2.118326644891581e-50], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(a * c), $MachinePrecision] + N[(0.8333333333333334 * c), $MachinePrecision]), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[t, 5.196588770651547e-123], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(t$95$1 * N[(N[(3.0 * t), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(N[(N[(5.0 / 6.0), $MachinePrecision] + a), $MachinePrecision] * N[(3.0 * t), $MachinePrecision]), $MachinePrecision] - 2.0), $MachinePrecision] * N[(t$95$2 * N[(N[(b - c), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(t * t), $MachinePrecision] * 3.0), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(t$95$1 / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \sqrt{t + a}\\
t_2 := a - \frac{5}{6}\\
\mathbf{if}\;t < -2.118326644891581 \cdot 10^{-50}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a \cdot c + 0.8333333333333334 \cdot c\right) - a \cdot b\right)}}\\
\mathbf{elif}\;t < 5.196588770651547 \cdot 10^{-123}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{t_1 \cdot \left(\left(3 \cdot t\right) \cdot t_2\right) - \left(\left(\frac{5}{6} + a\right) \cdot \left(3 \cdot t\right) - 2\right) \cdot \left(t_2 \cdot \left(\left(b - c\right) \cdot t\right)\right)}{\left(\left(t \cdot t\right) \cdot 3\right) \cdot t_2}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{t_1}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}\\
\end{array}
\end{array}
herbie shell --seed 2024010
(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)))))))))))