
(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 25 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 (exp (* (* a b) -2.0))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp(((a * b) * -2.0))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp(((a * b) * -2.0))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp(((a * b) * -2.0)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(a * b) * -2.0))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp(((a * b) * -2.0)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(N[(a * b), $MachinePrecision] * -2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t\_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(a \cdot b\right) \cdot -2}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < +inf.0Initial program 98.8%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 0.0%
Taylor expanded in b around inf 67.7%
associate-*r/67.7%
metadata-eval67.7%
Simplified67.7%
Taylor expanded in t around inf 67.7%
mul-1-neg67.7%
+-commutative67.7%
distribute-rgt-neg-in67.7%
+-commutative67.7%
distribute-neg-in67.7%
unsub-neg67.7%
metadata-eval67.7%
Simplified67.7%
Taylor expanded in a around inf 78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
Final simplification98.1%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= t -2.9e-53) (not (<= t 3.6e-107)))
(/ x (+ x (* y (exp (* 2.0 (+ (/ (* z (sqrt (+ t a))) t) (* a (- c b))))))))
(/
x
(+
x
(*
y
(exp
(* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -2.9e-53) || !(t <= 3.6e-107)) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) + (a * (c - b)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((t <= (-2.9d-53)) .or. (.not. (t <= 3.6d-107))) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) + (a * (c - b)))))))
else
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -2.9e-53) || !(t <= 3.6e-107)) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) + (a * (c - b)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -2.9e-53) or not (t <= 3.6e-107): tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) + (a * (c - b))))))) else: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -2.9e-53) || !(t <= 3.6e-107)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(a * Float64(c - b)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((t <= -2.9e-53) || ~((t <= 3.6e-107))) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) + (a * (c - b))))))); else tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -2.9e-53], N[Not[LessEqual[t, 3.6e-107]], $MachinePrecision]], 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[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.9 \cdot 10^{-53} \lor \neg \left(t \leq 3.6 \cdot 10^{-107}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} + a \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\end{array}
\end{array}
if t < -2.8999999999999998e-53 or 3.59999999999999976e-107 < t Initial program 96.4%
Taylor expanded in a around inf 82.5%
if -2.8999999999999998e-53 < t < 3.59999999999999976e-107Initial program 93.5%
Taylor expanded in t around 0 94.7%
Final simplification86.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 8.2e-88)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (+ (- a (/ 0.6666666666666666 t)) 0.8333333333333334)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 8.2e-88) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 8.2d-88) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * (c * ((a - (0.6666666666666666d0 / t)) + 0.8333333333333334d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 8.2e-88) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 8.2e-88: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 8.2e-88) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(Float64(a - Float64(0.6666666666666666 / t)) + 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 8.2e-88) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); else tmp = x / (x + (y * exp((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 8.2e-88], 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], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 8.2 \cdot 10^{-88}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(\left(a - \frac{0.6666666666666666}{t}\right) + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if t < 8.2000000000000002e-88Initial program 93.4%
Taylor expanded in t around 0 87.1%
if 8.2000000000000002e-88 < t Initial program 97.1%
Taylor expanded in c around inf 71.3%
associate--l+71.3%
associate-*r/71.3%
metadata-eval71.3%
Simplified71.3%
Final simplification78.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -6e+235)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= c -5e+162)
(/
x
(+
x
(* y (+ (* c (+ 1.6666666666666667 (* c 1.3888888888888888))) 1.0))))
(if (<= c -1.02e+39)
1.0
(if (<= c 2e+35)
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a)))))))
(/ x (* y (exp (* c 1.6666666666666667)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -6e+235) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (c <= -5e+162) {
tmp = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0)));
} else if (c <= -1.02e+39) {
tmp = 1.0;
} else if (c <= 2e+35) {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else {
tmp = x / (y * exp((c * 1.6666666666666667)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-6d+235)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (c <= (-5d+162)) then
tmp = x / (x + (y * ((c * (1.6666666666666667d0 + (c * 1.3888888888888888d0))) + 1.0d0)))
else if (c <= (-1.02d+39)) then
tmp = 1.0d0
else if (c <= 2d+35) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
else
tmp = x / (y * exp((c * 1.6666666666666667d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -6e+235) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (c <= -5e+162) {
tmp = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0)));
} else if (c <= -1.02e+39) {
tmp = 1.0;
} else if (c <= 2e+35) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else {
tmp = x / (y * Math.exp((c * 1.6666666666666667)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -6e+235: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif c <= -5e+162: tmp = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0))) elif c <= -1.02e+39: tmp = 1.0 elif c <= 2e+35: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) else: tmp = x / (y * math.exp((c * 1.6666666666666667))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -6e+235) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (c <= -5e+162) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(c * Float64(1.6666666666666667 + Float64(c * 1.3888888888888888))) + 1.0)))); elseif (c <= -1.02e+39) tmp = 1.0; elseif (c <= 2e+35) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); else tmp = Float64(x / Float64(y * exp(Float64(c * 1.6666666666666667)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -6e+235) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (c <= -5e+162) tmp = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0))); elseif (c <= -1.02e+39) tmp = 1.0; elseif (c <= 2e+35) tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); else tmp = x / (y * exp((c * 1.6666666666666667))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -6e+235], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -5e+162], N[(x / N[(x + N[(y * N[(N[(c * N[(1.6666666666666667 + N[(c * 1.3888888888888888), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.02e+39], 1.0, If[LessEqual[c, 2e+35], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -6 \cdot 10^{+235}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;c \leq -5 \cdot 10^{+162}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(c \cdot \left(1.6666666666666667 + c \cdot 1.3888888888888888\right) + 1\right)}\\
\mathbf{elif}\;c \leq -1.02 \cdot 10^{+39}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 2 \cdot 10^{+35}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if c < -6.00000000000000032e235Initial program 100.0%
Taylor expanded in c around inf 100.0%
associate--l+100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in a around inf 80.1%
if -6.00000000000000032e235 < c < -4.9999999999999997e162Initial program 88.2%
Taylor expanded in c around inf 77.2%
associate--l+77.2%
associate-*r/77.2%
metadata-eval77.2%
Simplified77.2%
Taylor expanded in a around 0 65.8%
associate-*r/65.8%
metadata-eval65.8%
sub-neg65.8%
distribute-neg-frac65.8%
metadata-eval65.8%
Simplified65.8%
Taylor expanded in t around inf 25.9%
*-commutative25.9%
Simplified25.9%
Taylor expanded in c around 0 77.2%
*-commutative77.2%
Simplified77.2%
if -4.9999999999999997e162 < c < -1.02e39Initial program 81.6%
Simplified89.0%
Taylor expanded in x around inf 67.7%
if -1.02e39 < c < 1.9999999999999999e35Initial program 97.9%
Taylor expanded in b around inf 74.6%
associate-*r/74.6%
metadata-eval74.6%
Simplified74.6%
Taylor expanded in t around inf 67.7%
mul-1-neg67.7%
+-commutative67.7%
distribute-rgt-neg-in67.7%
+-commutative67.7%
distribute-neg-in67.7%
unsub-neg67.7%
metadata-eval67.7%
Simplified67.7%
if 1.9999999999999999e35 < c Initial program 96.4%
Taylor expanded in c around inf 87.4%
associate--l+87.4%
associate-*r/87.4%
metadata-eval87.4%
Simplified87.4%
Taylor expanded in a around 0 85.6%
associate-*r/85.6%
metadata-eval85.6%
sub-neg85.6%
distribute-neg-frac85.6%
metadata-eval85.6%
Simplified85.6%
Taylor expanded in t around inf 74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in x around 0 74.9%
Final simplification70.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -9.5e+235)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= c -5e+162)
(/
x
(+
x
(* y (+ (* c (+ 1.6666666666666667 (* c 1.3888888888888888))) 1.0))))
(if (<= c -2.15e+30)
1.0
(if (<= c 2.3e+36)
(/ x (+ x (* y (exp (* (* a b) -2.0)))))
(/ x (* y (exp (* c 1.6666666666666667)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -9.5e+235) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (c <= -5e+162) {
tmp = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0)));
} else if (c <= -2.15e+30) {
tmp = 1.0;
} else if (c <= 2.3e+36) {
tmp = x / (x + (y * exp(((a * b) * -2.0))));
} else {
tmp = x / (y * exp((c * 1.6666666666666667)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-9.5d+235)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (c <= (-5d+162)) then
tmp = x / (x + (y * ((c * (1.6666666666666667d0 + (c * 1.3888888888888888d0))) + 1.0d0)))
else if (c <= (-2.15d+30)) then
tmp = 1.0d0
else if (c <= 2.3d+36) then
tmp = x / (x + (y * exp(((a * b) * (-2.0d0)))))
else
tmp = x / (y * exp((c * 1.6666666666666667d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -9.5e+235) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (c <= -5e+162) {
tmp = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0)));
} else if (c <= -2.15e+30) {
tmp = 1.0;
} else if (c <= 2.3e+36) {
tmp = x / (x + (y * Math.exp(((a * b) * -2.0))));
} else {
tmp = x / (y * Math.exp((c * 1.6666666666666667)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -9.5e+235: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif c <= -5e+162: tmp = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0))) elif c <= -2.15e+30: tmp = 1.0 elif c <= 2.3e+36: tmp = x / (x + (y * math.exp(((a * b) * -2.0)))) else: tmp = x / (y * math.exp((c * 1.6666666666666667))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -9.5e+235) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (c <= -5e+162) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(c * Float64(1.6666666666666667 + Float64(c * 1.3888888888888888))) + 1.0)))); elseif (c <= -2.15e+30) tmp = 1.0; elseif (c <= 2.3e+36) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(a * b) * -2.0))))); else tmp = Float64(x / Float64(y * exp(Float64(c * 1.6666666666666667)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -9.5e+235) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (c <= -5e+162) tmp = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0))); elseif (c <= -2.15e+30) tmp = 1.0; elseif (c <= 2.3e+36) tmp = x / (x + (y * exp(((a * b) * -2.0)))); else tmp = x / (y * exp((c * 1.6666666666666667))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -9.5e+235], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -5e+162], N[(x / N[(x + N[(y * N[(N[(c * N[(1.6666666666666667 + N[(c * 1.3888888888888888), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.15e+30], 1.0, If[LessEqual[c, 2.3e+36], N[(x / N[(x + N[(y * N[Exp[N[(N[(a * b), $MachinePrecision] * -2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -9.5 \cdot 10^{+235}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;c \leq -5 \cdot 10^{+162}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(c \cdot \left(1.6666666666666667 + c \cdot 1.3888888888888888\right) + 1\right)}\\
\mathbf{elif}\;c \leq -2.15 \cdot 10^{+30}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 2.3 \cdot 10^{+36}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(a \cdot b\right) \cdot -2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if c < -9.49999999999999966e235Initial program 100.0%
Taylor expanded in c around inf 100.0%
associate--l+100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in a around inf 80.1%
if -9.49999999999999966e235 < c < -4.9999999999999997e162Initial program 88.2%
Taylor expanded in c around inf 77.2%
associate--l+77.2%
associate-*r/77.2%
metadata-eval77.2%
Simplified77.2%
Taylor expanded in a around 0 65.8%
associate-*r/65.8%
metadata-eval65.8%
sub-neg65.8%
distribute-neg-frac65.8%
metadata-eval65.8%
Simplified65.8%
Taylor expanded in t around inf 25.9%
*-commutative25.9%
Simplified25.9%
Taylor expanded in c around 0 77.2%
*-commutative77.2%
Simplified77.2%
if -4.9999999999999997e162 < c < -2.15e30Initial program 81.6%
Simplified89.0%
Taylor expanded in x around inf 67.7%
if -2.15e30 < c < 2.29999999999999996e36Initial program 97.9%
Taylor expanded in b around inf 74.6%
associate-*r/74.6%
metadata-eval74.6%
Simplified74.6%
Taylor expanded in t around inf 67.7%
mul-1-neg67.7%
+-commutative67.7%
distribute-rgt-neg-in67.7%
+-commutative67.7%
distribute-neg-in67.7%
unsub-neg67.7%
metadata-eval67.7%
Simplified67.7%
Taylor expanded in a around inf 62.1%
*-commutative62.1%
*-commutative62.1%
Simplified62.1%
if 2.29999999999999996e36 < c Initial program 96.4%
Taylor expanded in c around inf 87.4%
associate--l+87.4%
associate-*r/87.4%
metadata-eval87.4%
Simplified87.4%
Taylor expanded in a around 0 85.6%
associate-*r/85.6%
metadata-eval85.6%
sub-neg85.6%
distribute-neg-frac85.6%
metadata-eval85.6%
Simplified85.6%
Taylor expanded in t around inf 74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in x around 0 74.9%
Final simplification67.7%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= b -1.65e-33) (not (<= b 5e+63)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (+ (- a (/ 0.6666666666666666 t)) 0.8333333333333334)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -1.65e-33) || !(b <= 5e+63)) {
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.6666666666666666 / t)) + 0.8333333333333334))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b <= (-1.65d-33)) .or. (.not. (b <= 5d+63))) 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.6666666666666666d0 / t)) + 0.8333333333333334d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -1.65e-33) || !(b <= 5e+63)) {
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.6666666666666666 / t)) + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -1.65e-33) or not (b <= 5e+63): 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.6666666666666666 / t)) + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -1.65e-33) || !(b <= 5e+63)) 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 - Float64(0.6666666666666666 / t)) + 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -1.65e-33) || ~((b <= 5e+63))) 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.6666666666666666 / t)) + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -1.65e-33], N[Not[LessEqual[b, 5e+63]], $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 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.65 \cdot 10^{-33} \lor \neg \left(b \leq 5 \cdot 10^{+63}\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 - \frac{0.6666666666666666}{t}\right) + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if b < -1.6500000000000001e-33 or 5.00000000000000011e63 < b Initial program 91.2%
Taylor expanded in b around inf 86.7%
associate-*r/86.7%
metadata-eval86.7%
Simplified86.7%
if -1.6500000000000001e-33 < b < 5.00000000000000011e63Initial program 98.1%
Taylor expanded in c around inf 75.5%
associate--l+75.5%
associate-*r/75.5%
metadata-eval75.5%
Simplified75.5%
Final simplification80.0%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -2.2e+38) (not (<= c 2.2e+36)))
(/
x
(+
x
(*
y
(exp (* 2.0 (* c (+ (/ -0.6666666666666666 t) 0.8333333333333334)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -2.2e+38) || !(c <= 2.2e+36)) {
tmp = x / (x + (y * exp((2.0 * (c * ((-0.6666666666666666 / t) + 0.8333333333333334))))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((c <= (-2.2d+38)) .or. (.not. (c <= 2.2d+36))) then
tmp = x / (x + (y * exp((2.0d0 * (c * (((-0.6666666666666666d0) / t) + 0.8333333333333334d0))))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -2.2e+38) || !(c <= 2.2e+36)) {
tmp = x / (x + (y * Math.exp((2.0 * (c * ((-0.6666666666666666 / t) + 0.8333333333333334))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (c <= -2.2e+38) or not (c <= 2.2e+36): tmp = x / (x + (y * math.exp((2.0 * (c * ((-0.6666666666666666 / t) + 0.8333333333333334)))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((c <= -2.2e+38) || !(c <= 2.2e+36)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((c <= -2.2e+38) || ~((c <= 2.2e+36))) tmp = x / (x + (y * exp((2.0 * (c * ((-0.6666666666666666 / t) + 0.8333333333333334)))))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[c, -2.2e+38], N[Not[LessEqual[c, 2.2e+36]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.2 \cdot 10^{+38} \lor \neg \left(c \leq 2.2 \cdot 10^{+36}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(\frac{-0.6666666666666666}{t} + 0.8333333333333334\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if c < -2.20000000000000006e38 or 2.2e36 < c Initial program 92.4%
Taylor expanded in c around inf 83.4%
associate--l+83.4%
associate-*r/83.4%
metadata-eval83.4%
Simplified83.4%
Taylor expanded in a around 0 77.6%
associate-*r/77.6%
metadata-eval77.6%
sub-neg77.6%
distribute-neg-frac77.6%
metadata-eval77.6%
Simplified77.6%
if -2.20000000000000006e38 < c < 2.2e36Initial program 97.9%
Taylor expanded in b around inf 74.6%
associate-*r/74.6%
metadata-eval74.6%
Simplified74.6%
Final simplification76.0%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -9.4e+27) (not (<= c 5.2e+34)))
(/
x
(+
x
(*
y
(exp (* 2.0 (* c (+ (/ -0.6666666666666666 t) 0.8333333333333334)))))))
(/ 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 ((c <= -9.4e+27) || !(c <= 5.2e+34)) {
tmp = x / (x + (y * exp((2.0 * (c * ((-0.6666666666666666 / t) + 0.8333333333333334))))));
} 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 ((c <= (-9.4d+27)) .or. (.not. (c <= 5.2d+34))) then
tmp = x / (x + (y * exp((2.0d0 * (c * (((-0.6666666666666666d0) / t) + 0.8333333333333334d0))))))
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 ((c <= -9.4e+27) || !(c <= 5.2e+34)) {
tmp = x / (x + (y * Math.exp((2.0 * (c * ((-0.6666666666666666 / t) + 0.8333333333333334))))));
} 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 (c <= -9.4e+27) or not (c <= 5.2e+34): tmp = x / (x + (y * math.exp((2.0 * (c * ((-0.6666666666666666 / t) + 0.8333333333333334)))))) 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 ((c <= -9.4e+27) || !(c <= 5.2e+34)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334))))))); 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 ((c <= -9.4e+27) || ~((c <= 5.2e+34))) tmp = x / (x + (y * exp((2.0 * (c * ((-0.6666666666666666 / t) + 0.8333333333333334)))))); 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[Or[LessEqual[c, -9.4e+27], N[Not[LessEqual[c, 5.2e+34]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $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}\;c \leq -9.4 \cdot 10^{+27} \lor \neg \left(c \leq 5.2 \cdot 10^{+34}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(\frac{-0.6666666666666666}{t} + 0.8333333333333334\right)\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 c < -9.39999999999999952e27 or 5.19999999999999995e34 < c Initial program 92.4%
Taylor expanded in c around inf 83.4%
associate--l+83.4%
associate-*r/83.4%
metadata-eval83.4%
Simplified83.4%
Taylor expanded in a around 0 77.6%
associate-*r/77.6%
metadata-eval77.6%
sub-neg77.6%
distribute-neg-frac77.6%
metadata-eval77.6%
Simplified77.6%
if -9.39999999999999952e27 < c < 5.19999999999999995e34Initial program 97.9%
Taylor expanded in b around inf 74.6%
associate-*r/74.6%
metadata-eval74.6%
Simplified74.6%
Taylor expanded in t around inf 67.7%
mul-1-neg67.7%
+-commutative67.7%
distribute-rgt-neg-in67.7%
+-commutative67.7%
distribute-neg-in67.7%
unsub-neg67.7%
metadata-eval67.7%
Simplified67.7%
Final simplification72.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (+ a (+ (/ -0.6666666666666666 t) 0.8333333333333334)))
(t_2 (/ x (+ x (* y (exp (* b -1.6666666666666667)))))))
(if (<= b -1.2e-8)
t_2
(if (<= b 2.4e-96)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= b 1.75e+202)
(/ x (- x (* y (- -1.0 (* c (* 2.0 (+ t_1 (* c (* t_1 t_1)))))))))
t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a + ((-0.6666666666666666 / t) + 0.8333333333333334);
double t_2 = x / (x + (y * exp((b * -1.6666666666666667))));
double tmp;
if (b <= -1.2e-8) {
tmp = t_2;
} else if (b <= 2.4e-96) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (b <= 1.75e+202) {
tmp = x / (x - (y * (-1.0 - (c * (2.0 * (t_1 + (c * (t_1 * t_1))))))));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a + (((-0.6666666666666666d0) / t) + 0.8333333333333334d0)
t_2 = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
if (b <= (-1.2d-8)) then
tmp = t_2
else if (b <= 2.4d-96) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (b <= 1.75d+202) then
tmp = x / (x - (y * ((-1.0d0) - (c * (2.0d0 * (t_1 + (c * (t_1 * t_1))))))))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a + ((-0.6666666666666666 / t) + 0.8333333333333334);
double t_2 = x / (x + (y * Math.exp((b * -1.6666666666666667))));
double tmp;
if (b <= -1.2e-8) {
tmp = t_2;
} else if (b <= 2.4e-96) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (b <= 1.75e+202) {
tmp = x / (x - (y * (-1.0 - (c * (2.0 * (t_1 + (c * (t_1 * t_1))))))));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = a + ((-0.6666666666666666 / t) + 0.8333333333333334) t_2 = x / (x + (y * math.exp((b * -1.6666666666666667)))) tmp = 0 if b <= -1.2e-8: tmp = t_2 elif b <= 2.4e-96: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif b <= 1.75e+202: tmp = x / (x - (y * (-1.0 - (c * (2.0 * (t_1 + (c * (t_1 * t_1)))))))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(a + Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334)) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))) tmp = 0.0 if (b <= -1.2e-8) tmp = t_2; elseif (b <= 2.4e-96) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (b <= 1.75e+202) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(c * Float64(2.0 * Float64(t_1 + Float64(c * Float64(t_1 * t_1))))))))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = a + ((-0.6666666666666666 / t) + 0.8333333333333334); t_2 = x / (x + (y * exp((b * -1.6666666666666667)))); tmp = 0.0; if (b <= -1.2e-8) tmp = t_2; elseif (b <= 2.4e-96) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (b <= 1.75e+202) tmp = x / (x - (y * (-1.0 - (c * (2.0 * (t_1 + (c * (t_1 * t_1)))))))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(a + N[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.2e-8], t$95$2, If[LessEqual[b, 2.4e-96], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.75e+202], N[(x / N[(x - N[(y * N[(-1.0 - N[(c * N[(2.0 * N[(t$95$1 + N[(c * N[(t$95$1 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + \left(\frac{-0.6666666666666666}{t} + 0.8333333333333334\right)\\
t_2 := \frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{if}\;b \leq -1.2 \cdot 10^{-8}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{-96}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{+202}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - c \cdot \left(2 \cdot \left(t\_1 + c \cdot \left(t\_1 \cdot t\_1\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.19999999999999999e-8 or 1.74999999999999994e202 < b Initial program 90.9%
Taylor expanded in b around inf 84.7%
associate-*r/84.7%
metadata-eval84.7%
Simplified84.7%
Taylor expanded in t around inf 74.5%
mul-1-neg74.5%
+-commutative74.5%
distribute-rgt-neg-in74.5%
+-commutative74.5%
distribute-neg-in74.5%
unsub-neg74.5%
metadata-eval74.5%
Simplified74.5%
Taylor expanded in a around 0 70.7%
*-commutative70.7%
Simplified70.7%
if -1.19999999999999999e-8 < b < 2.40000000000000019e-96Initial program 97.6%
Taylor expanded in c around inf 79.7%
associate--l+79.7%
associate-*r/79.7%
metadata-eval79.7%
Simplified79.7%
Taylor expanded in a around inf 64.4%
if 2.40000000000000019e-96 < b < 1.74999999999999994e202Initial program 96.4%
Taylor expanded in c around inf 60.3%
associate--l+60.3%
associate-*r/60.3%
metadata-eval60.3%
Simplified60.3%
Taylor expanded in c around 0 56.8%
distribute-lft-out56.8%
associate-*r/56.8%
metadata-eval56.8%
+-commutative56.8%
associate--l+56.8%
sub-neg56.8%
distribute-neg-frac56.8%
metadata-eval56.8%
associate-*r/56.8%
metadata-eval56.8%
+-commutative56.8%
associate--l+56.8%
Simplified56.8%
unpow256.8%
+-commutative56.8%
+-commutative56.8%
Applied egg-rr56.8%
Final simplification64.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (+ a (+ (/ -0.6666666666666666 t) 0.8333333333333334)))
(t_2 (/ x (+ x (* y (exp (* b -1.6666666666666667)))))))
(if (<= b -1150000000.0)
t_2
(if (<= b -2.7e-159)
(/ x (- x (* y (- -1.0 (* c (* 2.0 (+ t_1 (* c (* t_1 t_1)))))))))
(if (<= b 1.7e+202)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a + ((-0.6666666666666666 / t) + 0.8333333333333334);
double t_2 = x / (x + (y * exp((b * -1.6666666666666667))));
double tmp;
if (b <= -1150000000.0) {
tmp = t_2;
} else if (b <= -2.7e-159) {
tmp = x / (x - (y * (-1.0 - (c * (2.0 * (t_1 + (c * (t_1 * t_1))))))));
} else if (b <= 1.7e+202) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a + (((-0.6666666666666666d0) / t) + 0.8333333333333334d0)
t_2 = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
if (b <= (-1150000000.0d0)) then
tmp = t_2
else if (b <= (-2.7d-159)) then
tmp = x / (x - (y * ((-1.0d0) - (c * (2.0d0 * (t_1 + (c * (t_1 * t_1))))))))
else if (b <= 1.7d+202) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a + ((-0.6666666666666666 / t) + 0.8333333333333334);
double t_2 = x / (x + (y * Math.exp((b * -1.6666666666666667))));
double tmp;
if (b <= -1150000000.0) {
tmp = t_2;
} else if (b <= -2.7e-159) {
tmp = x / (x - (y * (-1.0 - (c * (2.0 * (t_1 + (c * (t_1 * t_1))))))));
} else if (b <= 1.7e+202) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = a + ((-0.6666666666666666 / t) + 0.8333333333333334) t_2 = x / (x + (y * math.exp((b * -1.6666666666666667)))) tmp = 0 if b <= -1150000000.0: tmp = t_2 elif b <= -2.7e-159: tmp = x / (x - (y * (-1.0 - (c * (2.0 * (t_1 + (c * (t_1 * t_1)))))))) elif b <= 1.7e+202: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(a + Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334)) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))) tmp = 0.0 if (b <= -1150000000.0) tmp = t_2; elseif (b <= -2.7e-159) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(c * Float64(2.0 * Float64(t_1 + Float64(c * Float64(t_1 * t_1))))))))); elseif (b <= 1.7e+202) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = a + ((-0.6666666666666666 / t) + 0.8333333333333334); t_2 = x / (x + (y * exp((b * -1.6666666666666667)))); tmp = 0.0; if (b <= -1150000000.0) tmp = t_2; elseif (b <= -2.7e-159) tmp = x / (x - (y * (-1.0 - (c * (2.0 * (t_1 + (c * (t_1 * t_1)))))))); elseif (b <= 1.7e+202) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(a + N[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1150000000.0], t$95$2, If[LessEqual[b, -2.7e-159], N[(x / N[(x - N[(y * N[(-1.0 - N[(c * N[(2.0 * N[(t$95$1 + N[(c * N[(t$95$1 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.7e+202], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + \left(\frac{-0.6666666666666666}{t} + 0.8333333333333334\right)\\
t_2 := \frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{if}\;b \leq -1150000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{-159}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - c \cdot \left(2 \cdot \left(t\_1 + c \cdot \left(t\_1 \cdot t\_1\right)\right)\right)\right)}\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{+202}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.15e9 or 1.7e202 < b Initial program 90.6%
Taylor expanded in b around inf 84.3%
associate-*r/84.3%
metadata-eval84.3%
Simplified84.3%
Taylor expanded in t around inf 75.1%
mul-1-neg75.1%
+-commutative75.1%
distribute-rgt-neg-in75.1%
+-commutative75.1%
distribute-neg-in75.1%
unsub-neg75.1%
metadata-eval75.1%
Simplified75.1%
Taylor expanded in a around 0 72.5%
*-commutative72.5%
Simplified72.5%
if -1.15e9 < b < -2.7e-159Initial program 100.0%
Taylor expanded in c around inf 76.0%
associate--l+76.0%
associate-*r/76.0%
metadata-eval76.0%
Simplified76.0%
Taylor expanded in c around 0 60.6%
distribute-lft-out60.6%
associate-*r/60.6%
metadata-eval60.6%
+-commutative60.6%
associate--l+60.6%
sub-neg60.6%
distribute-neg-frac60.6%
metadata-eval60.6%
associate-*r/60.6%
metadata-eval60.6%
+-commutative60.6%
associate--l+60.6%
Simplified60.6%
unpow260.6%
+-commutative60.6%
+-commutative60.6%
Applied egg-rr60.6%
if -2.7e-159 < b < 1.7e202Initial program 96.4%
Taylor expanded in c around inf 72.6%
associate--l+72.6%
associate-*r/72.6%
metadata-eval72.6%
Simplified72.6%
Taylor expanded in a around 0 67.0%
associate-*r/67.0%
metadata-eval67.0%
sub-neg67.0%
distribute-neg-frac67.0%
metadata-eval67.0%
Simplified67.0%
Taylor expanded in t around inf 61.0%
*-commutative61.0%
Simplified61.0%
Final simplification64.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -3.2e+35)
(/ x (+ x (* y (exp (* 2.0 (* c (+ a 0.8333333333333334)))))))
(if (<= c 2.05e+35)
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a)))))))
(/ x (* y (exp (* c 1.6666666666666667)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -3.2e+35) {
tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334))))));
} else if (c <= 2.05e+35) {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else {
tmp = x / (y * exp((c * 1.6666666666666667)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-3.2d+35)) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + 0.8333333333333334d0))))))
else if (c <= 2.05d+35) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
else
tmp = x / (y * exp((c * 1.6666666666666667d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -3.2e+35) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + 0.8333333333333334))))));
} else if (c <= 2.05e+35) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else {
tmp = x / (y * Math.exp((c * 1.6666666666666667)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -3.2e+35: tmp = x / (x + (y * math.exp((2.0 * (c * (a + 0.8333333333333334)))))) elif c <= 2.05e+35: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) else: tmp = x / (y * math.exp((c * 1.6666666666666667))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -3.2e+35) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))))))); elseif (c <= 2.05e+35) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); else tmp = Float64(x / Float64(y * exp(Float64(c * 1.6666666666666667)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -3.2e+35) tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334)))))); elseif (c <= 2.05e+35) tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); else tmp = x / (y * exp((c * 1.6666666666666667))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -3.2e+35], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.05e+35], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.2 \cdot 10^{+35}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\mathbf{elif}\;c \leq 2.05 \cdot 10^{+35}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if c < -3.19999999999999983e35Initial program 88.9%
Taylor expanded in c around inf 80.0%
associate--l+80.0%
associate-*r/80.0%
metadata-eval80.0%
Simplified80.0%
Taylor expanded in t around inf 66.2%
+-commutative66.2%
Simplified66.2%
if -3.19999999999999983e35 < c < 2.0499999999999999e35Initial program 97.9%
Taylor expanded in b around inf 74.6%
associate-*r/74.6%
metadata-eval74.6%
Simplified74.6%
Taylor expanded in t around inf 67.7%
mul-1-neg67.7%
+-commutative67.7%
distribute-rgt-neg-in67.7%
+-commutative67.7%
distribute-neg-in67.7%
unsub-neg67.7%
metadata-eval67.7%
Simplified67.7%
if 2.0499999999999999e35 < c Initial program 96.4%
Taylor expanded in c around inf 87.4%
associate--l+87.4%
associate-*r/87.4%
metadata-eval87.4%
Simplified87.4%
Taylor expanded in a around 0 85.6%
associate-*r/85.6%
metadata-eval85.6%
sub-neg85.6%
distribute-neg-frac85.6%
metadata-eval85.6%
Simplified85.6%
Taylor expanded in t around inf 74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in x around 0 74.9%
Final simplification68.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (+ a (+ (/ -0.6666666666666666 t) 0.8333333333333334))))
(if (or (<= b -110000000000.0) (not (<= b 6.2e+202)))
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(/ x (- x (* y (- -1.0 (* c (* 2.0 (+ t_1 (* c (* t_1 t_1))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a + ((-0.6666666666666666 / t) + 0.8333333333333334);
double tmp;
if ((b <= -110000000000.0) || !(b <= 6.2e+202)) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else {
tmp = x / (x - (y * (-1.0 - (c * (2.0 * (t_1 + (c * (t_1 * 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 = a + (((-0.6666666666666666d0) / t) + 0.8333333333333334d0)
if ((b <= (-110000000000.0d0)) .or. (.not. (b <= 6.2d+202))) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else
tmp = x / (x - (y * ((-1.0d0) - (c * (2.0d0 * (t_1 + (c * (t_1 * 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 = a + ((-0.6666666666666666 / t) + 0.8333333333333334);
double tmp;
if ((b <= -110000000000.0) || !(b <= 6.2e+202)) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else {
tmp = x / (x - (y * (-1.0 - (c * (2.0 * (t_1 + (c * (t_1 * t_1))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = a + ((-0.6666666666666666 / t) + 0.8333333333333334) tmp = 0 if (b <= -110000000000.0) or not (b <= 6.2e+202): tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) else: tmp = x / (x - (y * (-1.0 - (c * (2.0 * (t_1 + (c * (t_1 * t_1)))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(a + Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334)) tmp = 0.0 if ((b <= -110000000000.0) || !(b <= 6.2e+202)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); else tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(c * Float64(2.0 * Float64(t_1 + Float64(c * Float64(t_1 * t_1))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = a + ((-0.6666666666666666 / t) + 0.8333333333333334); tmp = 0.0; if ((b <= -110000000000.0) || ~((b <= 6.2e+202))) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); else tmp = x / (x - (y * (-1.0 - (c * (2.0 * (t_1 + (c * (t_1 * t_1)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(a + N[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[b, -110000000000.0], N[Not[LessEqual[b, 6.2e+202]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x - N[(y * N[(-1.0 - N[(c * N[(2.0 * N[(t$95$1 + N[(c * N[(t$95$1 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + \left(\frac{-0.6666666666666666}{t} + 0.8333333333333334\right)\\
\mathbf{if}\;b \leq -110000000000 \lor \neg \left(b \leq 6.2 \cdot 10^{+202}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - c \cdot \left(2 \cdot \left(t\_1 + c \cdot \left(t\_1 \cdot t\_1\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -1.1e11 or 6.19999999999999983e202 < b Initial program 90.6%
Taylor expanded in b around inf 84.3%
associate-*r/84.3%
metadata-eval84.3%
Simplified84.3%
Taylor expanded in t around inf 75.1%
mul-1-neg75.1%
+-commutative75.1%
distribute-rgt-neg-in75.1%
+-commutative75.1%
distribute-neg-in75.1%
unsub-neg75.1%
metadata-eval75.1%
Simplified75.1%
Taylor expanded in a around 0 72.5%
*-commutative72.5%
Simplified72.5%
if -1.1e11 < b < 6.19999999999999983e202Initial program 97.3%
Taylor expanded in c around inf 73.4%
associate--l+73.4%
associate-*r/73.4%
metadata-eval73.4%
Simplified73.4%
Taylor expanded in c around 0 57.3%
distribute-lft-out57.3%
associate-*r/57.3%
metadata-eval57.3%
+-commutative57.3%
associate--l+57.3%
sub-neg57.3%
distribute-neg-frac57.3%
metadata-eval57.3%
associate-*r/57.3%
metadata-eval57.3%
+-commutative57.3%
associate--l+57.3%
Simplified57.3%
unpow257.3%
+-commutative57.3%
+-commutative57.3%
Applied egg-rr57.3%
Final simplification61.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (+ a (+ (/ -0.6666666666666666 t) 0.8333333333333334))))
(if (<= z -5e-42)
1.0
(/ x (- x (* y (- -1.0 (* c (* 2.0 (+ t_1 (* c (* t_1 t_1))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a + ((-0.6666666666666666 / t) + 0.8333333333333334);
double tmp;
if (z <= -5e-42) {
tmp = 1.0;
} else {
tmp = x / (x - (y * (-1.0 - (c * (2.0 * (t_1 + (c * (t_1 * 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 = a + (((-0.6666666666666666d0) / t) + 0.8333333333333334d0)
if (z <= (-5d-42)) then
tmp = 1.0d0
else
tmp = x / (x - (y * ((-1.0d0) - (c * (2.0d0 * (t_1 + (c * (t_1 * 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 = a + ((-0.6666666666666666 / t) + 0.8333333333333334);
double tmp;
if (z <= -5e-42) {
tmp = 1.0;
} else {
tmp = x / (x - (y * (-1.0 - (c * (2.0 * (t_1 + (c * (t_1 * t_1))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = a + ((-0.6666666666666666 / t) + 0.8333333333333334) tmp = 0 if z <= -5e-42: tmp = 1.0 else: tmp = x / (x - (y * (-1.0 - (c * (2.0 * (t_1 + (c * (t_1 * t_1)))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(a + Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334)) tmp = 0.0 if (z <= -5e-42) tmp = 1.0; else tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(c * Float64(2.0 * Float64(t_1 + Float64(c * Float64(t_1 * t_1))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = a + ((-0.6666666666666666 / t) + 0.8333333333333334); tmp = 0.0; if (z <= -5e-42) tmp = 1.0; else tmp = x / (x - (y * (-1.0 - (c * (2.0 * (t_1 + (c * (t_1 * t_1)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(a + N[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5e-42], 1.0, N[(x / N[(x - N[(y * N[(-1.0 - N[(c * N[(2.0 * N[(t$95$1 + N[(c * N[(t$95$1 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + \left(\frac{-0.6666666666666666}{t} + 0.8333333333333334\right)\\
\mathbf{if}\;z \leq -5 \cdot 10^{-42}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - c \cdot \left(2 \cdot \left(t\_1 + c \cdot \left(t\_1 \cdot t\_1\right)\right)\right)\right)}\\
\end{array}
\end{array}
if z < -5.00000000000000003e-42Initial program 88.0%
Simplified93.3%
Taylor expanded in x around inf 62.2%
if -5.00000000000000003e-42 < z Initial program 98.4%
Taylor expanded in c around inf 64.9%
associate--l+64.9%
associate-*r/64.9%
metadata-eval64.9%
Simplified64.9%
Taylor expanded in c around 0 56.9%
distribute-lft-out56.9%
associate-*r/56.9%
metadata-eval56.9%
+-commutative56.9%
associate--l+56.9%
sub-neg56.9%
distribute-neg-frac56.9%
metadata-eval56.9%
associate-*r/56.9%
metadata-eval56.9%
+-commutative56.9%
associate--l+56.9%
Simplified56.9%
unpow256.9%
+-commutative56.9%
+-commutative56.9%
Applied egg-rr56.9%
Final simplification58.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(+ (* c (+ 1.6666666666666667 (* c 1.3888888888888888))) 1.0))))))
(if (<= c -1e+250)
1.0
(if (<= c -2.9e+162)
t_1
(if (<= c 1.15e-239)
1.0
(if (<= c 1.3e+114)
(/
x
(+
x
(+ y (* (* c 2.0) (* a (+ y (* (/ y a) 0.8333333333333334)))))))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0)));
double tmp;
if (c <= -1e+250) {
tmp = 1.0;
} else if (c <= -2.9e+162) {
tmp = t_1;
} else if (c <= 1.15e-239) {
tmp = 1.0;
} else if (c <= 1.3e+114) {
tmp = x / (x + (y + ((c * 2.0) * (a * (y + ((y / a) * 0.8333333333333334))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * ((c * (1.6666666666666667d0 + (c * 1.3888888888888888d0))) + 1.0d0)))
if (c <= (-1d+250)) then
tmp = 1.0d0
else if (c <= (-2.9d+162)) then
tmp = t_1
else if (c <= 1.15d-239) then
tmp = 1.0d0
else if (c <= 1.3d+114) then
tmp = x / (x + (y + ((c * 2.0d0) * (a * (y + ((y / a) * 0.8333333333333334d0))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0)));
double tmp;
if (c <= -1e+250) {
tmp = 1.0;
} else if (c <= -2.9e+162) {
tmp = t_1;
} else if (c <= 1.15e-239) {
tmp = 1.0;
} else if (c <= 1.3e+114) {
tmp = x / (x + (y + ((c * 2.0) * (a * (y + ((y / a) * 0.8333333333333334))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0))) tmp = 0 if c <= -1e+250: tmp = 1.0 elif c <= -2.9e+162: tmp = t_1 elif c <= 1.15e-239: tmp = 1.0 elif c <= 1.3e+114: tmp = x / (x + (y + ((c * 2.0) * (a * (y + ((y / a) * 0.8333333333333334)))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * Float64(Float64(c * Float64(1.6666666666666667 + Float64(c * 1.3888888888888888))) + 1.0)))) tmp = 0.0 if (c <= -1e+250) tmp = 1.0; elseif (c <= -2.9e+162) tmp = t_1; elseif (c <= 1.15e-239) tmp = 1.0; elseif (c <= 1.3e+114) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(c * 2.0) * Float64(a * Float64(y + Float64(Float64(y / a) * 0.8333333333333334))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0))); tmp = 0.0; if (c <= -1e+250) tmp = 1.0; elseif (c <= -2.9e+162) tmp = t_1; elseif (c <= 1.15e-239) tmp = 1.0; elseif (c <= 1.3e+114) tmp = x / (x + (y + ((c * 2.0) * (a * (y + ((y / a) * 0.8333333333333334)))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[(N[(c * N[(1.6666666666666667 + N[(c * 1.3888888888888888), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1e+250], 1.0, If[LessEqual[c, -2.9e+162], t$95$1, If[LessEqual[c, 1.15e-239], 1.0, If[LessEqual[c, 1.3e+114], N[(x / N[(x + N[(y + N[(N[(c * 2.0), $MachinePrecision] * N[(a * N[(y + N[(N[(y / a), $MachinePrecision] * 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot \left(c \cdot \left(1.6666666666666667 + c \cdot 1.3888888888888888\right) + 1\right)}\\
\mathbf{if}\;c \leq -1 \cdot 10^{+250}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -2.9 \cdot 10^{+162}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1.15 \cdot 10^{-239}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.3 \cdot 10^{+114}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(c \cdot 2\right) \cdot \left(a \cdot \left(y + \frac{y}{a} \cdot 0.8333333333333334\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -9.9999999999999992e249 or -2.90000000000000006e162 < c < 1.1499999999999999e-239Initial program 94.6%
Simplified94.6%
Taylor expanded in x around inf 57.0%
if -9.9999999999999992e249 < c < -2.90000000000000006e162 or 1.3e114 < c Initial program 92.8%
Taylor expanded in c around inf 85.9%
associate--l+85.9%
associate-*r/85.9%
metadata-eval85.9%
Simplified85.9%
Taylor expanded in a around 0 80.6%
associate-*r/80.6%
metadata-eval80.6%
sub-neg80.6%
distribute-neg-frac80.6%
metadata-eval80.6%
Simplified80.6%
Taylor expanded in t around inf 61.3%
*-commutative61.3%
Simplified61.3%
Taylor expanded in c around 0 77.1%
*-commutative77.1%
Simplified77.1%
if 1.1499999999999999e-239 < c < 1.3e114Initial program 98.6%
Taylor expanded in c around inf 61.7%
associate--l+61.7%
associate-*r/61.7%
metadata-eval61.7%
Simplified61.7%
Taylor expanded in t around inf 54.1%
+-commutative54.1%
Simplified54.1%
Taylor expanded in c around 0 50.2%
associate-*r*50.2%
Simplified50.2%
Taylor expanded in a around inf 52.5%
Final simplification60.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(+ (* c (+ 1.6666666666666667 (* c 1.3888888888888888))) 1.0))))))
(if (<= c -2e+254)
1.0
(if (<= c -7.2e+162)
t_1
(if (<= c 1.25e-194)
1.0
(if (<= c 4.5e+113)
(/ x (+ x (+ y (* (* c 2.0) (* y (+ a 0.8333333333333334))))))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0)));
double tmp;
if (c <= -2e+254) {
tmp = 1.0;
} else if (c <= -7.2e+162) {
tmp = t_1;
} else if (c <= 1.25e-194) {
tmp = 1.0;
} else if (c <= 4.5e+113) {
tmp = x / (x + (y + ((c * 2.0) * (y * (a + 0.8333333333333334)))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * ((c * (1.6666666666666667d0 + (c * 1.3888888888888888d0))) + 1.0d0)))
if (c <= (-2d+254)) then
tmp = 1.0d0
else if (c <= (-7.2d+162)) then
tmp = t_1
else if (c <= 1.25d-194) then
tmp = 1.0d0
else if (c <= 4.5d+113) then
tmp = x / (x + (y + ((c * 2.0d0) * (y * (a + 0.8333333333333334d0)))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0)));
double tmp;
if (c <= -2e+254) {
tmp = 1.0;
} else if (c <= -7.2e+162) {
tmp = t_1;
} else if (c <= 1.25e-194) {
tmp = 1.0;
} else if (c <= 4.5e+113) {
tmp = x / (x + (y + ((c * 2.0) * (y * (a + 0.8333333333333334)))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0))) tmp = 0 if c <= -2e+254: tmp = 1.0 elif c <= -7.2e+162: tmp = t_1 elif c <= 1.25e-194: tmp = 1.0 elif c <= 4.5e+113: tmp = x / (x + (y + ((c * 2.0) * (y * (a + 0.8333333333333334))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * Float64(Float64(c * Float64(1.6666666666666667 + Float64(c * 1.3888888888888888))) + 1.0)))) tmp = 0.0 if (c <= -2e+254) tmp = 1.0; elseif (c <= -7.2e+162) tmp = t_1; elseif (c <= 1.25e-194) tmp = 1.0; elseif (c <= 4.5e+113) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(c * 2.0) * Float64(y * Float64(a + 0.8333333333333334)))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0))); tmp = 0.0; if (c <= -2e+254) tmp = 1.0; elseif (c <= -7.2e+162) tmp = t_1; elseif (c <= 1.25e-194) tmp = 1.0; elseif (c <= 4.5e+113) tmp = x / (x + (y + ((c * 2.0) * (y * (a + 0.8333333333333334))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[(N[(c * N[(1.6666666666666667 + N[(c * 1.3888888888888888), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2e+254], 1.0, If[LessEqual[c, -7.2e+162], t$95$1, If[LessEqual[c, 1.25e-194], 1.0, If[LessEqual[c, 4.5e+113], N[(x / N[(x + N[(y + N[(N[(c * 2.0), $MachinePrecision] * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot \left(c \cdot \left(1.6666666666666667 + c \cdot 1.3888888888888888\right) + 1\right)}\\
\mathbf{if}\;c \leq -2 \cdot 10^{+254}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -7.2 \cdot 10^{+162}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1.25 \cdot 10^{-194}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 4.5 \cdot 10^{+113}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(c \cdot 2\right) \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.9999999999999999e254 or -7.19999999999999987e162 < c < 1.2500000000000001e-194Initial program 94.9%
Simplified94.9%
Taylor expanded in x around inf 55.3%
if -1.9999999999999999e254 < c < -7.19999999999999987e162 or 4.5000000000000001e113 < c Initial program 92.8%
Taylor expanded in c around inf 85.9%
associate--l+85.9%
associate-*r/85.9%
metadata-eval85.9%
Simplified85.9%
Taylor expanded in a around 0 80.6%
associate-*r/80.6%
metadata-eval80.6%
sub-neg80.6%
distribute-neg-frac80.6%
metadata-eval80.6%
Simplified80.6%
Taylor expanded in t around inf 61.3%
*-commutative61.3%
Simplified61.3%
Taylor expanded in c around 0 77.1%
*-commutative77.1%
Simplified77.1%
if 1.2500000000000001e-194 < c < 4.5000000000000001e113Initial program 98.5%
Taylor expanded in c around inf 64.3%
associate--l+64.3%
associate-*r/64.3%
metadata-eval64.3%
Simplified64.3%
Taylor expanded in t around inf 57.4%
+-commutative57.4%
Simplified57.4%
Taylor expanded in c around 0 52.9%
associate-*r*52.9%
Simplified52.9%
Final simplification59.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -1e+252)
1.0
(if (or (<= c -7.2e+162) (not (<= c 4.8e+131)))
(/
x
(+
x
(* y (+ (* c (+ 1.6666666666666667 (* c 1.3888888888888888))) 1.0))))
1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1e+252) {
tmp = 1.0;
} else if ((c <= -7.2e+162) || !(c <= 4.8e+131)) {
tmp = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 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 (c <= (-1d+252)) then
tmp = 1.0d0
else if ((c <= (-7.2d+162)) .or. (.not. (c <= 4.8d+131))) then
tmp = x / (x + (y * ((c * (1.6666666666666667d0 + (c * 1.3888888888888888d0))) + 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 (c <= -1e+252) {
tmp = 1.0;
} else if ((c <= -7.2e+162) || !(c <= 4.8e+131)) {
tmp = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -1e+252: tmp = 1.0 elif (c <= -7.2e+162) or not (c <= 4.8e+131): tmp = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -1e+252) tmp = 1.0; elseif ((c <= -7.2e+162) || !(c <= 4.8e+131)) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(c * Float64(1.6666666666666667 + Float64(c * 1.3888888888888888))) + 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 (c <= -1e+252) tmp = 1.0; elseif ((c <= -7.2e+162) || ~((c <= 4.8e+131))) tmp = x / (x + (y * ((c * (1.6666666666666667 + (c * 1.3888888888888888))) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -1e+252], 1.0, If[Or[LessEqual[c, -7.2e+162], N[Not[LessEqual[c, 4.8e+131]], $MachinePrecision]], N[(x / N[(x + N[(y * N[(N[(c * N[(1.6666666666666667 + N[(c * 1.3888888888888888), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1 \cdot 10^{+252}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -7.2 \cdot 10^{+162} \lor \neg \left(c \leq 4.8 \cdot 10^{+131}\right):\\
\;\;\;\;\frac{x}{x + y \cdot \left(c \cdot \left(1.6666666666666667 + c \cdot 1.3888888888888888\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if c < -1.0000000000000001e252 or -7.19999999999999987e162 < c < 4.7999999999999999e131Initial program 96.1%
Simplified95.7%
Taylor expanded in x around inf 51.4%
if -1.0000000000000001e252 < c < -7.19999999999999987e162 or 4.7999999999999999e131 < c Initial program 92.2%
Taylor expanded in c around inf 88.6%
associate--l+88.6%
associate-*r/88.6%
metadata-eval88.6%
Simplified88.6%
Taylor expanded in a around 0 82.9%
associate-*r/82.9%
metadata-eval82.9%
sub-neg82.9%
distribute-neg-frac82.9%
metadata-eval82.9%
Simplified82.9%
Taylor expanded in t around inf 63.9%
*-commutative63.9%
Simplified63.9%
Taylor expanded in c around 0 81.0%
*-commutative81.0%
Simplified81.0%
Final simplification57.3%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 2.65e-194) 1.0 (/ x (+ x (* y (+ (* 2.0 (* c (+ a 0.8333333333333334))) 1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 2.65e-194) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((2.0 * (c * (a + 0.8333333333333334))) + 1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 2.65d-194) then
tmp = 1.0d0
else
tmp = x / (x + (y * ((2.0d0 * (c * (a + 0.8333333333333334d0))) + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 2.65e-194) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((2.0 * (c * (a + 0.8333333333333334))) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 2.65e-194: tmp = 1.0 else: tmp = x / (x + (y * ((2.0 * (c * (a + 0.8333333333333334))) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 2.65e-194) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 2.65e-194) tmp = 1.0; else tmp = x / (x + (y * ((2.0 * (c * (a + 0.8333333333333334))) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 2.65e-194], 1.0, N[(x / N[(x + N[(y * N[(N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 2.65 \cdot 10^{-194}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\end{array}
\end{array}
if c < 2.6500000000000001e-194Initial program 94.2%
Simplified94.3%
Taylor expanded in x around inf 52.0%
if 2.6500000000000001e-194 < c Initial program 97.1%
Taylor expanded in c around inf 73.2%
associate--l+73.2%
associate-*r/73.2%
metadata-eval73.2%
Simplified73.2%
Taylor expanded in t around inf 64.9%
+-commutative64.9%
Simplified64.9%
Taylor expanded in c around 0 51.6%
Final simplification51.8%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 5.3e-194) 1.0 (/ x (+ x (+ y (* 2.0 (* y (* a c))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 5.3e-194) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (2.0 * (y * (a * c)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 5.3d-194) then
tmp = 1.0d0
else
tmp = x / (x + (y + (2.0d0 * (y * (a * c)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 5.3e-194) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (2.0 * (y * (a * c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 5.3e-194: tmp = 1.0 else: tmp = x / (x + (y + (2.0 * (y * (a * c))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 5.3e-194) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(y * Float64(a * c)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 5.3e-194) tmp = 1.0; else tmp = x / (x + (y + (2.0 * (y * (a * c))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 5.3e-194], 1.0, N[(x / N[(x + N[(y + N[(2.0 * N[(y * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 5.3 \cdot 10^{-194}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(y \cdot \left(a \cdot c\right)\right)\right)}\\
\end{array}
\end{array}
if c < 5.3000000000000002e-194Initial program 94.2%
Simplified94.3%
Taylor expanded in x around inf 52.0%
if 5.3000000000000002e-194 < c Initial program 97.1%
Taylor expanded in c around inf 73.2%
associate--l+73.2%
associate-*r/73.2%
metadata-eval73.2%
Simplified73.2%
Taylor expanded in a around inf 59.2%
Taylor expanded in a around 0 48.8%
associate-*r*50.7%
*-commutative50.7%
Simplified50.7%
Final simplification51.5%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 2.16e-193) 1.0 (/ x (+ x (+ y (* 2.0 (* a (* c y))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 2.16e-193) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (2.0 * (a * (c * y)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 2.16d-193) then
tmp = 1.0d0
else
tmp = x / (x + (y + (2.0d0 * (a * (c * y)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 2.16e-193) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (2.0 * (a * (c * y)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 2.16e-193: tmp = 1.0 else: tmp = x / (x + (y + (2.0 * (a * (c * y))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 2.16e-193) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(a * Float64(c * y)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 2.16e-193) tmp = 1.0; else tmp = x / (x + (y + (2.0 * (a * (c * y))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 2.16e-193], 1.0, N[(x / N[(x + N[(y + N[(2.0 * N[(a * N[(c * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 2.16 \cdot 10^{-193}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(a \cdot \left(c \cdot y\right)\right)\right)}\\
\end{array}
\end{array}
if c < 2.16e-193Initial program 94.2%
Simplified94.3%
Taylor expanded in x around inf 52.0%
if 2.16e-193 < c Initial program 97.1%
Taylor expanded in c around inf 73.2%
associate--l+73.2%
associate-*r/73.2%
metadata-eval73.2%
Simplified73.2%
Taylor expanded in a around inf 59.2%
Taylor expanded in a around 0 48.8%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 5.4e+133) 1.0 (* 0.5 (/ x (* c (* y (+ a 0.8333333333333334)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 5.4e+133) {
tmp = 1.0;
} else {
tmp = 0.5 * (x / (c * (y * (a + 0.8333333333333334))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 5.4d+133) then
tmp = 1.0d0
else
tmp = 0.5d0 * (x / (c * (y * (a + 0.8333333333333334d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 5.4e+133) {
tmp = 1.0;
} else {
tmp = 0.5 * (x / (c * (y * (a + 0.8333333333333334))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 5.4e+133: tmp = 1.0 else: tmp = 0.5 * (x / (c * (y * (a + 0.8333333333333334)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 5.4e+133) tmp = 1.0; else tmp = Float64(0.5 * Float64(x / Float64(c * Float64(y * Float64(a + 0.8333333333333334))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 5.4e+133) tmp = 1.0; else tmp = 0.5 * (x / (c * (y * (a + 0.8333333333333334)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 5.4e+133], 1.0, N[(0.5 * N[(x / N[(c * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 5.4 \cdot 10^{+133}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{x}{c \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right)}\\
\end{array}
\end{array}
if c < 5.4000000000000004e133Initial program 95.6%
Simplified95.1%
Taylor expanded in x around inf 49.5%
if 5.4000000000000004e133 < c Initial program 93.8%
Taylor expanded in c around inf 93.9%
associate--l+93.9%
associate-*r/93.9%
metadata-eval93.9%
Simplified93.9%
Taylor expanded in t around inf 84.9%
+-commutative84.9%
Simplified84.9%
Taylor expanded in c around 0 60.9%
associate-*r*60.9%
Simplified60.9%
Taylor expanded in c around inf 57.9%
*-commutative57.9%
Simplified57.9%
Final simplification50.5%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 1.25e+179) 1.0 (/ (* x 0.5) (* a (* c y)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.25e+179) {
tmp = 1.0;
} else {
tmp = (x * 0.5) / (a * (c * y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 1.25d+179) then
tmp = 1.0d0
else
tmp = (x * 0.5d0) / (a * (c * y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.25e+179) {
tmp = 1.0;
} else {
tmp = (x * 0.5) / (a * (c * y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 1.25e+179: tmp = 1.0 else: tmp = (x * 0.5) / (a * (c * y)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 1.25e+179) tmp = 1.0; else tmp = Float64(Float64(x * 0.5) / Float64(a * Float64(c * y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 1.25e+179) tmp = 1.0; else tmp = (x * 0.5) / (a * (c * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 1.25e+179], 1.0, N[(N[(x * 0.5), $MachinePrecision] / N[(a * N[(c * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 1.25 \cdot 10^{+179}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot 0.5}{a \cdot \left(c \cdot y\right)}\\
\end{array}
\end{array}
if c < 1.25e179Initial program 95.8%
Simplified94.9%
Taylor expanded in x around inf 48.6%
if 1.25e179 < c Initial program 90.6%
Taylor expanded in c around inf 100.0%
associate--l+100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in t around inf 90.8%
+-commutative90.8%
Simplified90.8%
Taylor expanded in c around 0 72.7%
associate-*r*72.7%
Simplified72.7%
Taylor expanded in a around inf 63.8%
associate-*r/63.8%
*-commutative63.8%
Simplified63.8%
Final simplification49.8%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 1.38e+219) 1.0 (/ x (* y (+ (/ x y) 1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.38e+219) {
tmp = 1.0;
} else {
tmp = x / (y * ((x / y) + 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 (t <= 1.38d+219) then
tmp = 1.0d0
else
tmp = x / (y * ((x / y) + 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 (t <= 1.38e+219) {
tmp = 1.0;
} else {
tmp = x / (y * ((x / y) + 1.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1.38e+219: tmp = 1.0 else: tmp = x / (y * ((x / y) + 1.0)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1.38e+219) tmp = 1.0; else tmp = Float64(x / Float64(y * Float64(Float64(x / y) + 1.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 1.38e+219) tmp = 1.0; else tmp = x / (y * ((x / y) + 1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 1.38e+219], 1.0, N[(x / N[(y * N[(N[(x / y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.38 \cdot 10^{+219}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(\frac{x}{y} + 1\right)}\\
\end{array}
\end{array}
if t < 1.3800000000000001e219Initial program 95.9%
Simplified94.6%
Taylor expanded in x around inf 47.6%
if 1.3800000000000001e219 < t Initial program 92.4%
Taylor expanded in b around inf 57.0%
associate-*r/57.0%
metadata-eval57.0%
Simplified57.0%
Taylor expanded in b around 0 35.3%
Taylor expanded in y around inf 53.0%
Final simplification48.4%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 1.2e+284) 1.0 (* x (/ 1.0 (+ x y)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.2e+284) {
tmp = 1.0;
} else {
tmp = x * (1.0 / (x + y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 1.2d+284) then
tmp = 1.0d0
else
tmp = x * (1.0d0 / (x + y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.2e+284) {
tmp = 1.0;
} else {
tmp = x * (1.0 / (x + y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1.2e+284: tmp = 1.0 else: tmp = x * (1.0 / (x + y)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1.2e+284) tmp = 1.0; else tmp = Float64(x * Float64(1.0 / Float64(x + y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 1.2e+284) tmp = 1.0; else tmp = x * (1.0 / (x + y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 1.2e+284], 1.0, N[(x * N[(1.0 / N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.2 \cdot 10^{+284}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{1}{x + y}\\
\end{array}
\end{array}
if t < 1.2e284Initial program 95.6%
Simplified95.2%
Taylor expanded in x around inf 47.1%
if 1.2e284 < t Initial program 89.2%
Taylor expanded in b around inf 78.5%
associate-*r/78.5%
metadata-eval78.5%
Simplified78.5%
Taylor expanded in b around 0 55.4%
div-inv55.4%
*-rgt-identity55.4%
Applied egg-rr55.4%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 2.4e+284) 1.0 (/ x (+ x y))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2.4e+284) {
tmp = 1.0;
} else {
tmp = x / (x + y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 2.4d+284) then
tmp = 1.0d0
else
tmp = x / (x + y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2.4e+284) {
tmp = 1.0;
} else {
tmp = x / (x + y);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 2.4e+284: tmp = 1.0 else: tmp = x / (x + y) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 2.4e+284) tmp = 1.0; else tmp = Float64(x / Float64(x + y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 2.4e+284) tmp = 1.0; else tmp = x / (x + y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 2.4e+284], 1.0, N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.4 \cdot 10^{+284}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y}\\
\end{array}
\end{array}
if t < 2.4000000000000001e284Initial program 95.6%
Simplified95.2%
Taylor expanded in x around inf 47.1%
if 2.4000000000000001e284 < t Initial program 89.2%
Taylor expanded in b around inf 78.5%
associate-*r/78.5%
metadata-eval78.5%
Simplified78.5%
Taylor expanded in b around 0 55.4%
Taylor expanded in x around 0 55.4%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 95.3%
Simplified95.4%
Taylor expanded in x around inf 45.6%
(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 2024181
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:alt
(! :herbie-platform default (if (< t -2118326644891581/100000000000000000000000000000000000000000000000000000000000000000) (/ x (+ x (* y (exp (* 2 (- (+ (* a c) (* 4166666666666667/5000000000000000 c)) (* a b))))))) (if (< t 5196588770651547/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ x (+ x (* y (exp (* 2 (/ (- (* (* z (sqrt (+ t a))) (* (* 3 t) (- a (/ 5 6)))) (* (- (* (+ (/ 5 6) a) (* 3 t)) 2) (* (- a (/ 5 6)) (* (- b c) t)))) (* (* (* t t) 3) (- a (/ 5 6))))))))) (/ x (+ x (* y (exp (* 2 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5 6)) (/ 2 (* t 3)))))))))))))
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))