
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= t -2e-60) (not (<= t 6e-260)))
(/
x
(fma
y
(pow
(exp 2.0)
(fma
z
(/ (sqrt (+ t a)) t)
(* (+ a (- 0.8333333333333334 (/ 0.6666666666666666 t))) (- c b))))
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), ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * (c - b)))), 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(a + Float64(0.8333333333333334 - Float64(0.6666666666666666 / t))) * Float64(c - b)))), 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[(a + N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(c - b), $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(a + \left(0.8333333333333334 - \frac{0.6666666666666666}{t}\right)\right) \cdot \left(c - b\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%
associate-+r-65.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 (- b c))) t))))))
(if (<= t 8.5e-15)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (+ a 0.8333333333333334) (- c b))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -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 * (b - c))) / t)))));
} else if (t <= 8.5e-15) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-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) * (b - c))) / t)))))
else if (t <= 8.5d-15) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((a + 0.8333333333333334d0) * (c - b)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -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 * (b - c))) / t)))));
} else if (t <= 8.5e-15) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -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 * (b - c))) / t))))) elif t <= 8.5e-15: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -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(b - c))) / t)))))); elseif (t <= 8.5e-15) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(a + 0.8333333333333334) * Float64(c - b)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -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 * (b - c))) / t))))); elseif (t <= 8.5e-15) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); else tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -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[(b - c), $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[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -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(b - c\right)}{t}}}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-15}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < -2.9e19Initial program 93.8%
Taylor expanded in c around inf 88.1%
+-commutative88.1%
associate-*r/88.1%
metadata-eval88.1%
associate-+r-88.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%
if 8.50000000000000007e-15 < t Initial program 95.8%
Taylor expanded in t around inf 99.2%
Final simplification93.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -6e+19)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= t 8.5e-58)
(/
x
(+
x
(*
y
(exp
(* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(- (* z (sqrt (/ 1.0 t))) (* b (+ a 0.8333333333333334)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -6e+19) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (t <= 8.5e-58) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) - (b * (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-6d+19)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (t <= 8.5d-58) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) - (b * (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -6e+19) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (t <= 8.5e-58) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) - (b * (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -6e+19: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif t <= 8.5e-58: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) - (b * (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -6e+19) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (t <= 8.5e-58) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) - Float64(b * Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -6e+19) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (t <= 8.5e-58) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); else tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) - (b * (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -6e+19], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e-58], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6 \cdot 10^{+19}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-58}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} - b \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if t < -6e19Initial program 93.8%
Taylor expanded in c around inf 88.1%
+-commutative88.1%
associate-*r/88.1%
metadata-eval88.1%
associate-+r-88.1%
Simplified88.1%
Taylor expanded in a around inf 88.1%
if -6e19 < t < 8.5000000000000004e-58Initial program 89.6%
Taylor expanded in t around 0 88.6%
if 8.5000000000000004e-58 < t Initial program 96.1%
Taylor expanded in t around inf 94.6%
Taylor expanded in b around inf 76.8%
Final simplification82.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 1e-26)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(/
x
(+
x
(*
y
(exp
(* 2.0 (- (* z (sqrt (/ 1.0 t))) (* b (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1e-26) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) - (b * (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 1d-26) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) - (b * (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1e-26) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) - (b * (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1e-26: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) - (b * (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1e-26) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) - Float64(b * Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 1e-26) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); else tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) - (b * (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 1e-26], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 10^{-26}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} - b \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if t < 1e-26Initial program 90.5%
Taylor expanded in t around 0 81.9%
Taylor expanded in z around 0 77.2%
if 1e-26 < t Initial program 95.9%
Taylor expanded in t around inf 97.6%
Taylor expanded in b around inf 78.9%
Final simplification78.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* b -1.6666666666666667)))))))
(if (<= x -2.9e+97)
t_1
(if (<= x -4e-97)
1.0
(if (<= x -3.8e-185)
(/ x (+ x (* a (+ (* 2.0 (* y c)) (/ y a)))))
(if (<= x 1.9e-230)
1.0
(if (or (<= x 0.00025) (not (<= x 1.26e+128)))
t_1
(/
x
(+
x
(+
y
(/
(+
(* -2.0 (* b (* t (* y (+ a 0.8333333333333334)))))
(* 1.3333333333333333 (* y b)))
t)))))))))))
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 (x <= -2.9e+97) {
tmp = t_1;
} else if (x <= -4e-97) {
tmp = 1.0;
} else if (x <= -3.8e-185) {
tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a))));
} else if (x <= 1.9e-230) {
tmp = 1.0;
} else if ((x <= 0.00025) || !(x <= 1.26e+128)) {
tmp = t_1;
} else {
tmp = x / (x + (y + (((-2.0 * (b * (t * (y * (a + 0.8333333333333334))))) + (1.3333333333333333 * (y * b))) / t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
if (x <= (-2.9d+97)) then
tmp = t_1
else if (x <= (-4d-97)) then
tmp = 1.0d0
else if (x <= (-3.8d-185)) then
tmp = x / (x + (a * ((2.0d0 * (y * c)) + (y / a))))
else if (x <= 1.9d-230) then
tmp = 1.0d0
else if ((x <= 0.00025d0) .or. (.not. (x <= 1.26d+128))) then
tmp = t_1
else
tmp = x / (x + (y + ((((-2.0d0) * (b * (t * (y * (a + 0.8333333333333334d0))))) + (1.3333333333333333d0 * (y * b))) / t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((b * -1.6666666666666667))));
double tmp;
if (x <= -2.9e+97) {
tmp = t_1;
} else if (x <= -4e-97) {
tmp = 1.0;
} else if (x <= -3.8e-185) {
tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a))));
} else if (x <= 1.9e-230) {
tmp = 1.0;
} else if ((x <= 0.00025) || !(x <= 1.26e+128)) {
tmp = t_1;
} else {
tmp = x / (x + (y + (((-2.0 * (b * (t * (y * (a + 0.8333333333333334))))) + (1.3333333333333333 * (y * b))) / t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((b * -1.6666666666666667)))) tmp = 0 if x <= -2.9e+97: tmp = t_1 elif x <= -4e-97: tmp = 1.0 elif x <= -3.8e-185: tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a)))) elif x <= 1.9e-230: tmp = 1.0 elif (x <= 0.00025) or not (x <= 1.26e+128): tmp = t_1 else: tmp = x / (x + (y + (((-2.0 * (b * (t * (y * (a + 0.8333333333333334))))) + (1.3333333333333333 * (y * b))) / t))) 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 (x <= -2.9e+97) tmp = t_1; elseif (x <= -4e-97) tmp = 1.0; elseif (x <= -3.8e-185) tmp = Float64(x / Float64(x + Float64(a * Float64(Float64(2.0 * Float64(y * c)) + Float64(y / a))))); elseif (x <= 1.9e-230) tmp = 1.0; elseif ((x <= 0.00025) || !(x <= 1.26e+128)) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(Float64(-2.0 * Float64(b * Float64(t * Float64(y * Float64(a + 0.8333333333333334))))) + Float64(1.3333333333333333 * Float64(y * b))) / t)))); 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 (x <= -2.9e+97) tmp = t_1; elseif (x <= -4e-97) tmp = 1.0; elseif (x <= -3.8e-185) tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a)))); elseif (x <= 1.9e-230) tmp = 1.0; elseif ((x <= 0.00025) || ~((x <= 1.26e+128))) tmp = t_1; else tmp = x / (x + (y + (((-2.0 * (b * (t * (y * (a + 0.8333333333333334))))) + (1.3333333333333333 * (y * b))) / t))); 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[x, -2.9e+97], t$95$1, If[LessEqual[x, -4e-97], 1.0, If[LessEqual[x, -3.8e-185], N[(x / N[(x + N[(a * N[(N[(2.0 * N[(y * c), $MachinePrecision]), $MachinePrecision] + N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.9e-230], 1.0, If[Or[LessEqual[x, 0.00025], N[Not[LessEqual[x, 1.26e+128]], $MachinePrecision]], t$95$1, N[(x / N[(x + N[(y + N[(N[(N[(-2.0 * N[(b * N[(t * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(1.3333333333333333 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{if}\;x \leq -2.9 \cdot 10^{+97}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -4 \cdot 10^{-97}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq -3.8 \cdot 10^{-185}:\\
\;\;\;\;\frac{x}{x + a \cdot \left(2 \cdot \left(y \cdot c\right) + \frac{y}{a}\right)}\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{-230}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 0.00025 \lor \neg \left(x \leq 1.26 \cdot 10^{+128}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + \frac{-2 \cdot \left(b \cdot \left(t \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right)\right)\right) + 1.3333333333333333 \cdot \left(y \cdot b\right)}{t}\right)}\\
\end{array}
\end{array}
if x < -2.89999999999999987e97 or 1.8999999999999999e-230 < x < 2.5000000000000001e-4 or 1.26000000000000009e128 < x Initial program 94.3%
Taylor expanded in b around inf 69.8%
associate-*r/69.8%
metadata-eval69.8%
+-commutative69.8%
Simplified69.8%
Taylor expanded in t around inf 65.1%
mul-1-neg65.1%
+-commutative65.1%
distribute-rgt-neg-in65.1%
+-commutative65.1%
mul-1-neg65.1%
distribute-lft-in65.1%
metadata-eval65.1%
mul-1-neg65.1%
unsub-neg65.1%
Simplified65.1%
Taylor expanded in a around 0 59.4%
if -2.89999999999999987e97 < x < -4.00000000000000014e-97 or -3.7999999999999999e-185 < x < 1.8999999999999999e-230Initial program 91.1%
Taylor expanded in c around inf 63.9%
+-commutative63.9%
associate-*r/63.9%
metadata-eval63.9%
associate-+r-63.9%
Simplified63.9%
Taylor expanded in a around inf 50.9%
Taylor expanded in a around 0 28.0%
*-commutative28.0%
Simplified28.0%
Taylor expanded in x around inf 72.5%
if -4.00000000000000014e-97 < x < -3.7999999999999999e-185Initial program 92.6%
Taylor expanded in c around inf 78.5%
+-commutative78.5%
associate-*r/78.5%
metadata-eval78.5%
associate-+r-78.5%
Simplified78.5%
Taylor expanded in a around inf 71.5%
Taylor expanded in a around 0 50.6%
*-commutative50.6%
Simplified50.6%
Taylor expanded in a around inf 57.5%
if 2.5000000000000001e-4 < x < 1.26000000000000009e128Initial program 92.4%
Taylor expanded in b around inf 75.3%
associate-*r/75.3%
metadata-eval75.3%
+-commutative75.3%
Simplified75.3%
Taylor expanded in b around 0 50.6%
associate-*r*50.6%
*-commutative50.6%
associate-*r/50.6%
metadata-eval50.6%
+-commutative50.6%
associate--r+50.6%
Simplified50.6%
Taylor expanded in t around 0 57.8%
Final simplification62.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* c 1.6666666666666667)))))))
(if (<= x -3.4e+19)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= x -8.2e-160)
t_1
(if (<= x 3.1e-173)
1.0
(if (or (<= x 1e+30) (not (<= x 8e+83)))
t_1
(/
x
(+
x
(+
y
(/
(+
(* -2.0 (* b (* t (* y (+ a 0.8333333333333334)))))
(* 1.3333333333333333 (* y b)))
t))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((c * 1.6666666666666667))));
double tmp;
if (x <= -3.4e+19) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (x <= -8.2e-160) {
tmp = t_1;
} else if (x <= 3.1e-173) {
tmp = 1.0;
} else if ((x <= 1e+30) || !(x <= 8e+83)) {
tmp = t_1;
} else {
tmp = x / (x + (y + (((-2.0 * (b * (t * (y * (a + 0.8333333333333334))))) + (1.3333333333333333 * (y * b))) / t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((c * 1.6666666666666667d0))))
if (x <= (-3.4d+19)) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (x <= (-8.2d-160)) then
tmp = t_1
else if (x <= 3.1d-173) then
tmp = 1.0d0
else if ((x <= 1d+30) .or. (.not. (x <= 8d+83))) then
tmp = t_1
else
tmp = x / (x + (y + ((((-2.0d0) * (b * (t * (y * (a + 0.8333333333333334d0))))) + (1.3333333333333333d0 * (y * b))) / t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((c * 1.6666666666666667))));
double tmp;
if (x <= -3.4e+19) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (x <= -8.2e-160) {
tmp = t_1;
} else if (x <= 3.1e-173) {
tmp = 1.0;
} else if ((x <= 1e+30) || !(x <= 8e+83)) {
tmp = t_1;
} else {
tmp = x / (x + (y + (((-2.0 * (b * (t * (y * (a + 0.8333333333333334))))) + (1.3333333333333333 * (y * b))) / t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((c * 1.6666666666666667)))) tmp = 0 if x <= -3.4e+19: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif x <= -8.2e-160: tmp = t_1 elif x <= 3.1e-173: tmp = 1.0 elif (x <= 1e+30) or not (x <= 8e+83): tmp = t_1 else: tmp = x / (x + (y + (((-2.0 * (b * (t * (y * (a + 0.8333333333333334))))) + (1.3333333333333333 * (y * b))) / t))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))) tmp = 0.0 if (x <= -3.4e+19) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (x <= -8.2e-160) tmp = t_1; elseif (x <= 3.1e-173) tmp = 1.0; elseif ((x <= 1e+30) || !(x <= 8e+83)) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(Float64(-2.0 * Float64(b * Float64(t * Float64(y * Float64(a + 0.8333333333333334))))) + Float64(1.3333333333333333 * Float64(y * b))) / t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((c * 1.6666666666666667)))); tmp = 0.0; if (x <= -3.4e+19) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (x <= -8.2e-160) tmp = t_1; elseif (x <= 3.1e-173) tmp = 1.0; elseif ((x <= 1e+30) || ~((x <= 8e+83))) tmp = t_1; else tmp = x / (x + (y + (((-2.0 * (b * (t * (y * (a + 0.8333333333333334))))) + (1.3333333333333333 * (y * b))) / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.4e+19], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -8.2e-160], t$95$1, If[LessEqual[x, 3.1e-173], 1.0, If[Or[LessEqual[x, 1e+30], N[Not[LessEqual[x, 8e+83]], $MachinePrecision]], t$95$1, N[(x / N[(x + N[(y + N[(N[(N[(-2.0 * N[(b * N[(t * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(1.3333333333333333 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{if}\;x \leq -3.4 \cdot 10^{+19}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;x \leq -8.2 \cdot 10^{-160}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{-173}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 10^{+30} \lor \neg \left(x \leq 8 \cdot 10^{+83}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + \frac{-2 \cdot \left(b \cdot \left(t \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right)\right)\right) + 1.3333333333333333 \cdot \left(y \cdot b\right)}{t}\right)}\\
\end{array}
\end{array}
if x < -3.4e19Initial program 93.8%
Taylor expanded in b around inf 69.3%
associate-*r/69.3%
metadata-eval69.3%
+-commutative69.3%
Simplified69.3%
Taylor expanded in t around inf 67.8%
mul-1-neg67.8%
+-commutative67.8%
distribute-rgt-neg-in67.8%
+-commutative67.8%
mul-1-neg67.8%
distribute-lft-in67.8%
metadata-eval67.8%
mul-1-neg67.8%
unsub-neg67.8%
Simplified67.8%
Taylor expanded in a around 0 62.7%
if -3.4e19 < x < -8.20000000000000003e-160 or 3.10000000000000005e-173 < x < 1e30 or 8.00000000000000025e83 < x Initial program 93.2%
Taylor expanded in c around inf 72.6%
+-commutative72.6%
associate-*r/72.6%
metadata-eval72.6%
associate-+r-72.6%
Simplified72.6%
Taylor expanded in t around inf 66.7%
Taylor expanded in a around 0 64.6%
if -8.20000000000000003e-160 < x < 3.10000000000000005e-173Initial program 91.0%
Taylor expanded in c around inf 56.1%
+-commutative56.1%
associate-*r/56.1%
metadata-eval56.1%
associate-+r-56.1%
Simplified56.1%
Taylor expanded in a around inf 47.5%
Taylor expanded in a around 0 25.6%
*-commutative25.6%
Simplified25.6%
Taylor expanded in x around inf 67.0%
if 1e30 < x < 8.00000000000000025e83Initial program 94.1%
Taylor expanded in b around inf 71.8%
associate-*r/71.8%
metadata-eval71.8%
+-commutative71.8%
Simplified71.8%
Taylor expanded in b around 0 60.3%
associate-*r*60.3%
*-commutative60.3%
associate-*r/60.3%
metadata-eval60.3%
+-commutative60.3%
associate--r+60.3%
Simplified60.3%
Taylor expanded in t around 0 65.9%
Final simplification64.6%
(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 -5.4e-286)
t_1
(if (<= a 1.35e-185)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
(if (<= a 4.6e-59) 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 <= -5.4e-286) {
tmp = t_1;
} else if (a <= 1.35e-185) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else if (a <= 4.6e-59) {
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 <= (-5.4d-286)) then
tmp = t_1
else if (a <= 1.35d-185) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else if (a <= 4.6d-59) 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 <= -5.4e-286) {
tmp = t_1;
} else if (a <= 1.35e-185) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else if (a <= 4.6e-59) {
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 <= -5.4e-286: tmp = t_1 elif a <= 1.35e-185: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) elif a <= 4.6e-59: 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 <= -5.4e-286) tmp = t_1; elseif (a <= 1.35e-185) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); elseif (a <= 4.6e-59) 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 <= -5.4e-286) tmp = t_1; elseif (a <= 1.35e-185) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); elseif (a <= 4.6e-59) 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, -5.4e-286], t$95$1, If[LessEqual[a, 1.35e-185], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.6e-59], 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 -5.4 \cdot 10^{-286}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{-185}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{elif}\;a \leq 4.6 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -0.849999999999999978 or 4.59999999999999959e-59 < a Initial program 91.7%
Taylor expanded in c around inf 71.2%
+-commutative71.2%
associate-*r/71.2%
metadata-eval71.2%
associate-+r-71.2%
Simplified71.2%
Taylor expanded in a around inf 68.7%
if -0.849999999999999978 < a < -5.4000000000000004e-286 or 1.34999999999999994e-185 < a < 4.59999999999999959e-59Initial 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 -5.4000000000000004e-286 < a < 1.34999999999999994e-185Initial program 97.0%
Taylor expanded in c around inf 69.9%
+-commutative69.9%
associate-*r/69.9%
metadata-eval69.9%
associate-+r-69.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 (<= a -0.85)
(/ x (+ x (* y (exp (* 2.0 (* a (- b)))))))
(if (<= a 2.6e-287)
t_1
(if (<= a 1.45e-185)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
(if (<= a 1.85e-60) 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 = x / (x + (y * exp((b * -1.6666666666666667))));
double tmp;
if (a <= -0.85) {
tmp = x / (x + (y * exp((2.0 * (a * -b)))));
} else if (a <= 2.6e-287) {
tmp = t_1;
} else if (a <= 1.45e-185) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else if (a <= 1.85e-60) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
if (a <= (-0.85d0)) then
tmp = x / (x + (y * exp((2.0d0 * (a * -b)))))
else if (a <= 2.6d-287) then
tmp = t_1
else if (a <= 1.45d-185) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else if (a <= 1.85d-60) then
tmp = t_1
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 t_1 = x / (x + (y * Math.exp((b * -1.6666666666666667))));
double tmp;
if (a <= -0.85) {
tmp = x / (x + (y * Math.exp((2.0 * (a * -b)))));
} else if (a <= 2.6e-287) {
tmp = t_1;
} else if (a <= 1.45e-185) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else if (a <= 1.85e-60) {
tmp = 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 = x / (x + (y * math.exp((b * -1.6666666666666667)))) tmp = 0 if a <= -0.85: tmp = x / (x + (y * math.exp((2.0 * (a * -b))))) elif a <= 2.6e-287: tmp = t_1 elif a <= 1.45e-185: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) elif a <= 1.85e-60: tmp = 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(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))) tmp = 0.0 if (a <= -0.85) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(-b))))))); elseif (a <= 2.6e-287) tmp = t_1; elseif (a <= 1.45e-185) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); elseif (a <= 1.85e-60) tmp = 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 = x / (x + (y * exp((b * -1.6666666666666667)))); tmp = 0.0; if (a <= -0.85) tmp = x / (x + (y * exp((2.0 * (a * -b))))); elseif (a <= 2.6e-287) tmp = t_1; elseif (a <= 1.45e-185) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); elseif (a <= 1.85e-60) tmp = 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[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, 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, 2.6e-287], t$95$1, If[LessEqual[a, 1.45e-185], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.85e-60], t$95$1, 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{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\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 2.6 \cdot 10^{-287}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.45 \cdot 10^{-185}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{-60}:\\
\;\;\;\;t\_1\\
\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 < 2.6e-287 or 1.44999999999999997e-185 < a < 1.85000000000000012e-60Initial program 93.6%
Taylor expanded in b around inf 77.5%
associate-*r/77.5%
metadata-eval77.5%
+-commutative77.5%
Simplified77.5%
Taylor expanded in t around inf 64.9%
mul-1-neg64.9%
+-commutative64.9%
distribute-rgt-neg-in64.9%
+-commutative64.9%
mul-1-neg64.9%
distribute-lft-in64.9%
metadata-eval64.9%
mul-1-neg64.9%
unsub-neg64.9%
Simplified64.9%
Taylor expanded in a around 0 64.9%
if 2.6e-287 < a < 1.44999999999999997e-185Initial program 100.0%
Taylor expanded in c around inf 60.6%
+-commutative60.6%
associate-*r/60.6%
metadata-eval60.6%
associate-+r-60.6%
Simplified60.6%
Taylor expanded in t around inf 60.8%
Taylor expanded in a around 0 60.8%
if 1.85000000000000012e-60 < a Initial program 91.2%
Taylor expanded in c around inf 72.5%
+-commutative72.5%
associate-*r/72.5%
metadata-eval72.5%
associate-+r-72.5%
Simplified72.5%
Taylor expanded in a around inf 69.6%
Final simplification68.4%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -66000.0) (not (<= c 5.8e-100)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* (+ a (- 0.8333333333333334 (/ 0.6666666666666666 t))) c))))))
(/
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 <= -66000.0) || !(c <= 5.8e-100)) {
tmp = x / (x + (y * exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c)))));
} 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 <= (-66000.0d0)) .or. (.not. (c <= 5.8d-100))) then
tmp = x / (x + (y * exp((2.0d0 * ((a + (0.8333333333333334d0 - (0.6666666666666666d0 / t))) * c)))))
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 <= -66000.0) || !(c <= 5.8e-100)) {
tmp = x / (x + (y * Math.exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c)))));
} 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 <= -66000.0) or not (c <= 5.8e-100): tmp = x / (x + (y * math.exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c))))) 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 <= -66000.0) || !(c <= 5.8e-100)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + Float64(0.8333333333333334 - Float64(0.6666666666666666 / t))) * c)))))); 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 <= -66000.0) || ~((c <= 5.8e-100))) tmp = x / (x + (y * exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c))))); 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, -66000.0], N[Not[LessEqual[c, 5.8e-100]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * c), $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 -66000 \lor \neg \left(c \leq 5.8 \cdot 10^{-100}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + \left(0.8333333333333334 - \frac{0.6666666666666666}{t}\right)\right) \cdot c\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 < -66000 or 5.79999999999999951e-100 < c Initial program 92.4%
Taylor expanded in c around inf 83.6%
+-commutative83.6%
associate-*r/83.6%
metadata-eval83.6%
associate-+r-83.6%
Simplified83.6%
if -66000 < c < 5.79999999999999951e-100Initial 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 (<= t 68000000.0)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 1.4e+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((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 1.4e+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((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 1.4d+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((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 1.4e+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((1.3333333333333333 * ((b - c) / t))))) elif t <= 1.4e+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(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 1.4e+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((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 1.4e+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[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.4e+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^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 1.4 \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%
if 6.8e7 < t < 1.3999999999999999e206Initial program 98.7%
Taylor expanded in c around inf 77.2%
+-commutative77.2%
associate-*r/77.2%
metadata-eval77.2%
associate-+r-77.2%
Simplified77.2%
Taylor expanded in t around inf 77.2%
if 1.3999999999999999e206 < 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 (<= t 68000000.0)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 1.85e+207)
(/ 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 tmp;
if (t <= 68000000.0) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 1.85e+207) {
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) :: tmp
if (t <= 68000000.0d0) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 1.85d+207) 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 tmp;
if (t <= 68000000.0) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 1.85e+207) {
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): tmp = 0 if t <= 68000000.0: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 1.85e+207: 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) tmp = 0.0 if (t <= 68000000.0) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 1.85e+207) 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) tmp = 0.0; if (t <= 68000000.0) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 1.85e+207) 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_] := If[LessEqual[t, 68000000.0], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.85e+207], 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}
\mathbf{if}\;t \leq 68000000:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{+207}:\\
\;\;\;\;\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 < 6.8e7Initial program 91.0%
Taylor expanded in t around 0 79.3%
Taylor expanded in z around 0 77.6%
if 6.8e7 < t < 1.85e207Initial program 98.7%
Taylor expanded in c around inf 77.2%
+-commutative77.2%
associate-*r/77.2%
metadata-eval77.2%
associate-+r-77.2%
Simplified77.2%
Taylor expanded in t around inf 77.2%
Taylor expanded in a around 0 70.5%
if 1.85e207 < 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 simplification73.7%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 68000000.0) (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t)))))) (/ 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((1.3333333333333333 * ((b - c) / t)))));
} 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((1.3333333333333333d0 * ((b - c) / t)))))
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((1.3333333333333333 * ((b - c) / t)))));
} 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((1.3333333333333333 * ((b - c) / t))))) 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(1.3333333333333333 * Float64(Float64(b - c) / t)))))); 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((1.3333333333333333 * ((b - c) / t))))); 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[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $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^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\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%
if 6.8e7 < t Initial program 95.6%
Taylor expanded in b around inf 71.2%
associate-*r/71.2%
metadata-eval71.2%
+-commutative71.2%
Simplified71.2%
Taylor expanded in t around inf 71.2%
mul-1-neg71.2%
+-commutative71.2%
distribute-rgt-neg-in71.2%
+-commutative71.2%
mul-1-neg71.2%
distribute-lft-in71.2%
metadata-eval71.2%
mul-1-neg71.2%
unsub-neg71.2%
Simplified71.2%
Final simplification74.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -7e-11)
(/ x (* y (exp (* b -1.6666666666666667))))
(if (<= b -4.4e-111)
1.0
(if (<= b -3.15e-226)
(/
x
(-
x
(-
(*
(* 2.0 b)
(*
a
(-
y
(/ (* y (+ (/ 0.6666666666666666 t) -0.8333333333333334)) a))))
y)))
(if (<= b 2.05e-256)
1.0
(if (<= b 6.8e-61)
(/ x (+ x (* c (+ (* 2.0 (* y a)) (/ y c)))))
1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -7e-11) {
tmp = x / (y * exp((b * -1.6666666666666667)));
} else if (b <= -4.4e-111) {
tmp = 1.0;
} else if (b <= -3.15e-226) {
tmp = x / (x - (((2.0 * b) * (a * (y - ((y * ((0.6666666666666666 / t) + -0.8333333333333334)) / a)))) - y));
} else if (b <= 2.05e-256) {
tmp = 1.0;
} else if (b <= 6.8e-61) {
tmp = x / (x + (c * ((2.0 * (y * a)) + (y / c))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-7d-11)) then
tmp = x / (y * exp((b * (-1.6666666666666667d0))))
else if (b <= (-4.4d-111)) then
tmp = 1.0d0
else if (b <= (-3.15d-226)) then
tmp = x / (x - (((2.0d0 * b) * (a * (y - ((y * ((0.6666666666666666d0 / t) + (-0.8333333333333334d0))) / a)))) - y))
else if (b <= 2.05d-256) then
tmp = 1.0d0
else if (b <= 6.8d-61) then
tmp = x / (x + (c * ((2.0d0 * (y * a)) + (y / c))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -7e-11) {
tmp = x / (y * Math.exp((b * -1.6666666666666667)));
} else if (b <= -4.4e-111) {
tmp = 1.0;
} else if (b <= -3.15e-226) {
tmp = x / (x - (((2.0 * b) * (a * (y - ((y * ((0.6666666666666666 / t) + -0.8333333333333334)) / a)))) - y));
} else if (b <= 2.05e-256) {
tmp = 1.0;
} else if (b <= 6.8e-61) {
tmp = x / (x + (c * ((2.0 * (y * a)) + (y / c))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -7e-11: tmp = x / (y * math.exp((b * -1.6666666666666667))) elif b <= -4.4e-111: tmp = 1.0 elif b <= -3.15e-226: tmp = x / (x - (((2.0 * b) * (a * (y - ((y * ((0.6666666666666666 / t) + -0.8333333333333334)) / a)))) - y)) elif b <= 2.05e-256: tmp = 1.0 elif b <= 6.8e-61: tmp = x / (x + (c * ((2.0 * (y * a)) + (y / c)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -7e-11) tmp = Float64(x / Float64(y * exp(Float64(b * -1.6666666666666667)))); elseif (b <= -4.4e-111) tmp = 1.0; elseif (b <= -3.15e-226) tmp = Float64(x / Float64(x - Float64(Float64(Float64(2.0 * b) * Float64(a * Float64(y - Float64(Float64(y * Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334)) / a)))) - y))); elseif (b <= 2.05e-256) tmp = 1.0; elseif (b <= 6.8e-61) tmp = Float64(x / Float64(x + Float64(c * Float64(Float64(2.0 * Float64(y * a)) + Float64(y / c))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -7e-11) tmp = x / (y * exp((b * -1.6666666666666667))); elseif (b <= -4.4e-111) tmp = 1.0; elseif (b <= -3.15e-226) tmp = x / (x - (((2.0 * b) * (a * (y - ((y * ((0.6666666666666666 / t) + -0.8333333333333334)) / a)))) - y)); elseif (b <= 2.05e-256) tmp = 1.0; elseif (b <= 6.8e-61) tmp = x / (x + (c * ((2.0 * (y * a)) + (y / c)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -7e-11], N[(x / N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.4e-111], 1.0, If[LessEqual[b, -3.15e-226], N[(x / N[(x - N[(N[(N[(2.0 * b), $MachinePrecision] * N[(a * N[(y - N[(N[(y * N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.05e-256], 1.0, If[LessEqual[b, 6.8e-61], N[(x / N[(x + N[(c * N[(N[(2.0 * N[(y * a), $MachinePrecision]), $MachinePrecision] + N[(y / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7 \cdot 10^{-11}:\\
\;\;\;\;\frac{x}{y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b \leq -4.4 \cdot 10^{-111}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -3.15 \cdot 10^{-226}:\\
\;\;\;\;\frac{x}{x - \left(\left(2 \cdot b\right) \cdot \left(a \cdot \left(y - \frac{y \cdot \left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right)}{a}\right)\right) - y\right)}\\
\mathbf{elif}\;b \leq 2.05 \cdot 10^{-256}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{-61}:\\
\;\;\;\;\frac{x}{x + c \cdot \left(2 \cdot \left(y \cdot a\right) + \frac{y}{c}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -7.00000000000000038e-11Initial program 90.1%
Taylor expanded in b around inf 85.5%
associate-*r/85.5%
metadata-eval85.5%
+-commutative85.5%
Simplified85.5%
Taylor expanded in t around inf 69.3%
mul-1-neg69.3%
+-commutative69.3%
distribute-rgt-neg-in69.3%
+-commutative69.3%
mul-1-neg69.3%
distribute-lft-in69.3%
metadata-eval69.3%
mul-1-neg69.3%
unsub-neg69.3%
Simplified69.3%
Taylor expanded in x around 0 62.8%
Taylor expanded in a around 0 64.5%
if -7.00000000000000038e-11 < b < -4.4e-111 or -3.1499999999999999e-226 < b < 2.05e-256 or 6.7999999999999996e-61 < b Initial program 91.3%
Taylor expanded in c around inf 65.0%
+-commutative65.0%
associate-*r/65.0%
metadata-eval65.0%
associate-+r-65.0%
Simplified65.0%
Taylor expanded in a around inf 53.4%
Taylor expanded in a around 0 35.7%
*-commutative35.7%
Simplified35.7%
Taylor expanded in x around inf 59.7%
if -4.4e-111 < b < -3.1499999999999999e-226Initial program 100.0%
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 57.7%
associate-*r*57.7%
*-commutative57.7%
associate-*r/57.7%
metadata-eval57.7%
+-commutative57.7%
associate--r+57.7%
Simplified57.7%
Taylor expanded in a around -inf 65.9%
associate-*r*65.9%
mul-1-neg65.9%
mul-1-neg65.9%
sub-neg65.9%
associate-*r/65.9%
metadata-eval65.9%
metadata-eval65.9%
Simplified65.9%
if 2.05e-256 < b < 6.7999999999999996e-61Initial program 97.9%
Taylor expanded in c around inf 75.8%
+-commutative75.8%
associate-*r/75.8%
metadata-eval75.8%
associate-+r-75.8%
Simplified75.8%
Taylor expanded in a around inf 61.7%
Taylor expanded in a around 0 47.8%
*-commutative47.8%
Simplified47.8%
Taylor expanded in c around inf 51.7%
Final simplification59.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (+ y (* (* y (+ a 0.8333333333333334)) (* 2.0 c)))))))
(if (<= x -2.1e+119)
t_1
(if (<= x -4.5e-97)
1.0
(if (<= x -2.6e-180)
(/ x (+ x (* a (+ (* 2.0 (* y c)) (/ y a)))))
(if (<= x 3.7e-165)
1.0
(if (<= x 2.4e-105)
t_1
(if (<= x 0.00062)
1.0
(/
x
(-
x
(-
(*
(* 2.0 b)
(* y (- 0.8333333333333334 (- (/ 0.6666666666666666 t) a))))
y)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y + ((y * (a + 0.8333333333333334)) * (2.0 * c))));
double tmp;
if (x <= -2.1e+119) {
tmp = t_1;
} else if (x <= -4.5e-97) {
tmp = 1.0;
} else if (x <= -2.6e-180) {
tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a))));
} else if (x <= 3.7e-165) {
tmp = 1.0;
} else if (x <= 2.4e-105) {
tmp = t_1;
} else if (x <= 0.00062) {
tmp = 1.0;
} else {
tmp = x / (x - (((2.0 * b) * (y * (0.8333333333333334 - ((0.6666666666666666 / t) - a)))) - 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) :: t_1
real(8) :: tmp
t_1 = x / (x + (y + ((y * (a + 0.8333333333333334d0)) * (2.0d0 * c))))
if (x <= (-2.1d+119)) then
tmp = t_1
else if (x <= (-4.5d-97)) then
tmp = 1.0d0
else if (x <= (-2.6d-180)) then
tmp = x / (x + (a * ((2.0d0 * (y * c)) + (y / a))))
else if (x <= 3.7d-165) then
tmp = 1.0d0
else if (x <= 2.4d-105) then
tmp = t_1
else if (x <= 0.00062d0) then
tmp = 1.0d0
else
tmp = x / (x - (((2.0d0 * b) * (y * (0.8333333333333334d0 - ((0.6666666666666666d0 / t) - a)))) - 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 t_1 = x / (x + (y + ((y * (a + 0.8333333333333334)) * (2.0 * c))));
double tmp;
if (x <= -2.1e+119) {
tmp = t_1;
} else if (x <= -4.5e-97) {
tmp = 1.0;
} else if (x <= -2.6e-180) {
tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a))));
} else if (x <= 3.7e-165) {
tmp = 1.0;
} else if (x <= 2.4e-105) {
tmp = t_1;
} else if (x <= 0.00062) {
tmp = 1.0;
} else {
tmp = x / (x - (((2.0 * b) * (y * (0.8333333333333334 - ((0.6666666666666666 / t) - a)))) - y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y + ((y * (a + 0.8333333333333334)) * (2.0 * c)))) tmp = 0 if x <= -2.1e+119: tmp = t_1 elif x <= -4.5e-97: tmp = 1.0 elif x <= -2.6e-180: tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a)))) elif x <= 3.7e-165: tmp = 1.0 elif x <= 2.4e-105: tmp = t_1 elif x <= 0.00062: tmp = 1.0 else: tmp = x / (x - (((2.0 * b) * (y * (0.8333333333333334 - ((0.6666666666666666 / t) - a)))) - y)) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y + Float64(Float64(y * Float64(a + 0.8333333333333334)) * Float64(2.0 * c))))) tmp = 0.0 if (x <= -2.1e+119) tmp = t_1; elseif (x <= -4.5e-97) tmp = 1.0; elseif (x <= -2.6e-180) tmp = Float64(x / Float64(x + Float64(a * Float64(Float64(2.0 * Float64(y * c)) + Float64(y / a))))); elseif (x <= 3.7e-165) tmp = 1.0; elseif (x <= 2.4e-105) tmp = t_1; elseif (x <= 0.00062) tmp = 1.0; else tmp = Float64(x / Float64(x - Float64(Float64(Float64(2.0 * b) * Float64(y * Float64(0.8333333333333334 - Float64(Float64(0.6666666666666666 / t) - a)))) - y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y + ((y * (a + 0.8333333333333334)) * (2.0 * c)))); tmp = 0.0; if (x <= -2.1e+119) tmp = t_1; elseif (x <= -4.5e-97) tmp = 1.0; elseif (x <= -2.6e-180) tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a)))); elseif (x <= 3.7e-165) tmp = 1.0; elseif (x <= 2.4e-105) tmp = t_1; elseif (x <= 0.00062) tmp = 1.0; else tmp = x / (x - (((2.0 * b) * (y * (0.8333333333333334 - ((0.6666666666666666 / t) - a)))) - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y + N[(N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] * N[(2.0 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.1e+119], t$95$1, If[LessEqual[x, -4.5e-97], 1.0, If[LessEqual[x, -2.6e-180], N[(x / N[(x + N[(a * N[(N[(2.0 * N[(y * c), $MachinePrecision]), $MachinePrecision] + N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.7e-165], 1.0, If[LessEqual[x, 2.4e-105], t$95$1, If[LessEqual[x, 0.00062], 1.0, N[(x / N[(x - N[(N[(N[(2.0 * b), $MachinePrecision] * N[(y * N[(0.8333333333333334 - N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + \left(y + \left(y \cdot \left(a + 0.8333333333333334\right)\right) \cdot \left(2 \cdot c\right)\right)}\\
\mathbf{if}\;x \leq -2.1 \cdot 10^{+119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -4.5 \cdot 10^{-97}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq -2.6 \cdot 10^{-180}:\\
\;\;\;\;\frac{x}{x + a \cdot \left(2 \cdot \left(y \cdot c\right) + \frac{y}{a}\right)}\\
\mathbf{elif}\;x \leq 3.7 \cdot 10^{-165}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{-105}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 0.00062:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - \left(\left(2 \cdot b\right) \cdot \left(y \cdot \left(0.8333333333333334 - \left(\frac{0.6666666666666666}{t} - a\right)\right)\right) - y\right)}\\
\end{array}
\end{array}
if x < -2.09999999999999983e119 or 3.70000000000000001e-165 < x < 2.40000000000000015e-105Initial program 94.5%
Taylor expanded in c around inf 75.9%
+-commutative75.9%
associate-*r/75.9%
metadata-eval75.9%
associate-+r-75.9%
Simplified75.9%
Taylor expanded in t around inf 70.6%
Taylor expanded in c around 0 61.7%
associate-*r*61.7%
*-commutative61.7%
Simplified61.7%
if -2.09999999999999983e119 < x < -4.5000000000000001e-97 or -2.5999999999999999e-180 < x < 3.70000000000000001e-165 or 2.40000000000000015e-105 < x < 6.2e-4Initial program 91.3%
Taylor expanded in c around inf 65.9%
+-commutative65.9%
associate-*r/65.9%
metadata-eval65.9%
associate-+r-65.9%
Simplified65.9%
Taylor expanded in a around inf 54.5%
Taylor expanded in a around 0 29.0%
*-commutative29.0%
Simplified29.0%
Taylor expanded in x around inf 67.7%
if -4.5000000000000001e-97 < x < -2.5999999999999999e-180Initial program 92.6%
Taylor expanded in c around inf 78.5%
+-commutative78.5%
associate-*r/78.5%
metadata-eval78.5%
associate-+r-78.5%
Simplified78.5%
Taylor expanded in a around inf 71.5%
Taylor expanded in a around 0 50.6%
*-commutative50.6%
Simplified50.6%
Taylor expanded in a around inf 57.5%
if 6.2e-4 < x Initial program 94.5%
Taylor expanded in b around inf 74.5%
associate-*r/74.5%
metadata-eval74.5%
+-commutative74.5%
Simplified74.5%
Taylor expanded in b around 0 53.0%
associate-*r*53.0%
*-commutative53.0%
associate-*r/53.0%
metadata-eval53.0%
+-commutative53.0%
associate--r+53.0%
Simplified53.0%
Final simplification61.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (+ y (* (* y (+ a 0.8333333333333334)) (* 2.0 c)))))))
(if (<= x -1.55e+118)
t_1
(if (<= x -4.5e-97)
1.0
(if (<= x -5.6e-183)
(/ x (+ x (* a (+ (* 2.0 (* y c)) (/ y a)))))
(if (<= x 2.1e-166)
1.0
(if (<= x 1.22e-104)
t_1
(if (<= x 0.0025)
1.0
(/
x
(+
x
(+ y (* (* 2.0 b) (* 0.6666666666666666 (/ y t))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y + ((y * (a + 0.8333333333333334)) * (2.0 * c))));
double tmp;
if (x <= -1.55e+118) {
tmp = t_1;
} else if (x <= -4.5e-97) {
tmp = 1.0;
} else if (x <= -5.6e-183) {
tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a))));
} else if (x <= 2.1e-166) {
tmp = 1.0;
} else if (x <= 1.22e-104) {
tmp = t_1;
} else if (x <= 0.0025) {
tmp = 1.0;
} else {
tmp = x / (x + (y + ((2.0 * b) * (0.6666666666666666 * (y / 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) :: t_1
real(8) :: tmp
t_1 = x / (x + (y + ((y * (a + 0.8333333333333334d0)) * (2.0d0 * c))))
if (x <= (-1.55d+118)) then
tmp = t_1
else if (x <= (-4.5d-97)) then
tmp = 1.0d0
else if (x <= (-5.6d-183)) then
tmp = x / (x + (a * ((2.0d0 * (y * c)) + (y / a))))
else if (x <= 2.1d-166) then
tmp = 1.0d0
else if (x <= 1.22d-104) then
tmp = t_1
else if (x <= 0.0025d0) then
tmp = 1.0d0
else
tmp = x / (x + (y + ((2.0d0 * b) * (0.6666666666666666d0 * (y / 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 t_1 = x / (x + (y + ((y * (a + 0.8333333333333334)) * (2.0 * c))));
double tmp;
if (x <= -1.55e+118) {
tmp = t_1;
} else if (x <= -4.5e-97) {
tmp = 1.0;
} else if (x <= -5.6e-183) {
tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a))));
} else if (x <= 2.1e-166) {
tmp = 1.0;
} else if (x <= 1.22e-104) {
tmp = t_1;
} else if (x <= 0.0025) {
tmp = 1.0;
} else {
tmp = x / (x + (y + ((2.0 * b) * (0.6666666666666666 * (y / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y + ((y * (a + 0.8333333333333334)) * (2.0 * c)))) tmp = 0 if x <= -1.55e+118: tmp = t_1 elif x <= -4.5e-97: tmp = 1.0 elif x <= -5.6e-183: tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a)))) elif x <= 2.1e-166: tmp = 1.0 elif x <= 1.22e-104: tmp = t_1 elif x <= 0.0025: tmp = 1.0 else: tmp = x / (x + (y + ((2.0 * b) * (0.6666666666666666 * (y / t))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y + Float64(Float64(y * Float64(a + 0.8333333333333334)) * Float64(2.0 * c))))) tmp = 0.0 if (x <= -1.55e+118) tmp = t_1; elseif (x <= -4.5e-97) tmp = 1.0; elseif (x <= -5.6e-183) tmp = Float64(x / Float64(x + Float64(a * Float64(Float64(2.0 * Float64(y * c)) + Float64(y / a))))); elseif (x <= 2.1e-166) tmp = 1.0; elseif (x <= 1.22e-104) tmp = t_1; elseif (x <= 0.0025) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(2.0 * b) * Float64(0.6666666666666666 * Float64(y / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y + ((y * (a + 0.8333333333333334)) * (2.0 * c)))); tmp = 0.0; if (x <= -1.55e+118) tmp = t_1; elseif (x <= -4.5e-97) tmp = 1.0; elseif (x <= -5.6e-183) tmp = x / (x + (a * ((2.0 * (y * c)) + (y / a)))); elseif (x <= 2.1e-166) tmp = 1.0; elseif (x <= 1.22e-104) tmp = t_1; elseif (x <= 0.0025) tmp = 1.0; else tmp = x / (x + (y + ((2.0 * b) * (0.6666666666666666 * (y / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y + N[(N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] * N[(2.0 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.55e+118], t$95$1, If[LessEqual[x, -4.5e-97], 1.0, If[LessEqual[x, -5.6e-183], N[(x / N[(x + N[(a * N[(N[(2.0 * N[(y * c), $MachinePrecision]), $MachinePrecision] + N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.1e-166], 1.0, If[LessEqual[x, 1.22e-104], t$95$1, If[LessEqual[x, 0.0025], 1.0, N[(x / N[(x + N[(y + N[(N[(2.0 * b), $MachinePrecision] * N[(0.6666666666666666 * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + \left(y + \left(y \cdot \left(a + 0.8333333333333334\right)\right) \cdot \left(2 \cdot c\right)\right)}\\
\mathbf{if}\;x \leq -1.55 \cdot 10^{+118}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -4.5 \cdot 10^{-97}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq -5.6 \cdot 10^{-183}:\\
\;\;\;\;\frac{x}{x + a \cdot \left(2 \cdot \left(y \cdot c\right) + \frac{y}{a}\right)}\\
\mathbf{elif}\;x \leq 2.1 \cdot 10^{-166}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 1.22 \cdot 10^{-104}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 0.0025:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(2 \cdot b\right) \cdot \left(0.6666666666666666 \cdot \frac{y}{t}\right)\right)}\\
\end{array}
\end{array}
if x < -1.54999999999999993e118 or 2.0999999999999999e-166 < x < 1.21999999999999997e-104Initial program 94.5%
Taylor expanded in c around inf 75.9%
+-commutative75.9%
associate-*r/75.9%
metadata-eval75.9%
associate-+r-75.9%
Simplified75.9%
Taylor expanded in t around inf 70.6%
Taylor expanded in c around 0 61.7%
associate-*r*61.7%
*-commutative61.7%
Simplified61.7%
if -1.54999999999999993e118 < x < -4.5000000000000001e-97 or -5.5999999999999997e-183 < x < 2.0999999999999999e-166 or 1.21999999999999997e-104 < x < 0.00250000000000000005Initial program 91.3%
Taylor expanded in c around inf 65.9%
+-commutative65.9%
associate-*r/65.9%
metadata-eval65.9%
associate-+r-65.9%
Simplified65.9%
Taylor expanded in a around inf 54.5%
Taylor expanded in a around 0 29.0%
*-commutative29.0%
Simplified29.0%
Taylor expanded in x around inf 67.7%
if -4.5000000000000001e-97 < x < -5.5999999999999997e-183Initial program 92.6%
Taylor expanded in c around inf 78.5%
+-commutative78.5%
associate-*r/78.5%
metadata-eval78.5%
associate-+r-78.5%
Simplified78.5%
Taylor expanded in a around inf 71.5%
Taylor expanded in a around 0 50.6%
*-commutative50.6%
Simplified50.6%
Taylor expanded in a around inf 57.5%
if 0.00250000000000000005 < x Initial program 94.5%
Taylor expanded in b around inf 74.5%
associate-*r/74.5%
metadata-eval74.5%
+-commutative74.5%
Simplified74.5%
Taylor expanded in b around 0 53.0%
associate-*r*53.0%
*-commutative53.0%
associate-*r/53.0%
metadata-eval53.0%
+-commutative53.0%
associate--r+53.0%
Simplified53.0%
Taylor expanded in t around 0 47.7%
Final simplification59.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* a (+ (* 2.0 (* y c)) (/ y a)))))))
(if (<= c -4.5e-35)
1.0
(if (<= c -5.2e-82)
t_1
(if (<= c 8.5e-167)
1.0
(if (<= c 5.2e+96)
t_1
(if (<= c 4.5e+145)
1.0
(/ x (+ 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 t_1 = x / (x + (a * ((2.0 * (y * c)) + (y / a))));
double tmp;
if (c <= -4.5e-35) {
tmp = 1.0;
} else if (c <= -5.2e-82) {
tmp = t_1;
} else if (c <= 8.5e-167) {
tmp = 1.0;
} else if (c <= 5.2e+96) {
tmp = t_1;
} else if (c <= 4.5e+145) {
tmp = 1.0;
} else {
tmp = x / (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) :: t_1
real(8) :: tmp
t_1 = x / (x + (a * ((2.0d0 * (y * c)) + (y / a))))
if (c <= (-4.5d-35)) then
tmp = 1.0d0
else if (c <= (-5.2d-82)) then
tmp = t_1
else if (c <= 8.5d-167) then
tmp = 1.0d0
else if (c <= 5.2d+96) then
tmp = t_1
else if (c <= 4.5d+145) then
tmp = 1.0d0
else
tmp = x / (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 t_1 = x / (x + (a * ((2.0 * (y * c)) + (y / a))));
double tmp;
if (c <= -4.5e-35) {
tmp = 1.0;
} else if (c <= -5.2e-82) {
tmp = t_1;
} else if (c <= 8.5e-167) {
tmp = 1.0;
} else if (c <= 5.2e+96) {
tmp = t_1;
} else if (c <= 4.5e+145) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((2.0 * (a * c)) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (a * ((2.0 * (y * c)) + (y / a)))) tmp = 0 if c <= -4.5e-35: tmp = 1.0 elif c <= -5.2e-82: tmp = t_1 elif c <= 8.5e-167: tmp = 1.0 elif c <= 5.2e+96: tmp = t_1 elif c <= 4.5e+145: tmp = 1.0 else: tmp = x / (x + (y * ((2.0 * (a * c)) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(a * Float64(Float64(2.0 * Float64(y * c)) + Float64(y / a))))) tmp = 0.0 if (c <= -4.5e-35) tmp = 1.0; elseif (c <= -5.2e-82) tmp = t_1; elseif (c <= 8.5e-167) tmp = 1.0; elseif (c <= 5.2e+96) tmp = t_1; elseif (c <= 4.5e+145) tmp = 1.0; else tmp = Float64(x / 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) t_1 = x / (x + (a * ((2.0 * (y * c)) + (y / a)))); tmp = 0.0; if (c <= -4.5e-35) tmp = 1.0; elseif (c <= -5.2e-82) tmp = t_1; elseif (c <= 8.5e-167) tmp = 1.0; elseif (c <= 5.2e+96) tmp = t_1; elseif (c <= 4.5e+145) tmp = 1.0; else tmp = x / (x + (y * ((2.0 * (a * c)) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(a * N[(N[(2.0 * N[(y * c), $MachinePrecision]), $MachinePrecision] + N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.5e-35], 1.0, If[LessEqual[c, -5.2e-82], t$95$1, If[LessEqual[c, 8.5e-167], 1.0, If[LessEqual[c, 5.2e+96], t$95$1, If[LessEqual[c, 4.5e+145], 1.0, N[(x / N[(x + N[(y * N[(N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + a \cdot \left(2 \cdot \left(y \cdot c\right) + \frac{y}{a}\right)}\\
\mathbf{if}\;c \leq -4.5 \cdot 10^{-35}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -5.2 \cdot 10^{-82}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 8.5 \cdot 10^{-167}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 5.2 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 4.5 \cdot 10^{+145}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(a \cdot c\right) + 1\right)}\\
\end{array}
\end{array}
if c < -4.5000000000000001e-35 or -5.2e-82 < c < 8.4999999999999994e-167 or 5.2e96 < c < 4.4999999999999998e145Initial program 93.3%
Taylor expanded in c around inf 65.7%
+-commutative65.7%
associate-*r/65.7%
metadata-eval65.7%
associate-+r-65.7%
Simplified65.7%
Taylor expanded in a around inf 52.7%
Taylor expanded in a around 0 35.7%
*-commutative35.7%
Simplified35.7%
Taylor expanded in x around inf 60.7%
if -4.5000000000000001e-35 < c < -5.2e-82 or 8.4999999999999994e-167 < c < 5.2e96Initial program 98.2%
Taylor expanded in c around inf 68.2%
+-commutative68.2%
associate-*r/68.2%
metadata-eval68.2%
associate-+r-68.2%
Simplified68.2%
Taylor expanded in a around inf 70.0%
Taylor expanded in a around 0 47.9%
*-commutative47.9%
Simplified47.9%
Taylor expanded in a around inf 54.8%
if 4.4999999999999998e145 < c Initial program 83.4%
Taylor expanded in c around inf 86.5%
+-commutative86.5%
associate-*r/86.5%
metadata-eval86.5%
associate-+r-86.5%
Simplified86.5%
Taylor expanded in a around inf 70.5%
Taylor expanded in a around 0 49.2%
*-commutative49.2%
Simplified49.2%
Final simplification57.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (+ y (* -2.0 (* b (* y (+ a 0.8333333333333334)))))))))
(if (<= c -2.8e-35)
1.0
(if (<= c -7e-82)
t_1
(if (<= c 1.2e-122)
1.0
(if (<= c 9.5e+55)
t_1
(if (<= c 5e+144)
1.0
(/ x (+ 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 t_1 = x / (x + (y + (-2.0 * (b * (y * (a + 0.8333333333333334))))));
double tmp;
if (c <= -2.8e-35) {
tmp = 1.0;
} else if (c <= -7e-82) {
tmp = t_1;
} else if (c <= 1.2e-122) {
tmp = 1.0;
} else if (c <= 9.5e+55) {
tmp = t_1;
} else if (c <= 5e+144) {
tmp = 1.0;
} else {
tmp = x / (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) :: t_1
real(8) :: tmp
t_1 = x / (x + (y + ((-2.0d0) * (b * (y * (a + 0.8333333333333334d0))))))
if (c <= (-2.8d-35)) then
tmp = 1.0d0
else if (c <= (-7d-82)) then
tmp = t_1
else if (c <= 1.2d-122) then
tmp = 1.0d0
else if (c <= 9.5d+55) then
tmp = t_1
else if (c <= 5d+144) then
tmp = 1.0d0
else
tmp = x / (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 t_1 = x / (x + (y + (-2.0 * (b * (y * (a + 0.8333333333333334))))));
double tmp;
if (c <= -2.8e-35) {
tmp = 1.0;
} else if (c <= -7e-82) {
tmp = t_1;
} else if (c <= 1.2e-122) {
tmp = 1.0;
} else if (c <= 9.5e+55) {
tmp = t_1;
} else if (c <= 5e+144) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((2.0 * (a * c)) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y + (-2.0 * (b * (y * (a + 0.8333333333333334)))))) tmp = 0 if c <= -2.8e-35: tmp = 1.0 elif c <= -7e-82: tmp = t_1 elif c <= 1.2e-122: tmp = 1.0 elif c <= 9.5e+55: tmp = t_1 elif c <= 5e+144: tmp = 1.0 else: tmp = x / (x + (y * ((2.0 * (a * c)) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(b * Float64(y * Float64(a + 0.8333333333333334))))))) tmp = 0.0 if (c <= -2.8e-35) tmp = 1.0; elseif (c <= -7e-82) tmp = t_1; elseif (c <= 1.2e-122) tmp = 1.0; elseif (c <= 9.5e+55) tmp = t_1; elseif (c <= 5e+144) tmp = 1.0; else tmp = Float64(x / 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) t_1 = x / (x + (y + (-2.0 * (b * (y * (a + 0.8333333333333334)))))); tmp = 0.0; if (c <= -2.8e-35) tmp = 1.0; elseif (c <= -7e-82) tmp = t_1; elseif (c <= 1.2e-122) tmp = 1.0; elseif (c <= 9.5e+55) tmp = t_1; elseif (c <= 5e+144) tmp = 1.0; else tmp = x / (x + (y * ((2.0 * (a * c)) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y + N[(-2.0 * N[(b * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.8e-35], 1.0, If[LessEqual[c, -7e-82], t$95$1, If[LessEqual[c, 1.2e-122], 1.0, If[LessEqual[c, 9.5e+55], t$95$1, If[LessEqual[c, 5e+144], 1.0, N[(x / N[(x + N[(y * N[(N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + \left(y + -2 \cdot \left(b \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{if}\;c \leq -2.8 \cdot 10^{-35}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -7 \cdot 10^{-82}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1.2 \cdot 10^{-122}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 9.5 \cdot 10^{+55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 5 \cdot 10^{+144}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(a \cdot c\right) + 1\right)}\\
\end{array}
\end{array}
if c < -2.8e-35 or -6.9999999999999997e-82 < c < 1.19999999999999994e-122 or 9.49999999999999989e55 < c < 4.9999999999999999e144Initial program 94.0%
Taylor expanded in c around inf 66.1%
+-commutative66.1%
associate-*r/66.1%
metadata-eval66.1%
associate-+r-66.1%
Simplified66.1%
Taylor expanded in a around inf 55.0%
Taylor expanded in a around 0 36.6%
*-commutative36.6%
Simplified36.6%
Taylor expanded in x around inf 59.0%
if -2.8e-35 < c < -6.9999999999999997e-82 or 1.19999999999999994e-122 < c < 9.49999999999999989e55Initial program 97.3%
Taylor expanded in b around inf 67.7%
associate-*r/67.7%
metadata-eval67.7%
+-commutative67.7%
Simplified67.7%
Taylor expanded in t around inf 65.0%
mul-1-neg65.0%
+-commutative65.0%
distribute-rgt-neg-in65.0%
+-commutative65.0%
mul-1-neg65.0%
distribute-lft-in65.0%
metadata-eval65.0%
mul-1-neg65.0%
unsub-neg65.0%
Simplified65.0%
Taylor expanded in b around 0 61.0%
*-commutative61.0%
Simplified61.0%
if 4.9999999999999999e144 < c Initial program 83.4%
Taylor expanded in c around inf 86.5%
+-commutative86.5%
associate-*r/86.5%
metadata-eval86.5%
associate-+r-86.5%
Simplified86.5%
Taylor expanded in a around inf 70.5%
Taylor expanded in a around 0 49.2%
*-commutative49.2%
Simplified49.2%
Final simplification57.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -2.7e-35)
1.0
(if (<= c -7.6e-82)
(/ x (+ y (* -2.0 (* b (* y (+ a 0.8333333333333334))))))
(if (<= c 8.5e-121) 1.0 (/ x (+ 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.7e-35) {
tmp = 1.0;
} else if (c <= -7.6e-82) {
tmp = x / (y + (-2.0 * (b * (y * (a + 0.8333333333333334)))));
} else if (c <= 8.5e-121) {
tmp = 1.0;
} else {
tmp = x / (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.7d-35)) then
tmp = 1.0d0
else if (c <= (-7.6d-82)) then
tmp = x / (y + ((-2.0d0) * (b * (y * (a + 0.8333333333333334d0)))))
else if (c <= 8.5d-121) then
tmp = 1.0d0
else
tmp = x / (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.7e-35) {
tmp = 1.0;
} else if (c <= -7.6e-82) {
tmp = x / (y + (-2.0 * (b * (y * (a + 0.8333333333333334)))));
} else if (c <= 8.5e-121) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((2.0 * (a * c)) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -2.7e-35: tmp = 1.0 elif c <= -7.6e-82: tmp = x / (y + (-2.0 * (b * (y * (a + 0.8333333333333334))))) elif c <= 8.5e-121: tmp = 1.0 else: tmp = x / (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.7e-35) tmp = 1.0; elseif (c <= -7.6e-82) tmp = Float64(x / Float64(y + Float64(-2.0 * Float64(b * Float64(y * Float64(a + 0.8333333333333334)))))); elseif (c <= 8.5e-121) tmp = 1.0; else tmp = Float64(x / 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.7e-35) tmp = 1.0; elseif (c <= -7.6e-82) tmp = x / (y + (-2.0 * (b * (y * (a + 0.8333333333333334))))); elseif (c <= 8.5e-121) tmp = 1.0; else tmp = x / (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.7e-35], 1.0, If[LessEqual[c, -7.6e-82], N[(x / N[(y + N[(-2.0 * N[(b * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 8.5e-121], 1.0, N[(x / N[(x + N[(y * N[(N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.7 \cdot 10^{-35}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -7.6 \cdot 10^{-82}:\\
\;\;\;\;\frac{x}{y + -2 \cdot \left(b \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right)\right)}\\
\mathbf{elif}\;c \leq 8.5 \cdot 10^{-121}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(a \cdot c\right) + 1\right)}\\
\end{array}
\end{array}
if c < -2.6999999999999997e-35 or -7.60000000000000041e-82 < c < 8.50000000000000025e-121Initial program 94.5%
Taylor expanded in c around inf 64.6%
+-commutative64.6%
associate-*r/64.6%
metadata-eval64.6%
associate-+r-64.6%
Simplified64.6%
Taylor expanded in a around inf 53.3%
Taylor expanded in a around 0 36.1%
*-commutative36.1%
Simplified36.1%
Taylor expanded in x around inf 59.7%
if -2.6999999999999997e-35 < c < -7.60000000000000041e-82Initial program 100.0%
Taylor expanded in b around inf 63.7%
associate-*r/63.7%
metadata-eval63.7%
+-commutative63.7%
Simplified63.7%
Taylor expanded in t around inf 63.7%
mul-1-neg63.7%
+-commutative63.7%
distribute-rgt-neg-in63.7%
+-commutative63.7%
mul-1-neg63.7%
distribute-lft-in63.7%
metadata-eval63.7%
mul-1-neg63.7%
unsub-neg63.7%
Simplified63.7%
Taylor expanded in x around 0 59.9%
Taylor expanded in b around 0 60.2%
if 8.50000000000000025e-121 < c Initial program 89.6%
Taylor expanded in c around inf 80.4%
+-commutative80.4%
associate-*r/80.4%
metadata-eval80.4%
associate-+r-80.4%
Simplified80.4%
Taylor expanded in a around inf 70.4%
Taylor expanded in a around 0 48.3%
*-commutative48.3%
Simplified48.3%
Final simplification55.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c 5e-144)
1.0
(if (<= c 6.5e+97)
(/ x (+ x (* 2.0 (* a (* y c)))))
(if (<= c 1.8e+146) 1.0 (/ 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 <= 5e-144) {
tmp = 1.0;
} else if (c <= 6.5e+97) {
tmp = x / (x + (2.0 * (a * (y * c))));
} else if (c <= 1.8e+146) {
tmp = 1.0;
} 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 <= 5d-144) then
tmp = 1.0d0
else if (c <= 6.5d+97) then
tmp = x / (x + (2.0d0 * (a * (y * c))))
else if (c <= 1.8d+146) then
tmp = 1.0d0
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 <= 5e-144) {
tmp = 1.0;
} else if (c <= 6.5e+97) {
tmp = x / (x + (2.0 * (a * (y * c))));
} else if (c <= 1.8e+146) {
tmp = 1.0;
} 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 <= 5e-144: tmp = 1.0 elif c <= 6.5e+97: tmp = x / (x + (2.0 * (a * (y * c)))) elif c <= 1.8e+146: tmp = 1.0 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 <= 5e-144) tmp = 1.0; elseif (c <= 6.5e+97) tmp = Float64(x / Float64(x + Float64(2.0 * Float64(a * Float64(y * c))))); elseif (c <= 1.8e+146) tmp = 1.0; 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 <= 5e-144) tmp = 1.0; elseif (c <= 6.5e+97) tmp = x / (x + (2.0 * (a * (y * c)))); elseif (c <= 1.8e+146) tmp = 1.0; 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, 5e-144], 1.0, If[LessEqual[c, 6.5e+97], N[(x / N[(x + N[(2.0 * N[(a * N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.8e+146], 1.0, 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 5 \cdot 10^{-144}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 6.5 \cdot 10^{+97}:\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(a \cdot \left(y \cdot c\right)\right)}\\
\mathbf{elif}\;c \leq 1.8 \cdot 10^{+146}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(2 \cdot \left(a \cdot c\right) + 1\right)}\\
\end{array}
\end{array}
if c < 4.9999999999999998e-144 or 6.4999999999999999e97 < c < 1.7999999999999999e146Initial program 93.9%
Taylor expanded in c around inf 64.6%
+-commutative64.6%
associate-*r/64.6%
metadata-eval64.6%
associate-+r-64.6%
Simplified64.6%
Taylor expanded in a around inf 53.2%
Taylor expanded in a around 0 37.0%
*-commutative37.0%
Simplified37.0%
Taylor expanded in x around inf 58.4%
if 4.9999999999999998e-144 < c < 6.4999999999999999e97Initial program 97.6%
Taylor expanded in c around inf 73.7%
+-commutative73.7%
associate-*r/73.7%
metadata-eval73.7%
associate-+r-73.7%
Simplified73.7%
Taylor expanded in a around inf 73.9%
Taylor expanded in a around 0 46.6%
*-commutative46.6%
Simplified46.6%
Taylor expanded in c around inf 42.9%
if 1.7999999999999999e146 < c Initial program 83.4%
Taylor expanded in c around inf 86.5%
+-commutative86.5%
associate-*r/86.5%
metadata-eval86.5%
associate-+r-86.5%
Simplified86.5%
Taylor expanded in a around inf 70.5%
Taylor expanded in a around 0 49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in x around 0 46.3%
Final simplification54.2%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 1.18e-120) 1.0 (/ x (+ 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 <= 1.18e-120) {
tmp = 1.0;
} else {
tmp = x / (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 <= 1.18d-120) then
tmp = 1.0d0
else
tmp = x / (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 <= 1.18e-120) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((2.0 * (a * c)) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 1.18e-120: tmp = 1.0 else: tmp = x / (x + (y * ((2.0 * (a * c)) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 1.18e-120) tmp = 1.0; else tmp = Float64(x / 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 <= 1.18e-120) tmp = 1.0; else tmp = x / (x + (y * ((2.0 * (a * c)) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 1.18e-120], 1.0, N[(x / N[(x + N[(y * N[(N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 1.18 \cdot 10^{-120}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(a \cdot c\right) + 1\right)}\\
\end{array}
\end{array}
if c < 1.17999999999999999e-120Initial program 94.7%
Taylor expanded in c around inf 63.5%
+-commutative63.5%
associate-*r/63.5%
metadata-eval63.5%
associate-+r-63.5%
Simplified63.5%
Taylor expanded in a around inf 53.2%
Taylor expanded in a around 0 36.2%
*-commutative36.2%
Simplified36.2%
Taylor expanded in x around inf 57.0%
if 1.17999999999999999e-120 < c Initial program 89.6%
Taylor expanded in c around inf 80.4%
+-commutative80.4%
associate-*r/80.4%
metadata-eval80.4%
associate-+r-80.4%
Simplified80.4%
Taylor expanded in a around inf 70.4%
Taylor expanded in a around 0 48.3%
*-commutative48.3%
Simplified48.3%
Final simplification54.1%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 2e+147) 1.0 (/ 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 <= 2e+147) {
tmp = 1.0;
} 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 <= 2d+147) then
tmp = 1.0d0
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 <= 2e+147) {
tmp = 1.0;
} 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 <= 2e+147: tmp = 1.0 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 <= 2e+147) tmp = 1.0; 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 <= 2e+147) tmp = 1.0; 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, 2e+147], 1.0, 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 \cdot 10^{+147}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(2 \cdot \left(a \cdot c\right) + 1\right)}\\
\end{array}
\end{array}
if c < 2e147Initial program 94.6%
Taylor expanded in c around inf 66.3%
+-commutative66.3%
associate-*r/66.3%
metadata-eval66.3%
associate-+r-66.3%
Simplified66.3%
Taylor expanded in a around inf 57.1%
Taylor expanded in a around 0 38.8%
*-commutative38.8%
Simplified38.8%
Taylor expanded in x around inf 53.2%
if 2e147 < c Initial program 83.4%
Taylor expanded in c around inf 86.5%
+-commutative86.5%
associate-*r/86.5%
metadata-eval86.5%
associate-+r-86.5%
Simplified86.5%
Taylor expanded in a around inf 70.5%
Taylor expanded in a around 0 49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in x around 0 46.3%
Final simplification52.2%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 1.02e+175) 1.0 (* 0.5 (/ x (* a (* y c))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.02e+175) {
tmp = 1.0;
} else {
tmp = 0.5 * (x / (a * (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 <= 1.02d+175) then
tmp = 1.0d0
else
tmp = 0.5d0 * (x / (a * (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 <= 1.02e+175) {
tmp = 1.0;
} else {
tmp = 0.5 * (x / (a * (y * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 1.02e+175: tmp = 1.0 else: tmp = 0.5 * (x / (a * (y * c))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 1.02e+175) tmp = 1.0; else tmp = Float64(0.5 * Float64(x / Float64(a * Float64(y * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 1.02e+175) tmp = 1.0; else tmp = 0.5 * (x / (a * (y * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 1.02e+175], 1.0, N[(0.5 * N[(x / N[(a * N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 1.02 \cdot 10^{+175}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{x}{a \cdot \left(y \cdot c\right)}\\
\end{array}
\end{array}
if c < 1.0199999999999999e175Initial program 94.3%
Taylor expanded in c around inf 67.2%
+-commutative67.2%
associate-*r/67.2%
metadata-eval67.2%
associate-+r-67.2%
Simplified67.2%
Taylor expanded in a around inf 57.0%
Taylor expanded in a around 0 38.7%
*-commutative38.7%
Simplified38.7%
Taylor expanded in x around inf 52.3%
if 1.0199999999999999e175 < c Initial program 83.4%
Taylor expanded in c around inf 83.9%
+-commutative83.9%
associate-*r/83.9%
metadata-eval83.9%
associate-+r-83.9%
Simplified83.9%
Taylor expanded in a around inf 74.2%
Taylor expanded in a around 0 51.9%
*-commutative51.9%
Simplified51.9%
Taylor expanded in c around inf 45.2%
Final simplification51.4%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 93.0%
Taylor expanded in c around inf 69.2%
+-commutative69.2%
associate-*r/69.2%
metadata-eval69.2%
associate-+r-69.2%
Simplified69.2%
Taylor expanded in a around inf 59.0%
Taylor expanded in a around 0 40.3%
*-commutative40.3%
Simplified40.3%
Taylor expanded in x around inf 48.8%
Final simplification48.8%
(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)))))))))))