
(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 23 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 (* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))
(t_2 (sqrt (+ t a))))
(if (<= (+ (/ (* t_2 z) t) t_1) INFINITY)
(/ x (+ x (* y (pow (exp 2.0) (+ (/ z (/ t t_2)) t_1)))))
(/ x (+ x (* y (exp (* 2.0 (* a (- c b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334));
double t_2 = sqrt((t + a));
double tmp;
if ((((t_2 * z) / t) + t_1) <= ((double) INFINITY)) {
tmp = x / (x + (y * pow(exp(2.0), ((z / (t / t_2)) + t_1))));
} else {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334));
double t_2 = Math.sqrt((t + a));
double tmp;
if ((((t_2 * z) / t) + t_1) <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), ((z / (t / t_2)) + t_1))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)) t_2 = math.sqrt((t + a)) tmp = 0 if (((t_2 * z) / t) + t_1) <= math.inf: tmp = x / (x + (y * math.pow(math.exp(2.0), ((z / (t / t_2)) + t_1)))) else: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334))) t_2 = sqrt(Float64(t + a)) tmp = 0.0 if (Float64(Float64(Float64(t_2 * z) / t) + t_1) <= Inf) tmp = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(Float64(z / Float64(t / t_2)) + t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(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 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)); t_2 = sqrt((t + a)); tmp = 0.0; if ((((t_2 * z) / t) + t_1) <= Inf) tmp = x / (x + (y * (exp(2.0) ^ ((z / (t / t_2)) + t_1)))); else tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(N[(N[(t$95$2 * z), $MachinePrecision] / t), $MachinePrecision] + t$95$1), $MachinePrecision], Infinity], N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(z / N[(t / t$95$2), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
t_2 := \sqrt{t + a}\\
\mathbf{if}\;\frac{t_2 \cdot z}{t} + t_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(\frac{z}{\frac{t}{t_2}} + t_1\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 98.8%
exp-prod98.8%
associate-/l*99.2%
metadata-eval99.2%
Simplified99.2%
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 a around inf 74.2%
Final simplification97.7%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
(sqrt (+ t a))
(/ z t)
(* (- b c) (- (+ (/ 0.6666666666666666 t) -0.8333333333333334) a))))
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(sqrt((t + a)), (z / t), ((b - c) * (((0.6666666666666666 / t) + -0.8333333333333334) - a)))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(sqrt(Float64(t + a)), Float64(z / t), Float64(Float64(b - c) * Float64(Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334) - a)))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(\sqrt{t + a}, \frac{z}{t}, \left(b - c\right) \cdot \left(\left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right) - a\right)\right)\right)}, x\right)}
\end{array}
Initial program 93.0%
+-commutative93.0%
fma-def93.0%
Simplified97.3%
Final simplification97.3%
(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 (* a (- c b))))))))))
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 * (a * (c - b))))));
}
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 * (a * (c - b))))));
}
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 * (a * (c - b)))))) 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(a * Float64(c - b))))))); 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 * (a * (c - b)))))); 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[(a * N[(c - b), $MachinePrecision]), $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 \left(a \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 98.8%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) Initial program 0.0%
Taylor expanded in a around inf 74.2%
Final simplification97.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -6.8e-100)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 7.6e-186)
(/
x
(+
x
(*
y
(exp
(* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 1e+95)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (- b c) (- (/ 0.6666666666666666 t) 0.8333333333333334))))))))
(/
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 <= -6.8e-100) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 7.6e-186) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 1e+95) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334)))))));
} 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 <= (-6.8d-100)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 7.6d-186) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 1d+95) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((b - c) * ((0.6666666666666666d0 / t) - 0.8333333333333334d0)))))))
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 <= -6.8e-100) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 7.6e-186) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 1e+95) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334)))))));
} 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 <= -6.8e-100: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 7.6e-186: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 1e+95: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334))))))) 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 <= -6.8e-100) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 7.6e-186) 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 <= 1e+95) tmp = 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)))))))); 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 <= -6.8e-100) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 7.6e-186) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 1e+95) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334))))))); 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, -6.8e-100], 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, 7.6e-186], 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, 1e+95], 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], 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 -6.8 \cdot 10^{-100}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 7.6 \cdot 10^{-186}:\\
\;\;\;\;\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 10^{+95}:\\
\;\;\;\;\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{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 < -6.79999999999999953e-100Initial program 87.0%
Taylor expanded in a around inf 95.8%
if -6.79999999999999953e-100 < t < 7.59999999999999949e-186Initial program 90.8%
Taylor expanded in t around 0 97.0%
if 7.59999999999999949e-186 < t < 1.00000000000000002e95Initial program 93.9%
Taylor expanded in a around 0 82.3%
*-commutative82.3%
associate-*r/82.3%
metadata-eval82.3%
Simplified82.3%
if 1.00000000000000002e95 < t Initial program 95.5%
Taylor expanded in t around inf 96.7%
mul-1-neg96.7%
distribute-rgt-neg-in96.7%
distribute-neg-in96.7%
metadata-eval96.7%
sub-neg96.7%
Simplified96.7%
Final simplification92.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -1.95e-101)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 6.8e-183)
(/
x
(+
x
(*
y
(exp
(* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 3.25e-125)
(/ x (+ x (* 2.0 (* y (* a c)))))
(if (<= t 6.5e-22)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (+ (/ 0.6666666666666666 t) -0.8333333333333334) 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 <= -1.95e-101) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 6.8e-183) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 3.25e-125) {
tmp = x / (x + (2.0 * (y * (a * c))));
} else if (t <= 6.5e-22) {
tmp = x / (x + (y * exp((2.0 * (b * (((0.6666666666666666 / t) + -0.8333333333333334) - 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 <= (-1.95d-101)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 6.8d-183) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 3.25d-125) then
tmp = x / (x + (2.0d0 * (y * (a * c))))
else if (t <= 6.5d-22) then
tmp = x / (x + (y * exp((2.0d0 * (b * (((0.6666666666666666d0 / t) + (-0.8333333333333334d0)) - 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 <= -1.95e-101) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 6.8e-183) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 3.25e-125) {
tmp = x / (x + (2.0 * (y * (a * c))));
} else if (t <= 6.5e-22) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (((0.6666666666666666 / t) + -0.8333333333333334) - 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 <= -1.95e-101: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 6.8e-183: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 3.25e-125: tmp = x / (x + (2.0 * (y * (a * c)))) elif t <= 6.5e-22: tmp = x / (x + (y * math.exp((2.0 * (b * (((0.6666666666666666 / t) + -0.8333333333333334) - 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 <= -1.95e-101) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 6.8e-183) 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 <= 3.25e-125) tmp = Float64(x / Float64(x + Float64(2.0 * Float64(y * Float64(a * c))))); elseif (t <= 6.5e-22) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334) - 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 <= -1.95e-101) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 6.8e-183) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 3.25e-125) tmp = x / (x + (2.0 * (y * (a * c)))); elseif (t <= 6.5e-22) tmp = x / (x + (y * exp((2.0 * (b * (((0.6666666666666666 / t) + -0.8333333333333334) - 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, -1.95e-101], 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, 6.8e-183], 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, 3.25e-125], N[(x / N[(x + N[(2.0 * N[(y * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e-22], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision] - a), $MachinePrecision]), $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 -1.95 \cdot 10^{-101}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{-183}:\\
\;\;\;\;\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 3.25 \cdot 10^{-125}:\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(y \cdot \left(a \cdot c\right)\right)}\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-22}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right) - a\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.95000000000000008e-101Initial program 87.0%
Taylor expanded in a around inf 95.8%
if -1.95000000000000008e-101 < t < 6.80000000000000029e-183Initial program 90.8%
Taylor expanded in t around 0 97.0%
if 6.80000000000000029e-183 < t < 3.2499999999999999e-125Initial program 90.0%
Taylor expanded in c around inf 75.7%
associate-*r/75.7%
metadata-eval75.7%
+-commutative75.7%
metadata-eval75.7%
associate-/r*75.7%
*-commutative75.7%
associate--l+75.7%
*-commutative75.7%
associate-/r*75.7%
metadata-eval75.7%
sub-neg75.7%
distribute-neg-frac75.7%
metadata-eval75.7%
Simplified75.7%
Taylor expanded in c around 0 50.4%
associate-*r*50.4%
associate--l+50.4%
associate-*r/50.4%
metadata-eval50.4%
Simplified50.4%
Taylor expanded in a around inf 82.7%
*-commutative82.7%
associate-*r*82.7%
Simplified82.7%
if 3.2499999999999999e-125 < t < 6.50000000000000043e-22Initial program 88.9%
Taylor expanded in b around inf 71.6%
*-commutative71.6%
sub-neg71.6%
associate-*r/71.6%
metadata-eval71.6%
distribute-neg-in71.6%
metadata-eval71.6%
sub-neg71.6%
associate-+r-71.6%
Simplified71.6%
if 6.50000000000000043e-22 < t Initial program 96.8%
Taylor expanded in t around inf 90.5%
mul-1-neg90.5%
distribute-rgt-neg-in90.5%
distribute-neg-in90.5%
metadata-eval90.5%
sub-neg90.5%
Simplified90.5%
Final simplification90.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a)))))))))
(if (<= t -2e-310)
t_1
(if (<= t 2.5e-186)
(/ x (+ x (* y (exp (/ (* b 1.3333333333333333) t)))))
(if (<= t 9.2e-119)
(/ x (+ x (* 2.0 (* y (* a c)))))
(if (<= t 1.55e-99)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 1.22e-58)
(/
x
(-
x
(*
y
(+
-1.0
(*
2.0
(*
b
(+
(+ a 0.8333333333333334)
(* 0.6666666666666666 (/ -1.0 t)))))))))
(if (<= t 2.7e-17) 1.0 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
double tmp;
if (t <= -2e-310) {
tmp = t_1;
} else if (t <= 2.5e-186) {
tmp = x / (x + (y * exp(((b * 1.3333333333333333) / t))));
} else if (t <= 9.2e-119) {
tmp = x / (x + (2.0 * (y * (a * c))));
} else if (t <= 1.55e-99) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 1.22e-58) {
tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t))))))));
} else if (t <= 2.7e-17) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
if (t <= (-2d-310)) then
tmp = t_1
else if (t <= 2.5d-186) then
tmp = x / (x + (y * exp(((b * 1.3333333333333333d0) / t))))
else if (t <= 9.2d-119) then
tmp = x / (x + (2.0d0 * (y * (a * c))))
else if (t <= 1.55d-99) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 1.22d-58) then
tmp = x / (x - (y * ((-1.0d0) + (2.0d0 * (b * ((a + 0.8333333333333334d0) + (0.6666666666666666d0 * ((-1.0d0) / t))))))))
else if (t <= 2.7d-17) then
tmp = 1.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
double tmp;
if (t <= -2e-310) {
tmp = t_1;
} else if (t <= 2.5e-186) {
tmp = x / (x + (y * Math.exp(((b * 1.3333333333333333) / t))));
} else if (t <= 9.2e-119) {
tmp = x / (x + (2.0 * (y * (a * c))));
} else if (t <= 1.55e-99) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 1.22e-58) {
tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t))))))));
} else if (t <= 2.7e-17) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) tmp = 0 if t <= -2e-310: tmp = t_1 elif t <= 2.5e-186: tmp = x / (x + (y * math.exp(((b * 1.3333333333333333) / t)))) elif t <= 9.2e-119: tmp = x / (x + (2.0 * (y * (a * c)))) elif t <= 1.55e-99: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 1.22e-58: tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t)))))))) elif t <= 2.7e-17: tmp = 1.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))) tmp = 0.0 if (t <= -2e-310) tmp = t_1; elseif (t <= 2.5e-186) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b * 1.3333333333333333) / t))))); elseif (t <= 9.2e-119) tmp = Float64(x / Float64(x + Float64(2.0 * Float64(y * Float64(a * c))))); elseif (t <= 1.55e-99) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 1.22e-58) 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 (t <= 2.7e-17) tmp = 1.0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); tmp = 0.0; if (t <= -2e-310) tmp = t_1; elseif (t <= 2.5e-186) tmp = x / (x + (y * exp(((b * 1.3333333333333333) / t)))); elseif (t <= 9.2e-119) tmp = x / (x + (2.0 * (y * (a * c)))); elseif (t <= 1.55e-99) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 1.22e-58) tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t)))))))); elseif (t <= 2.7e-17) tmp = 1.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2e-310], t$95$1, If[LessEqual[t, 2.5e-186], N[(x / N[(x + N[(y * N[Exp[N[(N[(b * 1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.2e-119], N[(x / N[(x + N[(2.0 * N[(y * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.55e-99], 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, 1.22e-58], 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[t, 2.7e-17], 1.0, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{if}\;t \leq -2 \cdot 10^{-310}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-186}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{b \cdot 1.3333333333333333}{t}}}\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{-119}:\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(y \cdot \left(a \cdot c\right)\right)}\\
\mathbf{elif}\;t \leq 1.55 \cdot 10^{-99}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 1.22 \cdot 10^{-58}:\\
\;\;\;\;\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}\;t \leq 2.7 \cdot 10^{-17}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.999999999999994e-310 or 2.7000000000000001e-17 < t Initial program 94.6%
Taylor expanded in t around inf 90.0%
mul-1-neg90.0%
distribute-rgt-neg-in90.0%
distribute-neg-in90.0%
metadata-eval90.0%
sub-neg90.0%
Simplified90.0%
if -1.999999999999994e-310 < t < 2.5e-186Initial program 87.0%
Taylor expanded in t around 0 91.4%
Taylor expanded in b around inf 74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in b around 0 74.9%
associate-*r/74.9%
Simplified74.9%
if 2.5e-186 < t < 9.19999999999999973e-119Initial program 91.3%
Taylor expanded in c around inf 66.2%
associate-*r/66.2%
metadata-eval66.2%
+-commutative66.2%
metadata-eval66.2%
associate-/r*66.2%
*-commutative66.2%
associate--l+66.2%
*-commutative66.2%
associate-/r*66.2%
metadata-eval66.2%
sub-neg66.2%
distribute-neg-frac66.2%
metadata-eval66.2%
Simplified66.2%
Taylor expanded in c around 0 48.5%
associate-*r*48.5%
associate--l+48.5%
associate-*r/48.5%
metadata-eval48.5%
Simplified48.5%
Taylor expanded in a around inf 80.8%
*-commutative80.8%
associate-*r*80.8%
Simplified80.8%
if 9.19999999999999973e-119 < t < 1.5499999999999999e-99Initial program 100.0%
Taylor expanded in a around inf 62.0%
if 1.5499999999999999e-99 < t < 1.2199999999999999e-58Initial program 80.0%
Taylor expanded in b around inf 80.8%
*-commutative80.8%
sub-neg80.8%
associate-*r/80.8%
metadata-eval80.8%
distribute-neg-in80.8%
metadata-eval80.8%
sub-neg80.8%
associate-+r-80.8%
Simplified80.8%
Taylor expanded in b around 0 61.6%
if 1.2199999999999999e-58 < t < 2.7000000000000001e-17Initial program 91.7%
Taylor expanded in t around inf 27.4%
mul-1-neg27.4%
distribute-rgt-neg-in27.4%
distribute-neg-in27.4%
metadata-eval27.4%
sub-neg27.4%
Simplified27.4%
Taylor expanded in x around inf 83.9%
Final simplification85.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x y)))
(t_2
(/
x
(+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a)))))))))
(if (<= t -5e-309)
t_2
(if (<= t 2.15e-186)
(/ x (+ x (* y (exp (/ (* b 1.3333333333333333) t)))))
(if (<= t 9e-119)
(/ x (+ x (* 2.0 (* y (* a c)))))
(if (<= t 2.65e-99)
(cbrt (* t_1 (* t_1 t_1)))
(if (<= t 1.1e-58)
(/
x
(-
x
(*
y
(+
-1.0
(*
2.0
(*
b
(+
(+ a 0.8333333333333334)
(* 0.6666666666666666 (/ -1.0 t)))))))))
(if (<= t 1e-17) 1.0 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + y);
double t_2 = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
double tmp;
if (t <= -5e-309) {
tmp = t_2;
} else if (t <= 2.15e-186) {
tmp = x / (x + (y * exp(((b * 1.3333333333333333) / t))));
} else if (t <= 9e-119) {
tmp = x / (x + (2.0 * (y * (a * c))));
} else if (t <= 2.65e-99) {
tmp = cbrt((t_1 * (t_1 * t_1)));
} else if (t <= 1.1e-58) {
tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t))))))));
} else if (t <= 1e-17) {
tmp = 1.0;
} else {
tmp = t_2;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + y);
double t_2 = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
double tmp;
if (t <= -5e-309) {
tmp = t_2;
} else if (t <= 2.15e-186) {
tmp = x / (x + (y * Math.exp(((b * 1.3333333333333333) / t))));
} else if (t <= 9e-119) {
tmp = x / (x + (2.0 * (y * (a * c))));
} else if (t <= 2.65e-99) {
tmp = Math.cbrt((t_1 * (t_1 * t_1)));
} else if (t <= 1.1e-58) {
tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t))))))));
} else if (t <= 1e-17) {
tmp = 1.0;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + y)) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))) tmp = 0.0 if (t <= -5e-309) tmp = t_2; elseif (t <= 2.15e-186) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b * 1.3333333333333333) / t))))); elseif (t <= 9e-119) tmp = Float64(x / Float64(x + Float64(2.0 * Float64(y * Float64(a * c))))); elseif (t <= 2.65e-99) tmp = cbrt(Float64(t_1 * Float64(t_1 * t_1))); elseif (t <= 1.1e-58) 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 (t <= 1e-17) tmp = 1.0; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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]}, If[LessEqual[t, -5e-309], t$95$2, If[LessEqual[t, 2.15e-186], N[(x / N[(x + N[(y * N[Exp[N[(N[(b * 1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9e-119], N[(x / N[(x + N[(2.0 * N[(y * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.65e-99], N[Power[N[(t$95$1 * N[(t$95$1 * t$95$1), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], If[LessEqual[t, 1.1e-58], 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[t, 1e-17], 1.0, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y}\\
t_2 := \frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{if}\;t \leq -5 \cdot 10^{-309}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 2.15 \cdot 10^{-186}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{b \cdot 1.3333333333333333}{t}}}\\
\mathbf{elif}\;t \leq 9 \cdot 10^{-119}:\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(y \cdot \left(a \cdot c\right)\right)}\\
\mathbf{elif}\;t \leq 2.65 \cdot 10^{-99}:\\
\;\;\;\;\sqrt[3]{t_1 \cdot \left(t_1 \cdot t_1\right)}\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{-58}:\\
\;\;\;\;\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}\;t \leq 10^{-17}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -4.9999999999999995e-309 or 1.00000000000000007e-17 < t Initial program 94.6%
Taylor expanded in t around inf 90.0%
mul-1-neg90.0%
distribute-rgt-neg-in90.0%
distribute-neg-in90.0%
metadata-eval90.0%
sub-neg90.0%
Simplified90.0%
if -4.9999999999999995e-309 < t < 2.14999999999999995e-186Initial program 87.0%
Taylor expanded in t around 0 91.4%
Taylor expanded in b around inf 74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in b around 0 74.9%
associate-*r/74.9%
Simplified74.9%
if 2.14999999999999995e-186 < t < 9.0000000000000005e-119Initial program 91.3%
Taylor expanded in c around inf 66.2%
associate-*r/66.2%
metadata-eval66.2%
+-commutative66.2%
metadata-eval66.2%
associate-/r*66.2%
*-commutative66.2%
associate--l+66.2%
*-commutative66.2%
associate-/r*66.2%
metadata-eval66.2%
sub-neg66.2%
distribute-neg-frac66.2%
metadata-eval66.2%
Simplified66.2%
Taylor expanded in c around 0 48.5%
associate-*r*48.5%
associate--l+48.5%
associate-*r/48.5%
metadata-eval48.5%
Simplified48.5%
Taylor expanded in a around inf 80.8%
*-commutative80.8%
associate-*r*80.8%
Simplified80.8%
if 9.0000000000000005e-119 < t < 2.6500000000000002e-99Initial program 100.0%
Taylor expanded in a around inf 62.0%
Taylor expanded in a around 0 42.3%
add-cbrt-cube80.4%
+-commutative80.4%
+-commutative80.4%
+-commutative80.4%
Applied egg-rr80.4%
associate-*l*80.4%
Simplified80.4%
if 2.6500000000000002e-99 < t < 1.10000000000000003e-58Initial program 80.0%
Taylor expanded in b around inf 80.8%
*-commutative80.8%
sub-neg80.8%
associate-*r/80.8%
metadata-eval80.8%
distribute-neg-in80.8%
metadata-eval80.8%
sub-neg80.8%
associate-+r-80.8%
Simplified80.8%
Taylor expanded in b around 0 61.6%
if 1.10000000000000003e-58 < t < 1.00000000000000007e-17Initial program 91.7%
Taylor expanded in t around inf 27.4%
mul-1-neg27.4%
distribute-rgt-neg-in27.4%
distribute-neg-in27.4%
metadata-eval27.4%
sub-neg27.4%
Simplified27.4%
Taylor expanded in x around inf 83.9%
Final simplification86.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a)))))))))
(if (<= t -2e-310)
t_1
(if (<= t 2.65e-186)
(/ x (+ x (* y (exp (/ (* b 1.3333333333333333) t)))))
(if (<= t 2.25e-119)
(/ x (+ x (* 2.0 (* y (* a c)))))
(if (<= t 8.5e-22)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
b
(- (+ (/ 0.6666666666666666 t) -0.8333333333333334) 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 * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
double tmp;
if (t <= -2e-310) {
tmp = t_1;
} else if (t <= 2.65e-186) {
tmp = x / (x + (y * exp(((b * 1.3333333333333333) / t))));
} else if (t <= 2.25e-119) {
tmp = x / (x + (2.0 * (y * (a * c))));
} else if (t <= 8.5e-22) {
tmp = x / (x + (y * exp((2.0 * (b * (((0.6666666666666666 / t) + -0.8333333333333334) - 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 * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
if (t <= (-2d-310)) then
tmp = t_1
else if (t <= 2.65d-186) then
tmp = x / (x + (y * exp(((b * 1.3333333333333333d0) / t))))
else if (t <= 2.25d-119) then
tmp = x / (x + (2.0d0 * (y * (a * c))))
else if (t <= 8.5d-22) then
tmp = x / (x + (y * exp((2.0d0 * (b * (((0.6666666666666666d0 / t) + (-0.8333333333333334d0)) - 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 * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
double tmp;
if (t <= -2e-310) {
tmp = t_1;
} else if (t <= 2.65e-186) {
tmp = x / (x + (y * Math.exp(((b * 1.3333333333333333) / t))));
} else if (t <= 2.25e-119) {
tmp = x / (x + (2.0 * (y * (a * c))));
} else if (t <= 8.5e-22) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (((0.6666666666666666 / t) + -0.8333333333333334) - a))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) tmp = 0 if t <= -2e-310: tmp = t_1 elif t <= 2.65e-186: tmp = x / (x + (y * math.exp(((b * 1.3333333333333333) / t)))) elif t <= 2.25e-119: tmp = x / (x + (2.0 * (y * (a * c)))) elif t <= 8.5e-22: tmp = x / (x + (y * math.exp((2.0 * (b * (((0.6666666666666666 / t) + -0.8333333333333334) - a)))))) 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(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))) tmp = 0.0 if (t <= -2e-310) tmp = t_1; elseif (t <= 2.65e-186) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b * 1.3333333333333333) / t))))); elseif (t <= 2.25e-119) tmp = Float64(x / Float64(x + Float64(2.0 * Float64(y * Float64(a * c))))); elseif (t <= 8.5e-22) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334) - 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 * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); tmp = 0.0; if (t <= -2e-310) tmp = t_1; elseif (t <= 2.65e-186) tmp = x / (x + (y * exp(((b * 1.3333333333333333) / t)))); elseif (t <= 2.25e-119) tmp = x / (x + (2.0 * (y * (a * c)))); elseif (t <= 8.5e-22) tmp = x / (x + (y * exp((2.0 * (b * (((0.6666666666666666 / t) + -0.8333333333333334) - 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[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2e-310], t$95$1, If[LessEqual[t, 2.65e-186], N[(x / N[(x + N[(y * N[Exp[N[(N[(b * 1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.25e-119], N[(x / N[(x + N[(2.0 * N[(y * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e-22], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{if}\;t \leq -2 \cdot 10^{-310}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.65 \cdot 10^{-186}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{b \cdot 1.3333333333333333}{t}}}\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{-119}:\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(y \cdot \left(a \cdot c\right)\right)}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-22}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right) - a\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.999999999999994e-310 or 8.5000000000000001e-22 < t Initial program 94.6%
Taylor expanded in t around inf 89.6%
mul-1-neg89.6%
distribute-rgt-neg-in89.6%
distribute-neg-in89.6%
metadata-eval89.6%
sub-neg89.6%
Simplified89.6%
if -1.999999999999994e-310 < t < 2.65000000000000011e-186Initial program 87.0%
Taylor expanded in t around 0 91.4%
Taylor expanded in b around inf 74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in b around 0 74.9%
associate-*r/74.9%
Simplified74.9%
if 2.65000000000000011e-186 < t < 2.2500000000000001e-119Initial program 90.9%
Taylor expanded in c around inf 69.1%
associate-*r/69.1%
metadata-eval69.1%
+-commutative69.1%
metadata-eval69.1%
associate-/r*69.1%
*-commutative69.1%
associate--l+69.1%
*-commutative69.1%
associate-/r*69.1%
metadata-eval69.1%
sub-neg69.1%
distribute-neg-frac69.1%
metadata-eval69.1%
Simplified69.1%
Taylor expanded in c around 0 50.5%
associate-*r*50.5%
associate--l+50.5%
associate-*r/50.5%
metadata-eval50.5%
Simplified50.5%
Taylor expanded in a around inf 79.9%
*-commutative79.9%
associate-*r*79.9%
Simplified79.9%
if 2.2500000000000001e-119 < t < 8.5000000000000001e-22Initial program 88.5%
Taylor expanded in b around inf 70.5%
*-commutative70.5%
sub-neg70.5%
associate-*r/70.5%
metadata-eval70.5%
distribute-neg-in70.5%
metadata-eval70.5%
sub-neg70.5%
associate-+r-70.5%
Simplified70.5%
Final simplification85.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (- b c) -1.6666666666666667)))))))
(if (<= t -2e-310)
t_1
(if (<= t 2.8e-186)
(/ x (+ x (* y (exp (/ (* b 1.3333333333333333) t)))))
(if (<= t 5.8e-119)
(/ x (+ x (* 2.0 (* y (* a c)))))
(if (<= t 4.8e-91)
(/ x (- x (- (* 2.0 (* a (* y (- b c)))) y)))
(if (<= t 1.02e-59)
(/
x
(-
x
(*
y
(+
-1.0
(*
2.0
(*
b
(+
(+ a 0.8333333333333334)
(* 0.6666666666666666 (/ -1.0 t)))))))))
(if (<= t 4e-17) 1.0 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp(((b - c) * -1.6666666666666667))));
double tmp;
if (t <= -2e-310) {
tmp = t_1;
} else if (t <= 2.8e-186) {
tmp = x / (x + (y * exp(((b * 1.3333333333333333) / t))));
} else if (t <= 5.8e-119) {
tmp = x / (x + (2.0 * (y * (a * c))));
} else if (t <= 4.8e-91) {
tmp = x / (x - ((2.0 * (a * (y * (b - c)))) - y));
} else if (t <= 1.02e-59) {
tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t))))))));
} else if (t <= 4e-17) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp(((b - c) * (-1.6666666666666667d0)))))
if (t <= (-2d-310)) then
tmp = t_1
else if (t <= 2.8d-186) then
tmp = x / (x + (y * exp(((b * 1.3333333333333333d0) / t))))
else if (t <= 5.8d-119) then
tmp = x / (x + (2.0d0 * (y * (a * c))))
else if (t <= 4.8d-91) then
tmp = x / (x - ((2.0d0 * (a * (y * (b - c)))) - y))
else if (t <= 1.02d-59) then
tmp = x / (x - (y * ((-1.0d0) + (2.0d0 * (b * ((a + 0.8333333333333334d0) + (0.6666666666666666d0 * ((-1.0d0) / t))))))))
else if (t <= 4d-17) then
tmp = 1.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
double tmp;
if (t <= -2e-310) {
tmp = t_1;
} else if (t <= 2.8e-186) {
tmp = x / (x + (y * Math.exp(((b * 1.3333333333333333) / t))));
} else if (t <= 5.8e-119) {
tmp = x / (x + (2.0 * (y * (a * c))));
} else if (t <= 4.8e-91) {
tmp = x / (x - ((2.0 * (a * (y * (b - c)))) - y));
} else if (t <= 1.02e-59) {
tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t))))))));
} else if (t <= 4e-17) {
tmp = 1.0;
} 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 <= -2e-310: tmp = t_1 elif t <= 2.8e-186: tmp = x / (x + (y * math.exp(((b * 1.3333333333333333) / t)))) elif t <= 5.8e-119: tmp = x / (x + (2.0 * (y * (a * c)))) elif t <= 4.8e-91: tmp = x / (x - ((2.0 * (a * (y * (b - c)))) - y)) elif t <= 1.02e-59: tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t)))))))) elif t <= 4e-17: tmp = 1.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))) tmp = 0.0 if (t <= -2e-310) tmp = t_1; elseif (t <= 2.8e-186) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b * 1.3333333333333333) / t))))); elseif (t <= 5.8e-119) tmp = Float64(x / Float64(x + Float64(2.0 * Float64(y * Float64(a * c))))); elseif (t <= 4.8e-91) tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(a * Float64(y * Float64(b - c)))) - y))); elseif (t <= 1.02e-59) 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 (t <= 4e-17) tmp = 1.0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); tmp = 0.0; if (t <= -2e-310) tmp = t_1; elseif (t <= 2.8e-186) tmp = x / (x + (y * exp(((b * 1.3333333333333333) / t)))); elseif (t <= 5.8e-119) tmp = x / (x + (2.0 * (y * (a * c)))); elseif (t <= 4.8e-91) tmp = x / (x - ((2.0 * (a * (y * (b - c)))) - y)); elseif (t <= 1.02e-59) tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t)))))))); elseif (t <= 4e-17) tmp = 1.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2e-310], t$95$1, If[LessEqual[t, 2.8e-186], N[(x / N[(x + N[(y * N[Exp[N[(N[(b * 1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.8e-119], N[(x / N[(x + N[(2.0 * N[(y * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.8e-91], N[(x / N[(x - N[(N[(2.0 * N[(a * N[(y * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.02e-59], 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[t, 4e-17], 1.0, 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 -2 \cdot 10^{-310}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-186}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{b \cdot 1.3333333333333333}{t}}}\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{-119}:\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(y \cdot \left(a \cdot c\right)\right)}\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{-91}:\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \left(a \cdot \left(y \cdot \left(b - c\right)\right)\right) - y\right)}\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{-59}:\\
\;\;\;\;\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}\;t \leq 4 \cdot 10^{-17}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.999999999999994e-310 or 4.00000000000000029e-17 < t Initial program 94.6%
Taylor expanded in t around inf 90.0%
mul-1-neg90.0%
distribute-rgt-neg-in90.0%
distribute-neg-in90.0%
metadata-eval90.0%
sub-neg90.0%
Simplified90.0%
Taylor expanded in a around 0 82.1%
if -1.999999999999994e-310 < t < 2.79999999999999983e-186Initial program 87.0%
Taylor expanded in t around 0 91.4%
Taylor expanded in b around inf 74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in b around 0 74.9%
associate-*r/74.9%
Simplified74.9%
if 2.79999999999999983e-186 < t < 5.8e-119Initial program 91.3%
Taylor expanded in c around inf 66.2%
associate-*r/66.2%
metadata-eval66.2%
+-commutative66.2%
metadata-eval66.2%
associate-/r*66.2%
*-commutative66.2%
associate--l+66.2%
*-commutative66.2%
associate-/r*66.2%
metadata-eval66.2%
sub-neg66.2%
distribute-neg-frac66.2%
metadata-eval66.2%
Simplified66.2%
Taylor expanded in c around 0 48.5%
associate-*r*48.5%
associate--l+48.5%
associate-*r/48.5%
metadata-eval48.5%
Simplified48.5%
Taylor expanded in a around inf 80.8%
*-commutative80.8%
associate-*r*80.8%
Simplified80.8%
if 5.8e-119 < t < 4.80000000000000022e-91Initial program 100.0%
Taylor expanded in a around inf 52.0%
Taylor expanded in a around 0 52.0%
if 4.80000000000000022e-91 < t < 1.01999999999999996e-59Initial program 71.4%
Taylor expanded in b around inf 86.5%
*-commutative86.5%
sub-neg86.5%
associate-*r/86.5%
metadata-eval86.5%
distribute-neg-in86.5%
metadata-eval86.5%
sub-neg86.5%
associate-+r-86.5%
Simplified86.5%
Taylor expanded in b around 0 72.8%
if 1.01999999999999996e-59 < t < 4.00000000000000029e-17Initial program 91.7%
Taylor expanded in t around inf 27.4%
mul-1-neg27.4%
distribute-rgt-neg-in27.4%
distribute-neg-in27.4%
metadata-eval27.4%
sub-neg27.4%
Simplified27.4%
Taylor expanded in x around inf 83.9%
Final simplification80.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -9.6e-170)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 2.7e-186)
(/ x (+ x (* y (exp (/ (* b 1.3333333333333333) t)))))
(if (<= t 1.25e-153)
(/ x (+ x (* 2.0 (* y (* a c)))))
(if (<= t 1.65e-127)
1.0
(if (<= t 2.1e-59)
(/
x
(-
x
(*
y
(+
-1.0
(*
2.0
(*
b
(+
(+ a 0.8333333333333334)
(* 0.6666666666666666 (/ -1.0 t)))))))))
(if (<= t 1.65e-18)
1.0
(/ 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 tmp;
if (t <= -9.6e-170) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 2.7e-186) {
tmp = x / (x + (y * exp(((b * 1.3333333333333333) / t))));
} else if (t <= 1.25e-153) {
tmp = x / (x + (2.0 * (y * (a * c))));
} else if (t <= 1.65e-127) {
tmp = 1.0;
} else if (t <= 2.1e-59) {
tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t))))))));
} else if (t <= 1.65e-18) {
tmp = 1.0;
} 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) :: tmp
if (t <= (-9.6d-170)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 2.7d-186) then
tmp = x / (x + (y * exp(((b * 1.3333333333333333d0) / t))))
else if (t <= 1.25d-153) then
tmp = x / (x + (2.0d0 * (y * (a * c))))
else if (t <= 1.65d-127) then
tmp = 1.0d0
else if (t <= 2.1d-59) then
tmp = x / (x - (y * ((-1.0d0) + (2.0d0 * (b * ((a + 0.8333333333333334d0) + (0.6666666666666666d0 * ((-1.0d0) / t))))))))
else if (t <= 1.65d-18) then
tmp = 1.0d0
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 tmp;
if (t <= -9.6e-170) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 2.7e-186) {
tmp = x / (x + (y * Math.exp(((b * 1.3333333333333333) / t))));
} else if (t <= 1.25e-153) {
tmp = x / (x + (2.0 * (y * (a * c))));
} else if (t <= 1.65e-127) {
tmp = 1.0;
} else if (t <= 2.1e-59) {
tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t))))))));
} else if (t <= 1.65e-18) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -9.6e-170: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 2.7e-186: tmp = x / (x + (y * math.exp(((b * 1.3333333333333333) / t)))) elif t <= 1.25e-153: tmp = x / (x + (2.0 * (y * (a * c)))) elif t <= 1.65e-127: tmp = 1.0 elif t <= 2.1e-59: tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t)))))))) elif t <= 1.65e-18: tmp = 1.0 else: tmp = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -9.6e-170) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 2.7e-186) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b * 1.3333333333333333) / t))))); elseif (t <= 1.25e-153) tmp = Float64(x / Float64(x + Float64(2.0 * Float64(y * Float64(a * c))))); elseif (t <= 1.65e-127) tmp = 1.0; elseif (t <= 2.1e-59) 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 (t <= 1.65e-18) tmp = 1.0; 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) tmp = 0.0; if (t <= -9.6e-170) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 2.7e-186) tmp = x / (x + (y * exp(((b * 1.3333333333333333) / t)))); elseif (t <= 1.25e-153) tmp = x / (x + (2.0 * (y * (a * c)))); elseif (t <= 1.65e-127) tmp = 1.0; elseif (t <= 2.1e-59) tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t)))))))); elseif (t <= 1.65e-18) tmp = 1.0; else tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -9.6e-170], 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, 2.7e-186], N[(x / N[(x + N[(y * N[Exp[N[(N[(b * 1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.25e-153], N[(x / N[(x + N[(2.0 * N[(y * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.65e-127], 1.0, If[LessEqual[t, 2.1e-59], 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[t, 1.65e-18], 1.0, 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}
\mathbf{if}\;t \leq -9.6 \cdot 10^{-170}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-186}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{b \cdot 1.3333333333333333}{t}}}\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-153}:\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(y \cdot \left(a \cdot c\right)\right)}\\
\mathbf{elif}\;t \leq 1.65 \cdot 10^{-127}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{-59}:\\
\;\;\;\;\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}\;t \leq 1.65 \cdot 10^{-18}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -9.5999999999999998e-170Initial program 83.9%
Taylor expanded in a around inf 93.8%
if -9.5999999999999998e-170 < t < 2.6999999999999999e-186Initial program 92.9%
Taylor expanded in t around 0 96.5%
Taylor expanded in b around inf 79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in b around 0 79.3%
associate-*r/79.3%
Simplified79.3%
if 2.6999999999999999e-186 < t < 1.25000000000000008e-153Initial program 90.0%
Taylor expanded in c around inf 61.3%
associate-*r/61.3%
metadata-eval61.3%
+-commutative61.3%
metadata-eval61.3%
associate-/r*61.3%
*-commutative61.3%
associate--l+61.3%
*-commutative61.3%
associate-/r*61.3%
metadata-eval61.3%
sub-neg61.3%
distribute-neg-frac61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in c around 0 59.1%
associate-*r*59.1%
associate--l+59.1%
associate-*r/59.1%
metadata-eval59.1%
Simplified59.1%
Taylor expanded in a around inf 84.6%
*-commutative84.6%
associate-*r*84.6%
Simplified84.6%
if 1.25000000000000008e-153 < t < 1.6499999999999999e-127 or 2.09999999999999997e-59 < t < 1.6500000000000001e-18Initial program 95.0%
Taylor expanded in t around inf 17.6%
mul-1-neg17.6%
distribute-rgt-neg-in17.6%
distribute-neg-in17.6%
metadata-eval17.6%
sub-neg17.6%
Simplified17.6%
Taylor expanded in x around inf 85.5%
if 1.6499999999999999e-127 < t < 2.09999999999999997e-59Initial program 85.0%
Taylor expanded in b around inf 71.2%
*-commutative71.2%
sub-neg71.2%
associate-*r/71.2%
metadata-eval71.2%
distribute-neg-in71.2%
metadata-eval71.2%
sub-neg71.2%
associate-+r-71.2%
Simplified71.2%
Taylor expanded in b around 0 57.7%
if 1.6500000000000001e-18 < t Initial program 96.7%
Taylor expanded in t around inf 91.2%
mul-1-neg91.2%
distribute-rgt-neg-in91.2%
distribute-neg-in91.2%
metadata-eval91.2%
sub-neg91.2%
Simplified91.2%
Taylor expanded in a around 0 81.4%
Final simplification81.0%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= b -6.2e+16) (not (<= b 2.4e+51)))
(/
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 ((b <= -6.2e+16) || !(b <= 2.4e+51)) {
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 ((b <= (-6.2d+16)) .or. (.not. (b <= 2.4d+51))) 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 ((b <= -6.2e+16) || !(b <= 2.4e+51)) {
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 (b <= -6.2e+16) or not (b <= 2.4e+51): 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 ((b <= -6.2e+16) || !(b <= 2.4e+51)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(Float64(0.6666666666666666 / t) + -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 ((b <= -6.2e+16) || ~((b <= 2.4e+51))) 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[Or[LessEqual[b, -6.2e+16], N[Not[LessEqual[b, 2.4e+51]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision] - a), $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}\;b \leq -6.2 \cdot 10^{+16} \lor \neg \left(b \leq 2.4 \cdot 10^{+51}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right) - a\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 b < -6.2e16 or 2.3999999999999999e51 < b Initial program 87.9%
Taylor expanded in b around inf 94.1%
*-commutative94.1%
sub-neg94.1%
associate-*r/94.1%
metadata-eval94.1%
distribute-neg-in94.1%
metadata-eval94.1%
sub-neg94.1%
associate-+r-94.1%
Simplified94.1%
if -6.2e16 < b < 2.3999999999999999e51Initial program 97.2%
Taylor expanded in c around inf 78.8%
associate-*r/78.8%
metadata-eval78.8%
+-commutative78.8%
metadata-eval78.8%
associate-/r*78.8%
*-commutative78.8%
associate--l+78.8%
*-commutative78.8%
associate-/r*78.8%
metadata-eval78.8%
sub-neg78.8%
distribute-neg-frac78.8%
metadata-eval78.8%
Simplified78.8%
Final simplification85.7%
(FPCore (x y z t a b c) :precision binary64 (if (<= (- b c) -10000000.0) (/ x (* y (exp (* (- b c) -1.6666666666666667)))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -10000000.0) {
tmp = x / (y * exp(((b - c) * -1.6666666666666667)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= (-10000000.0d0)) then
tmp = x / (y * exp(((b - c) * (-1.6666666666666667d0))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -10000000.0) {
tmp = x / (y * Math.exp(((b - c) * -1.6666666666666667)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -10000000.0: tmp = x / (y * math.exp(((b - c) * -1.6666666666666667))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -10000000.0) tmp = Float64(x / Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= -10000000.0) tmp = x / (y * exp(((b - c) * -1.6666666666666667))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -10000000.0], N[(x / N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -10000000:\\
\;\;\;\;\frac{x}{y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -1e7Initial program 91.0%
Taylor expanded in t around inf 75.6%
mul-1-neg75.6%
distribute-rgt-neg-in75.6%
distribute-neg-in75.6%
metadata-eval75.6%
sub-neg75.6%
Simplified75.6%
Taylor expanded in a around 0 70.3%
exp-prod70.3%
Simplified70.3%
Taylor expanded in x around 0 70.3%
if -1e7 < (-.f64 b c) Initial program 94.5%
Taylor expanded in t around inf 70.1%
mul-1-neg70.1%
distribute-rgt-neg-in70.1%
distribute-neg-in70.1%
metadata-eval70.1%
sub-neg70.1%
Simplified70.1%
Taylor expanded in x around inf 69.3%
Final simplification69.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -4000000000.0)
(/ x (* y (exp (* b -1.6666666666666667))))
(if (<= b -5e-224)
1.0
(if (<= b -8e-265)
(/
x
(+
x
(*
y
(-
1.0
(*
(* 2.0 c)
(- (- (/ 0.6666666666666666 t) a) 0.8333333333333334))))))
(if (<= b 2.75e+212)
1.0
(if (<= b 2.9e+243)
(/ x (+ x (* 1.3333333333333333 (/ y (/ t b)))))
1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -4000000000.0) {
tmp = x / (y * exp((b * -1.6666666666666667)));
} else if (b <= -5e-224) {
tmp = 1.0;
} else if (b <= -8e-265) {
tmp = x / (x + (y * (1.0 - ((2.0 * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))));
} else if (b <= 2.75e+212) {
tmp = 1.0;
} else if (b <= 2.9e+243) {
tmp = x / (x + (1.3333333333333333 * (y / (t / b))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-4000000000.0d0)) then
tmp = x / (y * exp((b * (-1.6666666666666667d0))))
else if (b <= (-5d-224)) then
tmp = 1.0d0
else if (b <= (-8d-265)) then
tmp = x / (x + (y * (1.0d0 - ((2.0d0 * c) * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0)))))
else if (b <= 2.75d+212) then
tmp = 1.0d0
else if (b <= 2.9d+243) then
tmp = x / (x + (1.3333333333333333d0 * (y / (t / b))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -4000000000.0) {
tmp = x / (y * Math.exp((b * -1.6666666666666667)));
} else if (b <= -5e-224) {
tmp = 1.0;
} else if (b <= -8e-265) {
tmp = x / (x + (y * (1.0 - ((2.0 * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))));
} else if (b <= 2.75e+212) {
tmp = 1.0;
} else if (b <= 2.9e+243) {
tmp = x / (x + (1.3333333333333333 * (y / (t / b))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -4000000000.0: tmp = x / (y * math.exp((b * -1.6666666666666667))) elif b <= -5e-224: tmp = 1.0 elif b <= -8e-265: tmp = x / (x + (y * (1.0 - ((2.0 * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))) elif b <= 2.75e+212: tmp = 1.0 elif b <= 2.9e+243: tmp = x / (x + (1.3333333333333333 * (y / (t / b)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -4000000000.0) tmp = Float64(x / Float64(y * exp(Float64(b * -1.6666666666666667)))); elseif (b <= -5e-224) tmp = 1.0; elseif (b <= -8e-265) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(Float64(2.0 * c) * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334)))))); elseif (b <= 2.75e+212) tmp = 1.0; elseif (b <= 2.9e+243) tmp = Float64(x / Float64(x + Float64(1.3333333333333333 * Float64(y / Float64(t / b))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -4000000000.0) tmp = x / (y * exp((b * -1.6666666666666667))); elseif (b <= -5e-224) tmp = 1.0; elseif (b <= -8e-265) tmp = x / (x + (y * (1.0 - ((2.0 * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))); elseif (b <= 2.75e+212) tmp = 1.0; elseif (b <= 2.9e+243) tmp = x / (x + (1.3333333333333333 * (y / (t / b)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -4000000000.0], N[(x / N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5e-224], 1.0, If[LessEqual[b, -8e-265], N[(x / N[(x + N[(y * N[(1.0 - N[(N[(2.0 * c), $MachinePrecision] * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.75e+212], 1.0, If[LessEqual[b, 2.9e+243], N[(x / N[(x + N[(1.3333333333333333 * N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4000000000:\\
\;\;\;\;\frac{x}{y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b \leq -5 \cdot 10^{-224}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -8 \cdot 10^{-265}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - \left(2 \cdot c\right) \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right)}\\
\mathbf{elif}\;b \leq 2.75 \cdot 10^{+212}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{+243}:\\
\;\;\;\;\frac{x}{x + 1.3333333333333333 \cdot \frac{y}{\frac{t}{b}}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -4e9Initial program 88.3%
Taylor expanded in t around inf 80.1%
mul-1-neg80.1%
distribute-rgt-neg-in80.1%
distribute-neg-in80.1%
metadata-eval80.1%
sub-neg80.1%
Simplified80.1%
Taylor expanded in a around 0 75.8%
exp-prod75.8%
Simplified75.8%
Taylor expanded in x around 0 72.9%
Taylor expanded in b around inf 74.4%
*-commutative74.4%
Simplified74.4%
if -4e9 < b < -4.9999999999999999e-224 or -7.99999999999999988e-265 < b < 2.7499999999999998e212 or 2.90000000000000006e243 < b Initial 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 66.9%
if -4.9999999999999999e-224 < b < -7.99999999999999988e-265Initial program 92.3%
Taylor expanded in c around inf 85.2%
associate-*r/85.2%
metadata-eval85.2%
+-commutative85.2%
metadata-eval85.2%
associate-/r*85.2%
*-commutative85.2%
associate--l+85.2%
*-commutative85.2%
associate-/r*85.2%
metadata-eval85.2%
sub-neg85.2%
distribute-neg-frac85.2%
metadata-eval85.2%
Simplified85.2%
Taylor expanded in c around 0 70.4%
associate-*r*70.4%
associate--l+70.4%
associate-*r/70.4%
metadata-eval70.4%
Simplified70.4%
if 2.7499999999999998e212 < b < 2.90000000000000006e243Initial program 75.4%
Taylor expanded in t around 0 62.5%
Taylor expanded in b around inf 59.2%
*-commutative59.2%
Simplified59.2%
Taylor expanded in b around 0 95.5%
Taylor expanded in b around inf 87.9%
associate-/l*100.0%
Simplified100.0%
Final simplification70.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -3.6e+62)
(/ x (- x (- (* 2.0 (* a (* y (- b c)))) y)))
(if (<= b -5.1e-222)
1.0
(if (<= b -3.2e-266)
(/
x
(+
x
(*
y
(-
1.0
(*
(* 2.0 c)
(- (- (/ 0.6666666666666666 t) a) 0.8333333333333334))))))
(if (<= b 2.75e+212)
1.0
(if (<= b 9.5e+242)
(/ x (+ x (* 1.3333333333333333 (/ y (/ t b)))))
1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.6e+62) {
tmp = x / (x - ((2.0 * (a * (y * (b - c)))) - y));
} else if (b <= -5.1e-222) {
tmp = 1.0;
} else if (b <= -3.2e-266) {
tmp = x / (x + (y * (1.0 - ((2.0 * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))));
} else if (b <= 2.75e+212) {
tmp = 1.0;
} else if (b <= 9.5e+242) {
tmp = x / (x + (1.3333333333333333 * (y / (t / b))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-3.6d+62)) then
tmp = x / (x - ((2.0d0 * (a * (y * (b - c)))) - y))
else if (b <= (-5.1d-222)) then
tmp = 1.0d0
else if (b <= (-3.2d-266)) then
tmp = x / (x + (y * (1.0d0 - ((2.0d0 * c) * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0)))))
else if (b <= 2.75d+212) then
tmp = 1.0d0
else if (b <= 9.5d+242) then
tmp = x / (x + (1.3333333333333333d0 * (y / (t / b))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.6e+62) {
tmp = x / (x - ((2.0 * (a * (y * (b - c)))) - y));
} else if (b <= -5.1e-222) {
tmp = 1.0;
} else if (b <= -3.2e-266) {
tmp = x / (x + (y * (1.0 - ((2.0 * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))));
} else if (b <= 2.75e+212) {
tmp = 1.0;
} else if (b <= 9.5e+242) {
tmp = x / (x + (1.3333333333333333 * (y / (t / b))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -3.6e+62: tmp = x / (x - ((2.0 * (a * (y * (b - c)))) - y)) elif b <= -5.1e-222: tmp = 1.0 elif b <= -3.2e-266: tmp = x / (x + (y * (1.0 - ((2.0 * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))) elif b <= 2.75e+212: tmp = 1.0 elif b <= 9.5e+242: tmp = x / (x + (1.3333333333333333 * (y / (t / b)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -3.6e+62) tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(a * Float64(y * Float64(b - c)))) - y))); elseif (b <= -5.1e-222) tmp = 1.0; elseif (b <= -3.2e-266) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(Float64(2.0 * c) * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334)))))); elseif (b <= 2.75e+212) tmp = 1.0; elseif (b <= 9.5e+242) tmp = Float64(x / Float64(x + Float64(1.3333333333333333 * Float64(y / Float64(t / b))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -3.6e+62) tmp = x / (x - ((2.0 * (a * (y * (b - c)))) - y)); elseif (b <= -5.1e-222) tmp = 1.0; elseif (b <= -3.2e-266) tmp = x / (x + (y * (1.0 - ((2.0 * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))); elseif (b <= 2.75e+212) tmp = 1.0; elseif (b <= 9.5e+242) tmp = x / (x + (1.3333333333333333 * (y / (t / b)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -3.6e+62], N[(x / N[(x - N[(N[(2.0 * N[(a * N[(y * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.1e-222], 1.0, If[LessEqual[b, -3.2e-266], N[(x / N[(x + N[(y * N[(1.0 - N[(N[(2.0 * c), $MachinePrecision] * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.75e+212], 1.0, If[LessEqual[b, 9.5e+242], N[(x / N[(x + N[(1.3333333333333333 * N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.6 \cdot 10^{+62}:\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \left(a \cdot \left(y \cdot \left(b - c\right)\right)\right) - y\right)}\\
\mathbf{elif}\;b \leq -5.1 \cdot 10^{-222}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -3.2 \cdot 10^{-266}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - \left(2 \cdot c\right) \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right)}\\
\mathbf{elif}\;b \leq 2.75 \cdot 10^{+212}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{+242}:\\
\;\;\;\;\frac{x}{x + 1.3333333333333333 \cdot \frac{y}{\frac{t}{b}}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.6e62Initial program 86.1%
Taylor expanded in a around inf 71.2%
Taylor expanded in a around 0 54.9%
if -3.6e62 < b < -5.1000000000000002e-222 or -3.2e-266 < b < 2.7499999999999998e212 or 9.49999999999999995e242 < b Initial program 96.1%
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 65.7%
if -5.1000000000000002e-222 < b < -3.2e-266Initial program 92.3%
Taylor expanded in c around inf 85.2%
associate-*r/85.2%
metadata-eval85.2%
+-commutative85.2%
metadata-eval85.2%
associate-/r*85.2%
*-commutative85.2%
associate--l+85.2%
*-commutative85.2%
associate-/r*85.2%
metadata-eval85.2%
sub-neg85.2%
distribute-neg-frac85.2%
metadata-eval85.2%
Simplified85.2%
Taylor expanded in c around 0 70.4%
associate-*r*70.4%
associate--l+70.4%
associate-*r/70.4%
metadata-eval70.4%
Simplified70.4%
if 2.7499999999999998e212 < b < 9.49999999999999995e242Initial program 75.4%
Taylor expanded in t around 0 62.5%
Taylor expanded in b around inf 59.2%
*-commutative59.2%
Simplified59.2%
Taylor expanded in b around 0 95.5%
Taylor expanded in b around inf 87.9%
associate-/l*100.0%
Simplified100.0%
Final simplification64.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -4.3e+60)
(/
x
(-
x
(*
y
(+
-1.0
(*
2.0
(*
b
(+ (+ a 0.8333333333333334) (* 0.6666666666666666 (/ -1.0 t)))))))))
(if (<= b -7.8e-221)
1.0
(if (<= b -2.2e-265)
(/
x
(+
x
(*
y
(-
1.0
(*
(* 2.0 c)
(- (- (/ 0.6666666666666666 t) a) 0.8333333333333334))))))
(if (<= b 6.6e+211)
1.0
(if (<= b 1.4e+243)
(/ x (+ x (* 1.3333333333333333 (/ y (/ t b)))))
1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -4.3e+60) {
tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t))))))));
} else if (b <= -7.8e-221) {
tmp = 1.0;
} else if (b <= -2.2e-265) {
tmp = x / (x + (y * (1.0 - ((2.0 * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))));
} else if (b <= 6.6e+211) {
tmp = 1.0;
} else if (b <= 1.4e+243) {
tmp = x / (x + (1.3333333333333333 * (y / (t / b))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-4.3d+60)) then
tmp = x / (x - (y * ((-1.0d0) + (2.0d0 * (b * ((a + 0.8333333333333334d0) + (0.6666666666666666d0 * ((-1.0d0) / t))))))))
else if (b <= (-7.8d-221)) then
tmp = 1.0d0
else if (b <= (-2.2d-265)) then
tmp = x / (x + (y * (1.0d0 - ((2.0d0 * c) * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0)))))
else if (b <= 6.6d+211) then
tmp = 1.0d0
else if (b <= 1.4d+243) then
tmp = x / (x + (1.3333333333333333d0 * (y / (t / b))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -4.3e+60) {
tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t))))))));
} else if (b <= -7.8e-221) {
tmp = 1.0;
} else if (b <= -2.2e-265) {
tmp = x / (x + (y * (1.0 - ((2.0 * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))));
} else if (b <= 6.6e+211) {
tmp = 1.0;
} else if (b <= 1.4e+243) {
tmp = x / (x + (1.3333333333333333 * (y / (t / b))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -4.3e+60: tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t)))))))) elif b <= -7.8e-221: tmp = 1.0 elif b <= -2.2e-265: tmp = x / (x + (y * (1.0 - ((2.0 * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))) elif b <= 6.6e+211: tmp = 1.0 elif b <= 1.4e+243: tmp = x / (x + (1.3333333333333333 * (y / (t / b)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -4.3e+60) 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 <= -7.8e-221) tmp = 1.0; elseif (b <= -2.2e-265) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(Float64(2.0 * c) * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334)))))); elseif (b <= 6.6e+211) tmp = 1.0; elseif (b <= 1.4e+243) tmp = Float64(x / Float64(x + Float64(1.3333333333333333 * Float64(y / Float64(t / b))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -4.3e+60) tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t)))))))); elseif (b <= -7.8e-221) tmp = 1.0; elseif (b <= -2.2e-265) tmp = x / (x + (y * (1.0 - ((2.0 * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))); elseif (b <= 6.6e+211) tmp = 1.0; elseif (b <= 1.4e+243) tmp = x / (x + (1.3333333333333333 * (y / (t / b)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -4.3e+60], 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, -7.8e-221], 1.0, If[LessEqual[b, -2.2e-265], N[(x / N[(x + N[(y * N[(1.0 - N[(N[(2.0 * c), $MachinePrecision] * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.6e+211], 1.0, If[LessEqual[b, 1.4e+243], N[(x / N[(x + N[(1.3333333333333333 * N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.3 \cdot 10^{+60}:\\
\;\;\;\;\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 -7.8 \cdot 10^{-221}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -2.2 \cdot 10^{-265}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - \left(2 \cdot c\right) \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right)}\\
\mathbf{elif}\;b \leq 6.6 \cdot 10^{+211}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{+243}:\\
\;\;\;\;\frac{x}{x + 1.3333333333333333 \cdot \frac{y}{\frac{t}{b}}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -4.29999999999999971e60Initial program 86.1%
Taylor expanded in b around inf 96.6%
*-commutative96.6%
sub-neg96.6%
associate-*r/96.6%
metadata-eval96.6%
distribute-neg-in96.6%
metadata-eval96.6%
sub-neg96.6%
associate-+r-96.6%
Simplified96.6%
Taylor expanded in b around 0 55.1%
if -4.29999999999999971e60 < b < -7.7999999999999997e-221 or -2.2000000000000001e-265 < b < 6.59999999999999966e211 or 1.4e243 < b Initial program 96.1%
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 65.7%
if -7.7999999999999997e-221 < b < -2.2000000000000001e-265Initial program 92.3%
Taylor expanded in c around inf 85.2%
associate-*r/85.2%
metadata-eval85.2%
+-commutative85.2%
metadata-eval85.2%
associate-/r*85.2%
*-commutative85.2%
associate--l+85.2%
*-commutative85.2%
associate-/r*85.2%
metadata-eval85.2%
sub-neg85.2%
distribute-neg-frac85.2%
metadata-eval85.2%
Simplified85.2%
Taylor expanded in c around 0 70.4%
associate-*r*70.4%
associate--l+70.4%
associate-*r/70.4%
metadata-eval70.4%
Simplified70.4%
if 6.59999999999999966e211 < b < 1.4e243Initial program 75.4%
Taylor expanded in t around 0 62.5%
Taylor expanded in b around inf 59.2%
*-commutative59.2%
Simplified59.2%
Taylor expanded in b around 0 95.5%
Taylor expanded in b around inf 87.9%
associate-/l*100.0%
Simplified100.0%
Final simplification64.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (- x (- (* 2.0 (* a (* y (- b c)))) y)))))
(if (<= b -1.4e+62)
t_1
(if (<= b -7.5e-221)
1.0
(if (<= b -8e-266)
t_1
(if (<= b 4.4e+212)
1.0
(if (<= b 1.15e+243)
(/ x (+ x (* 1.3333333333333333 (/ y (/ t b)))))
1.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x - ((2.0 * (a * (y * (b - c)))) - y));
double tmp;
if (b <= -1.4e+62) {
tmp = t_1;
} else if (b <= -7.5e-221) {
tmp = 1.0;
} else if (b <= -8e-266) {
tmp = t_1;
} else if (b <= 4.4e+212) {
tmp = 1.0;
} else if (b <= 1.15e+243) {
tmp = x / (x + (1.3333333333333333 * (y / (t / b))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x - ((2.0d0 * (a * (y * (b - c)))) - y))
if (b <= (-1.4d+62)) then
tmp = t_1
else if (b <= (-7.5d-221)) then
tmp = 1.0d0
else if (b <= (-8d-266)) then
tmp = t_1
else if (b <= 4.4d+212) then
tmp = 1.0d0
else if (b <= 1.15d+243) then
tmp = x / (x + (1.3333333333333333d0 * (y / (t / b))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x - ((2.0 * (a * (y * (b - c)))) - y));
double tmp;
if (b <= -1.4e+62) {
tmp = t_1;
} else if (b <= -7.5e-221) {
tmp = 1.0;
} else if (b <= -8e-266) {
tmp = t_1;
} else if (b <= 4.4e+212) {
tmp = 1.0;
} else if (b <= 1.15e+243) {
tmp = x / (x + (1.3333333333333333 * (y / (t / b))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x - ((2.0 * (a * (y * (b - c)))) - y)) tmp = 0 if b <= -1.4e+62: tmp = t_1 elif b <= -7.5e-221: tmp = 1.0 elif b <= -8e-266: tmp = t_1 elif b <= 4.4e+212: tmp = 1.0 elif b <= 1.15e+243: tmp = x / (x + (1.3333333333333333 * (y / (t / b)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(a * Float64(y * Float64(b - c)))) - y))) tmp = 0.0 if (b <= -1.4e+62) tmp = t_1; elseif (b <= -7.5e-221) tmp = 1.0; elseif (b <= -8e-266) tmp = t_1; elseif (b <= 4.4e+212) tmp = 1.0; elseif (b <= 1.15e+243) tmp = Float64(x / Float64(x + Float64(1.3333333333333333 * Float64(y / Float64(t / b))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x - ((2.0 * (a * (y * (b - c)))) - y)); tmp = 0.0; if (b <= -1.4e+62) tmp = t_1; elseif (b <= -7.5e-221) tmp = 1.0; elseif (b <= -8e-266) tmp = t_1; elseif (b <= 4.4e+212) tmp = 1.0; elseif (b <= 1.15e+243) tmp = x / (x + (1.3333333333333333 * (y / (t / b)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x - N[(N[(2.0 * N[(a * N[(y * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.4e+62], t$95$1, If[LessEqual[b, -7.5e-221], 1.0, If[LessEqual[b, -8e-266], t$95$1, If[LessEqual[b, 4.4e+212], 1.0, If[LessEqual[b, 1.15e+243], N[(x / N[(x + N[(1.3333333333333333 * N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x - \left(2 \cdot \left(a \cdot \left(y \cdot \left(b - c\right)\right)\right) - y\right)}\\
\mathbf{if}\;b \leq -1.4 \cdot 10^{+62}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-221}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -8 \cdot 10^{-266}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{+212}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{+243}:\\
\;\;\;\;\frac{x}{x + 1.3333333333333333 \cdot \frac{y}{\frac{t}{b}}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.40000000000000007e62 or -7.50000000000000043e-221 < b < -7.9999999999999999e-266Initial program 87.2%
Taylor expanded in a around inf 71.0%
Taylor expanded in a around 0 56.4%
if -1.40000000000000007e62 < b < -7.50000000000000043e-221 or -7.9999999999999999e-266 < b < 4.3999999999999999e212 or 1.14999999999999993e243 < b Initial program 96.1%
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 65.7%
if 4.3999999999999999e212 < b < 1.14999999999999993e243Initial program 75.4%
Taylor expanded in t around 0 62.5%
Taylor expanded in b around inf 59.2%
*-commutative59.2%
Simplified59.2%
Taylor expanded in b around 0 95.5%
Taylor expanded in b around inf 87.9%
associate-/l*100.0%
Simplified100.0%
Final simplification64.2%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= b -4.4e+60) (and (not (<= b 4.2e+212)) (<= b 1e+243))) (/ x (+ x (* 1.3333333333333333 (/ y (/ t b))))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -4.4e+60) || (!(b <= 4.2e+212) && (b <= 1e+243))) {
tmp = x / (x + (1.3333333333333333 * (y / (t / b))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b <= (-4.4d+60)) .or. (.not. (b <= 4.2d+212)) .and. (b <= 1d+243)) then
tmp = x / (x + (1.3333333333333333d0 * (y / (t / b))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -4.4e+60) || (!(b <= 4.2e+212) && (b <= 1e+243))) {
tmp = x / (x + (1.3333333333333333 * (y / (t / b))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -4.4e+60) or (not (b <= 4.2e+212) and (b <= 1e+243)): tmp = x / (x + (1.3333333333333333 * (y / (t / b)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -4.4e+60) || (!(b <= 4.2e+212) && (b <= 1e+243))) tmp = Float64(x / Float64(x + Float64(1.3333333333333333 * Float64(y / Float64(t / b))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -4.4e+60) || (~((b <= 4.2e+212)) && (b <= 1e+243))) tmp = x / (x + (1.3333333333333333 * (y / (t / b)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -4.4e+60], And[N[Not[LessEqual[b, 4.2e+212]], $MachinePrecision], LessEqual[b, 1e+243]]], N[(x / N[(x + N[(1.3333333333333333 * N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.4 \cdot 10^{+60} \lor \neg \left(b \leq 4.2 \cdot 10^{+212}\right) \land b \leq 10^{+243}:\\
\;\;\;\;\frac{x}{x + 1.3333333333333333 \cdot \frac{y}{\frac{t}{b}}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -4.39999999999999992e60 or 4.2e212 < b < 1.0000000000000001e243Initial program 84.8%
Taylor expanded in t around 0 47.2%
Taylor expanded in b around inf 51.8%
*-commutative51.8%
Simplified51.8%
Taylor expanded in b around 0 49.1%
Taylor expanded in b around inf 48.2%
associate-/l*48.2%
Simplified48.2%
if -4.39999999999999992e60 < b < 4.2e212 or 1.0000000000000001e243 < b Initial program 95.8%
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 62.5%
Final simplification58.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -8e+62)
(/ x (+ x (* 1.3333333333333333 (/ (* y b) t))))
(if (<= b 9.8e+210)
1.0
(if (<= b 1.4e+244)
(/ x (+ x (* 1.3333333333333333 (/ y (/ t b)))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -8e+62) {
tmp = x / (x + (1.3333333333333333 * ((y * b) / t)));
} else if (b <= 9.8e+210) {
tmp = 1.0;
} else if (b <= 1.4e+244) {
tmp = x / (x + (1.3333333333333333 * (y / (t / b))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-8d+62)) then
tmp = x / (x + (1.3333333333333333d0 * ((y * b) / t)))
else if (b <= 9.8d+210) then
tmp = 1.0d0
else if (b <= 1.4d+244) then
tmp = x / (x + (1.3333333333333333d0 * (y / (t / b))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -8e+62) {
tmp = x / (x + (1.3333333333333333 * ((y * b) / t)));
} else if (b <= 9.8e+210) {
tmp = 1.0;
} else if (b <= 1.4e+244) {
tmp = x / (x + (1.3333333333333333 * (y / (t / b))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -8e+62: tmp = x / (x + (1.3333333333333333 * ((y * b) / t))) elif b <= 9.8e+210: tmp = 1.0 elif b <= 1.4e+244: tmp = x / (x + (1.3333333333333333 * (y / (t / b)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -8e+62) tmp = Float64(x / Float64(x + Float64(1.3333333333333333 * Float64(Float64(y * b) / t)))); elseif (b <= 9.8e+210) tmp = 1.0; elseif (b <= 1.4e+244) tmp = Float64(x / Float64(x + Float64(1.3333333333333333 * Float64(y / Float64(t / b))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -8e+62) tmp = x / (x + (1.3333333333333333 * ((y * b) / t))); elseif (b <= 9.8e+210) tmp = 1.0; elseif (b <= 1.4e+244) tmp = x / (x + (1.3333333333333333 * (y / (t / b)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -8e+62], N[(x / N[(x + N[(1.3333333333333333 * N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.8e+210], 1.0, If[LessEqual[b, 1.4e+244], N[(x / N[(x + N[(1.3333333333333333 * N[(y / N[(t / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8 \cdot 10^{+62}:\\
\;\;\;\;\frac{x}{x + 1.3333333333333333 \cdot \frac{y \cdot b}{t}}\\
\mathbf{elif}\;b \leq 9.8 \cdot 10^{+210}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{+244}:\\
\;\;\;\;\frac{x}{x + 1.3333333333333333 \cdot \frac{y}{\frac{t}{b}}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -8.00000000000000028e62Initial program 86.1%
Taylor expanded in t around 0 45.0%
Taylor expanded in b around inf 50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in b around 0 42.6%
Taylor expanded in b around inf 42.7%
if -8.00000000000000028e62 < b < 9.80000000000000013e210 or 1.39999999999999995e244 < b Initial program 95.8%
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 62.5%
if 9.80000000000000013e210 < b < 1.39999999999999995e244Initial program 75.4%
Taylor expanded in t around 0 62.5%
Taylor expanded in b around inf 59.2%
*-commutative59.2%
Simplified59.2%
Taylor expanded in b around 0 95.5%
Taylor expanded in b around inf 87.9%
associate-/l*100.0%
Simplified100.0%
Final simplification59.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a 1.5e-213)
1.0
(if (<= a 2.6e-69)
(/ x (+ x (* -1.3333333333333333 (/ (* y c) t))))
(if (<= a 1.35e+138) 1.0 (/ x (+ x (* 2.0 (* y (* a c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 1.5e-213) {
tmp = 1.0;
} else if (a <= 2.6e-69) {
tmp = x / (x + (-1.3333333333333333 * ((y * c) / t)));
} else if (a <= 1.35e+138) {
tmp = 1.0;
} else {
tmp = x / (x + (2.0 * (y * (a * c))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (a <= 1.5d-213) then
tmp = 1.0d0
else if (a <= 2.6d-69) then
tmp = x / (x + ((-1.3333333333333333d0) * ((y * c) / t)))
else if (a <= 1.35d+138) then
tmp = 1.0d0
else
tmp = x / (x + (2.0d0 * (y * (a * c))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 1.5e-213) {
tmp = 1.0;
} else if (a <= 2.6e-69) {
tmp = x / (x + (-1.3333333333333333 * ((y * c) / t)));
} else if (a <= 1.35e+138) {
tmp = 1.0;
} else {
tmp = x / (x + (2.0 * (y * (a * c))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 1.5e-213: tmp = 1.0 elif a <= 2.6e-69: tmp = x / (x + (-1.3333333333333333 * ((y * c) / t))) elif a <= 1.35e+138: tmp = 1.0 else: tmp = x / (x + (2.0 * (y * (a * c)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 1.5e-213) tmp = 1.0; elseif (a <= 2.6e-69) tmp = Float64(x / Float64(x + Float64(-1.3333333333333333 * Float64(Float64(y * c) / t)))); elseif (a <= 1.35e+138) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(2.0 * Float64(y * Float64(a * c))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= 1.5e-213) tmp = 1.0; elseif (a <= 2.6e-69) tmp = x / (x + (-1.3333333333333333 * ((y * c) / t))); elseif (a <= 1.35e+138) tmp = 1.0; else tmp = x / (x + (2.0 * (y * (a * c)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 1.5e-213], 1.0, If[LessEqual[a, 2.6e-69], N[(x / N[(x + N[(-1.3333333333333333 * N[(N[(y * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.35e+138], 1.0, N[(x / N[(x + N[(2.0 * N[(y * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.5 \cdot 10^{-213}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-69}:\\
\;\;\;\;\frac{x}{x + -1.3333333333333333 \cdot \frac{y \cdot c}{t}}\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{+138}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(y \cdot \left(a \cdot c\right)\right)}\\
\end{array}
\end{array}
if a < 1.49999999999999993e-213 or 2.6000000000000002e-69 < a < 1.35000000000000004e138Initial program 94.9%
Taylor expanded in t around inf 67.8%
mul-1-neg67.8%
distribute-rgt-neg-in67.8%
distribute-neg-in67.8%
metadata-eval67.8%
sub-neg67.8%
Simplified67.8%
Taylor expanded in x around inf 62.1%
if 1.49999999999999993e-213 < a < 2.6000000000000002e-69Initial program 95.2%
Taylor expanded in c around inf 62.2%
associate-*r/62.2%
metadata-eval62.2%
+-commutative62.2%
metadata-eval62.2%
associate-/r*62.2%
*-commutative62.2%
associate--l+62.2%
*-commutative62.2%
associate-/r*62.2%
metadata-eval62.2%
sub-neg62.2%
distribute-neg-frac62.2%
metadata-eval62.2%
Simplified62.2%
Taylor expanded in c around 0 46.0%
associate-*r*46.0%
associate--l+46.0%
associate-*r/46.0%
metadata-eval46.0%
Simplified46.0%
Taylor expanded in t around 0 53.1%
if 1.35000000000000004e138 < a Initial program 86.4%
Taylor expanded in c around inf 59.0%
associate-*r/59.0%
metadata-eval59.0%
+-commutative59.0%
metadata-eval59.0%
associate-/r*59.0%
*-commutative59.0%
associate--l+59.0%
*-commutative59.0%
associate-/r*59.0%
metadata-eval59.0%
sub-neg59.0%
distribute-neg-frac59.0%
metadata-eval59.0%
Simplified59.0%
Taylor expanded in c around 0 57.1%
associate-*r*57.1%
associate--l+57.1%
associate-*r/57.1%
metadata-eval57.1%
Simplified57.1%
Taylor expanded in a around inf 58.6%
*-commutative58.6%
associate-*r*58.6%
Simplified58.6%
Final simplification59.9%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -3.5e+64) (/ x (+ x (* -1.3333333333333333 (/ c (/ t y))))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.5e+64) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-3.5d+64)) then
tmp = x / (x + ((-1.3333333333333333d0) * (c / (t / y))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.5e+64) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -3.5e+64: tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -3.5e+64) tmp = Float64(x / Float64(x + Float64(-1.3333333333333333 * Float64(c / Float64(t / y))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -3.5e+64) tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -3.5e+64], N[(x / N[(x + N[(-1.3333333333333333 * N[(c / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.5 \cdot 10^{+64}:\\
\;\;\;\;\frac{x}{x + -1.3333333333333333 \cdot \frac{c}{\frac{t}{y}}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.4999999999999999e64Initial program 86.1%
Taylor expanded in c around inf 47.4%
associate-*r/47.4%
metadata-eval47.4%
+-commutative47.4%
metadata-eval47.4%
associate-/r*47.4%
*-commutative47.4%
associate--l+47.4%
*-commutative47.4%
associate-/r*47.4%
metadata-eval47.4%
sub-neg47.4%
distribute-neg-frac47.4%
metadata-eval47.4%
Simplified47.4%
Taylor expanded in c around 0 47.8%
associate-*r*47.8%
associate--l+47.8%
associate-*r/47.8%
metadata-eval47.8%
Simplified47.8%
Taylor expanded in t around 0 35.9%
associate-/l*39.1%
Simplified39.1%
if -3.4999999999999999e64 < b Initial program 95.0%
Taylor expanded in t around inf 69.4%
mul-1-neg69.4%
distribute-rgt-neg-in69.4%
distribute-neg-in69.4%
metadata-eval69.4%
sub-neg69.4%
Simplified69.4%
Taylor expanded in x around inf 61.5%
Final simplification56.6%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -3.6e+64) (* -0.75 (/ (/ (* x t) y) c)) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.6e+64) {
tmp = -0.75 * (((x * t) / y) / c);
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-3.6d+64)) then
tmp = (-0.75d0) * (((x * t) / y) / c)
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.6e+64) {
tmp = -0.75 * (((x * t) / y) / c);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -3.6e+64: tmp = -0.75 * (((x * t) / y) / c) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -3.6e+64) tmp = Float64(-0.75 * Float64(Float64(Float64(x * t) / y) / c)); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -3.6e+64) tmp = -0.75 * (((x * t) / y) / c); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -3.6e+64], N[(-0.75 * N[(N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.6 \cdot 10^{+64}:\\
\;\;\;\;-0.75 \cdot \frac{\frac{x \cdot t}{y}}{c}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.60000000000000014e64Initial program 86.1%
Taylor expanded in c around inf 47.4%
associate-*r/47.4%
metadata-eval47.4%
+-commutative47.4%
metadata-eval47.4%
associate-/r*47.4%
*-commutative47.4%
associate--l+47.4%
*-commutative47.4%
associate-/r*47.4%
metadata-eval47.4%
sub-neg47.4%
distribute-neg-frac47.4%
metadata-eval47.4%
Simplified47.4%
Taylor expanded in c around 0 47.8%
associate-*r*47.8%
associate--l+47.8%
associate-*r/47.8%
metadata-eval47.8%
Simplified47.8%
Taylor expanded in t around 0 27.0%
*-commutative27.0%
associate-/r*32.9%
*-commutative32.9%
Simplified32.9%
if -3.60000000000000014e64 < b Initial program 95.0%
Taylor expanded in t around inf 69.4%
mul-1-neg69.4%
distribute-rgt-neg-in69.4%
distribute-neg-in69.4%
metadata-eval69.4%
sub-neg69.4%
Simplified69.4%
Taylor expanded in x around inf 61.5%
Final simplification55.2%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -3.4e+64) (* 0.5 (/ x (* c (* y a)))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.4e+64) {
tmp = 0.5 * (x / (c * (y * 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) :: tmp
if (b <= (-3.4d+64)) then
tmp = 0.5d0 * (x / (c * (y * 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 tmp;
if (b <= -3.4e+64) {
tmp = 0.5 * (x / (c * (y * a)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -3.4e+64: tmp = 0.5 * (x / (c * (y * a))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -3.4e+64) tmp = Float64(0.5 * Float64(x / Float64(c * Float64(y * a)))); 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.4e+64) tmp = 0.5 * (x / (c * (y * a))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -3.4e+64], N[(0.5 * N[(x / N[(c * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.4 \cdot 10^{+64}:\\
\;\;\;\;0.5 \cdot \frac{x}{c \cdot \left(y \cdot a\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.4000000000000002e64Initial program 86.1%
Taylor expanded in c around inf 47.4%
associate-*r/47.4%
metadata-eval47.4%
+-commutative47.4%
metadata-eval47.4%
associate-/r*47.4%
*-commutative47.4%
associate--l+47.4%
*-commutative47.4%
associate-/r*47.4%
metadata-eval47.4%
sub-neg47.4%
distribute-neg-frac47.4%
metadata-eval47.4%
Simplified47.4%
Taylor expanded in c around 0 47.8%
associate-*r*47.8%
associate--l+47.8%
associate-*r/47.8%
metadata-eval47.8%
Simplified47.8%
Taylor expanded in a around inf 38.4%
*-commutative38.4%
Simplified38.4%
if -3.4000000000000002e64 < b Initial program 95.0%
Taylor expanded in t around inf 69.4%
mul-1-neg69.4%
distribute-rgt-neg-in69.4%
distribute-neg-in69.4%
metadata-eval69.4%
sub-neg69.4%
Simplified69.4%
Taylor expanded in x around inf 61.5%
Final simplification56.4%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 93.0%
Taylor expanded in t around inf 72.5%
mul-1-neg72.5%
distribute-rgt-neg-in72.5%
distribute-neg-in72.5%
metadata-eval72.5%
sub-neg72.5%
Simplified72.5%
Taylor expanded in x around inf 53.5%
Final simplification53.5%
(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 2023199
(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)))))))))))