
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 27 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* (sqrt (+ t a)) z) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((sqrt((t + a)) * z) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((Math.sqrt((t + a)) * z) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((math.sqrt((t + a)) * z) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(sqrt(Float64(t + a)) * z) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((sqrt((t + a)) * z) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\sqrt{t + a} \cdot z}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 99.6%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) Initial program 0.0%
Taylor expanded in t around 0 65.4%
Final simplification97.7%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
(- b c)
(+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a))
(* (sqrt (+ t a)) (/ z t))))
x)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / fma(y, pow(exp(2.0), fma((b - c), ((0.6666666666666666 / t) + (-0.8333333333333334 - a)), (sqrt((t + a)) * (z / t)))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(Float64(b - c), Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a)), Float64(sqrt(Float64(t + a)) * Float64(z / t)))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(b - c), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision] + N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(b - c, \frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right), \sqrt{t + a} \cdot \frac{z}{t}\right)\right)}, x\right)}
\end{array}
Initial program 94.1%
+-commutative94.1%
fma-def94.1%
Simplified97.3%
Final simplification97.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(*
(- b c)
(- (/ 0.6666666666666666 t) 0.8333333333333334))))))))))
(if (<= t -4.6e+104)
(/
x
(-
x
(-
(*
2.0
(*
(* y b)
(/
(-
(* (+ a 0.8333333333333334) (+ a 0.8333333333333334))
(* (/ 0.6666666666666666 t) (/ 0.6666666666666666 t)))
(+ (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))))
y)))
(if (<= t 8e-307)
(/
x
(+
x
(*
y
(exp
(* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 4e-66)
t_1
(if (<= t 2.3e-53)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 4e+59)
t_1
(/
x
(+
x
(*
y
(exp (* 2.0 (* (- b c) (- -0.8333333333333334 a))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334)))))));
double tmp;
if (t <= -4.6e+104) {
tmp = x / (x - ((2.0 * ((y * b) * ((((a + 0.8333333333333334) * (a + 0.8333333333333334)) - ((0.6666666666666666 / t) * (0.6666666666666666 / t))) / ((0.6666666666666666 / t) + (a + 0.8333333333333334))))) - y));
} else if (t <= 8e-307) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 4e-66) {
tmp = t_1;
} else if (t <= 2.3e-53) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 4e+59) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((b - c) * ((0.6666666666666666d0 / t) - 0.8333333333333334d0)))))))
if (t <= (-4.6d+104)) then
tmp = x / (x - ((2.0d0 * ((y * b) * ((((a + 0.8333333333333334d0) * (a + 0.8333333333333334d0)) - ((0.6666666666666666d0 / t) * (0.6666666666666666d0 / t))) / ((0.6666666666666666d0 / t) + (a + 0.8333333333333334d0))))) - y))
else if (t <= 8d-307) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 4d-66) then
tmp = t_1
else if (t <= 2.3d-53) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 4d+59) then
tmp = t_1
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334)))))));
double tmp;
if (t <= -4.6e+104) {
tmp = x / (x - ((2.0 * ((y * b) * ((((a + 0.8333333333333334) * (a + 0.8333333333333334)) - ((0.6666666666666666 / t) * (0.6666666666666666 / t))) / ((0.6666666666666666 / t) + (a + 0.8333333333333334))))) - y));
} else if (t <= 8e-307) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 4e-66) {
tmp = t_1;
} else if (t <= 2.3e-53) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 4e+59) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334))))))) tmp = 0 if t <= -4.6e+104: tmp = x / (x - ((2.0 * ((y * b) * ((((a + 0.8333333333333334) * (a + 0.8333333333333334)) - ((0.6666666666666666 / t) * (0.6666666666666666 / t))) / ((0.6666666666666666 / t) + (a + 0.8333333333333334))))) - y)) elif t <= 8e-307: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 4e-66: tmp = t_1 elif t <= 2.3e-53: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 4e+59: tmp = t_1 else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(b - c) * Float64(Float64(0.6666666666666666 / t) - 0.8333333333333334)))))))) tmp = 0.0 if (t <= -4.6e+104) tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(Float64(y * b) * Float64(Float64(Float64(Float64(a + 0.8333333333333334) * Float64(a + 0.8333333333333334)) - Float64(Float64(0.6666666666666666 / t) * Float64(0.6666666666666666 / t))) / Float64(Float64(0.6666666666666666 / t) + Float64(a + 0.8333333333333334))))) - y))); elseif (t <= 8e-307) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); elseif (t <= 4e-66) tmp = t_1; elseif (t <= 2.3e-53) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 4e+59) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334))))))); tmp = 0.0; if (t <= -4.6e+104) tmp = x / (x - ((2.0 * ((y * b) * ((((a + 0.8333333333333334) * (a + 0.8333333333333334)) - ((0.6666666666666666 / t) * (0.6666666666666666 / t))) / ((0.6666666666666666 / t) + (a + 0.8333333333333334))))) - y)); elseif (t <= 8e-307) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 4e-66) tmp = t_1; elseif (t <= 2.3e-53) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 4e+59) tmp = t_1; else tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.6e+104], N[(x / N[(x - N[(N[(2.0 * N[(N[(y * b), $MachinePrecision] * N[(N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] - N[(N[(0.6666666666666666 / t), $MachinePrecision] * N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e-307], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4e-66], t$95$1, If[LessEqual[t, 2.3e-53], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4e+59], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(b - c\right) \cdot \left(\frac{0.6666666666666666}{t} - 0.8333333333333334\right)\right)}}\\
\mathbf{if}\;t \leq -4.6 \cdot 10^{+104}:\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \left(\left(y \cdot b\right) \cdot \frac{\left(a + 0.8333333333333334\right) \cdot \left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t} \cdot \frac{0.6666666666666666}{t}}{\frac{0.6666666666666666}{t} + \left(a + 0.8333333333333334\right)}\right) - y\right)}\\
\mathbf{elif}\;t \leq 8 \cdot 10^{-307}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-66}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{-53}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 4 \cdot 10^{+59}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < -4.59999999999999969e104Initial program 80.0%
Taylor expanded in b around inf 80.9%
*-commutative80.9%
associate--r+80.9%
sub-neg80.9%
associate-*r/80.9%
metadata-eval80.9%
metadata-eval80.9%
associate-+r-80.9%
Simplified80.9%
Taylor expanded in b around 0 43.2%
associate-*r/43.2%
metadata-eval43.2%
*-commutative43.2%
Simplified43.2%
flip--100.0%
+-commutative100.0%
+-commutative100.0%
+-commutative100.0%
Applied egg-rr100.0%
if -4.59999999999999969e104 < t < 7.99999999999999927e-307Initial program 90.3%
Taylor expanded in t around 0 96.9%
if 7.99999999999999927e-307 < t < 3.9999999999999999e-66 or 2.3000000000000001e-53 < t < 3.99999999999999989e59Initial program 95.7%
Taylor expanded in a around 0 89.4%
*-commutative89.4%
associate-*r/89.4%
metadata-eval89.4%
Simplified89.4%
if 3.9999999999999999e-66 < t < 2.3000000000000001e-53Initial program 100.0%
Taylor expanded in a around inf 100.0%
if 3.99999999999999989e59 < t Initial program 95.6%
Taylor expanded in t around inf 92.5%
mul-1-neg92.5%
distribute-rgt-neg-in92.5%
distribute-neg-in92.5%
metadata-eval92.5%
sub-neg92.5%
Simplified92.5%
Final simplification92.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -5e+104)
(/
x
(-
x
(-
(*
2.0
(*
(* y b)
(/
(-
(* (+ a 0.8333333333333334) (+ a 0.8333333333333334))
(* (/ 0.6666666666666666 t) (/ 0.6666666666666666 t)))
(+ (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))))
y)))
(if (<= t 1.22e-209)
(/
x
(+
x
(*
y
(exp
(* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 2e-65)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 4e-53)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 0.0071)
(/ x (+ x (+ y (* -2.0 (* y (* b a))))))
(/
x
(+
x
(* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -5e+104) {
tmp = x / (x - ((2.0 * ((y * b) * ((((a + 0.8333333333333334) * (a + 0.8333333333333334)) - ((0.6666666666666666 / t) * (0.6666666666666666 / t))) / ((0.6666666666666666 / t) + (a + 0.8333333333333334))))) - y));
} else if (t <= 1.22e-209) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 2e-65) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 4e-53) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 0.0071) {
tmp = x / (x + (y + (-2.0 * (y * (b * a)))));
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-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 <= (-5d+104)) then
tmp = x / (x - ((2.0d0 * ((y * b) * ((((a + 0.8333333333333334d0) * (a + 0.8333333333333334d0)) - ((0.6666666666666666d0 / t) * (0.6666666666666666d0 / t))) / ((0.6666666666666666d0 / t) + (a + 0.8333333333333334d0))))) - y))
else if (t <= 1.22d-209) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 2d-65) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 4d-53) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 0.0071d0) then
tmp = x / (x + (y + ((-2.0d0) * (y * (b * a)))))
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-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 <= -5e+104) {
tmp = x / (x - ((2.0 * ((y * b) * ((((a + 0.8333333333333334) * (a + 0.8333333333333334)) - ((0.6666666666666666 / t) * (0.6666666666666666 / t))) / ((0.6666666666666666 / t) + (a + 0.8333333333333334))))) - y));
} else if (t <= 1.22e-209) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 2e-65) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 4e-53) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 0.0071) {
tmp = x / (x + (y + (-2.0 * (y * (b * a)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -5e+104: tmp = x / (x - ((2.0 * ((y * b) * ((((a + 0.8333333333333334) * (a + 0.8333333333333334)) - ((0.6666666666666666 / t) * (0.6666666666666666 / t))) / ((0.6666666666666666 / t) + (a + 0.8333333333333334))))) - y)) elif t <= 1.22e-209: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 2e-65: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 4e-53: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 0.0071: tmp = x / (x + (y + (-2.0 * (y * (b * a))))) else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -5e+104) tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(Float64(y * b) * Float64(Float64(Float64(Float64(a + 0.8333333333333334) * Float64(a + 0.8333333333333334)) - Float64(Float64(0.6666666666666666 / t) * Float64(0.6666666666666666 / t))) / Float64(Float64(0.6666666666666666 / t) + Float64(a + 0.8333333333333334))))) - y))); elseif (t <= 1.22e-209) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); elseif (t <= 2e-65) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 4e-53) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 0.0071) tmp = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(y * Float64(b * a)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -5e+104) tmp = x / (x - ((2.0 * ((y * b) * ((((a + 0.8333333333333334) * (a + 0.8333333333333334)) - ((0.6666666666666666 / t) * (0.6666666666666666 / t))) / ((0.6666666666666666 / t) + (a + 0.8333333333333334))))) - y)); elseif (t <= 1.22e-209) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 2e-65) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 4e-53) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 0.0071) tmp = x / (x + (y + (-2.0 * (y * (b * a))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -5e+104], N[(x / N[(x - N[(N[(2.0 * N[(N[(y * b), $MachinePrecision] * N[(N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] - N[(N[(0.6666666666666666 / t), $MachinePrecision] * N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.22e-209], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e-65], 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, 4e-53], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.0071], N[(x / N[(x + N[(y + N[(-2.0 * N[(y * N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{+104}:\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \left(\left(y \cdot b\right) \cdot \frac{\left(a + 0.8333333333333334\right) \cdot \left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t} \cdot \frac{0.6666666666666666}{t}}{\frac{0.6666666666666666}{t} + \left(a + 0.8333333333333334\right)}\right) - y\right)}\\
\mathbf{elif}\;t \leq 1.22 \cdot 10^{-209}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-65}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-53}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 0.0071:\\
\;\;\;\;\frac{x}{x + \left(y + -2 \cdot \left(y \cdot \left(b \cdot a\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < -4.9999999999999997e104Initial program 80.0%
Taylor expanded in b around inf 80.9%
*-commutative80.9%
associate--r+80.9%
sub-neg80.9%
associate-*r/80.9%
metadata-eval80.9%
metadata-eval80.9%
associate-+r-80.9%
Simplified80.9%
Taylor expanded in b around 0 43.2%
associate-*r/43.2%
metadata-eval43.2%
*-commutative43.2%
Simplified43.2%
flip--100.0%
+-commutative100.0%
+-commutative100.0%
+-commutative100.0%
Applied egg-rr100.0%
if -4.9999999999999997e104 < t < 1.22000000000000013e-209Initial program 89.4%
Taylor expanded in t around 0 93.1%
if 1.22000000000000013e-209 < t < 1.99999999999999985e-65Initial program 97.3%
Taylor expanded in t around 0 67.9%
Taylor expanded in a around 0 81.8%
if 1.99999999999999985e-65 < t < 4.00000000000000012e-53Initial program 100.0%
Taylor expanded in a around inf 100.0%
if 4.00000000000000012e-53 < t < 0.0071000000000000004Initial program 100.0%
Taylor expanded in a around inf 69.7%
Taylor expanded in c around 0 69.7%
Taylor expanded in b around 0 93.9%
if 0.0071000000000000004 < t Initial program 96.5%
Taylor expanded in t around inf 92.4%
mul-1-neg92.4%
distribute-rgt-neg-in92.4%
distribute-neg-in92.4%
metadata-eval92.4%
sub-neg92.4%
Simplified92.4%
Final simplification91.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -10000.0)
(/ x (* y (exp (* (- b c) -1.6666666666666667))))
(if (<= (- b c) -2e-103)
1.0
(if (<= (- b c) 2e-210)
(/
x
(+
x
(+
y
(*
2.0
(*
c
(*
y
(-
(+ a 0.8333333333333334)
(* 0.6666666666666666 (/ 1.0 t)))))))))
(if (<= (- b c) 5e+51) (/ x (+ x (* y (exp (* a (* 2.0 c)))))) 1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -10000.0) {
tmp = x / (y * exp(((b - c) * -1.6666666666666667)));
} else if ((b - c) <= -2e-103) {
tmp = 1.0;
} else if ((b - c) <= 2e-210) {
tmp = x / (x + (y + (2.0 * (c * (y * ((a + 0.8333333333333334) - (0.6666666666666666 * (1.0 / t))))))));
} else if ((b - c) <= 5e+51) {
tmp = x / (x + (y * exp((a * (2.0 * 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 - c) <= (-10000.0d0)) then
tmp = x / (y * exp(((b - c) * (-1.6666666666666667d0))))
else if ((b - c) <= (-2d-103)) then
tmp = 1.0d0
else if ((b - c) <= 2d-210) then
tmp = x / (x + (y + (2.0d0 * (c * (y * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 * (1.0d0 / t))))))))
else if ((b - c) <= 5d+51) then
tmp = x / (x + (y * exp((a * (2.0d0 * 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 - c) <= -10000.0) {
tmp = x / (y * Math.exp(((b - c) * -1.6666666666666667)));
} else if ((b - c) <= -2e-103) {
tmp = 1.0;
} else if ((b - c) <= 2e-210) {
tmp = x / (x + (y + (2.0 * (c * (y * ((a + 0.8333333333333334) - (0.6666666666666666 * (1.0 / t))))))));
} else if ((b - c) <= 5e+51) {
tmp = x / (x + (y * Math.exp((a * (2.0 * c)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -10000.0: tmp = x / (y * math.exp(((b - c) * -1.6666666666666667))) elif (b - c) <= -2e-103: tmp = 1.0 elif (b - c) <= 2e-210: tmp = x / (x + (y + (2.0 * (c * (y * ((a + 0.8333333333333334) - (0.6666666666666666 * (1.0 / t)))))))) elif (b - c) <= 5e+51: tmp = x / (x + (y * math.exp((a * (2.0 * c))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -10000.0) tmp = Float64(x / Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667)))); elseif (Float64(b - c) <= -2e-103) tmp = 1.0; elseif (Float64(b - c) <= 2e-210) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * Float64(y * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 * Float64(1.0 / t))))))))); elseif (Float64(b - c) <= 5e+51) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(a * Float64(2.0 * 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 - c) <= -10000.0) tmp = x / (y * exp(((b - c) * -1.6666666666666667))); elseif ((b - c) <= -2e-103) tmp = 1.0; elseif ((b - c) <= 2e-210) tmp = x / (x + (y + (2.0 * (c * (y * ((a + 0.8333333333333334) - (0.6666666666666666 * (1.0 / t)))))))); elseif ((b - c) <= 5e+51) tmp = x / (x + (y * exp((a * (2.0 * c))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -10000.0], N[(x / N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], -2e-103], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 2e-210], N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[(y * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 5e+51], N[(x / N[(x + N[(y * N[Exp[N[(a * N[(2.0 * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -10000:\\
\;\;\;\;\frac{x}{y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b - c \leq -2 \cdot 10^{-103}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 2 \cdot 10^{-210}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \left(y \cdot \left(\left(a + 0.8333333333333334\right) - 0.6666666666666666 \cdot \frac{1}{t}\right)\right)\right)\right)}\\
\mathbf{elif}\;b - c \leq 5 \cdot 10^{+51}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{a \cdot \left(2 \cdot c\right)}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -1e4Initial program 91.9%
Taylor expanded in t around inf 77.5%
mul-1-neg77.5%
distribute-rgt-neg-in77.5%
distribute-neg-in77.5%
metadata-eval77.5%
sub-neg77.5%
Simplified77.5%
Taylor expanded in a around 0 73.6%
Taylor expanded in x around 0 73.6%
if -1e4 < (-.f64 b c) < -1.99999999999999992e-103 or 5e51 < (-.f64 b c) Initial program 93.3%
Taylor expanded in t around inf 69.6%
mul-1-neg69.6%
distribute-rgt-neg-in69.6%
distribute-neg-in69.6%
metadata-eval69.6%
sub-neg69.6%
Simplified69.6%
Taylor expanded in x around inf 69.5%
if -1.99999999999999992e-103 < (-.f64 b c) < 2.0000000000000001e-210Initial program 100.0%
Taylor expanded in c around inf 63.4%
associate-*r/63.4%
metadata-eval63.4%
+-commutative63.4%
metadata-eval63.4%
associate-/r*63.4%
*-commutative63.4%
associate--l+63.4%
sub-neg63.4%
sub-neg63.4%
*-commutative63.4%
associate-/r*63.4%
metadata-eval63.4%
sub-neg63.4%
distribute-neg-frac63.4%
metadata-eval63.4%
Simplified63.4%
Taylor expanded in c around 0 72.6%
if 2.0000000000000001e-210 < (-.f64 b c) < 5e51Initial program 97.9%
Taylor expanded in a around inf 66.1%
Taylor expanded in b around 0 62.0%
associate-*r*62.0%
Simplified62.0%
Final simplification70.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -10000.0)
(/ x (* y (exp (* (- b c) -1.6666666666666667))))
(if (<= (- b c) -2e-103)
1.0
(if (<= (- b c) 2e+27)
(/ x (+ x (* y (exp (* -2.0 (* b a))))))
(if (<= (- b c) 5e+51) (/ x (+ x (* y (exp (* a (* 2.0 c)))))) 1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -10000.0) {
tmp = x / (y * exp(((b - c) * -1.6666666666666667)));
} else if ((b - c) <= -2e-103) {
tmp = 1.0;
} else if ((b - c) <= 2e+27) {
tmp = x / (x + (y * exp((-2.0 * (b * a)))));
} else if ((b - c) <= 5e+51) {
tmp = x / (x + (y * exp((a * (2.0 * 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 - c) <= (-10000.0d0)) then
tmp = x / (y * exp(((b - c) * (-1.6666666666666667d0))))
else if ((b - c) <= (-2d-103)) then
tmp = 1.0d0
else if ((b - c) <= 2d+27) then
tmp = x / (x + (y * exp(((-2.0d0) * (b * a)))))
else if ((b - c) <= 5d+51) then
tmp = x / (x + (y * exp((a * (2.0d0 * 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 - c) <= -10000.0) {
tmp = x / (y * Math.exp(((b - c) * -1.6666666666666667)));
} else if ((b - c) <= -2e-103) {
tmp = 1.0;
} else if ((b - c) <= 2e+27) {
tmp = x / (x + (y * Math.exp((-2.0 * (b * a)))));
} else if ((b - c) <= 5e+51) {
tmp = x / (x + (y * Math.exp((a * (2.0 * c)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -10000.0: tmp = x / (y * math.exp(((b - c) * -1.6666666666666667))) elif (b - c) <= -2e-103: tmp = 1.0 elif (b - c) <= 2e+27: tmp = x / (x + (y * math.exp((-2.0 * (b * a))))) elif (b - c) <= 5e+51: tmp = x / (x + (y * math.exp((a * (2.0 * c))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -10000.0) tmp = Float64(x / Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667)))); elseif (Float64(b - c) <= -2e-103) tmp = 1.0; elseif (Float64(b - c) <= 2e+27) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(b * a)))))); elseif (Float64(b - c) <= 5e+51) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(a * Float64(2.0 * 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 - c) <= -10000.0) tmp = x / (y * exp(((b - c) * -1.6666666666666667))); elseif ((b - c) <= -2e-103) tmp = 1.0; elseif ((b - c) <= 2e+27) tmp = x / (x + (y * exp((-2.0 * (b * a))))); elseif ((b - c) <= 5e+51) tmp = x / (x + (y * exp((a * (2.0 * c))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -10000.0], N[(x / N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], -2e-103], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 2e+27], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(b * a), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 5e+51], N[(x / N[(x + N[(y * N[Exp[N[(a * N[(2.0 * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -10000:\\
\;\;\;\;\frac{x}{y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b - c \leq -2 \cdot 10^{-103}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 2 \cdot 10^{+27}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(b \cdot a\right)}}\\
\mathbf{elif}\;b - c \leq 5 \cdot 10^{+51}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{a \cdot \left(2 \cdot c\right)}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -1e4Initial program 91.9%
Taylor expanded in t around inf 77.5%
mul-1-neg77.5%
distribute-rgt-neg-in77.5%
distribute-neg-in77.5%
metadata-eval77.5%
sub-neg77.5%
Simplified77.5%
Taylor expanded in a around 0 73.6%
Taylor expanded in x around 0 73.6%
if -1e4 < (-.f64 b c) < -1.99999999999999992e-103 or 5e51 < (-.f64 b c) Initial program 93.3%
Taylor expanded in t around inf 69.6%
mul-1-neg69.6%
distribute-rgt-neg-in69.6%
distribute-neg-in69.6%
metadata-eval69.6%
sub-neg69.6%
Simplified69.6%
Taylor expanded in x around inf 69.5%
if -1.99999999999999992e-103 < (-.f64 b c) < 2e27Initial program 98.4%
Taylor expanded in a around inf 64.5%
Taylor expanded in c around 0 62.6%
if 2e27 < (-.f64 b c) < 5e51Initial program 100.0%
Taylor expanded in a around inf 88.1%
Taylor expanded in b around 0 88.1%
associate-*r*88.1%
Simplified88.1%
Final simplification70.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -1.75e+96)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
c
(+
a
(/
(- 0.6944444444444444 (/ (/ 0.4444444444444444 t) t))
(- 0.8333333333333334 (/ -0.6666666666666666 t))))))))))
(if (<= c 7.5e-139)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1.75e+96) {
tmp = x / (x + (y * exp((2.0 * (c * (a + ((0.6944444444444444 - ((0.4444444444444444 / t) / t)) / (0.8333333333333334 - (-0.6666666666666666 / t)))))))));
} else if (c <= 7.5e-139) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) + (-0.8333333333333334 - a)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-1.75d+96)) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + ((0.6944444444444444d0 - ((0.4444444444444444d0 / t) / t)) / (0.8333333333333334d0 - ((-0.6666666666666666d0) / t)))))))))
else if (c <= 7.5d-139) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) + ((-0.8333333333333334d0) - a)))))))
else
tmp = x / (x + (y * exp((2.0d0 * (c * (a + (0.8333333333333334d0 + ((-0.6666666666666666d0) / t))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1.75e+96) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + ((0.6944444444444444 - ((0.4444444444444444 / t) / t)) / (0.8333333333333334 - (-0.6666666666666666 / t)))))))));
} else if (c <= 7.5e-139) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) + (-0.8333333333333334 - a)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -1.75e+96: tmp = x / (x + (y * math.exp((2.0 * (c * (a + ((0.6944444444444444 - ((0.4444444444444444 / t) / t)) / (0.8333333333333334 - (-0.6666666666666666 / t))))))))) elif c <= 7.5e-139: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -1.75e+96) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(Float64(0.6944444444444444 - Float64(Float64(0.4444444444444444 / t) / t)) / Float64(0.8333333333333334 - Float64(-0.6666666666666666 / t)))))))))); elseif (c <= 7.5e-139) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -1.75e+96) tmp = x / (x + (y * exp((2.0 * (c * (a + ((0.6944444444444444 - ((0.4444444444444444 / t) / t)) / (0.8333333333333334 - (-0.6666666666666666 / t))))))))); elseif (c <= 7.5e-139) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))))))); else tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -1.75e+96], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(N[(0.6944444444444444 - N[(N[(0.4444444444444444 / t), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(0.8333333333333334 - N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.5e-139], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.75 \cdot 10^{+96}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \frac{0.6944444444444444 - \frac{\frac{0.4444444444444444}{t}}{t}}{0.8333333333333334 - \frac{-0.6666666666666666}{t}}\right)\right)}}\\
\mathbf{elif}\;c \leq 7.5 \cdot 10^{-139}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right)\right)}}\\
\end{array}
\end{array}
if c < -1.7499999999999999e96Initial program 93.0%
Taylor expanded in c around inf 95.5%
associate-*r/95.5%
metadata-eval95.5%
+-commutative95.5%
metadata-eval95.5%
associate-/r*95.5%
*-commutative95.5%
associate--l+95.5%
sub-neg95.5%
sub-neg95.5%
*-commutative95.5%
associate-/r*95.5%
metadata-eval95.5%
sub-neg95.5%
distribute-neg-frac95.5%
metadata-eval95.5%
Simplified95.5%
flip-+97.7%
metadata-eval97.7%
Applied egg-rr97.7%
associate-*l/97.7%
associate-*r/97.7%
metadata-eval97.7%
Simplified97.7%
if -1.7499999999999999e96 < c < 7.5000000000000001e-139Initial program 96.2%
Taylor expanded in b around inf 76.9%
*-commutative76.9%
associate--r+76.9%
sub-neg76.9%
associate-*r/76.9%
metadata-eval76.9%
metadata-eval76.9%
associate-+r-76.9%
Simplified76.9%
if 7.5000000000000001e-139 < c Initial program 91.4%
Taylor expanded in c around inf 85.6%
associate-*r/85.6%
metadata-eval85.6%
+-commutative85.6%
metadata-eval85.6%
associate-/r*85.6%
*-commutative85.6%
associate--l+85.6%
sub-neg85.6%
sub-neg85.6%
*-commutative85.6%
associate-/r*85.6%
metadata-eval85.6%
sub-neg85.6%
distribute-neg-frac85.6%
metadata-eval85.6%
Simplified85.6%
Final simplification83.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= t -2e-240)
t_1
(if (<= t 1.42e-64)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 1.25e-53)
t_1
(if (<= t 0.0053)
(/ x (+ x (+ y (* -2.0 (* y (* b a))))))
(/
x
(+
x
(* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= -2e-240) {
tmp = t_1;
} else if (t <= 1.42e-64) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 1.25e-53) {
tmp = t_1;
} else if (t <= 0.0053) {
tmp = x / (x + (y + (-2.0 * (y * (b * a)))));
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
if (t <= (-2d-240)) then
tmp = t_1
else if (t <= 1.42d-64) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 1.25d-53) then
tmp = t_1
else if (t <= 0.0053d0) then
tmp = x / (x + (y + ((-2.0d0) * (y * (b * a)))))
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= -2e-240) {
tmp = t_1;
} else if (t <= 1.42e-64) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 1.25e-53) {
tmp = t_1;
} else if (t <= 0.0053) {
tmp = x / (x + (y + (-2.0 * (y * (b * a)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) tmp = 0 if t <= -2e-240: tmp = t_1 elif t <= 1.42e-64: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 1.25e-53: tmp = t_1 elif t <= 0.0053: tmp = x / (x + (y + (-2.0 * (y * (b * a))))) else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))) tmp = 0.0 if (t <= -2e-240) tmp = t_1; elseif (t <= 1.42e-64) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 1.25e-53) tmp = t_1; elseif (t <= 0.0053) tmp = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(y * Float64(b * a)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (a * (c - b)))))); tmp = 0.0; if (t <= -2e-240) tmp = t_1; elseif (t <= 1.42e-64) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 1.25e-53) tmp = t_1; elseif (t <= 0.0053) tmp = x / (x + (y + (-2.0 * (y * (b * a))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2e-240], t$95$1, If[LessEqual[t, 1.42e-64], 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.25e-53], t$95$1, If[LessEqual[t, 0.0053], N[(x / N[(x + N[(y + N[(-2.0 * N[(y * N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq -2 \cdot 10^{-240}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.42 \cdot 10^{-64}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-53}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 0.0053:\\
\;\;\;\;\frac{x}{x + \left(y + -2 \cdot \left(y \cdot \left(b \cdot a\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < -1.9999999999999999e-240 or 1.42000000000000006e-64 < t < 1.25e-53Initial program 90.8%
Taylor expanded in a around inf 83.7%
if -1.9999999999999999e-240 < t < 1.42000000000000006e-64Initial program 92.8%
Taylor expanded in t around 0 77.0%
Taylor expanded in a around 0 77.6%
if 1.25e-53 < t < 0.00530000000000000002Initial program 100.0%
Taylor expanded in a around inf 69.7%
Taylor expanded in c around 0 69.7%
Taylor expanded in b around 0 93.9%
if 0.00530000000000000002 < t Initial program 96.5%
Taylor expanded in t around inf 92.4%
mul-1-neg92.4%
distribute-rgt-neg-in92.4%
distribute-neg-in92.4%
metadata-eval92.4%
sub-neg92.4%
Simplified92.4%
Final simplification86.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= t -2e-240)
t_1
(if (<= t 4.5e-65)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 1.25e-53)
t_1
(if (<= t 0.0088)
(/ x (+ x (+ y (* -2.0 (* y (* b a))))))
(/ x (+ x (* y (exp (* (- b c) -1.6666666666666667)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= -2e-240) {
tmp = t_1;
} else if (t <= 4.5e-65) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 1.25e-53) {
tmp = t_1;
} else if (t <= 0.0088) {
tmp = x / (x + (y + (-2.0 * (y * (b * a)))));
} else {
tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
if (t <= (-2d-240)) then
tmp = t_1
else if (t <= 4.5d-65) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 1.25d-53) then
tmp = t_1
else if (t <= 0.0088d0) then
tmp = x / (x + (y + ((-2.0d0) * (y * (b * a)))))
else
tmp = x / (x + (y * exp(((b - c) * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= -2e-240) {
tmp = t_1;
} else if (t <= 4.5e-65) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 1.25e-53) {
tmp = t_1;
} else if (t <= 0.0088) {
tmp = x / (x + (y + (-2.0 * (y * (b * a)))));
} else {
tmp = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) tmp = 0 if t <= -2e-240: tmp = t_1 elif t <= 4.5e-65: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 1.25e-53: tmp = t_1 elif t <= 0.0088: tmp = x / (x + (y + (-2.0 * (y * (b * a))))) else: tmp = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))) tmp = 0.0 if (t <= -2e-240) tmp = t_1; elseif (t <= 4.5e-65) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 1.25e-53) tmp = t_1; elseif (t <= 0.0088) tmp = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(y * Float64(b * a)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (a * (c - b)))))); tmp = 0.0; if (t <= -2e-240) tmp = t_1; elseif (t <= 4.5e-65) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 1.25e-53) tmp = t_1; elseif (t <= 0.0088) tmp = x / (x + (y + (-2.0 * (y * (b * a))))); else tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2e-240], t$95$1, If[LessEqual[t, 4.5e-65], 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.25e-53], t$95$1, If[LessEqual[t, 0.0088], N[(x / N[(x + N[(y + N[(-2.0 * N[(y * N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq -2 \cdot 10^{-240}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-65}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-53}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 0.0088:\\
\;\;\;\;\frac{x}{x + \left(y + -2 \cdot \left(y \cdot \left(b \cdot a\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -1.9999999999999999e-240 or 4.4999999999999998e-65 < t < 1.25e-53Initial program 90.8%
Taylor expanded in a around inf 83.7%
if -1.9999999999999999e-240 < t < 4.4999999999999998e-65Initial program 92.8%
Taylor expanded in t around 0 77.0%
Taylor expanded in a around 0 77.6%
if 1.25e-53 < t < 0.00880000000000000053Initial program 100.0%
Taylor expanded in a around inf 69.7%
Taylor expanded in c around 0 69.7%
Taylor expanded in b around 0 93.9%
if 0.00880000000000000053 < t Initial program 96.5%
Taylor expanded in t around inf 92.4%
mul-1-neg92.4%
distribute-rgt-neg-in92.4%
distribute-neg-in92.4%
metadata-eval92.4%
sub-neg92.4%
Simplified92.4%
Taylor expanded in a around 0 82.9%
Final simplification82.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (- b c) -1.6666666666666667)))))))
(if (<= t -4e-310)
t_1
(if (<= t 3.1e-201)
1.0
(if (<= t 0.009)
(/
x
(+
x
(+
y
(*
2.0
(*
(* y c)
(+ (/ -0.6666666666666666 t) (+ a 0.8333333333333334)))))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp(((b - c) * -1.6666666666666667))));
double tmp;
if (t <= -4e-310) {
tmp = t_1;
} else if (t <= 3.1e-201) {
tmp = 1.0;
} else if (t <= 0.009) {
tmp = x / (x + (y + (2.0 * ((y * c) * ((-0.6666666666666666 / t) + (a + 0.8333333333333334))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp(((b - c) * (-1.6666666666666667d0)))))
if (t <= (-4d-310)) then
tmp = t_1
else if (t <= 3.1d-201) then
tmp = 1.0d0
else if (t <= 0.009d0) then
tmp = x / (x + (y + (2.0d0 * ((y * c) * (((-0.6666666666666666d0) / t) + (a + 0.8333333333333334d0))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
double tmp;
if (t <= -4e-310) {
tmp = t_1;
} else if (t <= 3.1e-201) {
tmp = 1.0;
} else if (t <= 0.009) {
tmp = x / (x + (y + (2.0 * ((y * c) * ((-0.6666666666666666 / t) + (a + 0.8333333333333334))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) tmp = 0 if t <= -4e-310: tmp = t_1 elif t <= 3.1e-201: tmp = 1.0 elif t <= 0.009: tmp = x / (x + (y + (2.0 * ((y * c) * ((-0.6666666666666666 / t) + (a + 0.8333333333333334)))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))) tmp = 0.0 if (t <= -4e-310) tmp = t_1; elseif (t <= 3.1e-201) tmp = 1.0; elseif (t <= 0.009) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(Float64(y * c) * Float64(Float64(-0.6666666666666666 / t) + Float64(a + 0.8333333333333334))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); tmp = 0.0; if (t <= -4e-310) tmp = t_1; elseif (t <= 3.1e-201) tmp = 1.0; elseif (t <= 0.009) tmp = x / (x + (y + (2.0 * ((y * c) * ((-0.6666666666666666 / t) + (a + 0.8333333333333334)))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4e-310], t$95$1, If[LessEqual[t, 3.1e-201], 1.0, If[LessEqual[t, 0.009], N[(x / N[(x + N[(y + N[(2.0 * N[(N[(y * c), $MachinePrecision] * N[(N[(-0.6666666666666666 / t), $MachinePrecision] + N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{if}\;t \leq -4 \cdot 10^{-310}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{-201}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 0.009:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(\left(y \cdot c\right) \cdot \left(\frac{-0.6666666666666666}{t} + \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -3.999999999999988e-310 or 0.00899999999999999932 < t Initial program 93.9%
Taylor expanded in t around inf 87.7%
mul-1-neg87.7%
distribute-rgt-neg-in87.7%
distribute-neg-in87.7%
metadata-eval87.7%
sub-neg87.7%
Simplified87.7%
Taylor expanded in a around 0 81.2%
if -3.999999999999988e-310 < t < 3.0999999999999999e-201Initial program 88.5%
Taylor expanded in t around inf 23.4%
mul-1-neg23.4%
distribute-rgt-neg-in23.4%
distribute-neg-in23.4%
metadata-eval23.4%
sub-neg23.4%
Simplified23.4%
Taylor expanded in x around inf 51.6%
if 3.0999999999999999e-201 < t < 0.00899999999999999932Initial program 98.0%
Taylor expanded in c around inf 68.6%
associate-*r/68.6%
metadata-eval68.6%
+-commutative68.6%
metadata-eval68.6%
associate-/r*68.6%
*-commutative68.6%
associate--l+68.6%
sub-neg68.6%
sub-neg68.6%
*-commutative68.6%
associate-/r*68.6%
metadata-eval68.6%
sub-neg68.6%
distribute-neg-frac68.6%
metadata-eval68.6%
Simplified68.6%
Taylor expanded in c around 0 54.8%
associate-*r*56.8%
cancel-sign-sub-inv56.8%
metadata-eval56.8%
associate-*r/56.8%
metadata-eval56.8%
Simplified56.8%
Final simplification73.6%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= t -1e-248) (not (<= t 5.1e-61))) (/ x (+ x (* y (exp (* (- b c) -1.6666666666666667))))) (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -1e-248) || !(t <= 5.1e-61)) {
tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667))));
} else {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((t <= (-1d-248)) .or. (.not. (t <= 5.1d-61))) then
tmp = x / (x + (y * exp(((b - c) * (-1.6666666666666667d0)))))
else
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -1e-248) || !(t <= 5.1e-61)) {
tmp = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
} else {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -1e-248) or not (t <= 5.1e-61): tmp = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) else: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -1e-248) || !(t <= 5.1e-61)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((t <= -1e-248) || ~((t <= 5.1e-61))) tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); else tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -1e-248], N[Not[LessEqual[t, 5.1e-61]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{-248} \lor \neg \left(t \leq 5.1 \cdot 10^{-61}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\end{array}
\end{array}
if t < -9.9999999999999998e-249 or 5.09999999999999968e-61 < t Initial program 94.6%
Taylor expanded in t around inf 87.0%
mul-1-neg87.0%
distribute-rgt-neg-in87.0%
distribute-neg-in87.0%
metadata-eval87.0%
sub-neg87.0%
Simplified87.0%
Taylor expanded in a around 0 80.6%
if -9.9999999999999998e-249 < t < 5.09999999999999968e-61Initial program 93.0%
Taylor expanded in t around 0 74.9%
Taylor expanded in a around 0 76.9%
Final simplification79.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -10000.0)
(/ x (* y (exp (* (- b c) -1.6666666666666667))))
(if (<= (- b c) -2e-103)
1.0
(if (<= (- b c) 5e+17)
(/
x
(+
x
(+
y
(*
2.0
(*
c
(*
y
(-
(+ a 0.8333333333333334)
(* 0.6666666666666666 (/ 1.0 t)))))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -10000.0) {
tmp = x / (y * exp(((b - c) * -1.6666666666666667)));
} else if ((b - c) <= -2e-103) {
tmp = 1.0;
} else if ((b - c) <= 5e+17) {
tmp = x / (x + (y + (2.0 * (c * (y * ((a + 0.8333333333333334) - (0.6666666666666666 * (1.0 / t))))))));
} 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 - c) <= (-10000.0d0)) then
tmp = x / (y * exp(((b - c) * (-1.6666666666666667d0))))
else if ((b - c) <= (-2d-103)) then
tmp = 1.0d0
else if ((b - c) <= 5d+17) then
tmp = x / (x + (y + (2.0d0 * (c * (y * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 * (1.0d0 / t))))))))
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 - c) <= -10000.0) {
tmp = x / (y * Math.exp(((b - c) * -1.6666666666666667)));
} else if ((b - c) <= -2e-103) {
tmp = 1.0;
} else if ((b - c) <= 5e+17) {
tmp = x / (x + (y + (2.0 * (c * (y * ((a + 0.8333333333333334) - (0.6666666666666666 * (1.0 / t))))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -10000.0: tmp = x / (y * math.exp(((b - c) * -1.6666666666666667))) elif (b - c) <= -2e-103: tmp = 1.0 elif (b - c) <= 5e+17: tmp = x / (x + (y + (2.0 * (c * (y * ((a + 0.8333333333333334) - (0.6666666666666666 * (1.0 / t)))))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -10000.0) tmp = Float64(x / Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667)))); elseif (Float64(b - c) <= -2e-103) tmp = 1.0; elseif (Float64(b - c) <= 5e+17) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * Float64(y * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 * Float64(1.0 / t))))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= -10000.0) tmp = x / (y * exp(((b - c) * -1.6666666666666667))); elseif ((b - c) <= -2e-103) tmp = 1.0; elseif ((b - c) <= 5e+17) tmp = x / (x + (y + (2.0 * (c * (y * ((a + 0.8333333333333334) - (0.6666666666666666 * (1.0 / t)))))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -10000.0], N[(x / N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], -2e-103], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 5e+17], N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[(y * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -10000:\\
\;\;\;\;\frac{x}{y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b - c \leq -2 \cdot 10^{-103}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 5 \cdot 10^{+17}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \left(y \cdot \left(\left(a + 0.8333333333333334\right) - 0.6666666666666666 \cdot \frac{1}{t}\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -1e4Initial program 91.9%
Taylor expanded in t around inf 77.5%
mul-1-neg77.5%
distribute-rgt-neg-in77.5%
distribute-neg-in77.5%
metadata-eval77.5%
sub-neg77.5%
Simplified77.5%
Taylor expanded in a around 0 73.6%
Taylor expanded in x around 0 73.6%
if -1e4 < (-.f64 b c) < -1.99999999999999992e-103 or 5e17 < (-.f64 b c) Initial program 93.9%
Taylor expanded in t around inf 70.4%
mul-1-neg70.4%
distribute-rgt-neg-in70.4%
distribute-neg-in70.4%
metadata-eval70.4%
sub-neg70.4%
Simplified70.4%
Taylor expanded in x around inf 69.4%
if -1.99999999999999992e-103 < (-.f64 b c) < 5e17Initial program 98.3%
Taylor expanded in c around inf 67.3%
associate-*r/67.3%
metadata-eval67.3%
+-commutative67.3%
metadata-eval67.3%
associate-/r*67.3%
*-commutative67.3%
associate--l+67.3%
sub-neg67.3%
sub-neg67.3%
*-commutative67.3%
associate-/r*67.3%
metadata-eval67.3%
sub-neg67.3%
distribute-neg-frac67.3%
metadata-eval67.3%
Simplified67.3%
Taylor expanded in c around 0 61.1%
Final simplification69.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -6400000000.0)
1.0
(if (<= c -5e-193)
(/
x
(+
x
(+
y
(* 2.0 (* y (* b (+ (/ 0.6666666666666666 t) -0.8333333333333334)))))))
(if (<= c -7.2e-249)
1.0
(if (<= c 5.8e-256)
(/
x
(-
x
(-
(*
2.0
(*
(* y b)
(/
(-
(* (+ a 0.8333333333333334) (+ a 0.8333333333333334))
(* (/ 0.6666666666666666 t) (/ 0.6666666666666666 t)))
(+ (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))))
y)))
(if (<= c 4e-183)
1.0
(/ x (+ x (* y (+ 1.0 (* 2.0 (* a (- c b)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -6400000000.0) {
tmp = 1.0;
} else if (c <= -5e-193) {
tmp = x / (x + (y + (2.0 * (y * (b * ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else if (c <= -7.2e-249) {
tmp = 1.0;
} else if (c <= 5.8e-256) {
tmp = x / (x - ((2.0 * ((y * b) * ((((a + 0.8333333333333334) * (a + 0.8333333333333334)) - ((0.6666666666666666 / t) * (0.6666666666666666 / t))) / ((0.6666666666666666 / t) + (a + 0.8333333333333334))))) - y));
} else if (c <= 4e-183) {
tmp = 1.0;
} else {
tmp = x / (x + (y * (1.0 + (2.0 * (a * (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 (c <= (-6400000000.0d0)) then
tmp = 1.0d0
else if (c <= (-5d-193)) then
tmp = x / (x + (y + (2.0d0 * (y * (b * ((0.6666666666666666d0 / t) + (-0.8333333333333334d0)))))))
else if (c <= (-7.2d-249)) then
tmp = 1.0d0
else if (c <= 5.8d-256) then
tmp = x / (x - ((2.0d0 * ((y * b) * ((((a + 0.8333333333333334d0) * (a + 0.8333333333333334d0)) - ((0.6666666666666666d0 / t) * (0.6666666666666666d0 / t))) / ((0.6666666666666666d0 / t) + (a + 0.8333333333333334d0))))) - y))
else if (c <= 4d-183) then
tmp = 1.0d0
else
tmp = x / (x + (y * (1.0d0 + (2.0d0 * (a * (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 (c <= -6400000000.0) {
tmp = 1.0;
} else if (c <= -5e-193) {
tmp = x / (x + (y + (2.0 * (y * (b * ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else if (c <= -7.2e-249) {
tmp = 1.0;
} else if (c <= 5.8e-256) {
tmp = x / (x - ((2.0 * ((y * b) * ((((a + 0.8333333333333334) * (a + 0.8333333333333334)) - ((0.6666666666666666 / t) * (0.6666666666666666 / t))) / ((0.6666666666666666 / t) + (a + 0.8333333333333334))))) - y));
} else if (c <= 4e-183) {
tmp = 1.0;
} else {
tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -6400000000.0: tmp = 1.0 elif c <= -5e-193: tmp = x / (x + (y + (2.0 * (y * (b * ((0.6666666666666666 / t) + -0.8333333333333334)))))) elif c <= -7.2e-249: tmp = 1.0 elif c <= 5.8e-256: tmp = x / (x - ((2.0 * ((y * b) * ((((a + 0.8333333333333334) * (a + 0.8333333333333334)) - ((0.6666666666666666 / t) * (0.6666666666666666 / t))) / ((0.6666666666666666 / t) + (a + 0.8333333333333334))))) - y)) elif c <= 4e-183: tmp = 1.0 else: tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -6400000000.0) tmp = 1.0; elseif (c <= -5e-193) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(y * Float64(b * Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334))))))); elseif (c <= -7.2e-249) tmp = 1.0; elseif (c <= 5.8e-256) tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(Float64(y * b) * Float64(Float64(Float64(Float64(a + 0.8333333333333334) * Float64(a + 0.8333333333333334)) - Float64(Float64(0.6666666666666666 / t) * Float64(0.6666666666666666 / t))) / Float64(Float64(0.6666666666666666 / t) + Float64(a + 0.8333333333333334))))) - y))); elseif (c <= 4e-183) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(2.0 * Float64(a * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -6400000000.0) tmp = 1.0; elseif (c <= -5e-193) tmp = x / (x + (y + (2.0 * (y * (b * ((0.6666666666666666 / t) + -0.8333333333333334)))))); elseif (c <= -7.2e-249) tmp = 1.0; elseif (c <= 5.8e-256) tmp = x / (x - ((2.0 * ((y * b) * ((((a + 0.8333333333333334) * (a + 0.8333333333333334)) - ((0.6666666666666666 / t) * (0.6666666666666666 / t))) / ((0.6666666666666666 / t) + (a + 0.8333333333333334))))) - y)); elseif (c <= 4e-183) tmp = 1.0; else tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -6400000000.0], 1.0, If[LessEqual[c, -5e-193], N[(x / N[(x + N[(y + N[(2.0 * N[(y * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -7.2e-249], 1.0, If[LessEqual[c, 5.8e-256], N[(x / N[(x - N[(N[(2.0 * N[(N[(y * b), $MachinePrecision] * N[(N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] - N[(N[(0.6666666666666666 / t), $MachinePrecision] * N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4e-183], 1.0, N[(x / N[(x + N[(y * N[(1.0 + N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -6400000000:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -5 \cdot 10^{-193}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(y \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{elif}\;c \leq -7.2 \cdot 10^{-249}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 5.8 \cdot 10^{-256}:\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \left(\left(y \cdot b\right) \cdot \frac{\left(a + 0.8333333333333334\right) \cdot \left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t} \cdot \frac{0.6666666666666666}{t}}{\frac{0.6666666666666666}{t} + \left(a + 0.8333333333333334\right)}\right) - y\right)}\\
\mathbf{elif}\;c \leq 4 \cdot 10^{-183}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + 2 \cdot \left(a \cdot \left(c - b\right)\right)\right)}\\
\end{array}
\end{array}
if c < -6.4e9 or -5.0000000000000005e-193 < c < -7.19999999999999989e-249 or 5.79999999999999942e-256 < c < 4.00000000000000002e-183Initial program 97.0%
Taylor expanded in t around inf 72.0%
mul-1-neg72.0%
distribute-rgt-neg-in72.0%
distribute-neg-in72.0%
metadata-eval72.0%
sub-neg72.0%
Simplified72.0%
Taylor expanded in x around inf 64.8%
if -6.4e9 < c < -5.0000000000000005e-193Initial program 95.0%
Taylor expanded in b around inf 69.3%
*-commutative69.3%
associate--r+69.3%
sub-neg69.3%
associate-*r/69.3%
metadata-eval69.3%
metadata-eval69.3%
associate-+r-69.3%
Simplified69.3%
Taylor expanded in b around 0 59.3%
associate-*r/59.3%
metadata-eval59.3%
*-commutative59.3%
Simplified59.3%
Taylor expanded in a around 0 67.2%
*-commutative67.2%
sub-neg67.2%
associate-*r/67.2%
metadata-eval67.2%
metadata-eval67.2%
Simplified67.2%
if -7.19999999999999989e-249 < c < 5.79999999999999942e-256Initial program 89.3%
Taylor expanded in b around inf 76.0%
*-commutative76.0%
associate--r+76.0%
sub-neg76.0%
associate-*r/76.0%
metadata-eval76.0%
metadata-eval76.0%
associate-+r-76.0%
Simplified76.0%
Taylor expanded in b around 0 62.5%
associate-*r/62.5%
metadata-eval62.5%
*-commutative62.5%
Simplified62.5%
flip--72.5%
+-commutative72.5%
+-commutative72.5%
+-commutative72.5%
Applied egg-rr72.5%
if 4.00000000000000002e-183 < c Initial program 92.1%
Taylor expanded in a around inf 69.6%
Taylor expanded in a around 0 57.5%
Final simplification63.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -14200000000.0)
1.0
(if (<= c -1.15e-192)
(/
x
(+
x
(+
y
(* 2.0 (* y (* b (+ (/ 0.6666666666666666 t) -0.8333333333333334)))))))
(if (<= c -4.3e-248)
1.0
(if (<= c -3e-265)
(/ x (+ x (+ y (* 2.0 (* 0.6666666666666666 (/ (* y b) t))))))
(if (<= c -1.9e-300)
1.0
(if (<= c 2.3e-308)
(* 0.75 (* (/ t y) (/ x b)))
(if (<= c 2.5e-203)
(/ x (+ (* -2.0 (* y (* b (+ a 0.8333333333333334)))) (+ x y)))
(if (<= c 2.5e-183)
1.0
(/ x (+ x (* y (+ 1.0 (* 2.0 (* a (- c b))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -14200000000.0) {
tmp = 1.0;
} else if (c <= -1.15e-192) {
tmp = x / (x + (y + (2.0 * (y * (b * ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else if (c <= -4.3e-248) {
tmp = 1.0;
} else if (c <= -3e-265) {
tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t)))));
} else if (c <= -1.9e-300) {
tmp = 1.0;
} else if (c <= 2.3e-308) {
tmp = 0.75 * ((t / y) * (x / b));
} else if (c <= 2.5e-203) {
tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y));
} else if (c <= 2.5e-183) {
tmp = 1.0;
} else {
tmp = x / (x + (y * (1.0 + (2.0 * (a * (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 (c <= (-14200000000.0d0)) then
tmp = 1.0d0
else if (c <= (-1.15d-192)) then
tmp = x / (x + (y + (2.0d0 * (y * (b * ((0.6666666666666666d0 / t) + (-0.8333333333333334d0)))))))
else if (c <= (-4.3d-248)) then
tmp = 1.0d0
else if (c <= (-3d-265)) then
tmp = x / (x + (y + (2.0d0 * (0.6666666666666666d0 * ((y * b) / t)))))
else if (c <= (-1.9d-300)) then
tmp = 1.0d0
else if (c <= 2.3d-308) then
tmp = 0.75d0 * ((t / y) * (x / b))
else if (c <= 2.5d-203) then
tmp = x / (((-2.0d0) * (y * (b * (a + 0.8333333333333334d0)))) + (x + y))
else if (c <= 2.5d-183) then
tmp = 1.0d0
else
tmp = x / (x + (y * (1.0d0 + (2.0d0 * (a * (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 (c <= -14200000000.0) {
tmp = 1.0;
} else if (c <= -1.15e-192) {
tmp = x / (x + (y + (2.0 * (y * (b * ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else if (c <= -4.3e-248) {
tmp = 1.0;
} else if (c <= -3e-265) {
tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t)))));
} else if (c <= -1.9e-300) {
tmp = 1.0;
} else if (c <= 2.3e-308) {
tmp = 0.75 * ((t / y) * (x / b));
} else if (c <= 2.5e-203) {
tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y));
} else if (c <= 2.5e-183) {
tmp = 1.0;
} else {
tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -14200000000.0: tmp = 1.0 elif c <= -1.15e-192: tmp = x / (x + (y + (2.0 * (y * (b * ((0.6666666666666666 / t) + -0.8333333333333334)))))) elif c <= -4.3e-248: tmp = 1.0 elif c <= -3e-265: tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t))))) elif c <= -1.9e-300: tmp = 1.0 elif c <= 2.3e-308: tmp = 0.75 * ((t / y) * (x / b)) elif c <= 2.5e-203: tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y)) elif c <= 2.5e-183: tmp = 1.0 else: tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -14200000000.0) tmp = 1.0; elseif (c <= -1.15e-192) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(y * Float64(b * Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334))))))); elseif (c <= -4.3e-248) tmp = 1.0; elseif (c <= -3e-265) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(0.6666666666666666 * Float64(Float64(y * b) / t)))))); elseif (c <= -1.9e-300) tmp = 1.0; elseif (c <= 2.3e-308) tmp = Float64(0.75 * Float64(Float64(t / y) * Float64(x / b))); elseif (c <= 2.5e-203) tmp = Float64(x / Float64(Float64(-2.0 * Float64(y * Float64(b * Float64(a + 0.8333333333333334)))) + Float64(x + y))); elseif (c <= 2.5e-183) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(2.0 * Float64(a * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -14200000000.0) tmp = 1.0; elseif (c <= -1.15e-192) tmp = x / (x + (y + (2.0 * (y * (b * ((0.6666666666666666 / t) + -0.8333333333333334)))))); elseif (c <= -4.3e-248) tmp = 1.0; elseif (c <= -3e-265) tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t))))); elseif (c <= -1.9e-300) tmp = 1.0; elseif (c <= 2.3e-308) tmp = 0.75 * ((t / y) * (x / b)); elseif (c <= 2.5e-203) tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y)); elseif (c <= 2.5e-183) tmp = 1.0; else tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -14200000000.0], 1.0, If[LessEqual[c, -1.15e-192], N[(x / N[(x + N[(y + N[(2.0 * N[(y * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -4.3e-248], 1.0, If[LessEqual[c, -3e-265], N[(x / N[(x + N[(y + N[(2.0 * N[(0.6666666666666666 * N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.9e-300], 1.0, If[LessEqual[c, 2.3e-308], N[(0.75 * N[(N[(t / y), $MachinePrecision] * N[(x / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.5e-203], N[(x / N[(N[(-2.0 * N[(y * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.5e-183], 1.0, N[(x / N[(x + N[(y * N[(1.0 + N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -14200000000:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.15 \cdot 10^{-192}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(y \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{elif}\;c \leq -4.3 \cdot 10^{-248}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -3 \cdot 10^{-265}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(0.6666666666666666 \cdot \frac{y \cdot b}{t}\right)\right)}\\
\mathbf{elif}\;c \leq -1.9 \cdot 10^{-300}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 2.3 \cdot 10^{-308}:\\
\;\;\;\;0.75 \cdot \left(\frac{t}{y} \cdot \frac{x}{b}\right)\\
\mathbf{elif}\;c \leq 2.5 \cdot 10^{-203}:\\
\;\;\;\;\frac{x}{-2 \cdot \left(y \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right)\right) + \left(x + y\right)}\\
\mathbf{elif}\;c \leq 2.5 \cdot 10^{-183}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + 2 \cdot \left(a \cdot \left(c - b\right)\right)\right)}\\
\end{array}
\end{array}
if c < -1.42e10 or -1.15000000000000009e-192 < c < -4.3000000000000004e-248 or -2.9999999999999998e-265 < c < -1.90000000000000006e-300 or 2.5000000000000001e-203 < c < 2.5000000000000001e-183Initial program 94.9%
Taylor expanded in t around inf 69.1%
mul-1-neg69.1%
distribute-rgt-neg-in69.1%
distribute-neg-in69.1%
metadata-eval69.1%
sub-neg69.1%
Simplified69.1%
Taylor expanded in x around inf 68.7%
if -1.42e10 < c < -1.15000000000000009e-192Initial program 95.0%
Taylor expanded in b around inf 69.3%
*-commutative69.3%
associate--r+69.3%
sub-neg69.3%
associate-*r/69.3%
metadata-eval69.3%
metadata-eval69.3%
associate-+r-69.3%
Simplified69.3%
Taylor expanded in b around 0 59.3%
associate-*r/59.3%
metadata-eval59.3%
*-commutative59.3%
Simplified59.3%
Taylor expanded in a around 0 67.2%
*-commutative67.2%
sub-neg67.2%
associate-*r/67.2%
metadata-eval67.2%
metadata-eval67.2%
Simplified67.2%
if -4.3000000000000004e-248 < c < -2.9999999999999998e-265Initial program 87.5%
Taylor expanded in b around inf 75.8%
*-commutative75.8%
associate--r+75.8%
sub-neg75.8%
associate-*r/75.8%
metadata-eval75.8%
metadata-eval75.8%
associate-+r-75.8%
Simplified75.8%
Taylor expanded in b around 0 87.9%
associate-*r/87.9%
metadata-eval87.9%
*-commutative87.9%
Simplified87.9%
Taylor expanded in t around 0 87.9%
if -1.90000000000000006e-300 < c < 2.2999999999999999e-308Initial program 100.0%
Taylor expanded in b around inf 67.7%
*-commutative67.7%
associate--r+67.7%
sub-neg67.7%
associate-*r/67.7%
metadata-eval67.7%
metadata-eval67.7%
associate-+r-67.7%
Simplified67.7%
Taylor expanded in b around 0 37.5%
associate-*r/37.5%
metadata-eval37.5%
*-commutative37.5%
Simplified37.5%
Taylor expanded in t around 0 67.2%
times-frac67.3%
Simplified67.3%
if 2.2999999999999999e-308 < c < 2.5000000000000001e-203Initial program 100.0%
Taylor expanded in b around inf 94.3%
*-commutative94.3%
associate--r+94.3%
sub-neg94.3%
associate-*r/94.3%
metadata-eval94.3%
metadata-eval94.3%
associate-+r-94.3%
Simplified94.3%
Taylor expanded in b around 0 54.7%
associate-*r/54.7%
metadata-eval54.7%
*-commutative54.7%
Simplified54.7%
Taylor expanded in t around inf 60.2%
if 2.5000000000000001e-183 < c Initial program 92.1%
Taylor expanded in a around inf 69.6%
Taylor expanded in a around 0 57.5%
Final simplification64.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (- (+ a 0.8333333333333334) (* 0.6666666666666666 (/ 1.0 t)))))
(if (<= b -1.05e+182)
(/ x (+ x (* y (- 1.0 (* 2.0 (* b t_1))))))
(if (<= b -3.8e+130)
1.0
(if (<= b -2.6e+31)
(/ x (+ (* -2.0 (* y (* b (+ a 0.8333333333333334)))) (+ x y)))
(if (<= b 3.8e-237)
(/ x (+ x (+ y (* 2.0 (* c (* y t_1))))))
(if (<= b 1.25e-111)
1.0
(if (<= b 9.8e+182)
(/ x (+ x (+ y (* 2.0 (* 0.6666666666666666 (/ (* y b) t))))))
1.0))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (a + 0.8333333333333334) - (0.6666666666666666 * (1.0 / t));
double tmp;
if (b <= -1.05e+182) {
tmp = x / (x + (y * (1.0 - (2.0 * (b * t_1)))));
} else if (b <= -3.8e+130) {
tmp = 1.0;
} else if (b <= -2.6e+31) {
tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y));
} else if (b <= 3.8e-237) {
tmp = x / (x + (y + (2.0 * (c * (y * t_1)))));
} else if (b <= 1.25e-111) {
tmp = 1.0;
} else if (b <= 9.8e+182) {
tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t)))));
} 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) :: t_1
real(8) :: tmp
t_1 = (a + 0.8333333333333334d0) - (0.6666666666666666d0 * (1.0d0 / t))
if (b <= (-1.05d+182)) then
tmp = x / (x + (y * (1.0d0 - (2.0d0 * (b * t_1)))))
else if (b <= (-3.8d+130)) then
tmp = 1.0d0
else if (b <= (-2.6d+31)) then
tmp = x / (((-2.0d0) * (y * (b * (a + 0.8333333333333334d0)))) + (x + y))
else if (b <= 3.8d-237) then
tmp = x / (x + (y + (2.0d0 * (c * (y * t_1)))))
else if (b <= 1.25d-111) then
tmp = 1.0d0
else if (b <= 9.8d+182) then
tmp = x / (x + (y + (2.0d0 * (0.6666666666666666d0 * ((y * b) / t)))))
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 t_1 = (a + 0.8333333333333334) - (0.6666666666666666 * (1.0 / t));
double tmp;
if (b <= -1.05e+182) {
tmp = x / (x + (y * (1.0 - (2.0 * (b * t_1)))));
} else if (b <= -3.8e+130) {
tmp = 1.0;
} else if (b <= -2.6e+31) {
tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y));
} else if (b <= 3.8e-237) {
tmp = x / (x + (y + (2.0 * (c * (y * t_1)))));
} else if (b <= 1.25e-111) {
tmp = 1.0;
} else if (b <= 9.8e+182) {
tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (a + 0.8333333333333334) - (0.6666666666666666 * (1.0 / t)) tmp = 0 if b <= -1.05e+182: tmp = x / (x + (y * (1.0 - (2.0 * (b * t_1))))) elif b <= -3.8e+130: tmp = 1.0 elif b <= -2.6e+31: tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y)) elif b <= 3.8e-237: tmp = x / (x + (y + (2.0 * (c * (y * t_1))))) elif b <= 1.25e-111: tmp = 1.0 elif b <= 9.8e+182: tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 * Float64(1.0 / t))) tmp = 0.0 if (b <= -1.05e+182) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(2.0 * Float64(b * t_1)))))); elseif (b <= -3.8e+130) tmp = 1.0; elseif (b <= -2.6e+31) tmp = Float64(x / Float64(Float64(-2.0 * Float64(y * Float64(b * Float64(a + 0.8333333333333334)))) + Float64(x + y))); elseif (b <= 3.8e-237) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * Float64(y * t_1)))))); elseif (b <= 1.25e-111) tmp = 1.0; elseif (b <= 9.8e+182) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(0.6666666666666666 * Float64(Float64(y * b) / t)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (a + 0.8333333333333334) - (0.6666666666666666 * (1.0 / t)); tmp = 0.0; if (b <= -1.05e+182) tmp = x / (x + (y * (1.0 - (2.0 * (b * t_1))))); elseif (b <= -3.8e+130) tmp = 1.0; elseif (b <= -2.6e+31) tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y)); elseif (b <= 3.8e-237) tmp = x / (x + (y + (2.0 * (c * (y * t_1))))); elseif (b <= 1.25e-111) tmp = 1.0; elseif (b <= 9.8e+182) tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.05e+182], N[(x / N[(x + N[(y * N[(1.0 - N[(2.0 * N[(b * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.8e+130], 1.0, If[LessEqual[b, -2.6e+31], N[(x / N[(N[(-2.0 * N[(y * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.8e-237], N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[(y * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e-111], 1.0, If[LessEqual[b, 9.8e+182], N[(x / N[(x + N[(y + N[(2.0 * N[(0.6666666666666666 * N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a + 0.8333333333333334\right) - 0.6666666666666666 \cdot \frac{1}{t}\\
\mathbf{if}\;b \leq -1.05 \cdot 10^{+182}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - 2 \cdot \left(b \cdot t_1\right)\right)}\\
\mathbf{elif}\;b \leq -3.8 \cdot 10^{+130}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -2.6 \cdot 10^{+31}:\\
\;\;\;\;\frac{x}{-2 \cdot \left(y \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right)\right) + \left(x + y\right)}\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{-237}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \left(y \cdot t_1\right)\right)\right)}\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{-111}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 9.8 \cdot 10^{+182}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(0.6666666666666666 \cdot \frac{y \cdot b}{t}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.0499999999999999e182Initial program 82.4%
Taylor expanded in b around inf 94.3%
*-commutative94.3%
associate--r+94.3%
sub-neg94.3%
associate-*r/94.3%
metadata-eval94.3%
metadata-eval94.3%
associate-+r-94.3%
Simplified94.3%
Taylor expanded in b around 0 68.7%
if -1.0499999999999999e182 < b < -3.8000000000000002e130 or 3.80000000000000024e-237 < b < 1.2500000000000001e-111 or 9.7999999999999999e182 < b Initial program 91.4%
Taylor expanded in t around inf 71.7%
mul-1-neg71.7%
distribute-rgt-neg-in71.7%
distribute-neg-in71.7%
metadata-eval71.7%
sub-neg71.7%
Simplified71.7%
Taylor expanded in x around inf 71.7%
if -3.8000000000000002e130 < b < -2.6e31Initial program 95.0%
Taylor expanded in b around inf 75.8%
*-commutative75.8%
associate--r+75.8%
sub-neg75.8%
associate-*r/75.8%
metadata-eval75.8%
metadata-eval75.8%
associate-+r-75.8%
Simplified75.8%
Taylor expanded in b around 0 41.0%
associate-*r/41.0%
metadata-eval41.0%
*-commutative41.0%
Simplified41.0%
Taylor expanded in t around inf 50.6%
if -2.6e31 < b < 3.80000000000000024e-237Initial program 100.0%
Taylor expanded in c around inf 73.7%
associate-*r/73.7%
metadata-eval73.7%
+-commutative73.7%
metadata-eval73.7%
associate-/r*73.7%
*-commutative73.7%
associate--l+73.7%
sub-neg73.7%
sub-neg73.7%
*-commutative73.7%
associate-/r*73.7%
metadata-eval73.7%
sub-neg73.7%
distribute-neg-frac73.7%
metadata-eval73.7%
Simplified73.7%
Taylor expanded in c around 0 56.5%
if 1.2500000000000001e-111 < b < 9.7999999999999999e182Initial program 95.1%
Taylor expanded in b around inf 67.8%
*-commutative67.8%
associate--r+67.8%
sub-neg67.8%
associate-*r/67.8%
metadata-eval67.8%
metadata-eval67.8%
associate-+r-67.8%
Simplified67.8%
Taylor expanded in b around 0 53.2%
associate-*r/53.2%
metadata-eval53.2%
*-commutative53.2%
Simplified53.2%
Taylor expanded in t around 0 61.5%
Final simplification62.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ (+ x y) (* (* y b) -1.6666666666666667)))))
(if (<= c -3.2e+14)
1.0
(if (<= c -1.05e-192)
t_1
(if (<= c -5.6e-247)
1.0
(if (<= c -7e-263)
t_1
(if (<= c 2.1e-203)
(/ x (+ x (+ y (* -2.0 (* y (* b a))))))
(if (<= c 4.4e-183)
1.0
(/ x (+ x (* y (+ 1.0 (* 2.0 (* a (- c b)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / ((x + y) + ((y * b) * -1.6666666666666667));
double tmp;
if (c <= -3.2e+14) {
tmp = 1.0;
} else if (c <= -1.05e-192) {
tmp = t_1;
} else if (c <= -5.6e-247) {
tmp = 1.0;
} else if (c <= -7e-263) {
tmp = t_1;
} else if (c <= 2.1e-203) {
tmp = x / (x + (y + (-2.0 * (y * (b * a)))));
} else if (c <= 4.4e-183) {
tmp = 1.0;
} else {
tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / ((x + y) + ((y * b) * (-1.6666666666666667d0)))
if (c <= (-3.2d+14)) then
tmp = 1.0d0
else if (c <= (-1.05d-192)) then
tmp = t_1
else if (c <= (-5.6d-247)) then
tmp = 1.0d0
else if (c <= (-7d-263)) then
tmp = t_1
else if (c <= 2.1d-203) then
tmp = x / (x + (y + ((-2.0d0) * (y * (b * a)))))
else if (c <= 4.4d-183) then
tmp = 1.0d0
else
tmp = x / (x + (y * (1.0d0 + (2.0d0 * (a * (c - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / ((x + y) + ((y * b) * -1.6666666666666667));
double tmp;
if (c <= -3.2e+14) {
tmp = 1.0;
} else if (c <= -1.05e-192) {
tmp = t_1;
} else if (c <= -5.6e-247) {
tmp = 1.0;
} else if (c <= -7e-263) {
tmp = t_1;
} else if (c <= 2.1e-203) {
tmp = x / (x + (y + (-2.0 * (y * (b * a)))));
} else if (c <= 4.4e-183) {
tmp = 1.0;
} else {
tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / ((x + y) + ((y * b) * -1.6666666666666667)) tmp = 0 if c <= -3.2e+14: tmp = 1.0 elif c <= -1.05e-192: tmp = t_1 elif c <= -5.6e-247: tmp = 1.0 elif c <= -7e-263: tmp = t_1 elif c <= 2.1e-203: tmp = x / (x + (y + (-2.0 * (y * (b * a))))) elif c <= 4.4e-183: tmp = 1.0 else: tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(Float64(x + y) + Float64(Float64(y * b) * -1.6666666666666667))) tmp = 0.0 if (c <= -3.2e+14) tmp = 1.0; elseif (c <= -1.05e-192) tmp = t_1; elseif (c <= -5.6e-247) tmp = 1.0; elseif (c <= -7e-263) tmp = t_1; elseif (c <= 2.1e-203) tmp = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(y * Float64(b * a)))))); elseif (c <= 4.4e-183) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(2.0 * Float64(a * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / ((x + y) + ((y * b) * -1.6666666666666667)); tmp = 0.0; if (c <= -3.2e+14) tmp = 1.0; elseif (c <= -1.05e-192) tmp = t_1; elseif (c <= -5.6e-247) tmp = 1.0; elseif (c <= -7e-263) tmp = t_1; elseif (c <= 2.1e-203) tmp = x / (x + (y + (-2.0 * (y * (b * a))))); elseif (c <= 4.4e-183) tmp = 1.0; else tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(N[(x + y), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.2e+14], 1.0, If[LessEqual[c, -1.05e-192], t$95$1, If[LessEqual[c, -5.6e-247], 1.0, If[LessEqual[c, -7e-263], t$95$1, If[LessEqual[c, 2.1e-203], N[(x / N[(x + N[(y + N[(-2.0 * N[(y * N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.4e-183], 1.0, N[(x / N[(x + N[(y * N[(1.0 + N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\left(x + y\right) + \left(y \cdot b\right) \cdot -1.6666666666666667}\\
\mathbf{if}\;c \leq -3.2 \cdot 10^{+14}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.05 \cdot 10^{-192}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -5.6 \cdot 10^{-247}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -7 \cdot 10^{-263}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2.1 \cdot 10^{-203}:\\
\;\;\;\;\frac{x}{x + \left(y + -2 \cdot \left(y \cdot \left(b \cdot a\right)\right)\right)}\\
\mathbf{elif}\;c \leq 4.4 \cdot 10^{-183}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + 2 \cdot \left(a \cdot \left(c - b\right)\right)\right)}\\
\end{array}
\end{array}
if c < -3.2e14 or -1.04999999999999997e-192 < c < -5.59999999999999973e-247 or 2.10000000000000002e-203 < c < 4.3999999999999999e-183Initial program 96.5%
Taylor expanded in t around inf 70.0%
mul-1-neg70.0%
distribute-rgt-neg-in70.0%
distribute-neg-in70.0%
metadata-eval70.0%
sub-neg70.0%
Simplified70.0%
Taylor expanded in x around inf 67.4%
if -3.2e14 < c < -1.04999999999999997e-192 or -5.59999999999999973e-247 < c < -6.99999999999999938e-263Initial program 96.0%
Taylor expanded in b around inf 71.0%
*-commutative71.0%
associate--r+71.0%
sub-neg71.0%
associate-*r/71.0%
metadata-eval71.0%
metadata-eval71.0%
associate-+r-71.0%
Simplified71.0%
Taylor expanded in b around 0 62.8%
associate-*r/62.8%
metadata-eval62.8%
*-commutative62.8%
Simplified62.8%
Taylor expanded in t around inf 62.8%
distribute-lft-in62.8%
metadata-eval62.8%
mul-1-neg62.8%
sub-neg62.8%
Simplified62.8%
Taylor expanded in a around 0 67.1%
if -6.99999999999999938e-263 < c < 2.10000000000000002e-203Initial program 90.6%
Taylor expanded in a around inf 67.0%
Taylor expanded in c around 0 67.0%
Taylor expanded in b around 0 52.0%
if 4.3999999999999999e-183 < c Initial program 92.1%
Taylor expanded in a around inf 69.6%
Taylor expanded in a around 0 57.5%
Final simplification62.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (+ y (* 2.0 (* 0.6666666666666666 (/ (* y b) t))))))))
(if (<= c -4600000000.0)
1.0
(if (<= c -1.4e-192)
t_1
(if (<= c -6.2e-248)
1.0
(if (<= c -2.8e-265)
t_1
(if (<= c 1.05e-194)
1.0
(if (<= c 8.2e-184)
t_1
(/ x (+ x (* y (+ 1.0 (* 2.0 (* a (- c b)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t)))));
double tmp;
if (c <= -4600000000.0) {
tmp = 1.0;
} else if (c <= -1.4e-192) {
tmp = t_1;
} else if (c <= -6.2e-248) {
tmp = 1.0;
} else if (c <= -2.8e-265) {
tmp = t_1;
} else if (c <= 1.05e-194) {
tmp = 1.0;
} else if (c <= 8.2e-184) {
tmp = t_1;
} else {
tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y + (2.0d0 * (0.6666666666666666d0 * ((y * b) / t)))))
if (c <= (-4600000000.0d0)) then
tmp = 1.0d0
else if (c <= (-1.4d-192)) then
tmp = t_1
else if (c <= (-6.2d-248)) then
tmp = 1.0d0
else if (c <= (-2.8d-265)) then
tmp = t_1
else if (c <= 1.05d-194) then
tmp = 1.0d0
else if (c <= 8.2d-184) then
tmp = t_1
else
tmp = x / (x + (y * (1.0d0 + (2.0d0 * (a * (c - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t)))));
double tmp;
if (c <= -4600000000.0) {
tmp = 1.0;
} else if (c <= -1.4e-192) {
tmp = t_1;
} else if (c <= -6.2e-248) {
tmp = 1.0;
} else if (c <= -2.8e-265) {
tmp = t_1;
} else if (c <= 1.05e-194) {
tmp = 1.0;
} else if (c <= 8.2e-184) {
tmp = t_1;
} else {
tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t))))) tmp = 0 if c <= -4600000000.0: tmp = 1.0 elif c <= -1.4e-192: tmp = t_1 elif c <= -6.2e-248: tmp = 1.0 elif c <= -2.8e-265: tmp = t_1 elif c <= 1.05e-194: tmp = 1.0 elif c <= 8.2e-184: tmp = t_1 else: tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(0.6666666666666666 * Float64(Float64(y * b) / t)))))) tmp = 0.0 if (c <= -4600000000.0) tmp = 1.0; elseif (c <= -1.4e-192) tmp = t_1; elseif (c <= -6.2e-248) tmp = 1.0; elseif (c <= -2.8e-265) tmp = t_1; elseif (c <= 1.05e-194) tmp = 1.0; elseif (c <= 8.2e-184) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(2.0 * Float64(a * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t))))); tmp = 0.0; if (c <= -4600000000.0) tmp = 1.0; elseif (c <= -1.4e-192) tmp = t_1; elseif (c <= -6.2e-248) tmp = 1.0; elseif (c <= -2.8e-265) tmp = t_1; elseif (c <= 1.05e-194) tmp = 1.0; elseif (c <= 8.2e-184) tmp = t_1; else tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y + N[(2.0 * N[(0.6666666666666666 * N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4600000000.0], 1.0, If[LessEqual[c, -1.4e-192], t$95$1, If[LessEqual[c, -6.2e-248], 1.0, If[LessEqual[c, -2.8e-265], t$95$1, If[LessEqual[c, 1.05e-194], 1.0, If[LessEqual[c, 8.2e-184], t$95$1, N[(x / N[(x + N[(y * N[(1.0 + N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + \left(y + 2 \cdot \left(0.6666666666666666 \cdot \frac{y \cdot b}{t}\right)\right)}\\
\mathbf{if}\;c \leq -4600000000:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.4 \cdot 10^{-192}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -6.2 \cdot 10^{-248}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -2.8 \cdot 10^{-265}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.05 \cdot 10^{-194}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 8.2 \cdot 10^{-184}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + 2 \cdot \left(a \cdot \left(c - b\right)\right)\right)}\\
\end{array}
\end{array}
if c < -4.6e9 or -1.40000000000000002e-192 < c < -6.2000000000000003e-248 or -2.80000000000000023e-265 < c < 1.05e-194Initial program 95.5%
Taylor expanded in t around inf 71.0%
mul-1-neg71.0%
distribute-rgt-neg-in71.0%
distribute-neg-in71.0%
metadata-eval71.0%
sub-neg71.0%
Simplified71.0%
Taylor expanded in x around inf 63.7%
if -4.6e9 < c < -1.40000000000000002e-192 or -6.2000000000000003e-248 < c < -2.80000000000000023e-265 or 1.05e-194 < c < 8.2e-184Initial program 94.5%
Taylor expanded in b around inf 73.7%
*-commutative73.7%
associate--r+73.7%
sub-neg73.7%
associate-*r/73.7%
metadata-eval73.7%
metadata-eval73.7%
associate-+r-73.7%
Simplified73.7%
Taylor expanded in b around 0 63.3%
associate-*r/63.3%
metadata-eval63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in t around 0 70.3%
if 8.2e-184 < c Initial program 92.2%
Taylor expanded in a around inf 68.9%
Taylor expanded in a around 0 56.9%
Final simplification62.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (+ y (* 2.0 (* 0.6666666666666666 (/ (* y b) t))))))))
(if (<= c -22000000000.0)
1.0
(if (<= c -1.26e-192)
t_1
(if (<= c -1.8e-247)
1.0
(if (<= c -2.8e-265)
t_1
(if (<= c 2.7e-183)
1.0
(if (<= c 5.5e-105)
(/ x (+ x (+ y (* 2.0 (* a (* y (- c b)))))))
(/ x (+ x (* y (+ 1.0 (* 2.0 (* a (- c b)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t)))));
double tmp;
if (c <= -22000000000.0) {
tmp = 1.0;
} else if (c <= -1.26e-192) {
tmp = t_1;
} else if (c <= -1.8e-247) {
tmp = 1.0;
} else if (c <= -2.8e-265) {
tmp = t_1;
} else if (c <= 2.7e-183) {
tmp = 1.0;
} else if (c <= 5.5e-105) {
tmp = x / (x + (y + (2.0 * (a * (y * (c - b))))));
} else {
tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y + (2.0d0 * (0.6666666666666666d0 * ((y * b) / t)))))
if (c <= (-22000000000.0d0)) then
tmp = 1.0d0
else if (c <= (-1.26d-192)) then
tmp = t_1
else if (c <= (-1.8d-247)) then
tmp = 1.0d0
else if (c <= (-2.8d-265)) then
tmp = t_1
else if (c <= 2.7d-183) then
tmp = 1.0d0
else if (c <= 5.5d-105) then
tmp = x / (x + (y + (2.0d0 * (a * (y * (c - b))))))
else
tmp = x / (x + (y * (1.0d0 + (2.0d0 * (a * (c - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t)))));
double tmp;
if (c <= -22000000000.0) {
tmp = 1.0;
} else if (c <= -1.26e-192) {
tmp = t_1;
} else if (c <= -1.8e-247) {
tmp = 1.0;
} else if (c <= -2.8e-265) {
tmp = t_1;
} else if (c <= 2.7e-183) {
tmp = 1.0;
} else if (c <= 5.5e-105) {
tmp = x / (x + (y + (2.0 * (a * (y * (c - b))))));
} else {
tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t))))) tmp = 0 if c <= -22000000000.0: tmp = 1.0 elif c <= -1.26e-192: tmp = t_1 elif c <= -1.8e-247: tmp = 1.0 elif c <= -2.8e-265: tmp = t_1 elif c <= 2.7e-183: tmp = 1.0 elif c <= 5.5e-105: tmp = x / (x + (y + (2.0 * (a * (y * (c - b)))))) else: tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(0.6666666666666666 * Float64(Float64(y * b) / t)))))) tmp = 0.0 if (c <= -22000000000.0) tmp = 1.0; elseif (c <= -1.26e-192) tmp = t_1; elseif (c <= -1.8e-247) tmp = 1.0; elseif (c <= -2.8e-265) tmp = t_1; elseif (c <= 2.7e-183) tmp = 1.0; elseif (c <= 5.5e-105) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(a * Float64(y * Float64(c - b))))))); else tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(2.0 * Float64(a * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t))))); tmp = 0.0; if (c <= -22000000000.0) tmp = 1.0; elseif (c <= -1.26e-192) tmp = t_1; elseif (c <= -1.8e-247) tmp = 1.0; elseif (c <= -2.8e-265) tmp = t_1; elseif (c <= 2.7e-183) tmp = 1.0; elseif (c <= 5.5e-105) tmp = x / (x + (y + (2.0 * (a * (y * (c - b)))))); else tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y + N[(2.0 * N[(0.6666666666666666 * N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -22000000000.0], 1.0, If[LessEqual[c, -1.26e-192], t$95$1, If[LessEqual[c, -1.8e-247], 1.0, If[LessEqual[c, -2.8e-265], t$95$1, If[LessEqual[c, 2.7e-183], 1.0, If[LessEqual[c, 5.5e-105], N[(x / N[(x + N[(y + N[(2.0 * N[(a * N[(y * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[(1.0 + N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + \left(y + 2 \cdot \left(0.6666666666666666 \cdot \frac{y \cdot b}{t}\right)\right)}\\
\mathbf{if}\;c \leq -22000000000:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.26 \cdot 10^{-192}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -1.8 \cdot 10^{-247}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -2.8 \cdot 10^{-265}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2.7 \cdot 10^{-183}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 5.5 \cdot 10^{-105}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(a \cdot \left(y \cdot \left(c - b\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + 2 \cdot \left(a \cdot \left(c - b\right)\right)\right)}\\
\end{array}
\end{array}
if c < -2.2e10 or -1.26e-192 < c < -1.7999999999999998e-247 or -2.80000000000000023e-265 < c < 2.70000000000000008e-183Initial program 95.8%
Taylor expanded in t around inf 71.1%
mul-1-neg71.1%
distribute-rgt-neg-in71.1%
distribute-neg-in71.1%
metadata-eval71.1%
sub-neg71.1%
Simplified71.1%
Taylor expanded in x around inf 63.4%
if -2.2e10 < c < -1.26e-192 or -1.7999999999999998e-247 < c < -2.80000000000000023e-265Initial program 93.8%
Taylor expanded in b around inf 70.4%
*-commutative70.4%
associate--r+70.4%
sub-neg70.4%
associate-*r/70.4%
metadata-eval70.4%
metadata-eval70.4%
associate-+r-70.4%
Simplified70.4%
Taylor expanded in b around 0 64.1%
associate-*r/64.1%
metadata-eval64.1%
*-commutative64.1%
Simplified64.1%
Taylor expanded in t around 0 68.7%
if 2.70000000000000008e-183 < c < 5.50000000000000029e-105Initial program 100.0%
Taylor expanded in a around inf 70.5%
Taylor expanded in a around 0 56.3%
if 5.50000000000000029e-105 < c Initial program 90.8%
Taylor expanded in a around inf 69.4%
Taylor expanded in a around 0 59.0%
Final simplification62.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (+ y (* 2.0 (* 0.6666666666666666 (/ (* y b) t))))))))
(if (<= c -9000000000.0)
1.0
(if (<= c -1.26e-192)
t_1
(if (<= c -4.5e-247)
1.0
(if (<= c -2.4e-265)
t_1
(if (<= c 4.4e-183)
1.0
(if (<= c 1.35e-100)
(/ x (+ x (- y (* 2.0 (* (* y b) (- a -0.8333333333333334))))))
(/ x (+ x (* y (+ 1.0 (* 2.0 (* a (- c b)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t)))));
double tmp;
if (c <= -9000000000.0) {
tmp = 1.0;
} else if (c <= -1.26e-192) {
tmp = t_1;
} else if (c <= -4.5e-247) {
tmp = 1.0;
} else if (c <= -2.4e-265) {
tmp = t_1;
} else if (c <= 4.4e-183) {
tmp = 1.0;
} else if (c <= 1.35e-100) {
tmp = x / (x + (y - (2.0 * ((y * b) * (a - -0.8333333333333334)))));
} else {
tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y + (2.0d0 * (0.6666666666666666d0 * ((y * b) / t)))))
if (c <= (-9000000000.0d0)) then
tmp = 1.0d0
else if (c <= (-1.26d-192)) then
tmp = t_1
else if (c <= (-4.5d-247)) then
tmp = 1.0d0
else if (c <= (-2.4d-265)) then
tmp = t_1
else if (c <= 4.4d-183) then
tmp = 1.0d0
else if (c <= 1.35d-100) then
tmp = x / (x + (y - (2.0d0 * ((y * b) * (a - (-0.8333333333333334d0))))))
else
tmp = x / (x + (y * (1.0d0 + (2.0d0 * (a * (c - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t)))));
double tmp;
if (c <= -9000000000.0) {
tmp = 1.0;
} else if (c <= -1.26e-192) {
tmp = t_1;
} else if (c <= -4.5e-247) {
tmp = 1.0;
} else if (c <= -2.4e-265) {
tmp = t_1;
} else if (c <= 4.4e-183) {
tmp = 1.0;
} else if (c <= 1.35e-100) {
tmp = x / (x + (y - (2.0 * ((y * b) * (a - -0.8333333333333334)))));
} else {
tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t))))) tmp = 0 if c <= -9000000000.0: tmp = 1.0 elif c <= -1.26e-192: tmp = t_1 elif c <= -4.5e-247: tmp = 1.0 elif c <= -2.4e-265: tmp = t_1 elif c <= 4.4e-183: tmp = 1.0 elif c <= 1.35e-100: tmp = x / (x + (y - (2.0 * ((y * b) * (a - -0.8333333333333334))))) else: tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(0.6666666666666666 * Float64(Float64(y * b) / t)))))) tmp = 0.0 if (c <= -9000000000.0) tmp = 1.0; elseif (c <= -1.26e-192) tmp = t_1; elseif (c <= -4.5e-247) tmp = 1.0; elseif (c <= -2.4e-265) tmp = t_1; elseif (c <= 4.4e-183) tmp = 1.0; elseif (c <= 1.35e-100) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(Float64(y * b) * Float64(a - -0.8333333333333334)))))); else tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(2.0 * Float64(a * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t))))); tmp = 0.0; if (c <= -9000000000.0) tmp = 1.0; elseif (c <= -1.26e-192) tmp = t_1; elseif (c <= -4.5e-247) tmp = 1.0; elseif (c <= -2.4e-265) tmp = t_1; elseif (c <= 4.4e-183) tmp = 1.0; elseif (c <= 1.35e-100) tmp = x / (x + (y - (2.0 * ((y * b) * (a - -0.8333333333333334))))); else tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y + N[(2.0 * N[(0.6666666666666666 * N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -9000000000.0], 1.0, If[LessEqual[c, -1.26e-192], t$95$1, If[LessEqual[c, -4.5e-247], 1.0, If[LessEqual[c, -2.4e-265], t$95$1, If[LessEqual[c, 4.4e-183], 1.0, If[LessEqual[c, 1.35e-100], N[(x / N[(x + N[(y - N[(2.0 * N[(N[(y * b), $MachinePrecision] * N[(a - -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[(1.0 + N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + \left(y + 2 \cdot \left(0.6666666666666666 \cdot \frac{y \cdot b}{t}\right)\right)}\\
\mathbf{if}\;c \leq -9000000000:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.26 \cdot 10^{-192}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -4.5 \cdot 10^{-247}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -2.4 \cdot 10^{-265}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 4.4 \cdot 10^{-183}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.35 \cdot 10^{-100}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(\left(y \cdot b\right) \cdot \left(a - -0.8333333333333334\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + 2 \cdot \left(a \cdot \left(c - b\right)\right)\right)}\\
\end{array}
\end{array}
if c < -9e9 or -1.26e-192 < c < -4.5000000000000002e-247 or -2.4e-265 < c < 4.3999999999999999e-183Initial program 95.8%
Taylor expanded in t around inf 71.1%
mul-1-neg71.1%
distribute-rgt-neg-in71.1%
distribute-neg-in71.1%
metadata-eval71.1%
sub-neg71.1%
Simplified71.1%
Taylor expanded in x around inf 63.4%
if -9e9 < c < -1.26e-192 or -4.5000000000000002e-247 < c < -2.4e-265Initial program 93.8%
Taylor expanded in b around inf 70.4%
*-commutative70.4%
associate--r+70.4%
sub-neg70.4%
associate-*r/70.4%
metadata-eval70.4%
metadata-eval70.4%
associate-+r-70.4%
Simplified70.4%
Taylor expanded in b around 0 64.1%
associate-*r/64.1%
metadata-eval64.1%
*-commutative64.1%
Simplified64.1%
Taylor expanded in t around 0 68.7%
if 4.3999999999999999e-183 < c < 1.35000000000000008e-100Initial program 100.0%
Taylor expanded in b around inf 72.7%
*-commutative72.7%
associate--r+72.7%
sub-neg72.7%
associate-*r/72.7%
metadata-eval72.7%
metadata-eval72.7%
associate-+r-72.7%
Simplified72.7%
Taylor expanded in b around 0 45.9%
associate-*r/45.9%
metadata-eval45.9%
*-commutative45.9%
Simplified45.9%
Taylor expanded in t around inf 52.9%
distribute-lft-in52.9%
metadata-eval52.9%
mul-1-neg52.9%
sub-neg52.9%
Simplified52.9%
if 1.35000000000000008e-100 < c Initial program 90.7%
Taylor expanded in a around inf 70.3%
Taylor expanded in a around 0 59.7%
Final simplification62.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -1060000000000.0)
1.0
(if (<= c -4.1e-193)
(/ x (+ x (+ y (* 2.0 (* 0.6666666666666666 (/ (* y b) t))))))
(if (<= c -8e-248)
1.0
(if (<= c 4.2e-205)
(/ x (+ (* -2.0 (* y (* b (+ a 0.8333333333333334)))) (+ x y)))
(if (<= c 3.7e-183)
1.0
(if (<= c 4.8e-100)
(/ x (+ x (- y (* 2.0 (* (* y b) (- a -0.8333333333333334))))))
(/ x (+ x (* y (+ 1.0 (* 2.0 (* a (- c b))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1060000000000.0) {
tmp = 1.0;
} else if (c <= -4.1e-193) {
tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t)))));
} else if (c <= -8e-248) {
tmp = 1.0;
} else if (c <= 4.2e-205) {
tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y));
} else if (c <= 3.7e-183) {
tmp = 1.0;
} else if (c <= 4.8e-100) {
tmp = x / (x + (y - (2.0 * ((y * b) * (a - -0.8333333333333334)))));
} else {
tmp = x / (x + (y * (1.0 + (2.0 * (a * (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 (c <= (-1060000000000.0d0)) then
tmp = 1.0d0
else if (c <= (-4.1d-193)) then
tmp = x / (x + (y + (2.0d0 * (0.6666666666666666d0 * ((y * b) / t)))))
else if (c <= (-8d-248)) then
tmp = 1.0d0
else if (c <= 4.2d-205) then
tmp = x / (((-2.0d0) * (y * (b * (a + 0.8333333333333334d0)))) + (x + y))
else if (c <= 3.7d-183) then
tmp = 1.0d0
else if (c <= 4.8d-100) then
tmp = x / (x + (y - (2.0d0 * ((y * b) * (a - (-0.8333333333333334d0))))))
else
tmp = x / (x + (y * (1.0d0 + (2.0d0 * (a * (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 (c <= -1060000000000.0) {
tmp = 1.0;
} else if (c <= -4.1e-193) {
tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t)))));
} else if (c <= -8e-248) {
tmp = 1.0;
} else if (c <= 4.2e-205) {
tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y));
} else if (c <= 3.7e-183) {
tmp = 1.0;
} else if (c <= 4.8e-100) {
tmp = x / (x + (y - (2.0 * ((y * b) * (a - -0.8333333333333334)))));
} else {
tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -1060000000000.0: tmp = 1.0 elif c <= -4.1e-193: tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t))))) elif c <= -8e-248: tmp = 1.0 elif c <= 4.2e-205: tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y)) elif c <= 3.7e-183: tmp = 1.0 elif c <= 4.8e-100: tmp = x / (x + (y - (2.0 * ((y * b) * (a - -0.8333333333333334))))) else: tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -1060000000000.0) tmp = 1.0; elseif (c <= -4.1e-193) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(0.6666666666666666 * Float64(Float64(y * b) / t)))))); elseif (c <= -8e-248) tmp = 1.0; elseif (c <= 4.2e-205) tmp = Float64(x / Float64(Float64(-2.0 * Float64(y * Float64(b * Float64(a + 0.8333333333333334)))) + Float64(x + y))); elseif (c <= 3.7e-183) tmp = 1.0; elseif (c <= 4.8e-100) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(Float64(y * b) * Float64(a - -0.8333333333333334)))))); else tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(2.0 * Float64(a * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -1060000000000.0) tmp = 1.0; elseif (c <= -4.1e-193) tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t))))); elseif (c <= -8e-248) tmp = 1.0; elseif (c <= 4.2e-205) tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y)); elseif (c <= 3.7e-183) tmp = 1.0; elseif (c <= 4.8e-100) tmp = x / (x + (y - (2.0 * ((y * b) * (a - -0.8333333333333334))))); else tmp = x / (x + (y * (1.0 + (2.0 * (a * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -1060000000000.0], 1.0, If[LessEqual[c, -4.1e-193], N[(x / N[(x + N[(y + N[(2.0 * N[(0.6666666666666666 * N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -8e-248], 1.0, If[LessEqual[c, 4.2e-205], N[(x / N[(N[(-2.0 * N[(y * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.7e-183], 1.0, If[LessEqual[c, 4.8e-100], N[(x / N[(x + N[(y - N[(2.0 * N[(N[(y * b), $MachinePrecision] * N[(a - -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[(1.0 + N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1060000000000:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -4.1 \cdot 10^{-193}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(0.6666666666666666 \cdot \frac{y \cdot b}{t}\right)\right)}\\
\mathbf{elif}\;c \leq -8 \cdot 10^{-248}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 4.2 \cdot 10^{-205}:\\
\;\;\;\;\frac{x}{-2 \cdot \left(y \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right)\right) + \left(x + y\right)}\\
\mathbf{elif}\;c \leq 3.7 \cdot 10^{-183}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 4.8 \cdot 10^{-100}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(\left(y \cdot b\right) \cdot \left(a - -0.8333333333333334\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + 2 \cdot \left(a \cdot \left(c - b\right)\right)\right)}\\
\end{array}
\end{array}
if c < -1.06e12 or -4.10000000000000003e-193 < c < -7.99999999999999984e-248 or 4.19999999999999965e-205 < c < 3.6999999999999999e-183Initial program 96.6%
Taylor expanded in t around inf 70.7%
mul-1-neg70.7%
distribute-rgt-neg-in70.7%
distribute-neg-in70.7%
metadata-eval70.7%
sub-neg70.7%
Simplified70.7%
Taylor expanded in x around inf 67.0%
if -1.06e12 < c < -4.10000000000000003e-193Initial program 95.0%
Taylor expanded in b around inf 69.3%
*-commutative69.3%
associate--r+69.3%
sub-neg69.3%
associate-*r/69.3%
metadata-eval69.3%
metadata-eval69.3%
associate-+r-69.3%
Simplified69.3%
Taylor expanded in b around 0 59.3%
associate-*r/59.3%
metadata-eval59.3%
*-commutative59.3%
Simplified59.3%
Taylor expanded in t around 0 64.8%
if -7.99999999999999984e-248 < c < 4.19999999999999965e-205Initial program 92.3%
Taylor expanded in b around inf 80.3%
*-commutative80.3%
associate--r+80.3%
sub-neg80.3%
associate-*r/80.3%
metadata-eval80.3%
metadata-eval80.3%
associate-+r-80.3%
Simplified80.3%
Taylor expanded in b around 0 58.2%
associate-*r/58.2%
metadata-eval58.2%
*-commutative58.2%
Simplified58.2%
Taylor expanded in t around inf 60.6%
if 3.6999999999999999e-183 < c < 4.8000000000000005e-100Initial program 100.0%
Taylor expanded in b around inf 72.7%
*-commutative72.7%
associate--r+72.7%
sub-neg72.7%
associate-*r/72.7%
metadata-eval72.7%
metadata-eval72.7%
associate-+r-72.7%
Simplified72.7%
Taylor expanded in b around 0 45.9%
associate-*r/45.9%
metadata-eval45.9%
*-commutative45.9%
Simplified45.9%
Taylor expanded in t around inf 52.9%
distribute-lft-in52.9%
metadata-eval52.9%
mul-1-neg52.9%
sub-neg52.9%
Simplified52.9%
if 4.8000000000000005e-100 < c Initial program 90.7%
Taylor expanded in a around inf 70.3%
Taylor expanded in a around 0 59.7%
Final simplification62.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ (* -2.0 (* y (* b (+ a 0.8333333333333334)))) (+ x y)))))
(if (<= b -1.05e+182)
t_1
(if (<= b -9.2e+129)
1.0
(if (<= b -3.1e+25)
t_1
(if (<= b 1.08e-237)
(/
x
(+
x
(+
y
(*
2.0
(*
(* y c)
(+ (/ -0.6666666666666666 t) (+ a 0.8333333333333334)))))))
(if (<= b 8.5e-102)
1.0
(if (<= b 1e+183)
(/ x (+ x (+ y (* 2.0 (* 0.6666666666666666 (/ (* y b) t))))))
1.0))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y));
double tmp;
if (b <= -1.05e+182) {
tmp = t_1;
} else if (b <= -9.2e+129) {
tmp = 1.0;
} else if (b <= -3.1e+25) {
tmp = t_1;
} else if (b <= 1.08e-237) {
tmp = x / (x + (y + (2.0 * ((y * c) * ((-0.6666666666666666 / t) + (a + 0.8333333333333334))))));
} else if (b <= 8.5e-102) {
tmp = 1.0;
} else if (b <= 1e+183) {
tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t)))));
} 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) :: t_1
real(8) :: tmp
t_1 = x / (((-2.0d0) * (y * (b * (a + 0.8333333333333334d0)))) + (x + y))
if (b <= (-1.05d+182)) then
tmp = t_1
else if (b <= (-9.2d+129)) then
tmp = 1.0d0
else if (b <= (-3.1d+25)) then
tmp = t_1
else if (b <= 1.08d-237) then
tmp = x / (x + (y + (2.0d0 * ((y * c) * (((-0.6666666666666666d0) / t) + (a + 0.8333333333333334d0))))))
else if (b <= 8.5d-102) then
tmp = 1.0d0
else if (b <= 1d+183) then
tmp = x / (x + (y + (2.0d0 * (0.6666666666666666d0 * ((y * b) / t)))))
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 t_1 = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y));
double tmp;
if (b <= -1.05e+182) {
tmp = t_1;
} else if (b <= -9.2e+129) {
tmp = 1.0;
} else if (b <= -3.1e+25) {
tmp = t_1;
} else if (b <= 1.08e-237) {
tmp = x / (x + (y + (2.0 * ((y * c) * ((-0.6666666666666666 / t) + (a + 0.8333333333333334))))));
} else if (b <= 8.5e-102) {
tmp = 1.0;
} else if (b <= 1e+183) {
tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y)) tmp = 0 if b <= -1.05e+182: tmp = t_1 elif b <= -9.2e+129: tmp = 1.0 elif b <= -3.1e+25: tmp = t_1 elif b <= 1.08e-237: tmp = x / (x + (y + (2.0 * ((y * c) * ((-0.6666666666666666 / t) + (a + 0.8333333333333334)))))) elif b <= 8.5e-102: tmp = 1.0 elif b <= 1e+183: tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(Float64(-2.0 * Float64(y * Float64(b * Float64(a + 0.8333333333333334)))) + Float64(x + y))) tmp = 0.0 if (b <= -1.05e+182) tmp = t_1; elseif (b <= -9.2e+129) tmp = 1.0; elseif (b <= -3.1e+25) tmp = t_1; elseif (b <= 1.08e-237) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(Float64(y * c) * Float64(Float64(-0.6666666666666666 / t) + Float64(a + 0.8333333333333334))))))); elseif (b <= 8.5e-102) tmp = 1.0; elseif (b <= 1e+183) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(0.6666666666666666 * Float64(Float64(y * b) / t)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y)); tmp = 0.0; if (b <= -1.05e+182) tmp = t_1; elseif (b <= -9.2e+129) tmp = 1.0; elseif (b <= -3.1e+25) tmp = t_1; elseif (b <= 1.08e-237) tmp = x / (x + (y + (2.0 * ((y * c) * ((-0.6666666666666666 / t) + (a + 0.8333333333333334)))))); elseif (b <= 8.5e-102) tmp = 1.0; elseif (b <= 1e+183) tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(N[(-2.0 * N[(y * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.05e+182], t$95$1, If[LessEqual[b, -9.2e+129], 1.0, If[LessEqual[b, -3.1e+25], t$95$1, If[LessEqual[b, 1.08e-237], N[(x / N[(x + N[(y + N[(2.0 * N[(N[(y * c), $MachinePrecision] * N[(N[(-0.6666666666666666 / t), $MachinePrecision] + N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.5e-102], 1.0, If[LessEqual[b, 1e+183], N[(x / N[(x + N[(y + N[(2.0 * N[(0.6666666666666666 * N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{-2 \cdot \left(y \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right)\right) + \left(x + y\right)}\\
\mathbf{if}\;b \leq -1.05 \cdot 10^{+182}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -9.2 \cdot 10^{+129}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -3.1 \cdot 10^{+25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.08 \cdot 10^{-237}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(\left(y \cdot c\right) \cdot \left(\frac{-0.6666666666666666}{t} + \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{-102}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 10^{+183}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(0.6666666666666666 \cdot \frac{y \cdot b}{t}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.0499999999999999e182 or -9.19999999999999961e129 < b < -3.0999999999999998e25Initial program 87.0%
Taylor expanded in b around inf 87.4%
*-commutative87.4%
associate--r+87.4%
sub-neg87.4%
associate-*r/87.4%
metadata-eval87.4%
metadata-eval87.4%
associate-+r-87.4%
Simplified87.4%
Taylor expanded in b around 0 48.0%
associate-*r/48.0%
metadata-eval48.0%
*-commutative48.0%
Simplified48.0%
Taylor expanded in t around inf 62.0%
if -1.0499999999999999e182 < b < -9.19999999999999961e129 or 1.07999999999999996e-237 < b < 8.49999999999999973e-102 or 9.99999999999999947e182 < b Initial program 91.4%
Taylor expanded in t around inf 71.7%
mul-1-neg71.7%
distribute-rgt-neg-in71.7%
distribute-neg-in71.7%
metadata-eval71.7%
sub-neg71.7%
Simplified71.7%
Taylor expanded in x around inf 71.7%
if -3.0999999999999998e25 < b < 1.07999999999999996e-237Initial program 100.0%
Taylor expanded in c around inf 73.7%
associate-*r/73.7%
metadata-eval73.7%
+-commutative73.7%
metadata-eval73.7%
associate-/r*73.7%
*-commutative73.7%
associate--l+73.7%
sub-neg73.7%
sub-neg73.7%
*-commutative73.7%
associate-/r*73.7%
metadata-eval73.7%
sub-neg73.7%
distribute-neg-frac73.7%
metadata-eval73.7%
Simplified73.7%
Taylor expanded in c around 0 56.5%
associate-*r*54.2%
cancel-sign-sub-inv54.2%
metadata-eval54.2%
associate-*r/54.2%
metadata-eval54.2%
Simplified54.2%
if 8.49999999999999973e-102 < b < 9.99999999999999947e182Initial program 95.1%
Taylor expanded in b around inf 67.8%
*-commutative67.8%
associate--r+67.8%
sub-neg67.8%
associate-*r/67.8%
metadata-eval67.8%
metadata-eval67.8%
associate-+r-67.8%
Simplified67.8%
Taylor expanded in b around 0 53.2%
associate-*r/53.2%
metadata-eval53.2%
*-commutative53.2%
Simplified53.2%
Taylor expanded in t around 0 61.5%
Final simplification61.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -1.05e+182)
(/
x
(+
x
(*
y
(-
1.0
(*
2.0
(*
b
(- (+ a 0.8333333333333334) (* 0.6666666666666666 (/ 1.0 t)))))))))
(if (<= b -1.05e+131)
1.0
(if (<= b -4.2e+24)
(/ x (+ (* -2.0 (* y (* b (+ a 0.8333333333333334)))) (+ x y)))
(if (<= b 1.9e-237)
(/
x
(+
x
(+
y
(*
2.0
(*
(* y c)
(+ (/ -0.6666666666666666 t) (+ a 0.8333333333333334)))))))
(if (<= b 3.8e-111)
1.0
(if (<= b 9.8e+182)
(/ x (+ x (+ y (* 2.0 (* 0.6666666666666666 (/ (* y b) t))))))
1.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.05e+182) {
tmp = x / (x + (y * (1.0 - (2.0 * (b * ((a + 0.8333333333333334) - (0.6666666666666666 * (1.0 / t))))))));
} else if (b <= -1.05e+131) {
tmp = 1.0;
} else if (b <= -4.2e+24) {
tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y));
} else if (b <= 1.9e-237) {
tmp = x / (x + (y + (2.0 * ((y * c) * ((-0.6666666666666666 / t) + (a + 0.8333333333333334))))));
} else if (b <= 3.8e-111) {
tmp = 1.0;
} else if (b <= 9.8e+182) {
tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-1.05d+182)) then
tmp = x / (x + (y * (1.0d0 - (2.0d0 * (b * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 * (1.0d0 / t))))))))
else if (b <= (-1.05d+131)) then
tmp = 1.0d0
else if (b <= (-4.2d+24)) then
tmp = x / (((-2.0d0) * (y * (b * (a + 0.8333333333333334d0)))) + (x + y))
else if (b <= 1.9d-237) then
tmp = x / (x + (y + (2.0d0 * ((y * c) * (((-0.6666666666666666d0) / t) + (a + 0.8333333333333334d0))))))
else if (b <= 3.8d-111) then
tmp = 1.0d0
else if (b <= 9.8d+182) then
tmp = x / (x + (y + (2.0d0 * (0.6666666666666666d0 * ((y * b) / t)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.05e+182) {
tmp = x / (x + (y * (1.0 - (2.0 * (b * ((a + 0.8333333333333334) - (0.6666666666666666 * (1.0 / t))))))));
} else if (b <= -1.05e+131) {
tmp = 1.0;
} else if (b <= -4.2e+24) {
tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y));
} else if (b <= 1.9e-237) {
tmp = x / (x + (y + (2.0 * ((y * c) * ((-0.6666666666666666 / t) + (a + 0.8333333333333334))))));
} else if (b <= 3.8e-111) {
tmp = 1.0;
} else if (b <= 9.8e+182) {
tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -1.05e+182: tmp = x / (x + (y * (1.0 - (2.0 * (b * ((a + 0.8333333333333334) - (0.6666666666666666 * (1.0 / t)))))))) elif b <= -1.05e+131: tmp = 1.0 elif b <= -4.2e+24: tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y)) elif b <= 1.9e-237: tmp = x / (x + (y + (2.0 * ((y * c) * ((-0.6666666666666666 / t) + (a + 0.8333333333333334)))))) elif b <= 3.8e-111: tmp = 1.0 elif b <= 9.8e+182: tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -1.05e+182) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(2.0 * Float64(b * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 * Float64(1.0 / t))))))))); elseif (b <= -1.05e+131) tmp = 1.0; elseif (b <= -4.2e+24) tmp = Float64(x / Float64(Float64(-2.0 * Float64(y * Float64(b * Float64(a + 0.8333333333333334)))) + Float64(x + y))); elseif (b <= 1.9e-237) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(Float64(y * c) * Float64(Float64(-0.6666666666666666 / t) + Float64(a + 0.8333333333333334))))))); elseif (b <= 3.8e-111) tmp = 1.0; elseif (b <= 9.8e+182) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(0.6666666666666666 * Float64(Float64(y * b) / t)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -1.05e+182) tmp = x / (x + (y * (1.0 - (2.0 * (b * ((a + 0.8333333333333334) - (0.6666666666666666 * (1.0 / t)))))))); elseif (b <= -1.05e+131) tmp = 1.0; elseif (b <= -4.2e+24) tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y)); elseif (b <= 1.9e-237) tmp = x / (x + (y + (2.0 * ((y * c) * ((-0.6666666666666666 / t) + (a + 0.8333333333333334)))))); elseif (b <= 3.8e-111) tmp = 1.0; elseif (b <= 9.8e+182) tmp = x / (x + (y + (2.0 * (0.6666666666666666 * ((y * b) / t))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -1.05e+182], N[(x / N[(x + N[(y * N[(1.0 - N[(2.0 * N[(b * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.05e+131], 1.0, If[LessEqual[b, -4.2e+24], N[(x / N[(N[(-2.0 * N[(y * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.9e-237], N[(x / N[(x + N[(y + N[(2.0 * N[(N[(y * c), $MachinePrecision] * N[(N[(-0.6666666666666666 / t), $MachinePrecision] + N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.8e-111], 1.0, If[LessEqual[b, 9.8e+182], N[(x / N[(x + N[(y + N[(2.0 * N[(0.6666666666666666 * N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.05 \cdot 10^{+182}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - 2 \cdot \left(b \cdot \left(\left(a + 0.8333333333333334\right) - 0.6666666666666666 \cdot \frac{1}{t}\right)\right)\right)}\\
\mathbf{elif}\;b \leq -1.05 \cdot 10^{+131}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -4.2 \cdot 10^{+24}:\\
\;\;\;\;\frac{x}{-2 \cdot \left(y \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right)\right) + \left(x + y\right)}\\
\mathbf{elif}\;b \leq 1.9 \cdot 10^{-237}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(\left(y \cdot c\right) \cdot \left(\frac{-0.6666666666666666}{t} + \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{-111}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 9.8 \cdot 10^{+182}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(0.6666666666666666 \cdot \frac{y \cdot b}{t}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.0499999999999999e182Initial program 82.4%
Taylor expanded in b around inf 94.3%
*-commutative94.3%
associate--r+94.3%
sub-neg94.3%
associate-*r/94.3%
metadata-eval94.3%
metadata-eval94.3%
associate-+r-94.3%
Simplified94.3%
Taylor expanded in b around 0 68.7%
if -1.0499999999999999e182 < b < -1.04999999999999993e131 or 1.90000000000000012e-237 < b < 3.80000000000000022e-111 or 9.7999999999999999e182 < b Initial program 91.4%
Taylor expanded in t around inf 71.7%
mul-1-neg71.7%
distribute-rgt-neg-in71.7%
distribute-neg-in71.7%
metadata-eval71.7%
sub-neg71.7%
Simplified71.7%
Taylor expanded in x around inf 71.7%
if -1.04999999999999993e131 < b < -4.2000000000000003e24Initial program 95.0%
Taylor expanded in b around inf 75.8%
*-commutative75.8%
associate--r+75.8%
sub-neg75.8%
associate-*r/75.8%
metadata-eval75.8%
metadata-eval75.8%
associate-+r-75.8%
Simplified75.8%
Taylor expanded in b around 0 41.0%
associate-*r/41.0%
metadata-eval41.0%
*-commutative41.0%
Simplified41.0%
Taylor expanded in t around inf 50.6%
if -4.2000000000000003e24 < b < 1.90000000000000012e-237Initial program 100.0%
Taylor expanded in c around inf 73.7%
associate-*r/73.7%
metadata-eval73.7%
+-commutative73.7%
metadata-eval73.7%
associate-/r*73.7%
*-commutative73.7%
associate--l+73.7%
sub-neg73.7%
sub-neg73.7%
*-commutative73.7%
associate-/r*73.7%
metadata-eval73.7%
sub-neg73.7%
distribute-neg-frac73.7%
metadata-eval73.7%
Simplified73.7%
Taylor expanded in c around 0 56.5%
associate-*r*54.2%
cancel-sign-sub-inv54.2%
metadata-eval54.2%
associate-*r/54.2%
metadata-eval54.2%
Simplified54.2%
if 3.80000000000000022e-111 < b < 9.7999999999999999e182Initial program 95.1%
Taylor expanded in b around inf 67.8%
*-commutative67.8%
associate--r+67.8%
sub-neg67.8%
associate-*r/67.8%
metadata-eval67.8%
metadata-eval67.8%
associate-+r-67.8%
Simplified67.8%
Taylor expanded in b around 0 53.2%
associate-*r/53.2%
metadata-eval53.2%
*-commutative53.2%
Simplified53.2%
Taylor expanded in t around 0 61.5%
Final simplification61.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ (+ x y) (* (* y b) -1.6666666666666667)))))
(if (<= c -8.2e+15)
1.0
(if (<= c -5.8e-193)
t_1
(if (<= c -2.45e-248)
1.0
(if (<= c -1.95e-262)
t_1
(if (or (<= c 2.1e-203) (not (<= c 3.4e-183)))
(/ x (+ x (+ y (* -2.0 (* y (* b a))))))
1.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / ((x + y) + ((y * b) * -1.6666666666666667));
double tmp;
if (c <= -8.2e+15) {
tmp = 1.0;
} else if (c <= -5.8e-193) {
tmp = t_1;
} else if (c <= -2.45e-248) {
tmp = 1.0;
} else if (c <= -1.95e-262) {
tmp = t_1;
} else if ((c <= 2.1e-203) || !(c <= 3.4e-183)) {
tmp = x / (x + (y + (-2.0 * (y * (b * a)))));
} 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) :: t_1
real(8) :: tmp
t_1 = x / ((x + y) + ((y * b) * (-1.6666666666666667d0)))
if (c <= (-8.2d+15)) then
tmp = 1.0d0
else if (c <= (-5.8d-193)) then
tmp = t_1
else if (c <= (-2.45d-248)) then
tmp = 1.0d0
else if (c <= (-1.95d-262)) then
tmp = t_1
else if ((c <= 2.1d-203) .or. (.not. (c <= 3.4d-183))) then
tmp = x / (x + (y + ((-2.0d0) * (y * (b * a)))))
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 t_1 = x / ((x + y) + ((y * b) * -1.6666666666666667));
double tmp;
if (c <= -8.2e+15) {
tmp = 1.0;
} else if (c <= -5.8e-193) {
tmp = t_1;
} else if (c <= -2.45e-248) {
tmp = 1.0;
} else if (c <= -1.95e-262) {
tmp = t_1;
} else if ((c <= 2.1e-203) || !(c <= 3.4e-183)) {
tmp = x / (x + (y + (-2.0 * (y * (b * a)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / ((x + y) + ((y * b) * -1.6666666666666667)) tmp = 0 if c <= -8.2e+15: tmp = 1.0 elif c <= -5.8e-193: tmp = t_1 elif c <= -2.45e-248: tmp = 1.0 elif c <= -1.95e-262: tmp = t_1 elif (c <= 2.1e-203) or not (c <= 3.4e-183): tmp = x / (x + (y + (-2.0 * (y * (b * a))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(Float64(x + y) + Float64(Float64(y * b) * -1.6666666666666667))) tmp = 0.0 if (c <= -8.2e+15) tmp = 1.0; elseif (c <= -5.8e-193) tmp = t_1; elseif (c <= -2.45e-248) tmp = 1.0; elseif (c <= -1.95e-262) tmp = t_1; elseif ((c <= 2.1e-203) || !(c <= 3.4e-183)) tmp = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(y * Float64(b * a)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / ((x + y) + ((y * b) * -1.6666666666666667)); tmp = 0.0; if (c <= -8.2e+15) tmp = 1.0; elseif (c <= -5.8e-193) tmp = t_1; elseif (c <= -2.45e-248) tmp = 1.0; elseif (c <= -1.95e-262) tmp = t_1; elseif ((c <= 2.1e-203) || ~((c <= 3.4e-183))) tmp = x / (x + (y + (-2.0 * (y * (b * a))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(N[(x + y), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -8.2e+15], 1.0, If[LessEqual[c, -5.8e-193], t$95$1, If[LessEqual[c, -2.45e-248], 1.0, If[LessEqual[c, -1.95e-262], t$95$1, If[Or[LessEqual[c, 2.1e-203], N[Not[LessEqual[c, 3.4e-183]], $MachinePrecision]], N[(x / N[(x + N[(y + N[(-2.0 * N[(y * N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\left(x + y\right) + \left(y \cdot b\right) \cdot -1.6666666666666667}\\
\mathbf{if}\;c \leq -8.2 \cdot 10^{+15}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -5.8 \cdot 10^{-193}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -2.45 \cdot 10^{-248}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.95 \cdot 10^{-262}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2.1 \cdot 10^{-203} \lor \neg \left(c \leq 3.4 \cdot 10^{-183}\right):\\
\;\;\;\;\frac{x}{x + \left(y + -2 \cdot \left(y \cdot \left(b \cdot a\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if c < -8.2e15 or -5.80000000000000013e-193 < c < -2.4499999999999998e-248 or 2.10000000000000002e-203 < c < 3.40000000000000014e-183Initial program 96.5%
Taylor expanded in t around inf 70.0%
mul-1-neg70.0%
distribute-rgt-neg-in70.0%
distribute-neg-in70.0%
metadata-eval70.0%
sub-neg70.0%
Simplified70.0%
Taylor expanded in x around inf 67.4%
if -8.2e15 < c < -5.80000000000000013e-193 or -2.4499999999999998e-248 < c < -1.94999999999999992e-262Initial program 96.0%
Taylor expanded in b around inf 71.0%
*-commutative71.0%
associate--r+71.0%
sub-neg71.0%
associate-*r/71.0%
metadata-eval71.0%
metadata-eval71.0%
associate-+r-71.0%
Simplified71.0%
Taylor expanded in b around 0 62.8%
associate-*r/62.8%
metadata-eval62.8%
*-commutative62.8%
Simplified62.8%
Taylor expanded in t around inf 62.8%
distribute-lft-in62.8%
metadata-eval62.8%
mul-1-neg62.8%
sub-neg62.8%
Simplified62.8%
Taylor expanded in a around 0 67.1%
if -1.94999999999999992e-262 < c < 2.10000000000000002e-203 or 3.40000000000000014e-183 < c Initial program 91.7%
Taylor expanded in a around inf 68.9%
Taylor expanded in c around 0 55.7%
Taylor expanded in b around 0 50.1%
Final simplification59.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ (+ x y) (* (* y b) -1.6666666666666667)))))
(if (<= a 3.8e-76)
1.0
(if (<= a 3e-63)
t_1
(if (<= a 1.8e+211)
1.0
(if (<= a 2.8e+249) (* -0.5 (/ x (* y (* b a)))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / ((x + y) + ((y * b) * -1.6666666666666667));
double tmp;
if (a <= 3.8e-76) {
tmp = 1.0;
} else if (a <= 3e-63) {
tmp = t_1;
} else if (a <= 1.8e+211) {
tmp = 1.0;
} else if (a <= 2.8e+249) {
tmp = -0.5 * (x / (y * (b * a)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / ((x + y) + ((y * b) * (-1.6666666666666667d0)))
if (a <= 3.8d-76) then
tmp = 1.0d0
else if (a <= 3d-63) then
tmp = t_1
else if (a <= 1.8d+211) then
tmp = 1.0d0
else if (a <= 2.8d+249) then
tmp = (-0.5d0) * (x / (y * (b * a)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / ((x + y) + ((y * b) * -1.6666666666666667));
double tmp;
if (a <= 3.8e-76) {
tmp = 1.0;
} else if (a <= 3e-63) {
tmp = t_1;
} else if (a <= 1.8e+211) {
tmp = 1.0;
} else if (a <= 2.8e+249) {
tmp = -0.5 * (x / (y * (b * a)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / ((x + y) + ((y * b) * -1.6666666666666667)) tmp = 0 if a <= 3.8e-76: tmp = 1.0 elif a <= 3e-63: tmp = t_1 elif a <= 1.8e+211: tmp = 1.0 elif a <= 2.8e+249: tmp = -0.5 * (x / (y * (b * a))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(Float64(x + y) + Float64(Float64(y * b) * -1.6666666666666667))) tmp = 0.0 if (a <= 3.8e-76) tmp = 1.0; elseif (a <= 3e-63) tmp = t_1; elseif (a <= 1.8e+211) tmp = 1.0; elseif (a <= 2.8e+249) tmp = Float64(-0.5 * Float64(x / Float64(y * Float64(b * a)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / ((x + y) + ((y * b) * -1.6666666666666667)); tmp = 0.0; if (a <= 3.8e-76) tmp = 1.0; elseif (a <= 3e-63) tmp = t_1; elseif (a <= 1.8e+211) tmp = 1.0; elseif (a <= 2.8e+249) tmp = -0.5 * (x / (y * (b * a))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(N[(x + y), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, 3.8e-76], 1.0, If[LessEqual[a, 3e-63], t$95$1, If[LessEqual[a, 1.8e+211], 1.0, If[LessEqual[a, 2.8e+249], N[(-0.5 * N[(x / N[(y * N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\left(x + y\right) + \left(y \cdot b\right) \cdot -1.6666666666666667}\\
\mathbf{if}\;a \leq 3.8 \cdot 10^{-76}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 3 \cdot 10^{-63}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{+211}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{+249}:\\
\;\;\;\;-0.5 \cdot \frac{x}{y \cdot \left(b \cdot a\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < 3.8000000000000002e-76 or 2.99999999999999979e-63 < a < 1.80000000000000001e211Initial program 96.1%
Taylor expanded in t around inf 68.3%
mul-1-neg68.3%
distribute-rgt-neg-in68.3%
distribute-neg-in68.3%
metadata-eval68.3%
sub-neg68.3%
Simplified68.3%
Taylor expanded in x around inf 51.4%
if 3.8000000000000002e-76 < a < 2.99999999999999979e-63 or 2.80000000000000018e249 < a Initial program 81.3%
Taylor expanded in b around inf 69.5%
*-commutative69.5%
associate--r+69.5%
sub-neg69.5%
associate-*r/69.5%
metadata-eval69.5%
metadata-eval69.5%
associate-+r-69.5%
Simplified69.5%
Taylor expanded in b around 0 65.1%
associate-*r/65.1%
metadata-eval65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in t around inf 65.1%
distribute-lft-in65.1%
metadata-eval65.1%
mul-1-neg65.1%
sub-neg65.1%
Simplified65.1%
Taylor expanded in a around 0 75.3%
if 1.80000000000000001e211 < a < 2.80000000000000018e249Initial program 95.2%
Taylor expanded in b around inf 86.2%
*-commutative86.2%
associate--r+86.2%
sub-neg86.2%
associate-*r/86.2%
metadata-eval86.2%
metadata-eval86.2%
associate-+r-86.2%
Simplified86.2%
Taylor expanded in b around 0 54.3%
associate-*r/54.3%
metadata-eval54.3%
*-commutative54.3%
Simplified54.3%
Taylor expanded in a around inf 67.9%
Final simplification55.7%
(FPCore (x y z t a b c) :precision binary64 (if (<= a 1.55e+211) 1.0 (if (<= a 3.6e+249) (* -0.5 (/ x (* y (* b a)))) (/ x (+ x y)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 1.55e+211) {
tmp = 1.0;
} else if (a <= 3.6e+249) {
tmp = -0.5 * (x / (y * (b * a)));
} else {
tmp = x / (x + y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (a <= 1.55d+211) then
tmp = 1.0d0
else if (a <= 3.6d+249) then
tmp = (-0.5d0) * (x / (y * (b * a)))
else
tmp = x / (x + y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 1.55e+211) {
tmp = 1.0;
} else if (a <= 3.6e+249) {
tmp = -0.5 * (x / (y * (b * a)));
} else {
tmp = x / (x + y);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 1.55e+211: tmp = 1.0 elif a <= 3.6e+249: tmp = -0.5 * (x / (y * (b * a))) else: tmp = x / (x + y) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 1.55e+211) tmp = 1.0; elseif (a <= 3.6e+249) tmp = Float64(-0.5 * Float64(x / Float64(y * Float64(b * a)))); else tmp = Float64(x / Float64(x + y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= 1.55e+211) tmp = 1.0; elseif (a <= 3.6e+249) tmp = -0.5 * (x / (y * (b * a))); else tmp = x / (x + y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 1.55e+211], 1.0, If[LessEqual[a, 3.6e+249], N[(-0.5 * N[(x / N[(y * N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.55 \cdot 10^{+211}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 3.6 \cdot 10^{+249}:\\
\;\;\;\;-0.5 \cdot \frac{x}{y \cdot \left(b \cdot a\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y}\\
\end{array}
\end{array}
if a < 1.5500000000000001e211Initial program 96.2%
Taylor expanded in t around inf 68.8%
mul-1-neg68.8%
distribute-rgt-neg-in68.8%
distribute-neg-in68.8%
metadata-eval68.8%
sub-neg68.8%
Simplified68.8%
Taylor expanded in x around inf 50.0%
if 1.5500000000000001e211 < a < 3.5999999999999997e249Initial program 95.2%
Taylor expanded in b around inf 86.2%
*-commutative86.2%
associate--r+86.2%
sub-neg86.2%
associate-*r/86.2%
metadata-eval86.2%
metadata-eval86.2%
associate-+r-86.2%
Simplified86.2%
Taylor expanded in b around 0 54.3%
associate-*r/54.3%
metadata-eval54.3%
*-commutative54.3%
Simplified54.3%
Taylor expanded in a around inf 67.9%
if 3.5999999999999997e249 < a Initial program 77.0%
Taylor expanded in a around inf 73.9%
Taylor expanded in a around 0 66.5%
Final simplification53.1%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -3.3e-250) 1.0 (if (<= b 3.5e-230) (/ x (+ x y)) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.3e-250) {
tmp = 1.0;
} else if (b <= 3.5e-230) {
tmp = x / (x + y);
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-3.3d-250)) then
tmp = 1.0d0
else if (b <= 3.5d-230) then
tmp = x / (x + y)
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.3e-250) {
tmp = 1.0;
} else if (b <= 3.5e-230) {
tmp = x / (x + y);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -3.3e-250: tmp = 1.0 elif b <= 3.5e-230: tmp = x / (x + y) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -3.3e-250) tmp = 1.0; elseif (b <= 3.5e-230) tmp = Float64(x / Float64(x + y)); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -3.3e-250) tmp = 1.0; elseif (b <= 3.5e-230) tmp = x / (x + y); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -3.3e-250], 1.0, If[LessEqual[b, 3.5e-230], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.3 \cdot 10^{-250}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 3.5 \cdot 10^{-230}:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.3e-250 or 3.49999999999999988e-230 < b Initial program 93.2%
Taylor expanded in t around inf 70.6%
mul-1-neg70.6%
distribute-rgt-neg-in70.6%
distribute-neg-in70.6%
metadata-eval70.6%
sub-neg70.6%
Simplified70.6%
Taylor expanded in x around inf 49.6%
if -3.3e-250 < b < 3.49999999999999988e-230Initial program 100.0%
Taylor expanded in a around inf 77.7%
Taylor expanded in a around 0 62.1%
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 94.1%
Taylor expanded in t around inf 71.5%
mul-1-neg71.5%
distribute-rgt-neg-in71.5%
distribute-neg-in71.5%
metadata-eval71.5%
sub-neg71.5%
Simplified71.5%
Taylor expanded in x around inf 48.2%
Final simplification48.2%
(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 2023187
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:herbie-target
(if (< t -2.118326644891581e-50) (/ x (+ x (* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b))))))) (if (< t 5.196588770651547e-123) (/ x (+ x (* y (exp (* 2.0 (/ (- (* (* z (sqrt (+ t a))) (* (* 3.0 t) (- a (/ 5.0 6.0)))) (* (- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0) (* (- a (/ 5.0 6.0)) (* (- b c) t)))) (* (* (* t t) 3.0) (- a (/ 5.0 6.0))))))))) (/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))