
(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 27 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
(if (or (<= t -2e-60) (not (<= t 6e-260)))
(/
x
(fma
y
(pow
(exp 2.0)
(fma
z
(/ (sqrt (+ t a)) t)
(* (- b c) (- (- (/ 0.6666666666666666 t) 0.8333333333333334) a))))
x))
(/
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 <= -2e-60) || !(t <= 6e-260)) {
tmp = x / fma(y, pow(exp(2.0), fma(z, (sqrt((t + a)) / t), ((b - c) * (((0.6666666666666666 / t) - 0.8333333333333334) - a)))), x);
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -2e-60) || !(t <= 6e-260)) tmp = Float64(x / fma(y, (exp(2.0) ^ fma(z, Float64(sqrt(Float64(t + a)) / t), Float64(Float64(b - c) * Float64(Float64(Float64(0.6666666666666666 / t) - 0.8333333333333334) - a)))), x)); 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
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -2e-60], N[Not[LessEqual[t, 6e-260]], $MachinePrecision]], N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(z * N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - 0.8333333333333334), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $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 \cdot 10^{-60} \lor \neg \left(t \leq 6 \cdot 10^{-260}\right):\\
\;\;\;\;\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(z, \frac{\sqrt{t + a}}{t}, \left(b - c\right) \cdot \left(\left(\frac{0.6666666666666666}{t} - 0.8333333333333334\right) - a\right)\right)\right)}, x\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 < -1.9999999999999999e-60 or 6.0000000000000001e-260 < t Initial program 95.2%
Simplified99.0%
if -1.9999999999999999e-60 < t < 6.0000000000000001e-260Initial program 84.0%
Taylor expanded in t around 0 100.0%
Final simplification99.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/ x (+ x (* y (exp (* 2.0 (* a c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp((2.0 * (a * c))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t\_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 98.4%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) Initial program 0.0%
Taylor expanded in c around inf 65.4%
+-commutative65.4%
associate-*r/65.4%
metadata-eval65.4%
Simplified65.4%
Taylor expanded in a around inf 72.3%
Final simplification97.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -2.9e+19)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= t 5.8e-218)
(/
x
(+
x
(*
y
(exp
(* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 8.5e-15)
(/ x (+ x (* y (exp (/ (* (- b c) 1.3333333333333333) t)))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(- (/ z (sqrt t)) (* (- b c) (+ a 0.8333333333333334))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -2.9e+19) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (t <= 5.8e-218) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 8.5e-15) {
tmp = x / (x + (y * exp((((b - c) * 1.3333333333333333) / t))));
} else {
tmp = x / (x + (y * exp((2.0 * ((z / sqrt(t)) - ((b - c) * (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-2.9d+19)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (t <= 5.8d-218) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 8.5d-15) then
tmp = x / (x + (y * exp((((b - c) * 1.3333333333333333d0) / t))))
else
tmp = x / (x + (y * exp((2.0d0 * ((z / sqrt(t)) - ((b - c) * (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -2.9e+19) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (t <= 5.8e-218) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 8.5e-15) {
tmp = x / (x + (y * Math.exp((((b - c) * 1.3333333333333333) / t))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((z / Math.sqrt(t)) - ((b - c) * (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -2.9e+19: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif t <= 5.8e-218: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 8.5e-15: tmp = x / (x + (y * math.exp((((b - c) * 1.3333333333333333) / t)))) else: tmp = x / (x + (y * math.exp((2.0 * ((z / math.sqrt(t)) - ((b - c) * (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -2.9e+19) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (t <= 5.8e-218) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); elseif (t <= 8.5e-15) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(Float64(b - c) * 1.3333333333333333) / t))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z / sqrt(t)) - Float64(Float64(b - c) * Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -2.9e+19) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (t <= 5.8e-218) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 8.5e-15) tmp = x / (x + (y * exp((((b - c) * 1.3333333333333333) / t)))); else tmp = x / (x + (y * exp((2.0 * ((z / sqrt(t)) - ((b - c) * (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -2.9e+19], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.8e-218], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e-15], N[(x / N[(x + N[(y * N[Exp[N[(N[(N[(b - c), $MachinePrecision] * 1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z / N[Sqrt[t], $MachinePrecision]), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.9 \cdot 10^{+19}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{-218}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-15}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{\left(b - c\right) \cdot 1.3333333333333333}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z}{\sqrt{t}} - \left(b - c\right) \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if t < -2.9e19Initial program 93.8%
Taylor expanded in c around inf 88.1%
+-commutative88.1%
associate-*r/88.1%
metadata-eval88.1%
Simplified88.1%
Taylor expanded in a around inf 88.1%
if -2.9e19 < t < 5.8000000000000004e-218Initial program 87.5%
Taylor expanded in t around 0 95.5%
if 5.8000000000000004e-218 < t < 8.50000000000000007e-15Initial program 94.1%
Taylor expanded in t around 0 70.9%
Taylor expanded in z around 0 79.1%
associate-*r/79.1%
Simplified79.1%
if 8.50000000000000007e-15 < t Initial program 95.8%
Taylor expanded in t around inf 99.2%
*-commutative99.2%
sqrt-div99.2%
metadata-eval99.2%
un-div-inv99.2%
Applied egg-rr99.2%
Final simplification93.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 6e-15)
(/ x (+ x (* y (exp (/ (* (- b c) 1.3333333333333333) t)))))
(/
x
(+
x
(*
y
(exp
(* 2.0 (+ (/ z (sqrt t)) (* (+ a 0.8333333333333334) (- c b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 6e-15) {
tmp = x / (x + (y * exp((((b - c) * 1.3333333333333333) / t))));
} else {
tmp = x / (x + (y * exp((2.0 * ((z / sqrt(t)) + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 6d-15) then
tmp = x / (x + (y * exp((((b - c) * 1.3333333333333333d0) / t))))
else
tmp = x / (x + (y * exp((2.0d0 * ((z / sqrt(t)) + ((a + 0.8333333333333334d0) * (c - b)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 6e-15) {
tmp = x / (x + (y * Math.exp((((b - c) * 1.3333333333333333) / t))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((z / Math.sqrt(t)) + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 6e-15: tmp = x / (x + (y * math.exp((((b - c) * 1.3333333333333333) / t)))) else: tmp = x / (x + (y * math.exp((2.0 * ((z / math.sqrt(t)) + ((a + 0.8333333333333334) * (c - b))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 6e-15) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(Float64(b - c) * 1.3333333333333333) / t))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z / sqrt(t)) + Float64(Float64(a + 0.8333333333333334) * Float64(c - b)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 6e-15) tmp = x / (x + (y * exp((((b - c) * 1.3333333333333333) / t)))); else tmp = x / (x + (y * exp((2.0 * ((z / sqrt(t)) + ((a + 0.8333333333333334) * (c - b))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 6e-15], N[(x / N[(x + N[(y * N[Exp[N[(N[(N[(b - c), $MachinePrecision] * 1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z / N[Sqrt[t], $MachinePrecision]), $MachinePrecision] + N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 6 \cdot 10^{-15}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{\left(b - c\right) \cdot 1.3333333333333333}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z}{\sqrt{t}} + \left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 6e-15Initial program 90.6%
Taylor expanded in t around 0 81.4%
Taylor expanded in z around 0 77.5%
associate-*r/77.5%
Simplified77.5%
if 6e-15 < t Initial program 95.8%
Taylor expanded in t around inf 99.2%
*-commutative99.2%
sqrt-div99.2%
metadata-eval99.2%
un-div-inv99.2%
Applied egg-rr99.2%
Final simplification87.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* b -1.6666666666666667))))))
(t_2 (/ x (+ x (* y (exp (* c 1.6666666666666667)))))))
(if (<= t -3.9e-59)
t_2
(if (<= t -4.8e-252)
t_1
(if (<= t 1.04e-194)
(/
x
(+
x
(+
y
(*
b
(*
2.0
(*
a
(-
(* y (/ (+ (/ 0.6666666666666666 t) -0.8333333333333334) a))
y)))))))
(if (<= t 3.5e-78)
(/ x (+ x (* 2.0 (* a (* y c)))))
(if (<= t 2.35e-26)
(/
x
(+
x
(+
y
(*
b
(*
2.0
(*
b
(*
y
(/
(+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a))
b))))))))
(if (<= t 1.85e+207) t_2 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((b * -1.6666666666666667))));
double t_2 = x / (x + (y * exp((c * 1.6666666666666667))));
double tmp;
if (t <= -3.9e-59) {
tmp = t_2;
} else if (t <= -4.8e-252) {
tmp = t_1;
} else if (t <= 1.04e-194) {
tmp = x / (x + (y + (b * (2.0 * (a * ((y * (((0.6666666666666666 / t) + -0.8333333333333334) / a)) - y))))));
} else if (t <= 3.5e-78) {
tmp = x / (x + (2.0 * (a * (y * c))));
} else if (t <= 2.35e-26) {
tmp = x / (x + (y + (b * (2.0 * (b * (y * (((0.6666666666666666 / t) + (-0.8333333333333334 - a)) / b)))))));
} else if (t <= 1.85e+207) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
t_2 = x / (x + (y * exp((c * 1.6666666666666667d0))))
if (t <= (-3.9d-59)) then
tmp = t_2
else if (t <= (-4.8d-252)) then
tmp = t_1
else if (t <= 1.04d-194) then
tmp = x / (x + (y + (b * (2.0d0 * (a * ((y * (((0.6666666666666666d0 / t) + (-0.8333333333333334d0)) / a)) - y))))))
else if (t <= 3.5d-78) then
tmp = x / (x + (2.0d0 * (a * (y * c))))
else if (t <= 2.35d-26) then
tmp = x / (x + (y + (b * (2.0d0 * (b * (y * (((0.6666666666666666d0 / t) + ((-0.8333333333333334d0) - a)) / b)))))))
else if (t <= 1.85d+207) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((b * -1.6666666666666667))));
double t_2 = x / (x + (y * Math.exp((c * 1.6666666666666667))));
double tmp;
if (t <= -3.9e-59) {
tmp = t_2;
} else if (t <= -4.8e-252) {
tmp = t_1;
} else if (t <= 1.04e-194) {
tmp = x / (x + (y + (b * (2.0 * (a * ((y * (((0.6666666666666666 / t) + -0.8333333333333334) / a)) - y))))));
} else if (t <= 3.5e-78) {
tmp = x / (x + (2.0 * (a * (y * c))));
} else if (t <= 2.35e-26) {
tmp = x / (x + (y + (b * (2.0 * (b * (y * (((0.6666666666666666 / t) + (-0.8333333333333334 - a)) / b)))))));
} else if (t <= 1.85e+207) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((b * -1.6666666666666667)))) t_2 = x / (x + (y * math.exp((c * 1.6666666666666667)))) tmp = 0 if t <= -3.9e-59: tmp = t_2 elif t <= -4.8e-252: tmp = t_1 elif t <= 1.04e-194: tmp = x / (x + (y + (b * (2.0 * (a * ((y * (((0.6666666666666666 / t) + -0.8333333333333334) / a)) - y)))))) elif t <= 3.5e-78: tmp = x / (x + (2.0 * (a * (y * c)))) elif t <= 2.35e-26: tmp = x / (x + (y + (b * (2.0 * (b * (y * (((0.6666666666666666 / t) + (-0.8333333333333334 - a)) / b))))))) elif t <= 1.85e+207: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))) tmp = 0.0 if (t <= -3.9e-59) tmp = t_2; elseif (t <= -4.8e-252) tmp = t_1; elseif (t <= 1.04e-194) tmp = Float64(x / Float64(x + Float64(y + Float64(b * Float64(2.0 * Float64(a * Float64(Float64(y * Float64(Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334) / a)) - y))))))); elseif (t <= 3.5e-78) tmp = Float64(x / Float64(x + Float64(2.0 * Float64(a * Float64(y * c))))); elseif (t <= 2.35e-26) tmp = Float64(x / Float64(x + Float64(y + Float64(b * Float64(2.0 * Float64(b * Float64(y * Float64(Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a)) / b)))))))); elseif (t <= 1.85e+207) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((b * -1.6666666666666667)))); t_2 = x / (x + (y * exp((c * 1.6666666666666667)))); tmp = 0.0; if (t <= -3.9e-59) tmp = t_2; elseif (t <= -4.8e-252) tmp = t_1; elseif (t <= 1.04e-194) tmp = x / (x + (y + (b * (2.0 * (a * ((y * (((0.6666666666666666 / t) + -0.8333333333333334) / a)) - y)))))); elseif (t <= 3.5e-78) tmp = x / (x + (2.0 * (a * (y * c)))); elseif (t <= 2.35e-26) tmp = x / (x + (y + (b * (2.0 * (b * (y * (((0.6666666666666666 / t) + (-0.8333333333333334 - a)) / b))))))); elseif (t <= 1.85e+207) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.9e-59], t$95$2, If[LessEqual[t, -4.8e-252], t$95$1, If[LessEqual[t, 1.04e-194], N[(x / N[(x + N[(y + N[(b * N[(2.0 * N[(a * N[(N[(y * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e-78], N[(x / N[(x + N[(2.0 * N[(a * N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.35e-26], N[(x / N[(x + N[(y + N[(b * N[(2.0 * N[(b * N[(y * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.85e+207], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
t_2 := \frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{if}\;t \leq -3.9 \cdot 10^{-59}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -4.8 \cdot 10^{-252}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.04 \cdot 10^{-194}:\\
\;\;\;\;\frac{x}{x + \left(y + b \cdot \left(2 \cdot \left(a \cdot \left(y \cdot \frac{\frac{0.6666666666666666}{t} + -0.8333333333333334}{a} - y\right)\right)\right)\right)}\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-78}:\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(a \cdot \left(y \cdot c\right)\right)}\\
\mathbf{elif}\;t \leq 2.35 \cdot 10^{-26}:\\
\;\;\;\;\frac{x}{x + \left(y + b \cdot \left(2 \cdot \left(b \cdot \left(y \cdot \frac{\frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right)}{b}\right)\right)\right)\right)}\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{+207}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -3.90000000000000019e-59 or 2.34999999999999995e-26 < t < 1.85e207Initial program 97.3%
Taylor expanded in c around inf 77.8%
+-commutative77.8%
associate-*r/77.8%
metadata-eval77.8%
Simplified77.8%
Taylor expanded in t around inf 76.0%
Taylor expanded in a around 0 69.1%
if -3.90000000000000019e-59 < t < -4.8000000000000003e-252 or 1.85e207 < t Initial program 90.1%
Taylor expanded in b around inf 80.2%
associate-*r/80.2%
metadata-eval80.2%
+-commutative80.2%
Simplified80.2%
Taylor expanded in t around inf 78.8%
mul-1-neg78.8%
+-commutative78.8%
distribute-rgt-neg-in78.8%
+-commutative78.8%
mul-1-neg78.8%
distribute-lft-in78.8%
metadata-eval78.8%
mul-1-neg78.8%
unsub-neg78.8%
Simplified78.8%
Taylor expanded in a around 0 70.6%
if -4.8000000000000003e-252 < t < 1.0400000000000001e-194Initial program 83.3%
Taylor expanded in b around inf 62.4%
associate-*r/62.4%
metadata-eval62.4%
+-commutative62.4%
Simplified62.4%
Taylor expanded in b around 0 45.7%
distribute-lft-out45.7%
associate--r+45.7%
sub-neg45.7%
associate-*r/45.7%
metadata-eval45.7%
metadata-eval45.7%
*-commutative45.7%
Simplified45.7%
Taylor expanded in b around 0 51.8%
associate--r+51.8%
sub-neg51.8%
associate-*r/51.8%
metadata-eval51.8%
metadata-eval51.8%
associate-+r-51.8%
Simplified51.8%
Taylor expanded in a around -inf 57.0%
associate-*r*57.0%
neg-mul-157.0%
mul-1-neg57.0%
associate-/l*59.7%
sub-neg59.7%
metadata-eval59.7%
+-commutative59.7%
associate-*r/59.7%
metadata-eval59.7%
Simplified59.7%
if 1.0400000000000001e-194 < t < 3.4999999999999999e-78Initial program 92.6%
Taylor expanded in c around inf 71.3%
+-commutative71.3%
associate-*r/71.3%
metadata-eval71.3%
Simplified71.3%
Taylor expanded in a around inf 42.5%
Taylor expanded in a around 0 39.3%
associate-*r*39.3%
*-commutative39.3%
Simplified39.3%
Taylor expanded in a around inf 53.7%
*-commutative53.7%
Simplified53.7%
if 3.4999999999999999e-78 < t < 2.34999999999999995e-26Initial program 100.0%
Taylor expanded in b around inf 48.3%
associate-*r/48.3%
metadata-eval48.3%
+-commutative48.3%
Simplified48.3%
Taylor expanded in b around 0 33.1%
distribute-lft-out33.1%
associate--r+33.1%
sub-neg33.1%
associate-*r/33.1%
metadata-eval33.1%
metadata-eval33.1%
*-commutative33.1%
Simplified33.1%
Taylor expanded in b around inf 40.5%
+-commutative40.5%
associate-/l*48.0%
associate--r+48.0%
sub-neg48.0%
associate-*r/48.0%
metadata-eval48.0%
metadata-eval48.0%
associate-+r-48.0%
distribute-lft-out48.0%
Simplified48.0%
Taylor expanded in b around 0 40.5%
associate-/l*48.0%
associate--r+48.0%
sub-neg48.0%
associate-*r/48.0%
metadata-eval48.0%
metadata-eval48.0%
associate--l+48.0%
Simplified48.0%
Final simplification65.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (/ (* b 1.3333333333333333) t)))))))
(if (<= t -1.15e-60)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= t 1.8e-131)
t_1
(if (<= t 3.5e-14)
(/ x (+ x (* y (exp (/ (* c -1.3333333333333333) t)))))
(if (<= t 68000000.0)
t_1
(if (<= t 1.9e+207)
(/ x (+ x (* y (exp (* 2.0 (* c (+ a 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 t_1 = x / (x + (y * exp(((b * 1.3333333333333333) / t))));
double tmp;
if (t <= -1.15e-60) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (t <= 1.8e-131) {
tmp = t_1;
} else if (t <= 3.5e-14) {
tmp = x / (x + (y * exp(((c * -1.3333333333333333) / t))));
} else if (t <= 68000000.0) {
tmp = t_1;
} else if (t <= 1.9e+207) {
tmp = x / (x + (y * exp((2.0 * (c * (a + 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) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp(((b * 1.3333333333333333d0) / t))))
if (t <= (-1.15d-60)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (t <= 1.8d-131) then
tmp = t_1
else if (t <= 3.5d-14) then
tmp = x / (x + (y * exp(((c * (-1.3333333333333333d0)) / t))))
else if (t <= 68000000.0d0) then
tmp = t_1
else if (t <= 1.9d+207) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + 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 t_1 = x / (x + (y * Math.exp(((b * 1.3333333333333333) / t))));
double tmp;
if (t <= -1.15e-60) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (t <= 1.8e-131) {
tmp = t_1;
} else if (t <= 3.5e-14) {
tmp = x / (x + (y * Math.exp(((c * -1.3333333333333333) / t))));
} else if (t <= 68000000.0) {
tmp = t_1;
} else if (t <= 1.9e+207) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + 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): t_1 = x / (x + (y * math.exp(((b * 1.3333333333333333) / t)))) tmp = 0 if t <= -1.15e-60: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif t <= 1.8e-131: tmp = t_1 elif t <= 3.5e-14: tmp = x / (x + (y * math.exp(((c * -1.3333333333333333) / t)))) elif t <= 68000000.0: tmp = t_1 elif t <= 1.9e+207: tmp = x / (x + (y * math.exp((2.0 * (c * (a + 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) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b * 1.3333333333333333) / t))))) tmp = 0.0 if (t <= -1.15e-60) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (t <= 1.8e-131) tmp = t_1; elseif (t <= 3.5e-14) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c * -1.3333333333333333) / t))))); elseif (t <= 68000000.0) tmp = t_1; elseif (t <= 1.9e+207) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + 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) t_1 = x / (x + (y * exp(((b * 1.3333333333333333) / t)))); tmp = 0.0; if (t <= -1.15e-60) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (t <= 1.8e-131) tmp = t_1; elseif (t <= 3.5e-14) tmp = x / (x + (y * exp(((c * -1.3333333333333333) / t)))); elseif (t <= 68000000.0) tmp = t_1; elseif (t <= 1.9e+207) tmp = x / (x + (y * exp((2.0 * (c * (a + 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_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(N[(b * 1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.15e-60], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.8e-131], t$95$1, If[LessEqual[t, 3.5e-14], N[(x / N[(x + N[(y * N[Exp[N[(N[(c * -1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 68000000.0], t$95$1, If[LessEqual[t, 1.9e+207], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + 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}
t_1 := \frac{x}{x + y \cdot e^{\frac{b \cdot 1.3333333333333333}{t}}}\\
\mathbf{if}\;t \leq -1.15 \cdot 10^{-60}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{-131}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-14}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{c \cdot -1.3333333333333333}{t}}}\\
\mathbf{elif}\;t \leq 68000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{+207}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + 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 t < -1.1500000000000001e-60Initial program 93.5%
Taylor expanded in c around inf 83.4%
+-commutative83.4%
associate-*r/83.4%
metadata-eval83.4%
Simplified83.4%
Taylor expanded in a around inf 83.4%
if -1.1500000000000001e-60 < t < 1.8e-131 or 3.5000000000000002e-14 < t < 6.8e7Initial program 88.4%
Taylor expanded in t around 0 85.0%
Taylor expanded in z around 0 77.5%
associate-*r/77.5%
Simplified77.5%
Taylor expanded in b around inf 68.5%
*-commutative68.5%
Simplified68.5%
if 1.8e-131 < t < 3.5000000000000002e-14Initial program 96.3%
Taylor expanded in t around 0 74.2%
Taylor expanded in z around 0 82.0%
associate-*r/82.0%
Simplified82.0%
Taylor expanded in b around 0 64.1%
if 6.8e7 < t < 1.89999999999999993e207Initial program 98.7%
Taylor expanded in c around inf 77.2%
+-commutative77.2%
associate-*r/77.2%
metadata-eval77.2%
Simplified77.2%
Taylor expanded in t around inf 77.2%
if 1.89999999999999993e207 < t Initial program 90.2%
Taylor expanded in b around inf 77.3%
associate-*r/77.3%
metadata-eval77.3%
+-commutative77.3%
Simplified77.3%
Taylor expanded in t around inf 77.3%
mul-1-neg77.3%
+-commutative77.3%
distribute-rgt-neg-in77.3%
+-commutative77.3%
mul-1-neg77.3%
distribute-lft-in77.3%
metadata-eval77.3%
mul-1-neg77.3%
unsub-neg77.3%
Simplified77.3%
Final simplification73.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (/ (* b 1.3333333333333333) t)))))))
(if (<= t -4e-60)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= t 1.75e-133)
t_1
(if (<= t 2.6e-14)
(/ x (+ x (* y (exp (/ (* c -1.3333333333333333) t)))))
(if (<= t 68000000.0)
t_1
(if (<= t 2e+206)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
(/ x (+ x (* y (exp (* b -1.6666666666666667))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp(((b * 1.3333333333333333) / t))));
double tmp;
if (t <= -4e-60) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (t <= 1.75e-133) {
tmp = t_1;
} else if (t <= 2.6e-14) {
tmp = x / (x + (y * exp(((c * -1.3333333333333333) / t))));
} else if (t <= 68000000.0) {
tmp = t_1;
} else if (t <= 2e+206) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp(((b * 1.3333333333333333d0) / t))))
if (t <= (-4d-60)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (t <= 1.75d-133) then
tmp = t_1
else if (t <= 2.6d-14) then
tmp = x / (x + (y * exp(((c * (-1.3333333333333333d0)) / t))))
else if (t <= 68000000.0d0) then
tmp = t_1
else if (t <= 2d+206) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp(((b * 1.3333333333333333) / t))));
double tmp;
if (t <= -4e-60) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (t <= 1.75e-133) {
tmp = t_1;
} else if (t <= 2.6e-14) {
tmp = x / (x + (y * Math.exp(((c * -1.3333333333333333) / t))));
} else if (t <= 68000000.0) {
tmp = t_1;
} else if (t <= 2e+206) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp(((b * 1.3333333333333333) / t)))) tmp = 0 if t <= -4e-60: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif t <= 1.75e-133: tmp = t_1 elif t <= 2.6e-14: tmp = x / (x + (y * math.exp(((c * -1.3333333333333333) / t)))) elif t <= 68000000.0: tmp = t_1 elif t <= 2e+206: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) else: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b * 1.3333333333333333) / t))))) tmp = 0.0 if (t <= -4e-60) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (t <= 1.75e-133) tmp = t_1; elseif (t <= 2.6e-14) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c * -1.3333333333333333) / t))))); elseif (t <= 68000000.0) tmp = t_1; elseif (t <= 2e+206) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp(((b * 1.3333333333333333) / t)))); tmp = 0.0; if (t <= -4e-60) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (t <= 1.75e-133) tmp = t_1; elseif (t <= 2.6e-14) tmp = x / (x + (y * exp(((c * -1.3333333333333333) / t)))); elseif (t <= 68000000.0) tmp = t_1; elseif (t <= 2e+206) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); else tmp = x / (x + (y * exp((b * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(N[(b * 1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4e-60], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.75e-133], t$95$1, If[LessEqual[t, 2.6e-14], N[(x / N[(x + N[(y * N[Exp[N[(N[(c * -1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 68000000.0], t$95$1, If[LessEqual[t, 2e+206], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\frac{b \cdot 1.3333333333333333}{t}}}\\
\mathbf{if}\;t \leq -4 \cdot 10^{-60}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{-133}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-14}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{c \cdot -1.3333333333333333}{t}}}\\
\mathbf{elif}\;t \leq 68000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+206}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -3.9999999999999999e-60Initial program 93.5%
Taylor expanded in c around inf 83.4%
+-commutative83.4%
associate-*r/83.4%
metadata-eval83.4%
Simplified83.4%
Taylor expanded in a around inf 83.4%
if -3.9999999999999999e-60 < t < 1.75000000000000001e-133 or 2.59999999999999997e-14 < t < 6.8e7Initial program 88.4%
Taylor expanded in t around 0 85.0%
Taylor expanded in z around 0 77.5%
associate-*r/77.5%
Simplified77.5%
Taylor expanded in b around inf 68.5%
*-commutative68.5%
Simplified68.5%
if 1.75000000000000001e-133 < t < 2.59999999999999997e-14Initial program 96.3%
Taylor expanded in t around 0 74.2%
Taylor expanded in z around 0 82.0%
associate-*r/82.0%
Simplified82.0%
Taylor expanded in b around 0 64.1%
if 6.8e7 < t < 2.0000000000000001e206Initial program 98.7%
Taylor expanded in c around inf 77.2%
+-commutative77.2%
associate-*r/77.2%
metadata-eval77.2%
Simplified77.2%
Taylor expanded in t around inf 77.2%
Taylor expanded in a around 0 70.5%
if 2.0000000000000001e206 < t Initial program 90.2%
Taylor expanded in b around inf 77.3%
associate-*r/77.3%
metadata-eval77.3%
+-commutative77.3%
Simplified77.3%
Taylor expanded in t around inf 77.3%
mul-1-neg77.3%
+-commutative77.3%
distribute-rgt-neg-in77.3%
+-commutative77.3%
mul-1-neg77.3%
distribute-lft-in77.3%
metadata-eval77.3%
mul-1-neg77.3%
unsub-neg77.3%
Simplified77.3%
Taylor expanded in a around 0 65.2%
Final simplification69.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* b -1.6666666666666667))))))
(t_2 (/ x (+ x (* y (exp (* 2.0 (* a c))))))))
(if (<= a -0.85)
t_2
(if (<= a -9e-287)
t_1
(if (<= a 1.2e-185)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
(if (<= a 9.2e-61) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((b * -1.6666666666666667))));
double t_2 = x / (x + (y * exp((2.0 * (a * c)))));
double tmp;
if (a <= -0.85) {
tmp = t_2;
} else if (a <= -9e-287) {
tmp = t_1;
} else if (a <= 1.2e-185) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else if (a <= 9.2e-61) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
t_2 = x / (x + (y * exp((2.0d0 * (a * c)))))
if (a <= (-0.85d0)) then
tmp = t_2
else if (a <= (-9d-287)) then
tmp = t_1
else if (a <= 1.2d-185) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else if (a <= 9.2d-61) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((b * -1.6666666666666667))));
double t_2 = x / (x + (y * Math.exp((2.0 * (a * c)))));
double tmp;
if (a <= -0.85) {
tmp = t_2;
} else if (a <= -9e-287) {
tmp = t_1;
} else if (a <= 1.2e-185) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else if (a <= 9.2e-61) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((b * -1.6666666666666667)))) t_2 = x / (x + (y * math.exp((2.0 * (a * c))))) tmp = 0 if a <= -0.85: tmp = t_2 elif a <= -9e-287: tmp = t_1 elif a <= 1.2e-185: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) elif a <= 9.2e-61: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))) tmp = 0.0 if (a <= -0.85) tmp = t_2; elseif (a <= -9e-287) tmp = t_1; elseif (a <= 1.2e-185) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); elseif (a <= 9.2e-61) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((b * -1.6666666666666667)))); t_2 = x / (x + (y * exp((2.0 * (a * c))))); tmp = 0.0; if (a <= -0.85) tmp = t_2; elseif (a <= -9e-287) tmp = t_1; elseif (a <= 1.2e-185) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); elseif (a <= 9.2e-61) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -0.85], t$95$2, If[LessEqual[a, -9e-287], t$95$1, If[LessEqual[a, 1.2e-185], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.2e-61], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
t_2 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{if}\;a \leq -0.85:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -9 \cdot 10^{-287}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{-185}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{elif}\;a \leq 9.2 \cdot 10^{-61}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -0.849999999999999978 or 9.19999999999999967e-61 < a Initial program 91.7%
Taylor expanded in c around inf 71.2%
+-commutative71.2%
associate-*r/71.2%
metadata-eval71.2%
Simplified71.2%
Taylor expanded in a around inf 68.7%
if -0.849999999999999978 < a < -9.00000000000000034e-287 or 1.2000000000000001e-185 < a < 9.19999999999999967e-61Initial program 94.1%
Taylor expanded in b around inf 75.5%
associate-*r/75.5%
metadata-eval75.5%
+-commutative75.5%
Simplified75.5%
Taylor expanded in t around inf 64.0%
mul-1-neg64.0%
+-commutative64.0%
distribute-rgt-neg-in64.0%
+-commutative64.0%
mul-1-neg64.0%
distribute-lft-in64.0%
metadata-eval64.0%
mul-1-neg64.0%
unsub-neg64.0%
Simplified64.0%
Taylor expanded in a around 0 64.0%
if -9.00000000000000034e-287 < a < 1.2000000000000001e-185Initial program 97.0%
Taylor expanded in c around inf 69.9%
+-commutative69.9%
associate-*r/69.9%
metadata-eval69.9%
Simplified69.9%
Taylor expanded in t around inf 64.0%
Taylor expanded in a around 0 64.0%
Final simplification66.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* b -1.6666666666666667)))))))
(if (<= t -1.2e-95)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= t -6e-159)
t_1
(if (<= t 1e-14)
(/ x (+ x (* y (exp (/ (* c -1.3333333333333333) t)))))
(if (<= t 1.55e+207)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((b * -1.6666666666666667))));
double tmp;
if (t <= -1.2e-95) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (t <= -6e-159) {
tmp = t_1;
} else if (t <= 1e-14) {
tmp = x / (x + (y * exp(((c * -1.3333333333333333) / t))));
} else if (t <= 1.55e+207) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
if (t <= (-1.2d-95)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (t <= (-6d-159)) then
tmp = t_1
else if (t <= 1d-14) then
tmp = x / (x + (y * exp(((c * (-1.3333333333333333d0)) / t))))
else if (t <= 1.55d+207) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((b * -1.6666666666666667))));
double tmp;
if (t <= -1.2e-95) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (t <= -6e-159) {
tmp = t_1;
} else if (t <= 1e-14) {
tmp = x / (x + (y * Math.exp(((c * -1.3333333333333333) / t))));
} else if (t <= 1.55e+207) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((b * -1.6666666666666667)))) tmp = 0 if t <= -1.2e-95: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif t <= -6e-159: tmp = t_1 elif t <= 1e-14: tmp = x / (x + (y * math.exp(((c * -1.3333333333333333) / t)))) elif t <= 1.55e+207: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))) tmp = 0.0 if (t <= -1.2e-95) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (t <= -6e-159) tmp = t_1; elseif (t <= 1e-14) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c * -1.3333333333333333) / t))))); elseif (t <= 1.55e+207) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((b * -1.6666666666666667)))); tmp = 0.0; if (t <= -1.2e-95) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (t <= -6e-159) tmp = t_1; elseif (t <= 1e-14) tmp = x / (x + (y * exp(((c * -1.3333333333333333) / t)))); elseif (t <= 1.55e+207) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.2e-95], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6e-159], t$95$1, If[LessEqual[t, 1e-14], N[(x / N[(x + N[(y * N[Exp[N[(N[(c * -1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.55e+207], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{if}\;t \leq -1.2 \cdot 10^{-95}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;t \leq -6 \cdot 10^{-159}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 10^{-14}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{c \cdot -1.3333333333333333}{t}}}\\
\mathbf{elif}\;t \leq 1.55 \cdot 10^{+207}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.2e-95Initial program 94.3%
Taylor expanded in c around inf 82.6%
+-commutative82.6%
associate-*r/82.6%
metadata-eval82.6%
Simplified82.6%
Taylor expanded in a around inf 82.6%
if -1.2e-95 < t < -6.00000000000000018e-159 or 1.5500000000000001e207 < t Initial program 92.3%
Taylor expanded in b around inf 82.2%
associate-*r/82.2%
metadata-eval82.2%
+-commutative82.2%
Simplified82.2%
Taylor expanded in t around inf 82.2%
mul-1-neg82.2%
+-commutative82.2%
distribute-rgt-neg-in82.2%
+-commutative82.2%
mul-1-neg82.2%
distribute-lft-in82.2%
metadata-eval82.2%
mul-1-neg82.2%
unsub-neg82.2%
Simplified82.2%
Taylor expanded in a around 0 72.7%
if -6.00000000000000018e-159 < t < 9.99999999999999999e-15Initial program 88.2%
Taylor expanded in t around 0 83.0%
Taylor expanded in z around 0 77.1%
associate-*r/77.1%
Simplified77.1%
Taylor expanded in b around 0 61.4%
if 9.99999999999999999e-15 < t < 1.5500000000000001e207Initial program 98.7%
Taylor expanded in c around inf 75.0%
+-commutative75.0%
associate-*r/75.0%
metadata-eval75.0%
Simplified75.0%
Taylor expanded in t around inf 75.0%
Taylor expanded in a around 0 68.7%
Final simplification68.8%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -65000.0) (not (<= c 9.4e-101)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* c (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -65000.0) || !(c <= 9.4e-101)) {
tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((c <= (-65000.0d0)) .or. (.not. (c <= 9.4d-101))) then
tmp = x / (x + (y * exp((2.0d0 * (c * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t)))))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -65000.0) || !(c <= 9.4e-101)) {
tmp = x / (x + (y * Math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (c <= -65000.0) or not (c <= 9.4e-101): tmp = x / (x + (y * math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((c <= -65000.0) || !(c <= 9.4e-101)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((c <= -65000.0) || ~((c <= 9.4e-101))) tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[c, -65000.0], N[Not[LessEqual[c, 9.4e-101]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -65000 \lor \neg \left(c \leq 9.4 \cdot 10^{-101}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if c < -65000 or 9.3999999999999999e-101 < c Initial program 92.4%
Taylor expanded in c around inf 83.6%
+-commutative83.6%
associate-*r/83.6%
metadata-eval83.6%
Simplified83.6%
if -65000 < c < 9.3999999999999999e-101Initial program 93.8%
Taylor expanded in b around inf 78.4%
associate-*r/78.4%
metadata-eval78.4%
+-commutative78.4%
Simplified78.4%
Final simplification81.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a -0.85)
(/ x (+ x (* y (exp (* 2.0 (* a (- b)))))))
(if (<= a 3e-271)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= a 5.8e-78)
(/ x (+ x (* y (exp (/ (* c -1.3333333333333333) t)))))
(/ x (+ x (* y (exp (* 2.0 (* a c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -0.85) {
tmp = x / (x + (y * exp((2.0 * (a * -b)))));
} else if (a <= 3e-271) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (a <= 5.8e-78) {
tmp = x / (x + (y * exp(((c * -1.3333333333333333) / t))));
} else {
tmp = x / (x + (y * exp((2.0 * (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 (a <= (-0.85d0)) then
tmp = x / (x + (y * exp((2.0d0 * (a * -b)))))
else if (a <= 3d-271) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (a <= 5.8d-78) then
tmp = x / (x + (y * exp(((c * (-1.3333333333333333d0)) / t))))
else
tmp = x / (x + (y * exp((2.0d0 * (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 (a <= -0.85) {
tmp = x / (x + (y * Math.exp((2.0 * (a * -b)))));
} else if (a <= 3e-271) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (a <= 5.8e-78) {
tmp = x / (x + (y * Math.exp(((c * -1.3333333333333333) / t))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= -0.85: tmp = x / (x + (y * math.exp((2.0 * (a * -b))))) elif a <= 3e-271: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif a <= 5.8e-78: tmp = x / (x + (y * math.exp(((c * -1.3333333333333333) / t)))) else: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= -0.85) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(-b))))))); elseif (a <= 3e-271) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (a <= 5.8e-78) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c * -1.3333333333333333) / t))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= -0.85) tmp = x / (x + (y * exp((2.0 * (a * -b))))); elseif (a <= 3e-271) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (a <= 5.8e-78) tmp = x / (x + (y * exp(((c * -1.3333333333333333) / t)))); else tmp = x / (x + (y * exp((2.0 * (a * c))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, -0.85], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * (-b)), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3e-271], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.8e-78], N[(x / N[(x + N[(y * N[Exp[N[(N[(c * -1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -0.85:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(-b\right)\right)}}\\
\mathbf{elif}\;a \leq 3 \cdot 10^{-271}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;a \leq 5.8 \cdot 10^{-78}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{c \cdot -1.3333333333333333}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\end{array}
\end{array}
if a < -0.849999999999999978Initial program 95.4%
Taylor expanded in b around inf 81.6%
associate-*r/81.6%
metadata-eval81.6%
+-commutative81.6%
Simplified81.6%
Taylor expanded in a around inf 81.6%
associate-*r*81.6%
mul-1-neg81.6%
Simplified81.6%
if -0.849999999999999978 < a < 3.00000000000000002e-271Initial program 94.6%
Taylor expanded in b around inf 76.8%
associate-*r/76.8%
metadata-eval76.8%
+-commutative76.8%
Simplified76.8%
Taylor expanded in t around inf 64.2%
mul-1-neg64.2%
+-commutative64.2%
distribute-rgt-neg-in64.2%
+-commutative64.2%
mul-1-neg64.2%
distribute-lft-in64.2%
metadata-eval64.2%
mul-1-neg64.2%
unsub-neg64.2%
Simplified64.2%
Taylor expanded in a around 0 64.2%
if 3.00000000000000002e-271 < a < 5.8000000000000001e-78Initial program 97.5%
Taylor expanded in t around 0 75.8%
Taylor expanded in z around 0 71.0%
associate-*r/71.0%
Simplified71.0%
Taylor expanded in b around 0 61.4%
if 5.8000000000000001e-78 < a Initial program 90.8%
Taylor expanded in c around inf 71.4%
+-commutative71.4%
associate-*r/71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in a around inf 69.3%
Final simplification68.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 68000000.0)
(/ x (+ x (* y (exp (/ (* (- b c) 1.3333333333333333) t)))))
(if (<= t 1.42e+206)
(/ x (+ x (* y (exp (* 2.0 (* c (+ a 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 (t <= 68000000.0) {
tmp = x / (x + (y * exp((((b - c) * 1.3333333333333333) / t))));
} else if (t <= 1.42e+206) {
tmp = x / (x + (y * exp((2.0 * (c * (a + 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 (t <= 68000000.0d0) then
tmp = x / (x + (y * exp((((b - c) * 1.3333333333333333d0) / t))))
else if (t <= 1.42d+206) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + 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 (t <= 68000000.0) {
tmp = x / (x + (y * Math.exp((((b - c) * 1.3333333333333333) / t))));
} else if (t <= 1.42e+206) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + 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 t <= 68000000.0: tmp = x / (x + (y * math.exp((((b - c) * 1.3333333333333333) / t)))) elif t <= 1.42e+206: tmp = x / (x + (y * math.exp((2.0 * (c * (a + 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 (t <= 68000000.0) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(Float64(b - c) * 1.3333333333333333) / t))))); elseif (t <= 1.42e+206) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + 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 (t <= 68000000.0) tmp = x / (x + (y * exp((((b - c) * 1.3333333333333333) / t)))); elseif (t <= 1.42e+206) tmp = x / (x + (y * exp((2.0 * (c * (a + 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[LessEqual[t, 68000000.0], N[(x / N[(x + N[(y * N[Exp[N[(N[(N[(b - c), $MachinePrecision] * 1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.42e+206], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + 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}\;t \leq 68000000:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{\left(b - c\right) \cdot 1.3333333333333333}{t}}}\\
\mathbf{elif}\;t \leq 1.42 \cdot 10^{+206}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + 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 t < 6.8e7Initial program 91.0%
Taylor expanded in t around 0 79.3%
Taylor expanded in z around 0 77.6%
associate-*r/77.6%
Simplified77.6%
if 6.8e7 < t < 1.42000000000000005e206Initial program 98.7%
Taylor expanded in c around inf 77.2%
+-commutative77.2%
associate-*r/77.2%
metadata-eval77.2%
Simplified77.2%
Taylor expanded in t around inf 77.2%
if 1.42000000000000005e206 < t Initial program 90.2%
Taylor expanded in b around inf 77.3%
associate-*r/77.3%
metadata-eval77.3%
+-commutative77.3%
Simplified77.3%
Taylor expanded in t around inf 77.3%
mul-1-neg77.3%
+-commutative77.3%
distribute-rgt-neg-in77.3%
+-commutative77.3%
mul-1-neg77.3%
distribute-lft-in77.3%
metadata-eval77.3%
mul-1-neg77.3%
unsub-neg77.3%
Simplified77.3%
Final simplification77.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a 1.9e-272)
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a)))))))
(if (<= a 1.25e-77)
(/ x (+ x (* y (exp (/ (* c -1.3333333333333333) t)))))
(/ x (+ x (* y (exp (* 2.0 (* a c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 1.9e-272) {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else if (a <= 1.25e-77) {
tmp = x / (x + (y * exp(((c * -1.3333333333333333) / t))));
} else {
tmp = x / (x + (y * exp((2.0 * (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 (a <= 1.9d-272) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
else if (a <= 1.25d-77) then
tmp = x / (x + (y * exp(((c * (-1.3333333333333333d0)) / t))))
else
tmp = x / (x + (y * exp((2.0d0 * (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 (a <= 1.9e-272) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else if (a <= 1.25e-77) {
tmp = x / (x + (y * Math.exp(((c * -1.3333333333333333) / t))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 1.9e-272: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) elif a <= 1.25e-77: tmp = x / (x + (y * math.exp(((c * -1.3333333333333333) / t)))) else: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 1.9e-272) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); elseif (a <= 1.25e-77) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c * -1.3333333333333333) / t))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= 1.9e-272) tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); elseif (a <= 1.25e-77) tmp = x / (x + (y * exp(((c * -1.3333333333333333) / t)))); else tmp = x / (x + (y * exp((2.0 * (a * c))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 1.9e-272], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.25e-77], N[(x / N[(x + N[(y * N[Exp[N[(N[(c * -1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.9 \cdot 10^{-272}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{-77}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{c \cdot -1.3333333333333333}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\end{array}
\end{array}
if a < 1.89999999999999985e-272Initial program 94.8%
Taylor expanded in b around inf 78.1%
associate-*r/78.1%
metadata-eval78.1%
+-commutative78.1%
Simplified78.1%
Taylor expanded in t around inf 69.1%
mul-1-neg69.1%
+-commutative69.1%
distribute-rgt-neg-in69.1%
+-commutative69.1%
mul-1-neg69.1%
distribute-lft-in69.1%
metadata-eval69.1%
mul-1-neg69.1%
unsub-neg69.1%
Simplified69.1%
if 1.89999999999999985e-272 < a < 1.24999999999999991e-77Initial program 97.5%
Taylor expanded in t around 0 75.8%
Taylor expanded in z around 0 71.0%
associate-*r/71.0%
Simplified71.0%
Taylor expanded in b around 0 61.4%
if 1.24999999999999991e-77 < a Initial program 90.8%
Taylor expanded in c around inf 71.4%
+-commutative71.4%
associate-*r/71.4%
metadata-eval71.4%
Simplified71.4%
Taylor expanded in a around inf 69.3%
Final simplification68.0%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= b -1.8e-25) (not (<= b 8e-14)))
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(/
x
(+
x
(+
y
(*
b
(*
2.0
(*
b
(*
y
(/ (+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a)) b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -1.8e-25) || !(b <= 8e-14)) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else {
tmp = x / (x + (y + (b * (2.0 * (b * (y * (((0.6666666666666666 / t) + (-0.8333333333333334 - a)) / b)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b <= (-1.8d-25)) .or. (.not. (b <= 8d-14))) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else
tmp = x / (x + (y + (b * (2.0d0 * (b * (y * (((0.6666666666666666d0 / t) + ((-0.8333333333333334d0) - a)) / b)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -1.8e-25) || !(b <= 8e-14)) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else {
tmp = x / (x + (y + (b * (2.0 * (b * (y * (((0.6666666666666666 / t) + (-0.8333333333333334 - a)) / b)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -1.8e-25) or not (b <= 8e-14): tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) else: tmp = x / (x + (y + (b * (2.0 * (b * (y * (((0.6666666666666666 / t) + (-0.8333333333333334 - a)) / b))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -1.8e-25) || !(b <= 8e-14)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); else tmp = Float64(x / Float64(x + Float64(y + Float64(b * Float64(2.0 * Float64(b * Float64(y * Float64(Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a)) / b)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -1.8e-25) || ~((b <= 8e-14))) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); else tmp = x / (x + (y + (b * (2.0 * (b * (y * (((0.6666666666666666 / t) + (-0.8333333333333334 - a)) / b))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -1.8e-25], N[Not[LessEqual[b, 8e-14]], $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[(b * N[(2.0 * N[(b * N[(y * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.8 \cdot 10^{-25} \lor \neg \left(b \leq 8 \cdot 10^{-14}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + b \cdot \left(2 \cdot \left(b \cdot \left(y \cdot \frac{\frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right)}{b}\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -1.8e-25 or 7.99999999999999999e-14 < b Initial program 88.5%
Taylor expanded in b around inf 80.2%
associate-*r/80.2%
metadata-eval80.2%
+-commutative80.2%
Simplified80.2%
Taylor expanded in t around inf 68.2%
mul-1-neg68.2%
+-commutative68.2%
distribute-rgt-neg-in68.2%
+-commutative68.2%
mul-1-neg68.2%
distribute-lft-in68.2%
metadata-eval68.2%
mul-1-neg68.2%
unsub-neg68.2%
Simplified68.2%
Taylor expanded in a around 0 62.2%
if -1.8e-25 < b < 7.99999999999999999e-14Initial program 97.6%
Taylor expanded in b around inf 54.5%
associate-*r/54.5%
metadata-eval54.5%
+-commutative54.5%
Simplified54.5%
Taylor expanded in b around 0 45.8%
distribute-lft-out45.8%
associate--r+45.8%
sub-neg45.8%
associate-*r/45.8%
metadata-eval45.8%
metadata-eval45.8%
*-commutative45.8%
Simplified45.8%
Taylor expanded in b around inf 43.9%
+-commutative43.9%
associate-/l*39.9%
associate--r+39.9%
sub-neg39.9%
associate-*r/39.9%
metadata-eval39.9%
metadata-eval39.9%
associate-+r-39.9%
distribute-lft-out43.2%
Simplified43.2%
Taylor expanded in b around 0 50.6%
associate-/l*50.5%
associate--r+50.5%
sub-neg50.5%
associate-*r/50.5%
metadata-eval50.5%
metadata-eval50.5%
associate--l+50.5%
Simplified50.5%
Final simplification56.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -5.8e-67)
(/
x
(+
x
(+
y
(*
b
(*
2.0
(*
a
(-
(* y (/ (+ (/ 0.6666666666666666 t) -0.8333333333333334) a))
y)))))))
(if (or (<= c 4.5e-240) (not (<= c 6e+64)))
(/ x (+ x (* y (+ (* (+ a 0.8333333333333334) (* 2.0 c)) 1.0))))
(/
x
(+
x
(+
y
(*
b
(*
2.0
(*
b
(*
y
(/
(+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a))
b)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -5.8e-67) {
tmp = x / (x + (y + (b * (2.0 * (a * ((y * (((0.6666666666666666 / t) + -0.8333333333333334) / a)) - y))))));
} else if ((c <= 4.5e-240) || !(c <= 6e+64)) {
tmp = x / (x + (y * (((a + 0.8333333333333334) * (2.0 * c)) + 1.0)));
} else {
tmp = x / (x + (y + (b * (2.0 * (b * (y * (((0.6666666666666666 / t) + (-0.8333333333333334 - a)) / b)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-5.8d-67)) then
tmp = x / (x + (y + (b * (2.0d0 * (a * ((y * (((0.6666666666666666d0 / t) + (-0.8333333333333334d0)) / a)) - y))))))
else if ((c <= 4.5d-240) .or. (.not. (c <= 6d+64))) then
tmp = x / (x + (y * (((a + 0.8333333333333334d0) * (2.0d0 * c)) + 1.0d0)))
else
tmp = x / (x + (y + (b * (2.0d0 * (b * (y * (((0.6666666666666666d0 / t) + ((-0.8333333333333334d0) - a)) / b)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -5.8e-67) {
tmp = x / (x + (y + (b * (2.0 * (a * ((y * (((0.6666666666666666 / t) + -0.8333333333333334) / a)) - y))))));
} else if ((c <= 4.5e-240) || !(c <= 6e+64)) {
tmp = x / (x + (y * (((a + 0.8333333333333334) * (2.0 * c)) + 1.0)));
} else {
tmp = x / (x + (y + (b * (2.0 * (b * (y * (((0.6666666666666666 / t) + (-0.8333333333333334 - a)) / b)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -5.8e-67: tmp = x / (x + (y + (b * (2.0 * (a * ((y * (((0.6666666666666666 / t) + -0.8333333333333334) / a)) - y)))))) elif (c <= 4.5e-240) or not (c <= 6e+64): tmp = x / (x + (y * (((a + 0.8333333333333334) * (2.0 * c)) + 1.0))) else: tmp = x / (x + (y + (b * (2.0 * (b * (y * (((0.6666666666666666 / t) + (-0.8333333333333334 - a)) / b))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -5.8e-67) tmp = Float64(x / Float64(x + Float64(y + Float64(b * Float64(2.0 * Float64(a * Float64(Float64(y * Float64(Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334) / a)) - y))))))); elseif ((c <= 4.5e-240) || !(c <= 6e+64)) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(a + 0.8333333333333334) * Float64(2.0 * c)) + 1.0)))); else tmp = Float64(x / Float64(x + Float64(y + Float64(b * Float64(2.0 * Float64(b * Float64(y * Float64(Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a)) / b)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -5.8e-67) tmp = x / (x + (y + (b * (2.0 * (a * ((y * (((0.6666666666666666 / t) + -0.8333333333333334) / a)) - y)))))); elseif ((c <= 4.5e-240) || ~((c <= 6e+64))) tmp = x / (x + (y * (((a + 0.8333333333333334) * (2.0 * c)) + 1.0))); else tmp = x / (x + (y + (b * (2.0 * (b * (y * (((0.6666666666666666 / t) + (-0.8333333333333334 - a)) / b))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -5.8e-67], N[(x / N[(x + N[(y + N[(b * N[(2.0 * N[(a * N[(N[(y * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[c, 4.5e-240], N[Not[LessEqual[c, 6e+64]], $MachinePrecision]], N[(x / N[(x + N[(y * N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(2.0 * c), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y + N[(b * N[(2.0 * N[(b * N[(y * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -5.8 \cdot 10^{-67}:\\
\;\;\;\;\frac{x}{x + \left(y + b \cdot \left(2 \cdot \left(a \cdot \left(y \cdot \frac{\frac{0.6666666666666666}{t} + -0.8333333333333334}{a} - y\right)\right)\right)\right)}\\
\mathbf{elif}\;c \leq 4.5 \cdot 10^{-240} \lor \neg \left(c \leq 6 \cdot 10^{+64}\right):\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(2 \cdot c\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + b \cdot \left(2 \cdot \left(b \cdot \left(y \cdot \frac{\frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right)}{b}\right)\right)\right)\right)}\\
\end{array}
\end{array}
if c < -5.8000000000000001e-67Initial program 94.9%
Taylor expanded in b around inf 62.1%
associate-*r/62.1%
metadata-eval62.1%
+-commutative62.1%
Simplified62.1%
Taylor expanded in b around 0 43.9%
distribute-lft-out43.9%
associate--r+43.9%
sub-neg43.9%
associate-*r/43.9%
metadata-eval43.9%
metadata-eval43.9%
*-commutative43.9%
Simplified43.9%
Taylor expanded in b around 0 39.0%
associate--r+39.0%
sub-neg39.0%
associate-*r/39.0%
metadata-eval39.0%
metadata-eval39.0%
associate-+r-39.0%
Simplified39.0%
Taylor expanded in a around -inf 43.8%
associate-*r*43.8%
neg-mul-143.8%
mul-1-neg43.8%
associate-/l*47.5%
sub-neg47.5%
metadata-eval47.5%
+-commutative47.5%
associate-*r/47.5%
metadata-eval47.5%
Simplified47.5%
if -5.8000000000000001e-67 < c < 4.5000000000000001e-240 or 6.0000000000000004e64 < c Initial program 88.9%
Taylor expanded in c around inf 65.1%
+-commutative65.1%
associate-*r/65.1%
metadata-eval65.1%
Simplified65.1%
Taylor expanded in t around inf 60.9%
Taylor expanded in c around 0 51.0%
associate-*r*51.0%
*-commutative51.0%
Simplified51.0%
if 4.5000000000000001e-240 < c < 6.0000000000000004e64Initial program 98.4%
Taylor expanded in b around inf 77.2%
associate-*r/77.2%
metadata-eval77.2%
+-commutative77.2%
Simplified77.2%
Taylor expanded in b around 0 53.4%
distribute-lft-out53.4%
associate--r+53.4%
sub-neg53.4%
associate-*r/53.4%
metadata-eval53.4%
metadata-eval53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in b around inf 54.9%
+-commutative54.9%
associate-/l*53.2%
associate--r+53.2%
sub-neg53.2%
associate-*r/53.2%
metadata-eval53.2%
metadata-eval53.2%
associate-+r-53.2%
distribute-lft-out54.9%
Simplified54.9%
Taylor expanded in b around 0 61.5%
associate-/l*63.0%
associate--r+63.0%
sub-neg63.0%
associate-*r/63.0%
metadata-eval63.0%
metadata-eval63.0%
associate--l+63.0%
Simplified63.0%
Final simplification52.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= x -1.15e-143)
(/ x (+ x (+ y (* 2.0 (* c (* y (+ a 0.8333333333333334)))))))
(/
x
(+
x
(+
y
(*
b
(*
2.0
(*
b
(*
y
(/ (+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a)) b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= -1.15e-143) {
tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334))))));
} else {
tmp = x / (x + (y + (b * (2.0 * (b * (y * (((0.6666666666666666 / t) + (-0.8333333333333334 - a)) / b)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (x <= (-1.15d-143)) then
tmp = x / (x + (y + (2.0d0 * (c * (y * (a + 0.8333333333333334d0))))))
else
tmp = x / (x + (y + (b * (2.0d0 * (b * (y * (((0.6666666666666666d0 / t) + ((-0.8333333333333334d0) - a)) / b)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= -1.15e-143) {
tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334))))));
} else {
tmp = x / (x + (y + (b * (2.0 * (b * (y * (((0.6666666666666666 / t) + (-0.8333333333333334 - a)) / b)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= -1.15e-143: tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334)))))) else: tmp = x / (x + (y + (b * (2.0 * (b * (y * (((0.6666666666666666 / t) + (-0.8333333333333334 - a)) / b))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= -1.15e-143) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * Float64(y * Float64(a + 0.8333333333333334))))))); else tmp = Float64(x / Float64(x + Float64(y + Float64(b * Float64(2.0 * Float64(b * Float64(y * Float64(Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a)) / b)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= -1.15e-143) tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334)))))); else tmp = x / (x + (y + (b * (2.0 * (b * (y * (((0.6666666666666666 / t) + (-0.8333333333333334 - a)) / b))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, -1.15e-143], N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y + N[(b * N[(2.0 * N[(b * N[(y * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.15 \cdot 10^{-143}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + b \cdot \left(2 \cdot \left(b \cdot \left(y \cdot \frac{\frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right)}{b}\right)\right)\right)\right)}\\
\end{array}
\end{array}
if x < -1.15000000000000006e-143Initial program 93.1%
Taylor expanded in c around inf 74.8%
+-commutative74.8%
associate-*r/74.8%
metadata-eval74.8%
Simplified74.8%
Taylor expanded in t around inf 66.2%
Taylor expanded in c around 0 49.1%
*-commutative49.1%
Simplified49.1%
if -1.15000000000000006e-143 < x Initial program 92.9%
Taylor expanded in b around inf 69.8%
associate-*r/69.8%
metadata-eval69.8%
+-commutative69.8%
Simplified69.8%
Taylor expanded in b around 0 50.9%
distribute-lft-out50.9%
associate--r+50.9%
sub-neg50.9%
associate-*r/50.9%
metadata-eval50.9%
metadata-eval50.9%
*-commutative50.9%
Simplified50.9%
Taylor expanded in b around inf 48.2%
+-commutative48.2%
associate-/l*46.9%
associate--r+46.9%
sub-neg46.9%
associate-*r/46.9%
metadata-eval46.9%
metadata-eval46.9%
associate-+r-46.9%
distribute-lft-out48.9%
Simplified48.9%
Taylor expanded in b around 0 46.3%
associate-/l*48.7%
associate--r+48.7%
sub-neg48.7%
associate-*r/48.7%
metadata-eval48.7%
metadata-eval48.7%
associate--l+48.7%
Simplified48.7%
Final simplification48.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -8.8e+118)
(/ x (+ x (+ y (/ (* y (* b 1.3333333333333333)) t))))
(if (<= c 9.5e+61)
(/ x (+ x (* a (+ (* 2.0 (* y c)) (/ y a)))))
(/ x (+ x (* y (+ (* (+ a 0.8333333333333334) (* 2.0 c)) 1.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -8.8e+118) {
tmp = x / (x + (y + ((y * (b * 1.3333333333333333)) / t)));
} else if (c <= 9.5e+61) {
tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a))));
} else {
tmp = x / (x + (y * (((a + 0.8333333333333334) * (2.0 * c)) + 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 <= (-8.8d+118)) then
tmp = x / (x + (y + ((y * (b * 1.3333333333333333d0)) / t)))
else if (c <= 9.5d+61) then
tmp = x / (x + (a * ((2.0d0 * (y * c)) + (y / a))))
else
tmp = x / (x + (y * (((a + 0.8333333333333334d0) * (2.0d0 * c)) + 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 <= -8.8e+118) {
tmp = x / (x + (y + ((y * (b * 1.3333333333333333)) / t)));
} else if (c <= 9.5e+61) {
tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a))));
} else {
tmp = x / (x + (y * (((a + 0.8333333333333334) * (2.0 * c)) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -8.8e+118: tmp = x / (x + (y + ((y * (b * 1.3333333333333333)) / t))) elif c <= 9.5e+61: tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a)))) else: tmp = x / (x + (y * (((a + 0.8333333333333334) * (2.0 * c)) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -8.8e+118) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(y * Float64(b * 1.3333333333333333)) / t)))); elseif (c <= 9.5e+61) tmp = Float64(x / Float64(x + Float64(a * Float64(Float64(2.0 * Float64(y * c)) + Float64(y / a))))); else tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(a + 0.8333333333333334) * Float64(2.0 * c)) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -8.8e+118) tmp = x / (x + (y + ((y * (b * 1.3333333333333333)) / t))); elseif (c <= 9.5e+61) tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a)))); else tmp = x / (x + (y * (((a + 0.8333333333333334) * (2.0 * c)) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -8.8e+118], N[(x / N[(x + N[(y + N[(N[(y * N[(b * 1.3333333333333333), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.5e+61], N[(x / N[(x + N[(a * N[(N[(2.0 * N[(y * c), $MachinePrecision]), $MachinePrecision] + N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(2.0 * c), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -8.8 \cdot 10^{+118}:\\
\;\;\;\;\frac{x}{x + \left(y + \frac{y \cdot \left(b \cdot 1.3333333333333333\right)}{t}\right)}\\
\mathbf{elif}\;c \leq 9.5 \cdot 10^{+61}:\\
\;\;\;\;\frac{x}{x + a \cdot \left(2 \cdot \left(y \cdot c\right) + \frac{y}{a}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(2 \cdot c\right) + 1\right)}\\
\end{array}
\end{array}
if c < -8.79999999999999944e118Initial program 97.4%
Taylor expanded in b around inf 74.6%
associate-*r/74.6%
metadata-eval74.6%
+-commutative74.6%
Simplified74.6%
Taylor expanded in b around 0 39.9%
distribute-lft-out39.9%
associate--r+39.9%
sub-neg39.9%
associate-*r/39.9%
metadata-eval39.9%
metadata-eval39.9%
*-commutative39.9%
Simplified39.9%
Taylor expanded in b around 0 44.2%
associate--r+44.2%
sub-neg44.2%
associate-*r/44.2%
metadata-eval44.2%
metadata-eval44.2%
associate-+r-44.2%
Simplified44.2%
Taylor expanded in t around 0 44.2%
associate-*r/44.2%
associate-*r*44.2%
*-commutative44.2%
Simplified44.2%
if -8.79999999999999944e118 < c < 9.49999999999999959e61Initial program 94.5%
Taylor expanded in c around inf 60.2%
+-commutative60.2%
associate-*r/60.2%
metadata-eval60.2%
Simplified60.2%
Taylor expanded in a around inf 55.5%
Taylor expanded in a around 0 43.1%
associate-*r*43.1%
*-commutative43.1%
Simplified43.1%
Taylor expanded in a around inf 47.8%
if 9.49999999999999959e61 < c Initial program 85.8%
Taylor expanded in c around inf 82.7%
+-commutative82.7%
associate-*r/82.7%
metadata-eval82.7%
Simplified82.7%
Taylor expanded in t around inf 70.6%
Taylor expanded in c around 0 51.9%
associate-*r*51.9%
*-commutative51.9%
Simplified51.9%
Final simplification48.2%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= b -2.5e-99) (not (<= b 1.16e-257))) (/ x (+ x (* 2.0 (* a (* y c))))) (/ x (+ x (+ y (* -2.0 (* a (* y b))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -2.5e-99) || !(b <= 1.16e-257)) {
tmp = x / (x + (2.0 * (a * (y * c))));
} else {
tmp = x / (x + (y + (-2.0 * (a * (y * b)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b <= (-2.5d-99)) .or. (.not. (b <= 1.16d-257))) then
tmp = x / (x + (2.0d0 * (a * (y * c))))
else
tmp = x / (x + (y + ((-2.0d0) * (a * (y * b)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -2.5e-99) || !(b <= 1.16e-257)) {
tmp = x / (x + (2.0 * (a * (y * c))));
} else {
tmp = x / (x + (y + (-2.0 * (a * (y * b)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -2.5e-99) or not (b <= 1.16e-257): tmp = x / (x + (2.0 * (a * (y * c)))) else: tmp = x / (x + (y + (-2.0 * (a * (y * b))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -2.5e-99) || !(b <= 1.16e-257)) tmp = Float64(x / Float64(x + Float64(2.0 * Float64(a * Float64(y * c))))); else tmp = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(a * Float64(y * b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -2.5e-99) || ~((b <= 1.16e-257))) tmp = x / (x + (2.0 * (a * (y * c)))); else tmp = x / (x + (y + (-2.0 * (a * (y * b))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -2.5e-99], N[Not[LessEqual[b, 1.16e-257]], $MachinePrecision]], N[(x / N[(x + N[(2.0 * N[(a * N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y + N[(-2.0 * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.5 \cdot 10^{-99} \lor \neg \left(b \leq 1.16 \cdot 10^{-257}\right):\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(a \cdot \left(y \cdot c\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + -2 \cdot \left(a \cdot \left(y \cdot b\right)\right)\right)}\\
\end{array}
\end{array}
if b < -2.49999999999999985e-99 or 1.16e-257 < b Initial program 91.6%
Taylor expanded in c around inf 65.2%
+-commutative65.2%
associate-*r/65.2%
metadata-eval65.2%
Simplified65.2%
Taylor expanded in a around inf 56.5%
Taylor expanded in a around 0 41.3%
associate-*r*41.3%
*-commutative41.3%
Simplified41.3%
Taylor expanded in a around inf 43.3%
*-commutative43.3%
Simplified43.3%
if -2.49999999999999985e-99 < b < 1.16e-257Initial program 98.2%
Taylor expanded in b around inf 51.0%
associate-*r/51.0%
metadata-eval51.0%
+-commutative51.0%
Simplified51.0%
Taylor expanded in b around 0 47.4%
distribute-lft-out47.4%
associate--r+47.4%
sub-neg47.4%
associate-*r/47.4%
metadata-eval47.4%
metadata-eval47.4%
*-commutative47.4%
Simplified47.4%
Taylor expanded in b around 0 43.9%
associate--r+43.9%
sub-neg43.9%
associate-*r/43.9%
metadata-eval43.9%
metadata-eval43.9%
associate-+r-43.9%
Simplified43.9%
Taylor expanded in a around inf 45.6%
Final simplification43.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -1.22e-111)
(/ x (+ x (* y (+ (* c (* 2.0 a)) 1.0))))
(if (<= t 120000000000.0)
(/ x (+ x (* 2.0 (* a (* y c)))))
(/ x (+ x (+ y (/ (* y (* b 1.3333333333333333)) t)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1.22e-111) {
tmp = x / (x + (y * ((c * (2.0 * a)) + 1.0)));
} else if (t <= 120000000000.0) {
tmp = x / (x + (2.0 * (a * (y * c))));
} else {
tmp = x / (x + (y + ((y * (b * 1.3333333333333333)) / t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-1.22d-111)) then
tmp = x / (x + (y * ((c * (2.0d0 * a)) + 1.0d0)))
else if (t <= 120000000000.0d0) then
tmp = x / (x + (2.0d0 * (a * (y * c))))
else
tmp = x / (x + (y + ((y * (b * 1.3333333333333333d0)) / t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1.22e-111) {
tmp = x / (x + (y * ((c * (2.0 * a)) + 1.0)));
} else if (t <= 120000000000.0) {
tmp = x / (x + (2.0 * (a * (y * c))));
} else {
tmp = x / (x + (y + ((y * (b * 1.3333333333333333)) / t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -1.22e-111: tmp = x / (x + (y * ((c * (2.0 * a)) + 1.0))) elif t <= 120000000000.0: tmp = x / (x + (2.0 * (a * (y * c)))) else: tmp = x / (x + (y + ((y * (b * 1.3333333333333333)) / t))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -1.22e-111) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(c * Float64(2.0 * a)) + 1.0)))); elseif (t <= 120000000000.0) tmp = Float64(x / Float64(x + Float64(2.0 * Float64(a * Float64(y * c))))); else tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(y * Float64(b * 1.3333333333333333)) / t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -1.22e-111) tmp = x / (x + (y * ((c * (2.0 * a)) + 1.0))); elseif (t <= 120000000000.0) tmp = x / (x + (2.0 * (a * (y * c)))); else tmp = x / (x + (y + ((y * (b * 1.3333333333333333)) / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -1.22e-111], N[(x / N[(x + N[(y * N[(N[(c * N[(2.0 * a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 120000000000.0], N[(x / N[(x + N[(2.0 * N[(a * N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y + N[(N[(y * N[(b * 1.3333333333333333), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.22 \cdot 10^{-111}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(c \cdot \left(2 \cdot a\right) + 1\right)}\\
\mathbf{elif}\;t \leq 120000000000:\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(a \cdot \left(y \cdot c\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + \frac{y \cdot \left(b \cdot 1.3333333333333333\right)}{t}\right)}\\
\end{array}
\end{array}
if t < -1.22e-111Initial program 94.9%
Taylor expanded in c around inf 79.5%
+-commutative79.5%
associate-*r/79.5%
metadata-eval79.5%
Simplified79.5%
Taylor expanded in a around inf 79.5%
Taylor expanded in a around 0 52.5%
associate-*r*52.5%
*-commutative52.5%
Simplified52.5%
if -1.22e-111 < t < 1.2e11Initial program 89.6%
Taylor expanded in c around inf 64.4%
+-commutative64.4%
associate-*r/64.4%
metadata-eval64.4%
Simplified64.4%
Taylor expanded in a around inf 48.1%
Taylor expanded in a around 0 36.4%
associate-*r*36.4%
*-commutative36.4%
Simplified36.4%
Taylor expanded in a around inf 43.6%
*-commutative43.6%
Simplified43.6%
if 1.2e11 < t Initial program 95.6%
Taylor expanded in b around inf 70.9%
associate-*r/70.9%
metadata-eval70.9%
+-commutative70.9%
Simplified70.9%
Taylor expanded in b around 0 45.7%
distribute-lft-out45.7%
associate--r+45.7%
sub-neg45.7%
associate-*r/45.7%
metadata-eval45.7%
metadata-eval45.7%
*-commutative45.7%
Simplified45.7%
Taylor expanded in b around 0 43.2%
associate--r+43.2%
sub-neg43.2%
associate-*r/43.2%
metadata-eval43.2%
metadata-eval43.2%
associate-+r-43.2%
Simplified43.2%
Taylor expanded in t around 0 42.2%
associate-*r/42.2%
associate-*r*42.2%
*-commutative42.2%
Simplified42.2%
Final simplification44.4%
(FPCore (x y z t a b c) :precision binary64 (if (<= (- b c) -2e+61) (/ x (+ x (* y (+ (* (+ a 0.8333333333333334) (* 2.0 c)) 1.0)))) (/ x (+ x (+ y (* 1.3333333333333333 (* y (/ (- b c) t))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -2e+61) {
tmp = x / (x + (y * (((a + 0.8333333333333334) * (2.0 * c)) + 1.0)));
} else {
tmp = x / (x + (y + (1.3333333333333333 * (y * ((b - c) / t)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= (-2d+61)) then
tmp = x / (x + (y * (((a + 0.8333333333333334d0) * (2.0d0 * c)) + 1.0d0)))
else
tmp = x / (x + (y + (1.3333333333333333d0 * (y * ((b - c) / t)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -2e+61) {
tmp = x / (x + (y * (((a + 0.8333333333333334) * (2.0 * c)) + 1.0)));
} else {
tmp = x / (x + (y + (1.3333333333333333 * (y * ((b - c) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -2e+61: tmp = x / (x + (y * (((a + 0.8333333333333334) * (2.0 * c)) + 1.0))) else: tmp = x / (x + (y + (1.3333333333333333 * (y * ((b - c) / t))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -2e+61) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(a + 0.8333333333333334) * Float64(2.0 * c)) + 1.0)))); else tmp = Float64(x / Float64(x + Float64(y + Float64(1.3333333333333333 * Float64(y * Float64(Float64(b - c) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= -2e+61) tmp = x / (x + (y * (((a + 0.8333333333333334) * (2.0 * c)) + 1.0))); else tmp = x / (x + (y + (1.3333333333333333 * (y * ((b - c) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -2e+61], N[(x / N[(x + N[(y * N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(2.0 * c), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y + N[(1.3333333333333333 * N[(y * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -2 \cdot 10^{+61}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(2 \cdot c\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + 1.3333333333333333 \cdot \left(y \cdot \frac{b - c}{t}\right)\right)}\\
\end{array}
\end{array}
if (-.f64 b c) < -1.9999999999999999e61Initial program 89.1%
Taylor expanded in c around inf 76.4%
+-commutative76.4%
associate-*r/76.4%
metadata-eval76.4%
Simplified76.4%
Taylor expanded in t around inf 68.2%
Taylor expanded in c around 0 50.7%
associate-*r*50.7%
*-commutative50.7%
Simplified50.7%
if -1.9999999999999999e61 < (-.f64 b c) Initial program 94.9%
Taylor expanded in t around 0 54.8%
Taylor expanded in z around 0 57.9%
associate-*r/57.9%
Simplified57.9%
Taylor expanded in t around inf 44.0%
associate-/l*43.9%
Simplified43.9%
Final simplification46.1%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= b -5e-99) (not (<= b 1.75e-257))) (/ x (+ x (* 2.0 (* a (* y c))))) (/ x (+ x y))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -5e-99) || !(b <= 1.75e-257)) {
tmp = x / (x + (2.0 * (a * (y * c))));
} 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 ((b <= (-5d-99)) .or. (.not. (b <= 1.75d-257))) then
tmp = x / (x + (2.0d0 * (a * (y * c))))
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 ((b <= -5e-99) || !(b <= 1.75e-257)) {
tmp = x / (x + (2.0 * (a * (y * c))));
} else {
tmp = x / (x + y);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -5e-99) or not (b <= 1.75e-257): tmp = x / (x + (2.0 * (a * (y * c)))) else: tmp = x / (x + y) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -5e-99) || !(b <= 1.75e-257)) tmp = Float64(x / Float64(x + Float64(2.0 * Float64(a * Float64(y * c))))); 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 ((b <= -5e-99) || ~((b <= 1.75e-257))) tmp = x / (x + (2.0 * (a * (y * c)))); else tmp = x / (x + y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -5e-99], N[Not[LessEqual[b, 1.75e-257]], $MachinePrecision]], N[(x / N[(x + N[(2.0 * N[(a * N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{-99} \lor \neg \left(b \leq 1.75 \cdot 10^{-257}\right):\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(a \cdot \left(y \cdot c\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y}\\
\end{array}
\end{array}
if b < -4.99999999999999969e-99 or 1.75000000000000015e-257 < b Initial program 91.6%
Taylor expanded in c around inf 65.2%
+-commutative65.2%
associate-*r/65.2%
metadata-eval65.2%
Simplified65.2%
Taylor expanded in a around inf 56.5%
Taylor expanded in a around 0 41.3%
associate-*r*41.3%
*-commutative41.3%
Simplified41.3%
Taylor expanded in a around inf 43.3%
*-commutative43.3%
Simplified43.3%
if -4.99999999999999969e-99 < b < 1.75000000000000015e-257Initial program 98.2%
Taylor expanded in b around inf 51.0%
associate-*r/51.0%
metadata-eval51.0%
+-commutative51.0%
Simplified51.0%
Taylor expanded in b around 0 43.6%
Final simplification43.4%
(FPCore (x y z t a b c) :precision binary64 (if (<= x 2.3e+90) (/ x (+ x (* a (+ (* 2.0 (* y c)) (/ y a))))) (/ x (+ x (+ y (/ (* y (* b 1.3333333333333333)) t))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 2.3e+90) {
tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a))));
} else {
tmp = x / (x + (y + ((y * (b * 1.3333333333333333)) / 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 (x <= 2.3d+90) then
tmp = x / (x + (a * ((2.0d0 * (y * c)) + (y / a))))
else
tmp = x / (x + (y + ((y * (b * 1.3333333333333333d0)) / 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 (x <= 2.3e+90) {
tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a))));
} else {
tmp = x / (x + (y + ((y * (b * 1.3333333333333333)) / t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= 2.3e+90: tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a)))) else: tmp = x / (x + (y + ((y * (b * 1.3333333333333333)) / t))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= 2.3e+90) tmp = Float64(x / Float64(x + Float64(a * Float64(Float64(2.0 * Float64(y * c)) + Float64(y / a))))); else tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(y * Float64(b * 1.3333333333333333)) / t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= 2.3e+90) tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a)))); else tmp = x / (x + (y + ((y * (b * 1.3333333333333333)) / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, 2.3e+90], N[(x / N[(x + N[(a * N[(N[(2.0 * N[(y * c), $MachinePrecision]), $MachinePrecision] + N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y + N[(N[(y * N[(b * 1.3333333333333333), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.3 \cdot 10^{+90}:\\
\;\;\;\;\frac{x}{x + a \cdot \left(2 \cdot \left(y \cdot c\right) + \frac{y}{a}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + \frac{y \cdot \left(b \cdot 1.3333333333333333\right)}{t}\right)}\\
\end{array}
\end{array}
if x < 2.3e90Initial program 92.5%
Taylor expanded in c around inf 69.7%
+-commutative69.7%
associate-*r/69.7%
metadata-eval69.7%
Simplified69.7%
Taylor expanded in a around inf 59.3%
Taylor expanded in a around 0 38.7%
associate-*r*38.7%
*-commutative38.7%
Simplified38.7%
Taylor expanded in a around inf 43.1%
if 2.3e90 < x Initial program 95.4%
Taylor expanded in b around inf 77.4%
associate-*r/77.4%
metadata-eval77.4%
+-commutative77.4%
Simplified77.4%
Taylor expanded in b around 0 66.0%
distribute-lft-out66.0%
associate--r+66.0%
sub-neg66.0%
associate-*r/66.0%
metadata-eval66.0%
metadata-eval66.0%
*-commutative66.0%
Simplified66.0%
Taylor expanded in b around 0 52.7%
associate--r+52.7%
sub-neg52.7%
associate-*r/52.7%
metadata-eval52.7%
metadata-eval52.7%
associate-+r-52.7%
Simplified52.7%
Taylor expanded in t around 0 52.7%
associate-*r/52.7%
associate-*r*52.7%
*-commutative52.7%
Simplified52.7%
Final simplification44.7%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 2.55e+166) (/ x (+ x y)) (/ x (* y (+ (* 2.0 (* a c)) 1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 2.55e+166) {
tmp = x / (x + y);
} else {
tmp = x / (y * ((2.0 * (a * c)) + 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.55d+166) then
tmp = x / (x + y)
else
tmp = x / (y * ((2.0d0 * (a * c)) + 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.55e+166) {
tmp = x / (x + y);
} else {
tmp = x / (y * ((2.0 * (a * c)) + 1.0));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 2.55e+166: tmp = x / (x + y) else: tmp = x / (y * ((2.0 * (a * c)) + 1.0)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 2.55e+166) tmp = Float64(x / Float64(x + y)); else tmp = Float64(x / Float64(y * Float64(Float64(2.0 * Float64(a * c)) + 1.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 2.55e+166) tmp = x / (x + y); else tmp = x / (y * ((2.0 * (a * c)) + 1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 2.55e+166], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 2.55 \cdot 10^{+166}:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(2 \cdot \left(a \cdot c\right) + 1\right)}\\
\end{array}
\end{array}
if c < 2.55e166Initial program 94.7%
Taylor expanded in b around inf 69.1%
associate-*r/69.1%
metadata-eval69.1%
+-commutative69.1%
Simplified69.1%
Taylor expanded in b around 0 37.4%
if 2.55e166 < c Initial program 81.9%
Taylor expanded in c around inf 85.3%
+-commutative85.3%
associate-*r/85.3%
metadata-eval85.3%
Simplified85.3%
Taylor expanded in a around inf 73.6%
Taylor expanded in a around 0 53.4%
associate-*r*53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in x around 0 50.2%
Final simplification39.0%
(FPCore (x y z t a b c) :precision binary64 (if (<= b 1.9e+265) (/ x (+ x y)) (* 0.75 (/ (* t x) (* y b)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= 1.9e+265) {
tmp = x / (x + y);
} else {
tmp = 0.75 * ((t * x) / (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= 1.9d+265) then
tmp = x / (x + y)
else
tmp = 0.75d0 * ((t * x) / (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= 1.9e+265) {
tmp = x / (x + y);
} else {
tmp = 0.75 * ((t * x) / (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= 1.9e+265: tmp = x / (x + y) else: tmp = 0.75 * ((t * x) / (y * b)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= 1.9e+265) tmp = Float64(x / Float64(x + y)); else tmp = Float64(0.75 * Float64(Float64(t * x) / Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= 1.9e+265) tmp = x / (x + y); else tmp = 0.75 * ((t * x) / (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, 1.9e+265], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], N[(0.75 * N[(N[(t * x), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.9 \cdot 10^{+265}:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{else}:\\
\;\;\;\;0.75 \cdot \frac{t \cdot x}{y \cdot b}\\
\end{array}
\end{array}
if b < 1.90000000000000007e265Initial program 92.7%
Taylor expanded in b around inf 66.3%
associate-*r/66.3%
metadata-eval66.3%
+-commutative66.3%
Simplified66.3%
Taylor expanded in b around 0 35.9%
if 1.90000000000000007e265 < b Initial program 100.0%
Taylor expanded in b around inf 91.2%
associate-*r/91.2%
metadata-eval91.2%
+-commutative91.2%
Simplified91.2%
Taylor expanded in b around 0 55.7%
distribute-lft-out55.7%
associate--r+55.7%
sub-neg55.7%
associate-*r/55.7%
metadata-eval55.7%
metadata-eval55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in b around 0 47.3%
associate--r+47.3%
sub-neg47.3%
associate-*r/47.3%
metadata-eval47.3%
metadata-eval47.3%
associate-+r-47.3%
Simplified47.3%
Taylor expanded in t around 0 47.0%
Final simplification36.4%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 3.3e+146) (/ x (+ x y)) (* (/ 0.5 a) (/ x (* y c)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 3.3e+146) {
tmp = x / (x + y);
} else {
tmp = (0.5 / a) * (x / (y * 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 <= 3.3d+146) then
tmp = x / (x + y)
else
tmp = (0.5d0 / a) * (x / (y * 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 <= 3.3e+146) {
tmp = x / (x + y);
} else {
tmp = (0.5 / a) * (x / (y * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 3.3e+146: tmp = x / (x + y) else: tmp = (0.5 / a) * (x / (y * c)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 3.3e+146) tmp = Float64(x / Float64(x + y)); else tmp = Float64(Float64(0.5 / a) * Float64(x / Float64(y * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 3.3e+146) tmp = x / (x + y); else tmp = (0.5 / a) * (x / (y * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 3.3e+146], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], N[(N[(0.5 / a), $MachinePrecision] * N[(x / N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 3.3 \cdot 10^{+146}:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{else}:\\
\;\;\;\;\frac{0.5}{a} \cdot \frac{x}{y \cdot c}\\
\end{array}
\end{array}
if c < 3.30000000000000016e146Initial program 94.6%
Taylor expanded in b around inf 69.5%
associate-*r/69.5%
metadata-eval69.5%
+-commutative69.5%
Simplified69.5%
Taylor expanded in b around 0 37.8%
if 3.30000000000000016e146 < c Initial program 83.4%
Taylor expanded in c around inf 86.5%
+-commutative86.5%
associate-*r/86.5%
metadata-eval86.5%
Simplified86.5%
Taylor expanded in a around inf 70.5%
Taylor expanded in a around 0 49.2%
associate-*r*49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in a around inf 38.1%
associate-*r/38.1%
times-frac40.9%
*-commutative40.9%
Simplified40.9%
Final simplification38.3%
(FPCore (x y z t a b c) :precision binary64 (/ x (+ x (* y (+ (* c (* 2.0 a)) 1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * ((c * (2.0 * a)) + 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 = x / (x + (y * ((c * (2.0d0 * a)) + 1.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 * ((c * (2.0 * a)) + 1.0)));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * ((c * (2.0 * a)) + 1.0)))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * Float64(Float64(c * Float64(2.0 * a)) + 1.0)))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * ((c * (2.0 * a)) + 1.0))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[(N[(c * N[(2.0 * a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot \left(c \cdot \left(2 \cdot a\right) + 1\right)}
\end{array}
Initial program 93.0%
Taylor expanded in c around inf 69.2%
+-commutative69.2%
associate-*r/69.2%
metadata-eval69.2%
Simplified69.2%
Taylor expanded in a around inf 59.0%
Taylor expanded in a around 0 40.3%
associate-*r*40.3%
*-commutative40.3%
Simplified40.3%
Final simplification40.3%
(FPCore (x y z t a b c) :precision binary64 (/ x (+ x y)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + y);
}
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)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + y);
}
def code(x, y, z, t, a, b, c): return x / (x + y)
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + y)) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + y); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y}
\end{array}
Initial program 93.0%
Taylor expanded in b around inf 67.4%
associate-*r/67.4%
metadata-eval67.4%
+-commutative67.4%
Simplified67.4%
Taylor expanded in b around 0 34.6%
Final simplification34.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 2024055
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:alt
(if (< t -2.118326644891581e-50) (/ x (+ x (* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b))))))) (if (< t 5.196588770651547e-123) (/ x (+ x (* y (exp (* 2.0 (/ (- (* (* z (sqrt (+ t a))) (* (* 3.0 t) (- a (/ 5.0 6.0)))) (* (- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0) (* (- a (/ 5.0 6.0)) (* (- b c) t)))) (* (* (* t t) 3.0) (- a (/ 5.0 6.0))))))))) (/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))