
(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 22 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 (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/
x
(-
x
(*
y
(-
-1.0
(*
(* 2.0 b)
(- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((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 * (-1.0 - ((2.0 * b) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * Math.sqrt((t + a))) / t) + ((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 * (-1.0 - ((2.0 * b) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((t + a))) / t) + ((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 * (-1.0 - ((2.0 * b) * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(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 * Float64(-1.0 - Float64(Float64(2.0 * b) * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((t + a))) / t) + ((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 * (-1.0 - ((2.0 * b) * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(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[(-1.0 - N[(N[(2.0 * b), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t\_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - \left(2 \cdot b\right) \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < +inf.0Initial program 99.2%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 0.0%
Taylor expanded in b around inf 62.7%
associate-*r/62.7%
metadata-eval62.7%
+-commutative62.7%
Simplified62.7%
Taylor expanded in b around 0 70.6%
associate-*r*70.6%
associate-*r/70.6%
metadata-eval70.6%
+-commutative70.6%
*-commutative70.6%
+-commutative70.6%
*-commutative70.6%
Simplified70.6%
Final simplification97.7%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
z
(/ (sqrt (+ t a)) t)
(* (+ a (- 0.8333333333333334 (/ 0.6666666666666666 t))) (- c b))))
x)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / fma(y, pow(exp(2.0), fma(z, (sqrt((t + a)) / t), ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * (c - b)))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(z, Float64(sqrt(Float64(t + a)) / t), Float64(Float64(a + Float64(0.8333333333333334 - Float64(0.6666666666666666 / t))) * Float64(c - b)))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(z * N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] / t), $MachinePrecision] + N[(N[(a + N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(z, \frac{\sqrt{t + a}}{t}, \left(a + \left(0.8333333333333334 - \frac{0.6666666666666666}{t}\right)\right) \cdot \left(c - b\right)\right)\right)}, x\right)}
\end{array}
Initial program 94.2%
Simplified96.6%
Final simplification96.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 5.2e-281)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 1.8e-97)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
a
(*
b
(+
-1.0
(/ (+ (/ 0.6666666666666666 t) -0.8333333333333334) a)))))))))
(if (<= t 6e-64)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t))))))))
(if (<= t 3.5e-31)
(/ x (+ x (* y (exp (* 2.0 (/ (* 0.6666666666666666 b) t))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (+ a 0.8333333333333334) (- c b)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 5.2e-281) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 1.8e-97) {
tmp = x / (x + (y * exp((2.0 * (a * (b * (-1.0 + (((0.6666666666666666 / t) + -0.8333333333333334) / a))))))));
} else if (t <= 6e-64) {
tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else if (t <= 3.5e-31) {
tmp = x / (x + (y * exp((2.0 * ((0.6666666666666666 * b) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 5.2d-281) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 1.8d-97) then
tmp = x / (x + (y * exp((2.0d0 * (a * (b * ((-1.0d0) + (((0.6666666666666666d0 / t) + (-0.8333333333333334d0)) / a))))))))
else if (t <= 6d-64) then
tmp = x / (x + (y * exp((2.0d0 * (c * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t)))))))
else if (t <= 3.5d-31) then
tmp = x / (x + (y * exp((2.0d0 * ((0.6666666666666666d0 * b) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((a + 0.8333333333333334d0) * (c - b)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 5.2e-281) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 1.8e-97) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (b * (-1.0 + (((0.6666666666666666 / t) + -0.8333333333333334) / a))))))));
} else if (t <= 6e-64) {
tmp = x / (x + (y * Math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else if (t <= 3.5e-31) {
tmp = x / (x + (y * Math.exp((2.0 * ((0.6666666666666666 * b) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 5.2e-281: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 1.8e-97: tmp = x / (x + (y * math.exp((2.0 * (a * (b * (-1.0 + (((0.6666666666666666 / t) + -0.8333333333333334) / a)))))))) elif t <= 6e-64: tmp = x / (x + (y * math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))) elif t <= 3.5e-31: tmp = x / (x + (y * math.exp((2.0 * ((0.6666666666666666 * b) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 5.2e-281) 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.8e-97) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(b * Float64(-1.0 + Float64(Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334) / a))))))))); elseif (t <= 6e-64) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t)))))))); elseif (t <= 3.5e-31) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(0.6666666666666666 * b) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(a + 0.8333333333333334) * Float64(c - b)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 5.2e-281) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 1.8e-97) tmp = x / (x + (y * exp((2.0 * (a * (b * (-1.0 + (((0.6666666666666666 / t) + -0.8333333333333334) / a)))))))); elseif (t <= 6e-64) tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))); elseif (t <= 3.5e-31) tmp = x / (x + (y * exp((2.0 * ((0.6666666666666666 * b) / t))))); else tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 5.2e-281], 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.8e-97], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(b * N[(-1.0 + N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6e-64], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e-31], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(0.6666666666666666 * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 5.2 \cdot 10^{-281}:\\
\;\;\;\;\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.8 \cdot 10^{-97}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(b \cdot \left(-1 + \frac{\frac{0.6666666666666666}{t} + -0.8333333333333334}{a}\right)\right)\right)}}\\
\mathbf{elif}\;t \leq 6 \cdot 10^{-64}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)}}\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-31}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{0.6666666666666666 \cdot b}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 5.2000000000000001e-281Initial program 89.9%
Taylor expanded in t around 0 86.7%
if 5.2000000000000001e-281 < t < 1.79999999999999999e-97Initial program 93.1%
Taylor expanded in b around inf 71.8%
associate-*r/71.8%
metadata-eval71.8%
+-commutative71.8%
Simplified71.8%
Taylor expanded in a around inf 68.4%
*-commutative68.4%
associate-/l*76.8%
distribute-lft-out76.8%
sub-neg76.8%
associate-*r/76.8%
metadata-eval76.8%
metadata-eval76.8%
Simplified76.8%
if 1.79999999999999999e-97 < t < 6.0000000000000001e-64Initial program 100.0%
Taylor expanded in c around inf 89.2%
+-commutative89.2%
associate-*r/89.2%
metadata-eval89.2%
Simplified89.2%
if 6.0000000000000001e-64 < t < 3.49999999999999985e-31Initial program 100.0%
Taylor expanded in b around inf 73.8%
associate-*r/73.8%
metadata-eval73.8%
+-commutative73.8%
Simplified73.8%
Taylor expanded in t around 0 73.8%
associate-*r/73.8%
*-commutative73.8%
Simplified73.8%
if 3.49999999999999985e-31 < t Initial program 97.0%
Taylor expanded in t around inf 100.0%
Final simplification89.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -170.0)
(/ x (* y (exp (* b -1.6666666666666667))))
(if (<= b -2.2e-209)
1.0
(if (<= b -1.7e-271)
(/
x
(-
x
(-
(*
2.0
(/
(-
(* b (* t (* y (+ a 0.8333333333333334))))
(* 0.6666666666666666 (* y b)))
t))
y)))
(if (or (<= b 3.6e-176)
(and (not (<= b 3.8e-54)) (<= b 120000000000.0)))
(/ 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 <= -170.0) {
tmp = x / (y * exp((b * -1.6666666666666667)));
} else if (b <= -2.2e-209) {
tmp = 1.0;
} else if (b <= -1.7e-271) {
tmp = x / (x - ((2.0 * (((b * (t * (y * (a + 0.8333333333333334)))) - (0.6666666666666666 * (y * b))) / t)) - y));
} else if ((b <= 3.6e-176) || (!(b <= 3.8e-54) && (b <= 120000000000.0))) {
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 <= (-170.0d0)) then
tmp = x / (y * exp((b * (-1.6666666666666667d0))))
else if (b <= (-2.2d-209)) then
tmp = 1.0d0
else if (b <= (-1.7d-271)) then
tmp = x / (x - ((2.0d0 * (((b * (t * (y * (a + 0.8333333333333334d0)))) - (0.6666666666666666d0 * (y * b))) / t)) - y))
else if ((b <= 3.6d-176) .or. (.not. (b <= 3.8d-54)) .and. (b <= 120000000000.0d0)) 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 <= -170.0) {
tmp = x / (y * Math.exp((b * -1.6666666666666667)));
} else if (b <= -2.2e-209) {
tmp = 1.0;
} else if (b <= -1.7e-271) {
tmp = x / (x - ((2.0 * (((b * (t * (y * (a + 0.8333333333333334)))) - (0.6666666666666666 * (y * b))) / t)) - y));
} else if ((b <= 3.6e-176) || (!(b <= 3.8e-54) && (b <= 120000000000.0))) {
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 <= -170.0: tmp = x / (y * math.exp((b * -1.6666666666666667))) elif b <= -2.2e-209: tmp = 1.0 elif b <= -1.7e-271: tmp = x / (x - ((2.0 * (((b * (t * (y * (a + 0.8333333333333334)))) - (0.6666666666666666 * (y * b))) / t)) - y)) elif (b <= 3.6e-176) or (not (b <= 3.8e-54) and (b <= 120000000000.0)): 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 <= -170.0) tmp = Float64(x / Float64(y * exp(Float64(b * -1.6666666666666667)))); elseif (b <= -2.2e-209) tmp = 1.0; elseif (b <= -1.7e-271) tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(Float64(Float64(b * Float64(t * Float64(y * Float64(a + 0.8333333333333334)))) - Float64(0.6666666666666666 * Float64(y * b))) / t)) - y))); elseif ((b <= 3.6e-176) || (!(b <= 3.8e-54) && (b <= 120000000000.0))) 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 <= -170.0) tmp = x / (y * exp((b * -1.6666666666666667))); elseif (b <= -2.2e-209) tmp = 1.0; elseif (b <= -1.7e-271) tmp = x / (x - ((2.0 * (((b * (t * (y * (a + 0.8333333333333334)))) - (0.6666666666666666 * (y * b))) / t)) - y)); elseif ((b <= 3.6e-176) || (~((b <= 3.8e-54)) && (b <= 120000000000.0))) 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, -170.0], N[(x / N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.2e-209], 1.0, If[LessEqual[b, -1.7e-271], N[(x / N[(x - N[(N[(2.0 * N[(N[(N[(b * N[(t * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(0.6666666666666666 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 3.6e-176], And[N[Not[LessEqual[b, 3.8e-54]], $MachinePrecision], LessEqual[b, 120000000000.0]]], 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 -170:\\
\;\;\;\;\frac{x}{y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b \leq -2.2 \cdot 10^{-209}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -1.7 \cdot 10^{-271}:\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \frac{b \cdot \left(t \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right)\right) - 0.6666666666666666 \cdot \left(y \cdot b\right)}{t} - y\right)}\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{-176} \lor \neg \left(b \leq 3.8 \cdot 10^{-54}\right) \land b \leq 120000000000:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -170Initial program 89.5%
Taylor expanded in b around inf 88.1%
associate-*r/88.1%
metadata-eval88.1%
+-commutative88.1%
Simplified88.1%
Taylor expanded in t around inf 69.4%
mul-1-neg69.4%
+-commutative69.4%
distribute-rgt-neg-in69.4%
+-commutative69.4%
mul-1-neg69.4%
distribute-lft-in69.4%
metadata-eval69.4%
mul-1-neg69.4%
unsub-neg69.4%
Simplified69.4%
Taylor expanded in a around 0 67.7%
Taylor expanded in x around 0 67.7%
if -170 < b < -2.2000000000000001e-209 or 3.6000000000000003e-176 < b < 3.8000000000000002e-54 or 1.2e11 < b Initial program 93.8%
Taylor expanded in b around inf 73.8%
associate-*r/73.8%
metadata-eval73.8%
+-commutative73.8%
Simplified73.8%
Taylor expanded in b around 0 38.3%
Taylor expanded in x around inf 64.4%
if -2.2000000000000001e-209 < b < -1.7e-271Initial program 92.9%
Taylor expanded in b around inf 24.7%
associate-*r/24.7%
metadata-eval24.7%
+-commutative24.7%
Simplified24.7%
Taylor expanded in b around 0 51.8%
associate-*r*31.6%
associate-*r/31.6%
metadata-eval31.6%
Simplified31.6%
Taylor expanded in t around 0 65.5%
if -1.7e-271 < b < 3.6000000000000003e-176 or 3.8000000000000002e-54 < b < 1.2e11Initial program 100.0%
Taylor expanded in c around inf 84.3%
+-commutative84.3%
associate-*r/84.3%
metadata-eval84.3%
Simplified84.3%
Taylor expanded in t around inf 75.8%
associate-*r*75.8%
Simplified75.8%
Taylor expanded in a around 0 74.0%
*-commutative74.0%
Simplified74.0%
Final simplification67.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (/ (* 0.6666666666666666 b) t))))))))
(if (<= t -1.1e-73)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= t 3.5e-199)
t_1
(if (<= t 3.4e-167)
(/ x (+ x (* y (exp (* 2.0 (* a (- b)))))))
(if (<= t 5.6e-91)
t_1
(if (<= t 2.35e+123)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
(/
x
(+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((0.6666666666666666 * b) / t)))));
double tmp;
if (t <= -1.1e-73) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (t <= 3.5e-199) {
tmp = t_1;
} else if (t <= 3.4e-167) {
tmp = x / (x + (y * exp((2.0 * (a * -b)))));
} else if (t <= 5.6e-91) {
tmp = t_1;
} else if (t <= 2.35e+123) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((0.6666666666666666d0 * b) / t)))))
if (t <= (-1.1d-73)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (t <= 3.5d-199) then
tmp = t_1
else if (t <= 3.4d-167) then
tmp = x / (x + (y * exp((2.0d0 * (a * -b)))))
else if (t <= 5.6d-91) then
tmp = t_1
else if (t <= 2.35d+123) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((0.6666666666666666 * b) / t)))));
double tmp;
if (t <= -1.1e-73) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (t <= 3.5e-199) {
tmp = t_1;
} else if (t <= 3.4e-167) {
tmp = x / (x + (y * Math.exp((2.0 * (a * -b)))));
} else if (t <= 5.6e-91) {
tmp = t_1;
} else if (t <= 2.35e+123) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((0.6666666666666666 * b) / t))))) tmp = 0 if t <= -1.1e-73: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif t <= 3.5e-199: tmp = t_1 elif t <= 3.4e-167: tmp = x / (x + (y * math.exp((2.0 * (a * -b))))) elif t <= 5.6e-91: tmp = t_1 elif t <= 2.35e+123: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) else: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(0.6666666666666666 * b) / t)))))) tmp = 0.0 if (t <= -1.1e-73) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (t <= 3.5e-199) tmp = t_1; elseif (t <= 3.4e-167) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(-b))))))); elseif (t <= 5.6e-91) tmp = t_1; elseif (t <= 2.35e+123) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((0.6666666666666666 * b) / t))))); tmp = 0.0; if (t <= -1.1e-73) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (t <= 3.5e-199) tmp = t_1; elseif (t <= 3.4e-167) tmp = x / (x + (y * exp((2.0 * (a * -b))))); elseif (t <= 5.6e-91) tmp = t_1; elseif (t <= 2.35e+123) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); else tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(0.6666666666666666 * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.1e-73], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e-199], t$95$1, If[LessEqual[t, 3.4e-167], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * (-b)), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.6e-91], t$95$1, If[LessEqual[t, 2.35e+123], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \frac{0.6666666666666666 \cdot b}{t}}}\\
\mathbf{if}\;t \leq -1.1 \cdot 10^{-73}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-199}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{-167}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(-b\right)\right)}}\\
\mathbf{elif}\;t \leq 5.6 \cdot 10^{-91}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.35 \cdot 10^{+123}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < -1.1e-73Initial program 97.2%
Taylor expanded in c around inf 69.8%
+-commutative69.8%
associate-*r/69.8%
metadata-eval69.8%
Simplified69.8%
Taylor expanded in a around inf 69.8%
if -1.1e-73 < t < 3.4999999999999999e-199 or 3.3999999999999997e-167 < t < 5.6e-91Initial program 88.8%
Taylor expanded in b around inf 75.0%
associate-*r/75.0%
metadata-eval75.0%
+-commutative75.0%
Simplified75.0%
Taylor expanded in t around 0 70.7%
associate-*r/70.7%
*-commutative70.7%
Simplified70.7%
if 3.4999999999999999e-199 < t < 3.3999999999999997e-167Initial program 93.8%
Taylor expanded in b around inf 51.9%
associate-*r/51.9%
metadata-eval51.9%
+-commutative51.9%
Simplified51.9%
Taylor expanded in a around inf 64.1%
associate-*r*64.1%
mul-1-neg64.1%
Simplified64.1%
if 5.6e-91 < t < 2.3499999999999999e123Initial program 100.0%
Taylor expanded in c around inf 74.3%
+-commutative74.3%
associate-*r/74.3%
metadata-eval74.3%
Simplified74.3%
Taylor expanded in t around inf 72.7%
associate-*r*72.7%
Simplified72.7%
Taylor expanded in a around 0 71.1%
*-commutative71.1%
Simplified71.1%
if 2.3499999999999999e123 < t Initial program 94.7%
Taylor expanded in b around inf 77.4%
associate-*r/77.4%
metadata-eval77.4%
+-commutative77.4%
Simplified77.4%
Taylor expanded in t around inf 77.4%
mul-1-neg77.4%
+-commutative77.4%
distribute-rgt-neg-in77.4%
+-commutative77.4%
mul-1-neg77.4%
distribute-lft-in77.4%
metadata-eval77.4%
mul-1-neg77.4%
unsub-neg77.4%
Simplified77.4%
Final simplification71.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* c 1.6666666666666667)))))))
(if (<= b -1.5e-12)
(/ x (* y (exp (* -2.0 (* b (+ a 0.8333333333333334))))))
(if (<= b -2.7e-226)
1.0
(if (<= b 3.6e-178)
t_1
(if (<= b 1.1e-53)
1.0
(if (<= b 60000000000.0)
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((c * 1.6666666666666667))));
double tmp;
if (b <= -1.5e-12) {
tmp = x / (y * exp((-2.0 * (b * (a + 0.8333333333333334)))));
} else if (b <= -2.7e-226) {
tmp = 1.0;
} else if (b <= 3.6e-178) {
tmp = t_1;
} else if (b <= 1.1e-53) {
tmp = 1.0;
} else if (b <= 60000000000.0) {
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((c * 1.6666666666666667d0))))
if (b <= (-1.5d-12)) then
tmp = x / (y * exp(((-2.0d0) * (b * (a + 0.8333333333333334d0)))))
else if (b <= (-2.7d-226)) then
tmp = 1.0d0
else if (b <= 3.6d-178) then
tmp = t_1
else if (b <= 1.1d-53) then
tmp = 1.0d0
else if (b <= 60000000000.0d0) 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((c * 1.6666666666666667))));
double tmp;
if (b <= -1.5e-12) {
tmp = x / (y * Math.exp((-2.0 * (b * (a + 0.8333333333333334)))));
} else if (b <= -2.7e-226) {
tmp = 1.0;
} else if (b <= 3.6e-178) {
tmp = t_1;
} else if (b <= 1.1e-53) {
tmp = 1.0;
} else if (b <= 60000000000.0) {
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((c * 1.6666666666666667)))) tmp = 0 if b <= -1.5e-12: tmp = x / (y * math.exp((-2.0 * (b * (a + 0.8333333333333334))))) elif b <= -2.7e-226: tmp = 1.0 elif b <= 3.6e-178: tmp = t_1 elif b <= 1.1e-53: tmp = 1.0 elif b <= 60000000000.0: 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(c * 1.6666666666666667))))) tmp = 0.0 if (b <= -1.5e-12) tmp = Float64(x / Float64(y * exp(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334)))))); elseif (b <= -2.7e-226) tmp = 1.0; elseif (b <= 3.6e-178) tmp = t_1; elseif (b <= 1.1e-53) tmp = 1.0; elseif (b <= 60000000000.0) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(-b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((c * 1.6666666666666667)))); tmp = 0.0; if (b <= -1.5e-12) tmp = x / (y * exp((-2.0 * (b * (a + 0.8333333333333334))))); elseif (b <= -2.7e-226) tmp = 1.0; elseif (b <= 3.6e-178) tmp = t_1; elseif (b <= 1.1e-53) tmp = 1.0; elseif (b <= 60000000000.0) 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[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.5e-12], N[(x / N[(y * N[Exp[N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.7e-226], 1.0, If[LessEqual[b, 3.6e-178], t$95$1, If[LessEqual[b, 1.1e-53], 1.0, If[LessEqual[b, 60000000000.0], 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^{c \cdot 1.6666666666666667}}\\
\mathbf{if}\;b \leq -1.5 \cdot 10^{-12}:\\
\;\;\;\;\frac{x}{y \cdot e^{-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{-226}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{-178}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{-53}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 60000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(-b\right)\right)}}\\
\end{array}
\end{array}
if b < -1.5000000000000001e-12Initial program 89.8%
Taylor expanded in b around inf 88.5%
associate-*r/88.5%
metadata-eval88.5%
+-commutative88.5%
Simplified88.5%
Taylor expanded in t around inf 70.4%
mul-1-neg70.4%
+-commutative70.4%
distribute-rgt-neg-in70.4%
+-commutative70.4%
mul-1-neg70.4%
distribute-lft-in70.4%
metadata-eval70.4%
mul-1-neg70.4%
unsub-neg70.4%
Simplified70.4%
Taylor expanded in x around 0 68.8%
if -1.5000000000000001e-12 < b < -2.70000000000000014e-226 or 3.59999999999999994e-178 < b < 1.10000000000000009e-53Initial program 95.4%
Taylor expanded in b around inf 57.8%
associate-*r/57.8%
metadata-eval57.8%
+-commutative57.8%
Simplified57.8%
Taylor expanded in b around 0 38.6%
Taylor expanded in x around inf 63.1%
if -2.70000000000000014e-226 < b < 3.59999999999999994e-178 or 1.10000000000000009e-53 < b < 6e10Initial program 98.5%
Taylor expanded in c around inf 84.3%
+-commutative84.3%
associate-*r/84.3%
metadata-eval84.3%
Simplified84.3%
Taylor expanded in t around inf 74.4%
associate-*r*74.4%
Simplified74.4%
Taylor expanded in a around 0 71.5%
*-commutative71.5%
Simplified71.5%
if 6e10 < b Initial program 92.4%
Taylor expanded in b around inf 86.6%
associate-*r/86.6%
metadata-eval86.6%
+-commutative86.6%
Simplified86.6%
Taylor expanded in a around inf 68.8%
associate-*r*68.8%
mul-1-neg68.8%
Simplified68.8%
Final simplification68.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
b
(- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))))
(if (<= b -6.2e-37)
t_1
(if (<= b 2.2e-127)
(/ x (+ x (* y (exp (* (+ a 0.8333333333333334) (* 2.0 c))))))
(if (or (<= b 1.8e-40) (not (<= b 60000000000.0)))
t_1
(/ x (+ x (* y (exp (* c 1.6666666666666667))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
double tmp;
if (b <= -6.2e-37) {
tmp = t_1;
} else if (b <= 2.2e-127) {
tmp = x / (x + (y * exp(((a + 0.8333333333333334) * (2.0 * c)))));
} else if ((b <= 1.8e-40) || !(b <= 60000000000.0)) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
if (b <= (-6.2d-37)) then
tmp = t_1
else if (b <= 2.2d-127) then
tmp = x / (x + (y * exp(((a + 0.8333333333333334d0) * (2.0d0 * c)))))
else if ((b <= 1.8d-40) .or. (.not. (b <= 60000000000.0d0))) then
tmp = t_1
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 t_1 = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
double tmp;
if (b <= -6.2e-37) {
tmp = t_1;
} else if (b <= 2.2e-127) {
tmp = x / (x + (y * Math.exp(((a + 0.8333333333333334) * (2.0 * c)))));
} else if ((b <= 1.8e-40) || !(b <= 60000000000.0)) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) tmp = 0 if b <= -6.2e-37: tmp = t_1 elif b <= 2.2e-127: tmp = x / (x + (y * math.exp(((a + 0.8333333333333334) * (2.0 * c))))) elif (b <= 1.8e-40) or not (b <= 60000000000.0): tmp = t_1 else: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))) tmp = 0.0 if (b <= -6.2e-37) tmp = t_1; elseif (b <= 2.2e-127) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(a + 0.8333333333333334) * Float64(2.0 * c)))))); elseif ((b <= 1.8e-40) || !(b <= 60000000000.0)) tmp = t_1; 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) t_1 = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); tmp = 0.0; if (b <= -6.2e-37) tmp = t_1; elseif (b <= 2.2e-127) tmp = x / (x + (y * exp(((a + 0.8333333333333334) * (2.0 * c))))); elseif ((b <= 1.8e-40) || ~((b <= 60000000000.0))) tmp = t_1; else tmp = x / (x + (y * exp((c * 1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.2e-37], t$95$1, If[LessEqual[b, 2.2e-127], N[(x / N[(x + N[(y * N[Exp[N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(2.0 * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 1.8e-40], N[Not[LessEqual[b, 60000000000.0]], $MachinePrecision]], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{if}\;b \leq -6.2 \cdot 10^{-37}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{-127}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(a + 0.8333333333333334\right) \cdot \left(2 \cdot c\right)}}\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-40} \lor \neg \left(b \leq 60000000000\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if b < -6.19999999999999987e-37 or 2.2000000000000001e-127 < b < 1.8e-40 or 6e10 < b Initial program 91.3%
Taylor expanded in b around inf 87.0%
associate-*r/87.0%
metadata-eval87.0%
+-commutative87.0%
Simplified87.0%
if -6.19999999999999987e-37 < b < 2.2000000000000001e-127Initial program 97.9%
Taylor expanded in c around inf 79.9%
+-commutative79.9%
associate-*r/79.9%
metadata-eval79.9%
Simplified79.9%
Taylor expanded in t around inf 66.9%
associate-*r*66.9%
Simplified66.9%
if 1.8e-40 < b < 6e10Initial program 100.0%
Taylor expanded in c around inf 82.4%
+-commutative82.4%
associate-*r/82.4%
metadata-eval82.4%
Simplified82.4%
Taylor expanded in t around inf 91.2%
associate-*r*91.2%
Simplified91.2%
Taylor expanded in a around 0 91.2%
*-commutative91.2%
Simplified91.2%
Final simplification79.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -2.4e-12)
(/ x (* y (exp (* -2.0 (* b (+ a 0.8333333333333334))))))
(if (<= b -6.5e-226)
1.0
(if (or (<= b 4.1e-178) (and (not (<= b 6.6e-56)) (<= b 122000000000.0)))
(/ 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 <= -2.4e-12) {
tmp = x / (y * exp((-2.0 * (b * (a + 0.8333333333333334)))));
} else if (b <= -6.5e-226) {
tmp = 1.0;
} else if ((b <= 4.1e-178) || (!(b <= 6.6e-56) && (b <= 122000000000.0))) {
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 <= (-2.4d-12)) then
tmp = x / (y * exp(((-2.0d0) * (b * (a + 0.8333333333333334d0)))))
else if (b <= (-6.5d-226)) then
tmp = 1.0d0
else if ((b <= 4.1d-178) .or. (.not. (b <= 6.6d-56)) .and. (b <= 122000000000.0d0)) 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 <= -2.4e-12) {
tmp = x / (y * Math.exp((-2.0 * (b * (a + 0.8333333333333334)))));
} else if (b <= -6.5e-226) {
tmp = 1.0;
} else if ((b <= 4.1e-178) || (!(b <= 6.6e-56) && (b <= 122000000000.0))) {
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 <= -2.4e-12: tmp = x / (y * math.exp((-2.0 * (b * (a + 0.8333333333333334))))) elif b <= -6.5e-226: tmp = 1.0 elif (b <= 4.1e-178) or (not (b <= 6.6e-56) and (b <= 122000000000.0)): 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 <= -2.4e-12) tmp = Float64(x / Float64(y * exp(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334)))))); elseif (b <= -6.5e-226) tmp = 1.0; elseif ((b <= 4.1e-178) || (!(b <= 6.6e-56) && (b <= 122000000000.0))) 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 <= -2.4e-12) tmp = x / (y * exp((-2.0 * (b * (a + 0.8333333333333334))))); elseif (b <= -6.5e-226) tmp = 1.0; elseif ((b <= 4.1e-178) || (~((b <= 6.6e-56)) && (b <= 122000000000.0))) 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, -2.4e-12], N[(x / N[(y * N[Exp[N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.5e-226], 1.0, If[Or[LessEqual[b, 4.1e-178], And[N[Not[LessEqual[b, 6.6e-56]], $MachinePrecision], LessEqual[b, 122000000000.0]]], 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 -2.4 \cdot 10^{-12}:\\
\;\;\;\;\frac{x}{y \cdot e^{-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\mathbf{elif}\;b \leq -6.5 \cdot 10^{-226}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 4.1 \cdot 10^{-178} \lor \neg \left(b \leq 6.6 \cdot 10^{-56}\right) \land b \leq 122000000000:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -2.39999999999999987e-12Initial program 89.8%
Taylor expanded in b around inf 88.5%
associate-*r/88.5%
metadata-eval88.5%
+-commutative88.5%
Simplified88.5%
Taylor expanded in t around inf 70.4%
mul-1-neg70.4%
+-commutative70.4%
distribute-rgt-neg-in70.4%
+-commutative70.4%
mul-1-neg70.4%
distribute-lft-in70.4%
metadata-eval70.4%
mul-1-neg70.4%
unsub-neg70.4%
Simplified70.4%
Taylor expanded in x around 0 68.8%
if -2.39999999999999987e-12 < b < -6.50000000000000033e-226 or 4.0999999999999999e-178 < b < 6.59999999999999967e-56 or 1.22e11 < b Initial program 93.8%
Taylor expanded in b around inf 72.3%
associate-*r/72.3%
metadata-eval72.3%
+-commutative72.3%
Simplified72.3%
Taylor expanded in b around 0 38.3%
Taylor expanded in x around inf 65.1%
if -6.50000000000000033e-226 < b < 4.0999999999999999e-178 or 6.59999999999999967e-56 < b < 1.22e11Initial program 98.5%
Taylor expanded in c around inf 84.3%
+-commutative84.3%
associate-*r/84.3%
metadata-eval84.3%
Simplified84.3%
Taylor expanded in t around inf 74.4%
associate-*r*74.4%
Simplified74.4%
Taylor expanded in a around 0 71.5%
*-commutative71.5%
Simplified71.5%
Final simplification67.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -2.25e-73)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= t 1.5e-256)
(/ x (+ x (* y (exp (* 2.0 (/ (* 0.6666666666666666 b) t))))))
(if (<= t 1.65e-66)
(/ x (+ x (* y (exp (* 2.0 (/ (* c -0.6666666666666666) t))))))
(if (<= t 1.92e+124)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -2.25e-73) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (t <= 1.5e-256) {
tmp = x / (x + (y * exp((2.0 * ((0.6666666666666666 * b) / t)))));
} else if (t <= 1.65e-66) {
tmp = x / (x + (y * exp((2.0 * ((c * -0.6666666666666666) / t)))));
} else if (t <= 1.92e+124) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-2.25d-73)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (t <= 1.5d-256) then
tmp = x / (x + (y * exp((2.0d0 * ((0.6666666666666666d0 * b) / t)))))
else if (t <= 1.65d-66) then
tmp = x / (x + (y * exp((2.0d0 * ((c * (-0.6666666666666666d0)) / t)))))
else if (t <= 1.92d+124) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -2.25e-73) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (t <= 1.5e-256) {
tmp = x / (x + (y * Math.exp((2.0 * ((0.6666666666666666 * b) / t)))));
} else if (t <= 1.65e-66) {
tmp = x / (x + (y * Math.exp((2.0 * ((c * -0.6666666666666666) / t)))));
} else if (t <= 1.92e+124) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -2.25e-73: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif t <= 1.5e-256: tmp = x / (x + (y * math.exp((2.0 * ((0.6666666666666666 * b) / t))))) elif t <= 1.65e-66: tmp = x / (x + (y * math.exp((2.0 * ((c * -0.6666666666666666) / t))))) elif t <= 1.92e+124: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) else: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -2.25e-73) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (t <= 1.5e-256) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(0.6666666666666666 * b) / t)))))); elseif (t <= 1.65e-66) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c * -0.6666666666666666) / t)))))); elseif (t <= 1.92e+124) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -2.25e-73) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (t <= 1.5e-256) tmp = x / (x + (y * exp((2.0 * ((0.6666666666666666 * b) / t))))); elseif (t <= 1.65e-66) tmp = x / (x + (y * exp((2.0 * ((c * -0.6666666666666666) / t))))); elseif (t <= 1.92e+124) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); else tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -2.25e-73], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e-256], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(0.6666666666666666 * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.65e-66], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c * -0.6666666666666666), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.92e+124], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.25 \cdot 10^{-73}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{-256}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{0.6666666666666666 \cdot b}{t}}}\\
\mathbf{elif}\;t \leq 1.65 \cdot 10^{-66}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{c \cdot -0.6666666666666666}{t}}}\\
\mathbf{elif}\;t \leq 1.92 \cdot 10^{+124}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < -2.25e-73Initial program 97.2%
Taylor expanded in c around inf 69.8%
+-commutative69.8%
associate-*r/69.8%
metadata-eval69.8%
Simplified69.8%
Taylor expanded in a around inf 69.8%
if -2.25e-73 < t < 1.4999999999999999e-256Initial program 86.0%
Taylor expanded in b around inf 74.8%
associate-*r/74.8%
metadata-eval74.8%
+-commutative74.8%
Simplified74.8%
Taylor expanded in t around 0 74.8%
associate-*r/74.8%
*-commutative74.8%
Simplified74.8%
if 1.4999999999999999e-256 < t < 1.6499999999999999e-66Initial program 93.3%
Taylor expanded in t around 0 63.9%
Taylor expanded in c around inf 63.6%
*-commutative63.6%
Simplified63.6%
if 1.6499999999999999e-66 < t < 1.91999999999999991e124Initial program 100.0%
Taylor expanded in c around inf 72.0%
+-commutative72.0%
associate-*r/72.0%
metadata-eval72.0%
Simplified72.0%
Taylor expanded in t around inf 75.5%
associate-*r*75.5%
Simplified75.5%
Taylor expanded in a around 0 73.8%
*-commutative73.8%
Simplified73.8%
if 1.91999999999999991e124 < t Initial program 94.7%
Taylor expanded in b around inf 77.4%
associate-*r/77.4%
metadata-eval77.4%
+-commutative77.4%
Simplified77.4%
Taylor expanded in t around inf 77.4%
mul-1-neg77.4%
+-commutative77.4%
distribute-rgt-neg-in77.4%
+-commutative77.4%
mul-1-neg77.4%
distribute-lft-in77.4%
metadata-eval77.4%
mul-1-neg77.4%
unsub-neg77.4%
Simplified77.4%
Final simplification71.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -9.2e-73)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= t 1.8e-254)
(/ x (+ x (* y (exp (* 2.0 (/ (* 0.6666666666666666 b) t))))))
(if (<= t 3e-67)
(/ x (+ x (* y (exp (* 2.0 (/ (* c -0.6666666666666666) t))))))
(if (<= t 1.05e+124)
(/ x (+ x (* y (exp (* (+ a 0.8333333333333334) (* 2.0 c))))))
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -9.2e-73) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (t <= 1.8e-254) {
tmp = x / (x + (y * exp((2.0 * ((0.6666666666666666 * b) / t)))));
} else if (t <= 3e-67) {
tmp = x / (x + (y * exp((2.0 * ((c * -0.6666666666666666) / t)))));
} else if (t <= 1.05e+124) {
tmp = x / (x + (y * exp(((a + 0.8333333333333334) * (2.0 * c)))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-9.2d-73)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (t <= 1.8d-254) then
tmp = x / (x + (y * exp((2.0d0 * ((0.6666666666666666d0 * b) / t)))))
else if (t <= 3d-67) then
tmp = x / (x + (y * exp((2.0d0 * ((c * (-0.6666666666666666d0)) / t)))))
else if (t <= 1.05d+124) then
tmp = x / (x + (y * exp(((a + 0.8333333333333334d0) * (2.0d0 * c)))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -9.2e-73) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (t <= 1.8e-254) {
tmp = x / (x + (y * Math.exp((2.0 * ((0.6666666666666666 * b) / t)))));
} else if (t <= 3e-67) {
tmp = x / (x + (y * Math.exp((2.0 * ((c * -0.6666666666666666) / t)))));
} else if (t <= 1.05e+124) {
tmp = x / (x + (y * Math.exp(((a + 0.8333333333333334) * (2.0 * c)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -9.2e-73: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif t <= 1.8e-254: tmp = x / (x + (y * math.exp((2.0 * ((0.6666666666666666 * b) / t))))) elif t <= 3e-67: tmp = x / (x + (y * math.exp((2.0 * ((c * -0.6666666666666666) / t))))) elif t <= 1.05e+124: tmp = x / (x + (y * math.exp(((a + 0.8333333333333334) * (2.0 * c))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -9.2e-73) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (t <= 1.8e-254) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(0.6666666666666666 * b) / t)))))); elseif (t <= 3e-67) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c * -0.6666666666666666) / t)))))); elseif (t <= 1.05e+124) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(a + 0.8333333333333334) * Float64(2.0 * c)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -9.2e-73) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (t <= 1.8e-254) tmp = x / (x + (y * exp((2.0 * ((0.6666666666666666 * b) / t))))); elseif (t <= 3e-67) tmp = x / (x + (y * exp((2.0 * ((c * -0.6666666666666666) / t))))); elseif (t <= 1.05e+124) tmp = x / (x + (y * exp(((a + 0.8333333333333334) * (2.0 * c))))); else tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -9.2e-73], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.8e-254], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(0.6666666666666666 * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e-67], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c * -0.6666666666666666), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e+124], N[(x / N[(x + N[(y * N[Exp[N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(2.0 * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.2 \cdot 10^{-73}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{-254}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{0.6666666666666666 \cdot b}{t}}}\\
\mathbf{elif}\;t \leq 3 \cdot 10^{-67}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{c \cdot -0.6666666666666666}{t}}}\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{+124}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(a + 0.8333333333333334\right) \cdot \left(2 \cdot c\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < -9.19999999999999953e-73Initial program 97.2%
Taylor expanded in c around inf 69.8%
+-commutative69.8%
associate-*r/69.8%
metadata-eval69.8%
Simplified69.8%
Taylor expanded in a around inf 69.8%
if -9.19999999999999953e-73 < t < 1.79999999999999992e-254Initial program 86.0%
Taylor expanded in b around inf 74.8%
associate-*r/74.8%
metadata-eval74.8%
+-commutative74.8%
Simplified74.8%
Taylor expanded in t around 0 74.8%
associate-*r/74.8%
*-commutative74.8%
Simplified74.8%
if 1.79999999999999992e-254 < t < 3.00000000000000032e-67Initial program 93.3%
Taylor expanded in t around 0 63.9%
Taylor expanded in c around inf 63.6%
*-commutative63.6%
Simplified63.6%
if 3.00000000000000032e-67 < t < 1.05000000000000006e124Initial program 100.0%
Taylor expanded in c around inf 72.0%
+-commutative72.0%
associate-*r/72.0%
metadata-eval72.0%
Simplified72.0%
Taylor expanded in t around inf 75.5%
associate-*r*75.5%
Simplified75.5%
if 1.05000000000000006e124 < t Initial program 94.7%
Taylor expanded in b around inf 77.4%
associate-*r/77.4%
metadata-eval77.4%
+-commutative77.4%
Simplified77.4%
Taylor expanded in t around inf 77.4%
mul-1-neg77.4%
+-commutative77.4%
distribute-rgt-neg-in77.4%
+-commutative77.4%
mul-1-neg77.4%
distribute-lft-in77.4%
metadata-eval77.4%
mul-1-neg77.4%
unsub-neg77.4%
Simplified77.4%
Final simplification72.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -5.6e+35)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= t -3.2e-292)
(/ x (+ x (* y (exp (* 2.0 (* a (- b)))))))
(if (<= t 1.7e-11)
1.0
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -5.6e+35) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (t <= -3.2e-292) {
tmp = x / (x + (y * exp((2.0 * (a * -b)))));
} else if (t <= 1.7e-11) {
tmp = 1.0;
} else {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-5.6d+35)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (t <= (-3.2d-292)) then
tmp = x / (x + (y * exp((2.0d0 * (a * -b)))))
else if (t <= 1.7d-11) then
tmp = 1.0d0
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -5.6e+35) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (t <= -3.2e-292) {
tmp = x / (x + (y * Math.exp((2.0 * (a * -b)))));
} else if (t <= 1.7e-11) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -5.6e+35: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif t <= -3.2e-292: tmp = x / (x + (y * math.exp((2.0 * (a * -b))))) elif t <= 1.7e-11: tmp = 1.0 else: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -5.6e+35) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (t <= -3.2e-292) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(-b))))))); elseif (t <= 1.7e-11) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -5.6e+35) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (t <= -3.2e-292) tmp = x / (x + (y * exp((2.0 * (a * -b))))); elseif (t <= 1.7e-11) tmp = 1.0; else tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -5.6e+35], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.2e-292], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * (-b)), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e-11], 1.0, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.6 \cdot 10^{+35}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;t \leq -3.2 \cdot 10^{-292}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(-b\right)\right)}}\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-11}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < -5.59999999999999997e35Initial program 95.4%
Taylor expanded in c around inf 77.1%
+-commutative77.1%
associate-*r/77.1%
metadata-eval77.1%
Simplified77.1%
Taylor expanded in a around inf 77.1%
if -5.59999999999999997e35 < t < -3.2000000000000002e-292Initial program 89.6%
Taylor expanded in b around inf 71.7%
associate-*r/71.7%
metadata-eval71.7%
+-commutative71.7%
Simplified71.7%
Taylor expanded in a around inf 67.8%
associate-*r*67.8%
mul-1-neg67.8%
Simplified67.8%
if -3.2000000000000002e-292 < t < 1.6999999999999999e-11Initial program 93.4%
Taylor expanded in b around inf 66.1%
associate-*r/66.1%
metadata-eval66.1%
+-commutative66.1%
Simplified66.1%
Taylor expanded in b around 0 34.6%
Taylor expanded in x around inf 56.4%
if 1.6999999999999999e-11 < t Initial program 96.9%
Taylor expanded in b around inf 73.7%
associate-*r/73.7%
metadata-eval73.7%
+-commutative73.7%
Simplified73.7%
Taylor expanded in t around inf 73.7%
mul-1-neg73.7%
+-commutative73.7%
distribute-rgt-neg-in73.7%
+-commutative73.7%
mul-1-neg73.7%
distribute-lft-in73.7%
metadata-eval73.7%
mul-1-neg73.7%
unsub-neg73.7%
Simplified73.7%
Final simplification66.7%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= b -5.8e-31) (not (<= b 4200000000000.0)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -5.8e-31) || !(b <= 4200000000000.0)) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b <= (-5.8d-31)) .or. (.not. (b <= 4200000000000.0d0))) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * (c * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -5.8e-31) || !(b <= 4200000000000.0)) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -5.8e-31) or not (b <= 4200000000000.0): tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -5.8e-31) || !(b <= 4200000000000.0)) 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(c * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -5.8e-31) || ~((b <= 4200000000000.0))) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -5.8e-31], N[Not[LessEqual[b, 4200000000000.0]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.8 \cdot 10^{-31} \lor \neg \left(b \leq 4200000000000\right):\\
\;\;\;\;\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(c \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)}}\\
\end{array}
\end{array}
if b < -5.8000000000000001e-31 or 4.2e12 < b Initial program 91.6%
Taylor expanded in b around inf 88.2%
associate-*r/88.2%
metadata-eval88.2%
+-commutative88.2%
Simplified88.2%
if -5.8000000000000001e-31 < b < 4.2e12Initial program 96.8%
Taylor expanded in c around inf 78.4%
+-commutative78.4%
associate-*r/78.4%
metadata-eval78.4%
Simplified78.4%
Final simplification83.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -170.0)
(/ x (* y (exp (* b -1.6666666666666667))))
(if (<= b -2.7e-210)
1.0
(if (<= b 2.8e-149)
(/
x
(-
x
(-
(*
2.0
(/
(-
(* b (* t (* y (+ a 0.8333333333333334))))
(* 0.6666666666666666 (* y b)))
t))
y)))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -170.0) {
tmp = x / (y * exp((b * -1.6666666666666667)));
} else if (b <= -2.7e-210) {
tmp = 1.0;
} else if (b <= 2.8e-149) {
tmp = x / (x - ((2.0 * (((b * (t * (y * (a + 0.8333333333333334)))) - (0.6666666666666666 * (y * b))) / t)) - y));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-170.0d0)) then
tmp = x / (y * exp((b * (-1.6666666666666667d0))))
else if (b <= (-2.7d-210)) then
tmp = 1.0d0
else if (b <= 2.8d-149) then
tmp = x / (x - ((2.0d0 * (((b * (t * (y * (a + 0.8333333333333334d0)))) - (0.6666666666666666d0 * (y * b))) / t)) - y))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -170.0) {
tmp = x / (y * Math.exp((b * -1.6666666666666667)));
} else if (b <= -2.7e-210) {
tmp = 1.0;
} else if (b <= 2.8e-149) {
tmp = x / (x - ((2.0 * (((b * (t * (y * (a + 0.8333333333333334)))) - (0.6666666666666666 * (y * b))) / t)) - y));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -170.0: tmp = x / (y * math.exp((b * -1.6666666666666667))) elif b <= -2.7e-210: tmp = 1.0 elif b <= 2.8e-149: tmp = x / (x - ((2.0 * (((b * (t * (y * (a + 0.8333333333333334)))) - (0.6666666666666666 * (y * b))) / t)) - y)) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -170.0) tmp = Float64(x / Float64(y * exp(Float64(b * -1.6666666666666667)))); elseif (b <= -2.7e-210) tmp = 1.0; elseif (b <= 2.8e-149) tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(Float64(Float64(b * Float64(t * Float64(y * Float64(a + 0.8333333333333334)))) - Float64(0.6666666666666666 * Float64(y * b))) / t)) - y))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -170.0) tmp = x / (y * exp((b * -1.6666666666666667))); elseif (b <= -2.7e-210) tmp = 1.0; elseif (b <= 2.8e-149) tmp = x / (x - ((2.0 * (((b * (t * (y * (a + 0.8333333333333334)))) - (0.6666666666666666 * (y * b))) / t)) - y)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -170.0], N[(x / N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.7e-210], 1.0, If[LessEqual[b, 2.8e-149], N[(x / N[(x - N[(N[(2.0 * N[(N[(N[(b * N[(t * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(0.6666666666666666 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -170:\\
\;\;\;\;\frac{x}{y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{-210}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{-149}:\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \frac{b \cdot \left(t \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right)\right) - 0.6666666666666666 \cdot \left(y \cdot b\right)}{t} - y\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -170Initial program 89.5%
Taylor expanded in b around inf 88.1%
associate-*r/88.1%
metadata-eval88.1%
+-commutative88.1%
Simplified88.1%
Taylor expanded in t around inf 69.4%
mul-1-neg69.4%
+-commutative69.4%
distribute-rgt-neg-in69.4%
+-commutative69.4%
mul-1-neg69.4%
distribute-lft-in69.4%
metadata-eval69.4%
mul-1-neg69.4%
unsub-neg69.4%
Simplified69.4%
Taylor expanded in a around 0 67.7%
Taylor expanded in x around 0 67.7%
if -170 < b < -2.69999999999999992e-210 or 2.7999999999999999e-149 < b Initial program 94.2%
Taylor expanded in b around inf 72.0%
associate-*r/72.0%
metadata-eval72.0%
+-commutative72.0%
Simplified72.0%
Taylor expanded in b around 0 36.8%
Taylor expanded in x around inf 61.8%
if -2.69999999999999992e-210 < b < 2.7999999999999999e-149Initial program 98.4%
Taylor expanded in b around inf 44.4%
associate-*r/44.4%
metadata-eval44.4%
+-commutative44.4%
Simplified44.4%
Taylor expanded in b around 0 55.4%
associate-*r*46.0%
associate-*r/46.0%
metadata-eval46.0%
Simplified46.0%
Taylor expanded in t around 0 60.4%
Final simplification62.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(-
x
(*
y
(-
-1.0
(*
(* 2.0 b)
(- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))))))))
(if (<= y 9.5e-295)
1.0
(if (<= y 4.4e-134)
t_1
(if (<= y 1.08e+64)
1.0
(if (<= y 8.2e+113)
(/ x (+ x (+ y (* 2.0 (* c (* y (+ a 0.8333333333333334)))))))
(if (<= y 1.9e+173) 1.0 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x - (y * (-1.0 - ((2.0 * b) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
double tmp;
if (y <= 9.5e-295) {
tmp = 1.0;
} else if (y <= 4.4e-134) {
tmp = t_1;
} else if (y <= 1.08e+64) {
tmp = 1.0;
} else if (y <= 8.2e+113) {
tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334))))));
} else if (y <= 1.9e+173) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x - (y * ((-1.0d0) - ((2.0d0 * b) * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0))))))
if (y <= 9.5d-295) then
tmp = 1.0d0
else if (y <= 4.4d-134) then
tmp = t_1
else if (y <= 1.08d+64) then
tmp = 1.0d0
else if (y <= 8.2d+113) then
tmp = x / (x + (y + (2.0d0 * (c * (y * (a + 0.8333333333333334d0))))))
else if (y <= 1.9d+173) then
tmp = 1.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x - (y * (-1.0 - ((2.0 * b) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
double tmp;
if (y <= 9.5e-295) {
tmp = 1.0;
} else if (y <= 4.4e-134) {
tmp = t_1;
} else if (y <= 1.08e+64) {
tmp = 1.0;
} else if (y <= 8.2e+113) {
tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334))))));
} else if (y <= 1.9e+173) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x - (y * (-1.0 - ((2.0 * b) * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))) tmp = 0 if y <= 9.5e-295: tmp = 1.0 elif y <= 4.4e-134: tmp = t_1 elif y <= 1.08e+64: tmp = 1.0 elif y <= 8.2e+113: tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334)))))) elif y <= 1.9e+173: tmp = 1.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(Float64(2.0 * b) * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334))))))) tmp = 0.0 if (y <= 9.5e-295) tmp = 1.0; elseif (y <= 4.4e-134) tmp = t_1; elseif (y <= 1.08e+64) tmp = 1.0; elseif (y <= 8.2e+113) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * Float64(y * Float64(a + 0.8333333333333334))))))); elseif (y <= 1.9e+173) tmp = 1.0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x - (y * (-1.0 - ((2.0 * b) * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))); tmp = 0.0; if (y <= 9.5e-295) tmp = 1.0; elseif (y <= 4.4e-134) tmp = t_1; elseif (y <= 1.08e+64) tmp = 1.0; elseif (y <= 8.2e+113) tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334)))))); elseif (y <= 1.9e+173) tmp = 1.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x - N[(y * N[(-1.0 - N[(N[(2.0 * b), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 9.5e-295], 1.0, If[LessEqual[y, 4.4e-134], t$95$1, If[LessEqual[y, 1.08e+64], 1.0, If[LessEqual[y, 8.2e+113], N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.9e+173], 1.0, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x - y \cdot \left(-1 - \left(2 \cdot b\right) \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}\\
\mathbf{if}\;y \leq 9.5 \cdot 10^{-295}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{-134}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.08 \cdot 10^{+64}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 8.2 \cdot 10^{+113}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{+173}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < 9.5e-295 or 4.3999999999999999e-134 < y < 1.08000000000000007e64 or 8.19999999999999985e113 < y < 1.90000000000000005e173Initial program 95.2%
Taylor expanded in b around inf 67.1%
associate-*r/67.1%
metadata-eval67.1%
+-commutative67.1%
Simplified67.1%
Taylor expanded in b around 0 36.1%
Taylor expanded in x around inf 57.9%
if 9.5e-295 < y < 4.3999999999999999e-134 or 1.90000000000000005e173 < y Initial program 89.1%
Taylor expanded in b around inf 80.4%
associate-*r/80.4%
metadata-eval80.4%
+-commutative80.4%
Simplified80.4%
Taylor expanded in b around 0 69.9%
associate-*r*69.9%
associate-*r/69.9%
metadata-eval69.9%
+-commutative69.9%
*-commutative69.9%
+-commutative69.9%
*-commutative69.9%
Simplified69.9%
if 1.08000000000000007e64 < y < 8.19999999999999985e113Initial program 100.0%
Taylor expanded in c around inf 81.8%
+-commutative81.8%
associate-*r/81.8%
metadata-eval81.8%
Simplified81.8%
Taylor expanded in t around inf 63.7%
associate-*r*63.7%
Simplified63.7%
Taylor expanded in c around 0 73.5%
*-commutative73.5%
Simplified73.5%
Final simplification61.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -3.1e+92)
(/
x
(+
x
(+
y
(*
b
(+
(* y -1.6666666666666667)
(* b (+ (* (* y b) -0.7716049382716049) (* y 1.3888888888888888))))))))
(if (<= b -8e-212)
1.0
(if (<= b 2.9e-149)
(/
x
(-
x
(-
(*
2.0
(/
(-
(* b (* t (* y (+ a 0.8333333333333334))))
(* 0.6666666666666666 (* y b)))
t))
y)))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.1e+92) {
tmp = x / (x + (y + (b * ((y * -1.6666666666666667) + (b * (((y * b) * -0.7716049382716049) + (y * 1.3888888888888888)))))));
} else if (b <= -8e-212) {
tmp = 1.0;
} else if (b <= 2.9e-149) {
tmp = x / (x - ((2.0 * (((b * (t * (y * (a + 0.8333333333333334)))) - (0.6666666666666666 * (y * b))) / t)) - y));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-3.1d+92)) then
tmp = x / (x + (y + (b * ((y * (-1.6666666666666667d0)) + (b * (((y * b) * (-0.7716049382716049d0)) + (y * 1.3888888888888888d0)))))))
else if (b <= (-8d-212)) then
tmp = 1.0d0
else if (b <= 2.9d-149) then
tmp = x / (x - ((2.0d0 * (((b * (t * (y * (a + 0.8333333333333334d0)))) - (0.6666666666666666d0 * (y * b))) / t)) - y))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.1e+92) {
tmp = x / (x + (y + (b * ((y * -1.6666666666666667) + (b * (((y * b) * -0.7716049382716049) + (y * 1.3888888888888888)))))));
} else if (b <= -8e-212) {
tmp = 1.0;
} else if (b <= 2.9e-149) {
tmp = x / (x - ((2.0 * (((b * (t * (y * (a + 0.8333333333333334)))) - (0.6666666666666666 * (y * b))) / t)) - y));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -3.1e+92: tmp = x / (x + (y + (b * ((y * -1.6666666666666667) + (b * (((y * b) * -0.7716049382716049) + (y * 1.3888888888888888))))))) elif b <= -8e-212: tmp = 1.0 elif b <= 2.9e-149: tmp = x / (x - ((2.0 * (((b * (t * (y * (a + 0.8333333333333334)))) - (0.6666666666666666 * (y * b))) / t)) - y)) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -3.1e+92) tmp = Float64(x / Float64(x + Float64(y + Float64(b * Float64(Float64(y * -1.6666666666666667) + Float64(b * Float64(Float64(Float64(y * b) * -0.7716049382716049) + Float64(y * 1.3888888888888888)))))))); elseif (b <= -8e-212) tmp = 1.0; elseif (b <= 2.9e-149) tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(Float64(Float64(b * Float64(t * Float64(y * Float64(a + 0.8333333333333334)))) - Float64(0.6666666666666666 * Float64(y * b))) / t)) - y))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -3.1e+92) tmp = x / (x + (y + (b * ((y * -1.6666666666666667) + (b * (((y * b) * -0.7716049382716049) + (y * 1.3888888888888888))))))); elseif (b <= -8e-212) tmp = 1.0; elseif (b <= 2.9e-149) tmp = x / (x - ((2.0 * (((b * (t * (y * (a + 0.8333333333333334)))) - (0.6666666666666666 * (y * b))) / t)) - y)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -3.1e+92], N[(x / N[(x + N[(y + N[(b * N[(N[(y * -1.6666666666666667), $MachinePrecision] + N[(b * N[(N[(N[(y * b), $MachinePrecision] * -0.7716049382716049), $MachinePrecision] + N[(y * 1.3888888888888888), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8e-212], 1.0, If[LessEqual[b, 2.9e-149], N[(x / N[(x - N[(N[(2.0 * N[(N[(N[(b * N[(t * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(0.6666666666666666 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.1 \cdot 10^{+92}:\\
\;\;\;\;\frac{x}{x + \left(y + b \cdot \left(y \cdot -1.6666666666666667 + b \cdot \left(\left(y \cdot b\right) \cdot -0.7716049382716049 + y \cdot 1.3888888888888888\right)\right)\right)}\\
\mathbf{elif}\;b \leq -8 \cdot 10^{-212}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{-149}:\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \frac{b \cdot \left(t \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right)\right) - 0.6666666666666666 \cdot \left(y \cdot b\right)}{t} - y\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.1000000000000002e92Initial program 94.7%
Taylor expanded in b around inf 94.9%
associate-*r/94.9%
metadata-eval94.9%
+-commutative94.9%
Simplified94.9%
Taylor expanded in t around inf 72.0%
mul-1-neg72.0%
+-commutative72.0%
distribute-rgt-neg-in72.0%
+-commutative72.0%
mul-1-neg72.0%
distribute-lft-in72.0%
metadata-eval72.0%
mul-1-neg72.0%
unsub-neg72.0%
Simplified72.0%
Taylor expanded in a around 0 72.0%
Taylor expanded in b around 0 70.2%
if -3.1000000000000002e92 < b < -7.99999999999999963e-212 or 2.9e-149 < b Initial program 92.4%
Taylor expanded in b around inf 72.3%
associate-*r/72.3%
metadata-eval72.3%
+-commutative72.3%
Simplified72.3%
Taylor expanded in b around 0 34.0%
Taylor expanded in x around inf 59.6%
if -7.99999999999999963e-212 < b < 2.9e-149Initial program 98.4%
Taylor expanded in b around inf 44.4%
associate-*r/44.4%
metadata-eval44.4%
+-commutative44.4%
Simplified44.4%
Taylor expanded in b around 0 55.4%
associate-*r*46.0%
associate-*r/46.0%
metadata-eval46.0%
Simplified46.0%
Taylor expanded in t around 0 60.4%
Final simplification61.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -6.8e+218)
(/
x
(+
x
(+ y (* b (+ (* y -1.6666666666666667) (* (* y b) 1.3888888888888888))))))
(if (<= b 7.5e-269)
1.0
(if (<= b 2.35e-175)
(/
x
(+
x
(-
y
(*
2.0
(*
c
(* y (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -6.8e+218) {
tmp = x / (x + (y + (b * ((y * -1.6666666666666667) + ((y * b) * 1.3888888888888888)))));
} else if (b <= 7.5e-269) {
tmp = 1.0;
} else if (b <= 2.35e-175) {
tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-6.8d+218)) then
tmp = x / (x + (y + (b * ((y * (-1.6666666666666667d0)) + ((y * b) * 1.3888888888888888d0)))))
else if (b <= 7.5d-269) then
tmp = 1.0d0
else if (b <= 2.35d-175) then
tmp = x / (x + (y - (2.0d0 * (c * (y * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -6.8e+218) {
tmp = x / (x + (y + (b * ((y * -1.6666666666666667) + ((y * b) * 1.3888888888888888)))));
} else if (b <= 7.5e-269) {
tmp = 1.0;
} else if (b <= 2.35e-175) {
tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -6.8e+218: tmp = x / (x + (y + (b * ((y * -1.6666666666666667) + ((y * b) * 1.3888888888888888))))) elif b <= 7.5e-269: tmp = 1.0 elif b <= 2.35e-175: tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -6.8e+218) tmp = Float64(x / Float64(x + Float64(y + Float64(b * Float64(Float64(y * -1.6666666666666667) + Float64(Float64(y * b) * 1.3888888888888888)))))); elseif (b <= 7.5e-269) tmp = 1.0; elseif (b <= 2.35e-175) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(c * Float64(y * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -6.8e+218) tmp = x / (x + (y + (b * ((y * -1.6666666666666667) + ((y * b) * 1.3888888888888888))))); elseif (b <= 7.5e-269) tmp = 1.0; elseif (b <= 2.35e-175) tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -6.8e+218], N[(x / N[(x + N[(y + N[(b * N[(N[(y * -1.6666666666666667), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] * 1.3888888888888888), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.5e-269], 1.0, If[LessEqual[b, 2.35e-175], N[(x / N[(x + N[(y - N[(2.0 * N[(c * N[(y * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.8 \cdot 10^{+218}:\\
\;\;\;\;\frac{x}{x + \left(y + b \cdot \left(y \cdot -1.6666666666666667 + \left(y \cdot b\right) \cdot 1.3888888888888888\right)\right)}\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{-269}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 2.35 \cdot 10^{-175}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(c \cdot \left(y \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -6.80000000000000017e218Initial program 90.5%
Taylor expanded in b around inf 100.0%
associate-*r/100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in t around inf 81.5%
mul-1-neg81.5%
+-commutative81.5%
distribute-rgt-neg-in81.5%
+-commutative81.5%
mul-1-neg81.5%
distribute-lft-in81.5%
metadata-eval81.5%
mul-1-neg81.5%
unsub-neg81.5%
Simplified81.5%
Taylor expanded in a around 0 81.5%
Taylor expanded in b around 0 77.1%
if -6.80000000000000017e218 < b < 7.4999999999999993e-269 or 2.34999999999999999e-175 < b Initial program 93.8%
Taylor expanded in b around inf 67.6%
associate-*r/67.6%
metadata-eval67.6%
+-commutative67.6%
Simplified67.6%
Taylor expanded in b around 0 35.4%
Taylor expanded in x around inf 56.7%
if 7.4999999999999993e-269 < b < 2.34999999999999999e-175Initial program 100.0%
Taylor expanded in c around inf 88.8%
+-commutative88.8%
associate-*r/88.8%
metadata-eval88.8%
Simplified88.8%
Taylor expanded in c around 0 68.8%
associate-*r/68.8%
metadata-eval68.8%
Simplified68.8%
Final simplification59.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -1.1e+101)
(/
x
(+
x
(+
y
(*
b
(+
(* y -1.6666666666666667)
(* b (+ (* (* y b) -0.7716049382716049) (* y 1.3888888888888888))))))))
(if (<= b 1.08e-268)
1.0
(if (<= b 4.6e-172)
(/
x
(+
x
(-
y
(*
2.0
(*
c
(* y (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.1e+101) {
tmp = x / (x + (y + (b * ((y * -1.6666666666666667) + (b * (((y * b) * -0.7716049382716049) + (y * 1.3888888888888888)))))));
} else if (b <= 1.08e-268) {
tmp = 1.0;
} else if (b <= 4.6e-172) {
tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-1.1d+101)) then
tmp = x / (x + (y + (b * ((y * (-1.6666666666666667d0)) + (b * (((y * b) * (-0.7716049382716049d0)) + (y * 1.3888888888888888d0)))))))
else if (b <= 1.08d-268) then
tmp = 1.0d0
else if (b <= 4.6d-172) then
tmp = x / (x + (y - (2.0d0 * (c * (y * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.1e+101) {
tmp = x / (x + (y + (b * ((y * -1.6666666666666667) + (b * (((y * b) * -0.7716049382716049) + (y * 1.3888888888888888)))))));
} else if (b <= 1.08e-268) {
tmp = 1.0;
} else if (b <= 4.6e-172) {
tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -1.1e+101: tmp = x / (x + (y + (b * ((y * -1.6666666666666667) + (b * (((y * b) * -0.7716049382716049) + (y * 1.3888888888888888))))))) elif b <= 1.08e-268: tmp = 1.0 elif b <= 4.6e-172: tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -1.1e+101) tmp = Float64(x / Float64(x + Float64(y + Float64(b * Float64(Float64(y * -1.6666666666666667) + Float64(b * Float64(Float64(Float64(y * b) * -0.7716049382716049) + Float64(y * 1.3888888888888888)))))))); elseif (b <= 1.08e-268) tmp = 1.0; elseif (b <= 4.6e-172) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(c * Float64(y * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -1.1e+101) tmp = x / (x + (y + (b * ((y * -1.6666666666666667) + (b * (((y * b) * -0.7716049382716049) + (y * 1.3888888888888888))))))); elseif (b <= 1.08e-268) tmp = 1.0; elseif (b <= 4.6e-172) tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -1.1e+101], N[(x / N[(x + N[(y + N[(b * N[(N[(y * -1.6666666666666667), $MachinePrecision] + N[(b * N[(N[(N[(y * b), $MachinePrecision] * -0.7716049382716049), $MachinePrecision] + N[(y * 1.3888888888888888), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.08e-268], 1.0, If[LessEqual[b, 4.6e-172], N[(x / N[(x + N[(y - N[(2.0 * N[(c * N[(y * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.1 \cdot 10^{+101}:\\
\;\;\;\;\frac{x}{x + \left(y + b \cdot \left(y \cdot -1.6666666666666667 + b \cdot \left(\left(y \cdot b\right) \cdot -0.7716049382716049 + y \cdot 1.3888888888888888\right)\right)\right)}\\
\mathbf{elif}\;b \leq 1.08 \cdot 10^{-268}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 4.6 \cdot 10^{-172}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(c \cdot \left(y \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.1e101Initial program 94.7%
Taylor expanded in b around inf 94.9%
associate-*r/94.9%
metadata-eval94.9%
+-commutative94.9%
Simplified94.9%
Taylor expanded in t around inf 72.0%
mul-1-neg72.0%
+-commutative72.0%
distribute-rgt-neg-in72.0%
+-commutative72.0%
mul-1-neg72.0%
distribute-lft-in72.0%
metadata-eval72.0%
mul-1-neg72.0%
unsub-neg72.0%
Simplified72.0%
Taylor expanded in a around 0 72.0%
Taylor expanded in b around 0 70.2%
if -1.1e101 < b < 1.08000000000000006e-268 or 4.5999999999999999e-172 < b Initial program 93.3%
Taylor expanded in b around inf 65.8%
associate-*r/65.8%
metadata-eval65.8%
+-commutative65.8%
Simplified65.8%
Taylor expanded in b around 0 34.9%
Taylor expanded in x around inf 57.9%
if 1.08000000000000006e-268 < b < 4.5999999999999999e-172Initial program 100.0%
Taylor expanded in c around inf 88.8%
+-commutative88.8%
associate-*r/88.8%
metadata-eval88.8%
Simplified88.8%
Taylor expanded in c around 0 68.8%
associate-*r/68.8%
metadata-eval68.8%
Simplified68.8%
Final simplification60.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -5.8e+32)
(/ x (+ x (* y (+ (* -2.0 (* b (+ a 0.8333333333333334))) 1.0))))
(if (<= b 7e-269)
1.0
(if (<= b 2.15e-163)
(/ x (+ x (+ y (* 2.0 (* c (* y (+ a 0.8333333333333334)))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -5.8e+32) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (b <= 7e-269) {
tmp = 1.0;
} else if (b <= 2.15e-163) {
tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-5.8d+32)) then
tmp = x / (x + (y * (((-2.0d0) * (b * (a + 0.8333333333333334d0))) + 1.0d0)))
else if (b <= 7d-269) then
tmp = 1.0d0
else if (b <= 2.15d-163) then
tmp = x / (x + (y + (2.0d0 * (c * (y * (a + 0.8333333333333334d0))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -5.8e+32) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (b <= 7e-269) {
tmp = 1.0;
} else if (b <= 2.15e-163) {
tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -5.8e+32: tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))) elif b <= 7e-269: tmp = 1.0 elif b <= 2.15e-163: tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -5.8e+32) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))) + 1.0)))); elseif (b <= 7e-269) tmp = 1.0; elseif (b <= 2.15e-163) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * Float64(y * Float64(a + 0.8333333333333334))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -5.8e+32) tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))); elseif (b <= 7e-269) tmp = 1.0; elseif (b <= 2.15e-163) tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -5.8e+32], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7e-269], 1.0, If[LessEqual[b, 2.15e-163], N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.8 \cdot 10^{+32}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{elif}\;b \leq 7 \cdot 10^{-269}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 2.15 \cdot 10^{-163}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -5.80000000000000006e32Initial program 89.8%
Taylor expanded in b around inf 88.1%
associate-*r/88.1%
metadata-eval88.1%
+-commutative88.1%
Simplified88.1%
Taylor expanded in t around inf 70.3%
mul-1-neg70.3%
+-commutative70.3%
distribute-rgt-neg-in70.3%
+-commutative70.3%
mul-1-neg70.3%
distribute-lft-in70.3%
metadata-eval70.3%
mul-1-neg70.3%
unsub-neg70.3%
Simplified70.3%
Taylor expanded in b around 0 54.6%
if -5.80000000000000006e32 < b < 7.00000000000000038e-269 or 2.15000000000000004e-163 < b Initial program 94.5%
Taylor expanded in b around inf 65.8%
associate-*r/65.8%
metadata-eval65.8%
+-commutative65.8%
Simplified65.8%
Taylor expanded in b around 0 36.3%
Taylor expanded in x around inf 58.6%
if 7.00000000000000038e-269 < b < 2.15000000000000004e-163Initial program 100.0%
Taylor expanded in c around inf 88.8%
+-commutative88.8%
associate-*r/88.8%
metadata-eval88.8%
Simplified88.8%
Taylor expanded in t around inf 74.1%
associate-*r*74.1%
Simplified74.1%
Taylor expanded in c around 0 65.5%
*-commutative65.5%
Simplified65.5%
Final simplification58.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -2.7e+219)
(/
x
(+
x
(+ y (* b (+ (* y -1.6666666666666667) (* (* y b) 1.3888888888888888))))))
(if (<= b 1.55e-268)
1.0
(if (<= b 4.2e-161)
(/ x (+ x (+ y (* 2.0 (* c (* y (+ a 0.8333333333333334)))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.7e+219) {
tmp = x / (x + (y + (b * ((y * -1.6666666666666667) + ((y * b) * 1.3888888888888888)))));
} else if (b <= 1.55e-268) {
tmp = 1.0;
} else if (b <= 4.2e-161) {
tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-2.7d+219)) then
tmp = x / (x + (y + (b * ((y * (-1.6666666666666667d0)) + ((y * b) * 1.3888888888888888d0)))))
else if (b <= 1.55d-268) then
tmp = 1.0d0
else if (b <= 4.2d-161) then
tmp = x / (x + (y + (2.0d0 * (c * (y * (a + 0.8333333333333334d0))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.7e+219) {
tmp = x / (x + (y + (b * ((y * -1.6666666666666667) + ((y * b) * 1.3888888888888888)))));
} else if (b <= 1.55e-268) {
tmp = 1.0;
} else if (b <= 4.2e-161) {
tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -2.7e+219: tmp = x / (x + (y + (b * ((y * -1.6666666666666667) + ((y * b) * 1.3888888888888888))))) elif b <= 1.55e-268: tmp = 1.0 elif b <= 4.2e-161: tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -2.7e+219) tmp = Float64(x / Float64(x + Float64(y + Float64(b * Float64(Float64(y * -1.6666666666666667) + Float64(Float64(y * b) * 1.3888888888888888)))))); elseif (b <= 1.55e-268) tmp = 1.0; elseif (b <= 4.2e-161) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * Float64(y * Float64(a + 0.8333333333333334))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -2.7e+219) tmp = x / (x + (y + (b * ((y * -1.6666666666666667) + ((y * b) * 1.3888888888888888))))); elseif (b <= 1.55e-268) tmp = 1.0; elseif (b <= 4.2e-161) tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -2.7e+219], N[(x / N[(x + N[(y + N[(b * N[(N[(y * -1.6666666666666667), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] * 1.3888888888888888), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.55e-268], 1.0, If[LessEqual[b, 4.2e-161], N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.7 \cdot 10^{+219}:\\
\;\;\;\;\frac{x}{x + \left(y + b \cdot \left(y \cdot -1.6666666666666667 + \left(y \cdot b\right) \cdot 1.3888888888888888\right)\right)}\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{-268}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{-161}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -2.6999999999999999e219Initial program 90.5%
Taylor expanded in b around inf 100.0%
associate-*r/100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in t around inf 81.5%
mul-1-neg81.5%
+-commutative81.5%
distribute-rgt-neg-in81.5%
+-commutative81.5%
mul-1-neg81.5%
distribute-lft-in81.5%
metadata-eval81.5%
mul-1-neg81.5%
unsub-neg81.5%
Simplified81.5%
Taylor expanded in a around 0 81.5%
Taylor expanded in b around 0 77.1%
if -2.6999999999999999e219 < b < 1.5499999999999999e-268 or 4.2000000000000001e-161 < b Initial program 93.8%
Taylor expanded in b around inf 67.6%
associate-*r/67.6%
metadata-eval67.6%
+-commutative67.6%
Simplified67.6%
Taylor expanded in b around 0 35.4%
Taylor expanded in x around inf 56.7%
if 1.5499999999999999e-268 < b < 4.2000000000000001e-161Initial program 100.0%
Taylor expanded in c around inf 88.8%
+-commutative88.8%
associate-*r/88.8%
metadata-eval88.8%
Simplified88.8%
Taylor expanded in t around inf 74.1%
associate-*r*74.1%
Simplified74.1%
Taylor expanded in c around 0 65.5%
*-commutative65.5%
Simplified65.5%
Final simplification59.3%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -1.46e+32) (/ x (+ x (* y (+ (* -2.0 (* b (+ a 0.8333333333333334))) 1.0)))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.46e+32) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-1.46d+32)) then
tmp = x / (x + (y * (((-2.0d0) * (b * (a + 0.8333333333333334d0))) + 1.0d0)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.46e+32) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -1.46e+32: tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -1.46e+32) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))) + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -1.46e+32) tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -1.46e+32], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.46 \cdot 10^{+32}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.46000000000000005e32Initial program 89.8%
Taylor expanded in b around inf 88.1%
associate-*r/88.1%
metadata-eval88.1%
+-commutative88.1%
Simplified88.1%
Taylor expanded in t around inf 70.3%
mul-1-neg70.3%
+-commutative70.3%
distribute-rgt-neg-in70.3%
+-commutative70.3%
mul-1-neg70.3%
distribute-lft-in70.3%
metadata-eval70.3%
mul-1-neg70.3%
unsub-neg70.3%
Simplified70.3%
Taylor expanded in b around 0 54.6%
if -1.46000000000000005e32 < b Initial program 95.2%
Taylor expanded in b around inf 64.5%
associate-*r/64.5%
metadata-eval64.5%
+-commutative64.5%
Simplified64.5%
Taylor expanded in b around 0 38.7%
Taylor expanded in x around inf 57.2%
Final simplification56.7%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -8e+220) (* -0.5 (/ x (* a (* y b)))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -8e+220) {
tmp = -0.5 * (x / (a * (y * b)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-8d+220)) then
tmp = (-0.5d0) * (x / (a * (y * b)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -8e+220) {
tmp = -0.5 * (x / (a * (y * b)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -8e+220: tmp = -0.5 * (x / (a * (y * b))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -8e+220) tmp = Float64(-0.5 * Float64(x / Float64(a * Float64(y * b)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -8e+220) tmp = -0.5 * (x / (a * (y * b))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -8e+220], N[(-0.5 * N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8 \cdot 10^{+220}:\\
\;\;\;\;-0.5 \cdot \frac{x}{a \cdot \left(y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -8e220Initial program 90.5%
Taylor expanded in b around inf 100.0%
associate-*r/100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in b around 0 54.3%
associate-*r*54.3%
associate-*r/54.3%
metadata-eval54.3%
Simplified54.3%
Taylor expanded in a around inf 54.0%
if -8e220 < b Initial program 94.5%
Taylor expanded in b around inf 66.2%
associate-*r/66.2%
metadata-eval66.2%
+-commutative66.2%
Simplified66.2%
Taylor expanded in b around 0 37.6%
Taylor expanded in x around inf 55.7%
Final simplification55.6%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 94.2%
Taylor expanded in b around inf 69.0%
associate-*r/69.0%
metadata-eval69.0%
+-commutative69.0%
Simplified69.0%
Taylor expanded in b around 0 35.8%
Taylor expanded in x around inf 52.9%
Final simplification52.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 2024084
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:alt
(if (< t -2.118326644891581e-50) (/ x (+ x (* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b))))))) (if (< t 5.196588770651547e-123) (/ x (+ x (* y (exp (* 2.0 (/ (- (* (* z (sqrt (+ t a))) (* (* 3.0 t) (- a (/ 5.0 6.0)))) (* (- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0) (* (- a (/ 5.0 6.0)) (* (- b c) t)))) (* (* (* t t) 3.0) (- a (/ 5.0 6.0))))))))) (/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))