
(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 14 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- (+ a 0.8333333333333334) (/ 2.0 (* t 3.0))) (- c b)))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + (((a + 0.8333333333333334) - (2.0 / (t * 3.0))) * (c - b));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * Math.sqrt((t + a))) / t) + (((a + 0.8333333333333334) - (2.0 / (t * 3.0))) * (c - b));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((t + a))) / t) + (((a + 0.8333333333333334) - (2.0 / (t * 3.0))) * (c - b)) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(Float64(a + 0.8333333333333334) - Float64(2.0 / Float64(t * 3.0))) * Float64(c - b))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((t + a))) / t) + (((a + 0.8333333333333334) - (2.0 / (t * 3.0))) * (c - b)); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(\left(a + 0.8333333333333334\right) - \frac{2}{t \cdot 3}\right) \cdot \left(c - b\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 99.6%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) Initial program 0.0%
Taylor expanded in t around 0 82.4%
Final simplification98.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 1.55e-147)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 2.8e+130)
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(* z (sqrt (/ 1.0 t)))
(* (- b c) (+ 0.8333333333333334 (/ -0.6666666666666666 t)))))))))
(/ 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.55e-147) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 2.8e+130) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) - ((b - c) * (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} 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.55d-147) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 2.8d+130) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) - ((b - c) * (0.8333333333333334d0 + ((-0.6666666666666666d0) / t))))))))
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.55e-147) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 2.8e+130) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) - ((b - c) * (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} 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.55e-147: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 2.8e+130: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) - ((b - c) * (0.8333333333333334 + (-0.6666666666666666 / t)))))))) 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.55e-147) 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 <= 2.8e+130) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) - Float64(Float64(b - c) * Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))))))))); 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.55e-147) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 2.8e+130) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) - ((b - c) * (0.8333333333333334 + (-0.6666666666666666 / t)))))))); 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.55e-147], 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, 2.8e+130], 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[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $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 1.55 \cdot 10^{-147}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{+130}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} - \left(b - c\right) \cdot \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\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.5500000000000001e-147Initial program 90.7%
Taylor expanded in t around 0 90.7%
if 1.5500000000000001e-147 < t < 2.7999999999999999e130Initial program 100.0%
Taylor expanded in a around 0 96.5%
*-commutative96.5%
*-commutative96.5%
cancel-sign-sub-inv96.5%
metadata-eval96.5%
associate-*r/96.5%
metadata-eval96.5%
Simplified96.5%
if 2.7999999999999999e130 < t Initial program 97.0%
Taylor expanded in t around inf 95.6%
mul-1-neg95.6%
*-commutative95.6%
distribute-rgt-neg-in95.6%
distribute-neg-in95.6%
metadata-eval95.6%
Simplified95.6%
Final simplification93.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 2.9e-146)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 0.00013)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(/ 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 <= 2.9e-146) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 0.00013) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} 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 <= 2.9d-146) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 0.00013d0) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
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 <= 2.9e-146) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 0.00013) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} 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 <= 2.9e-146: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 0.00013: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) 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 <= 2.9e-146) 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 <= 0.00013) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(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 <= 2.9e-146) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 0.00013) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); 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, 2.9e-146], 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, 0.00013], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.9 \cdot 10^{-146}:\\
\;\;\;\;\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 0.00013:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\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 < 2.90000000000000011e-146Initial program 90.8%
Taylor expanded in t around 0 90.8%
if 2.90000000000000011e-146 < t < 1.29999999999999989e-4Initial program 100.0%
Taylor expanded in t around 0 58.7%
Taylor expanded in a around 0 81.2%
if 1.29999999999999989e-4 < t Initial program 98.1%
Taylor expanded in t around inf 93.6%
mul-1-neg93.6%
*-commutative93.6%
distribute-rgt-neg-in93.6%
distribute-neg-in93.6%
metadata-eval93.6%
Simplified93.6%
Final simplification90.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))))
(if (<= t 7.5e-186)
t_1
(if (<= t 8.5e-147)
(/ x (+ x (* y (exp (* 2.0 (* (sqrt a) (/ z t)))))))
(if (<= t 0.00017)
t_1
(/
x
(+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
double tmp;
if (t <= 7.5e-186) {
tmp = t_1;
} else if (t <= 8.5e-147) {
tmp = x / (x + (y * exp((2.0 * (sqrt(a) * (z / t))))));
} else if (t <= 0.00017) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
if (t <= 7.5d-186) then
tmp = t_1
else if (t <= 8.5d-147) then
tmp = x / (x + (y * exp((2.0d0 * (sqrt(a) * (z / t))))))
else if (t <= 0.00017d0) then
tmp = t_1
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
double tmp;
if (t <= 7.5e-186) {
tmp = t_1;
} else if (t <= 8.5e-147) {
tmp = x / (x + (y * Math.exp((2.0 * (Math.sqrt(a) * (z / t))))));
} else if (t <= 0.00017) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) tmp = 0 if t <= 7.5e-186: tmp = t_1 elif t <= 8.5e-147: tmp = x / (x + (y * math.exp((2.0 * (math.sqrt(a) * (z / t)))))) elif t <= 0.00017: tmp = t_1 else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))) tmp = 0.0 if (t <= 7.5e-186) tmp = t_1; elseif (t <= 8.5e-147) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(sqrt(a) * Float64(z / t))))))); elseif (t <= 0.00017) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); tmp = 0.0; if (t <= 7.5e-186) tmp = t_1; elseif (t <= 8.5e-147) tmp = x / (x + (y * exp((2.0 * (sqrt(a) * (z / t)))))); elseif (t <= 0.00017) tmp = t_1; else tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 7.5e-186], t$95$1, If[LessEqual[t, 8.5e-147], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[Sqrt[a], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.00017], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{if}\;t \leq 7.5 \cdot 10^{-186}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-147}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\sqrt{a} \cdot \frac{z}{t}\right)}}\\
\mathbf{elif}\;t \leq 0.00017:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < 7.50000000000000076e-186 or 8.5000000000000002e-147 < t < 1.7e-4Initial program 92.5%
Taylor expanded in t around 0 82.1%
Taylor expanded in a around 0 77.5%
if 7.50000000000000076e-186 < t < 8.5000000000000002e-147Initial program 100.0%
Taylor expanded in t around 0 81.6%
Taylor expanded in z around inf 81.6%
if 1.7e-4 < t Initial program 98.1%
Taylor expanded in t around inf 93.6%
mul-1-neg93.6%
*-commutative93.6%
distribute-rgt-neg-in93.6%
distribute-neg-in93.6%
metadata-eval93.6%
Simplified93.6%
Final simplification84.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))))
(if (<= t 3.5e-164)
t_1
(if (<= t 6.2e-147)
(/ x (+ x (* y (+ (* 2.0 (* -0.6666666666666666 (/ c t))) 1.0))))
(if (<= t 0.000195)
t_1
(/
x
(+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
double tmp;
if (t <= 3.5e-164) {
tmp = t_1;
} else if (t <= 6.2e-147) {
tmp = x / (x + (y * ((2.0 * (-0.6666666666666666 * (c / t))) + 1.0)));
} else if (t <= 0.000195) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
if (t <= 3.5d-164) then
tmp = t_1
else if (t <= 6.2d-147) then
tmp = x / (x + (y * ((2.0d0 * ((-0.6666666666666666d0) * (c / t))) + 1.0d0)))
else if (t <= 0.000195d0) then
tmp = t_1
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
double tmp;
if (t <= 3.5e-164) {
tmp = t_1;
} else if (t <= 6.2e-147) {
tmp = x / (x + (y * ((2.0 * (-0.6666666666666666 * (c / t))) + 1.0)));
} else if (t <= 0.000195) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) tmp = 0 if t <= 3.5e-164: tmp = t_1 elif t <= 6.2e-147: tmp = x / (x + (y * ((2.0 * (-0.6666666666666666 * (c / t))) + 1.0))) elif t <= 0.000195: tmp = t_1 else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))) tmp = 0.0 if (t <= 3.5e-164) tmp = t_1; elseif (t <= 6.2e-147) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(-0.6666666666666666 * Float64(c / t))) + 1.0)))); elseif (t <= 0.000195) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); tmp = 0.0; if (t <= 3.5e-164) tmp = t_1; elseif (t <= 6.2e-147) tmp = x / (x + (y * ((2.0 * (-0.6666666666666666 * (c / t))) + 1.0))); elseif (t <= 0.000195) tmp = t_1; else tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 3.5e-164], t$95$1, If[LessEqual[t, 6.2e-147], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(-0.6666666666666666 * N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.000195], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{if}\;t \leq 3.5 \cdot 10^{-164}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-147}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(-0.6666666666666666 \cdot \frac{c}{t}\right) + 1\right)}\\
\mathbf{elif}\;t \leq 0.000195:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < 3.5e-164 or 6.2000000000000005e-147 < t < 1.94999999999999996e-4Initial program 93.0%
Taylor expanded in t around 0 81.7%
Taylor expanded in a around 0 76.0%
if 3.5e-164 < t < 6.2000000000000005e-147Initial program 100.0%
Taylor expanded in c around inf 64.0%
cancel-sign-sub-inv64.0%
+-commutative64.0%
metadata-eval64.0%
associate-*r/64.0%
metadata-eval64.0%
associate-+r+64.0%
Simplified64.0%
Taylor expanded in c around 0 88.2%
remove-double-neg88.2%
sub-neg88.2%
associate--r+88.2%
neg-mul-188.2%
neg-mul-188.2%
associate--r+88.2%
sub-neg88.2%
remove-double-neg88.2%
associate--l+88.2%
associate-*r/88.2%
metadata-eval88.2%
Simplified88.2%
Taylor expanded in t around 0 88.2%
if 1.94999999999999996e-4 < t Initial program 98.1%
Taylor expanded in t around inf 93.6%
mul-1-neg93.6%
*-commutative93.6%
distribute-rgt-neg-in93.6%
distribute-neg-in93.6%
metadata-eval93.6%
Simplified93.6%
Final simplification83.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))))
(if (<= t 2e-223)
t_1
(if (<= t 4e-147)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t)))))))))
(if (<= t 0.00023)
t_1
(/
x
(+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
double tmp;
if (t <= 2e-223) {
tmp = t_1;
} else if (t <= 4e-147) {
tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} else if (t <= 0.00023) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
if (t <= 2d-223) then
tmp = t_1
else if (t <= 4d-147) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + (0.8333333333333334d0 + ((-0.6666666666666666d0) / t))))))))
else if (t <= 0.00023d0) then
tmp = t_1
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
double tmp;
if (t <= 2e-223) {
tmp = t_1;
} else if (t <= 4e-147) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} else if (t <= 0.00023) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) tmp = 0 if t <= 2e-223: tmp = t_1 elif t <= 4e-147: tmp = x / (x + (y * math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))) elif t <= 0.00023: tmp = t_1 else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))) tmp = 0.0 if (t <= 2e-223) tmp = t_1; elseif (t <= 4e-147) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))))))))); elseif (t <= 0.00023) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); tmp = 0.0; if (t <= 2e-223) tmp = t_1; elseif (t <= 4e-147) tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))); elseif (t <= 0.00023) tmp = t_1; else tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 2e-223], t$95$1, If[LessEqual[t, 4e-147], 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], If[LessEqual[t, 0.00023], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{if}\;t \leq 2 \cdot 10^{-223}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-147}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right)\right)}}\\
\mathbf{elif}\;t \leq 0.00023:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < 1.9999999999999999e-223 or 3.9999999999999999e-147 < t < 2.3000000000000001e-4Initial program 91.7%
Taylor expanded in t around 0 82.6%
Taylor expanded in a around 0 76.7%
if 1.9999999999999999e-223 < t < 3.9999999999999999e-147Initial program 100.0%
Taylor expanded in c around inf 80.0%
cancel-sign-sub-inv80.0%
+-commutative80.0%
metadata-eval80.0%
associate-*r/80.0%
metadata-eval80.0%
associate-+r+80.0%
Simplified80.0%
if 2.3000000000000001e-4 < t Initial program 98.1%
Taylor expanded in t around inf 93.6%
mul-1-neg93.6%
*-commutative93.6%
distribute-rgt-neg-in93.6%
distribute-neg-in93.6%
metadata-eval93.6%
Simplified93.6%
Final simplification84.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))))
(if (<= t 2.9e-164)
t_1
(if (<= t 6.2e-147)
(/ x (+ x (* y (+ (* 2.0 (* -0.6666666666666666 (/ c t))) 1.0))))
(if (<= t 0.00019)
t_1
(/ x (+ x (* y (exp (* (- b c) -1.6666666666666667))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
double tmp;
if (t <= 2.9e-164) {
tmp = t_1;
} else if (t <= 6.2e-147) {
tmp = x / (x + (y * ((2.0 * (-0.6666666666666666 * (c / t))) + 1.0)));
} else if (t <= 0.00019) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
if (t <= 2.9d-164) then
tmp = t_1
else if (t <= 6.2d-147) then
tmp = x / (x + (y * ((2.0d0 * ((-0.6666666666666666d0) * (c / t))) + 1.0d0)))
else if (t <= 0.00019d0) then
tmp = t_1
else
tmp = x / (x + (y * exp(((b - c) * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
double tmp;
if (t <= 2.9e-164) {
tmp = t_1;
} else if (t <= 6.2e-147) {
tmp = x / (x + (y * ((2.0 * (-0.6666666666666666 * (c / t))) + 1.0)));
} else if (t <= 0.00019) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) tmp = 0 if t <= 2.9e-164: tmp = t_1 elif t <= 6.2e-147: tmp = x / (x + (y * ((2.0 * (-0.6666666666666666 * (c / t))) + 1.0))) elif t <= 0.00019: tmp = t_1 else: tmp = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))) tmp = 0.0 if (t <= 2.9e-164) tmp = t_1; elseif (t <= 6.2e-147) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(-0.6666666666666666 * Float64(c / t))) + 1.0)))); elseif (t <= 0.00019) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); tmp = 0.0; if (t <= 2.9e-164) tmp = t_1; elseif (t <= 6.2e-147) tmp = x / (x + (y * ((2.0 * (-0.6666666666666666 * (c / t))) + 1.0))); elseif (t <= 0.00019) tmp = t_1; else tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 2.9e-164], t$95$1, If[LessEqual[t, 6.2e-147], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(-0.6666666666666666 * N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.00019], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{if}\;t \leq 2.9 \cdot 10^{-164}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-147}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(-0.6666666666666666 \cdot \frac{c}{t}\right) + 1\right)}\\
\mathbf{elif}\;t \leq 0.00019:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < 2.9e-164 or 6.2000000000000005e-147 < t < 1.9000000000000001e-4Initial program 93.0%
Taylor expanded in t around 0 81.7%
Taylor expanded in a around 0 76.0%
if 2.9e-164 < t < 6.2000000000000005e-147Initial program 100.0%
Taylor expanded in c around inf 64.0%
cancel-sign-sub-inv64.0%
+-commutative64.0%
metadata-eval64.0%
associate-*r/64.0%
metadata-eval64.0%
associate-+r+64.0%
Simplified64.0%
Taylor expanded in c around 0 88.2%
remove-double-neg88.2%
sub-neg88.2%
associate--r+88.2%
neg-mul-188.2%
neg-mul-188.2%
associate--r+88.2%
sub-neg88.2%
remove-double-neg88.2%
associate--l+88.2%
associate-*r/88.2%
metadata-eval88.2%
Simplified88.2%
Taylor expanded in t around 0 88.2%
if 1.9000000000000001e-4 < t Initial program 98.1%
Taylor expanded in t around inf 93.6%
mul-1-neg93.6%
*-commutative93.6%
distribute-rgt-neg-in93.6%
distribute-neg-in93.6%
metadata-eval93.6%
Simplified93.6%
Taylor expanded in a around 0 79.9%
Final simplification78.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -2e+294)
1.0
(if (<= (- b c) -2e-49)
(/ x (* y (exp (* (- b c) -1.6666666666666667))))
(if (<= (- b c) 2e+122)
1.0
(if (<= (- b c) 2e+155)
(/ x (+ x (+ y (* 2.0 (* a (* y (- c b)))))))
1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -2e+294) {
tmp = 1.0;
} else if ((b - c) <= -2e-49) {
tmp = x / (y * exp(((b - c) * -1.6666666666666667)));
} else if ((b - c) <= 2e+122) {
tmp = 1.0;
} else if ((b - c) <= 2e+155) {
tmp = x / (x + (y + (2.0 * (a * (y * (c - 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 - c) <= (-2d+294)) then
tmp = 1.0d0
else if ((b - c) <= (-2d-49)) then
tmp = x / (y * exp(((b - c) * (-1.6666666666666667d0))))
else if ((b - c) <= 2d+122) then
tmp = 1.0d0
else if ((b - c) <= 2d+155) then
tmp = x / (x + (y + (2.0d0 * (a * (y * (c - 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 - c) <= -2e+294) {
tmp = 1.0;
} else if ((b - c) <= -2e-49) {
tmp = x / (y * Math.exp(((b - c) * -1.6666666666666667)));
} else if ((b - c) <= 2e+122) {
tmp = 1.0;
} else if ((b - c) <= 2e+155) {
tmp = x / (x + (y + (2.0 * (a * (y * (c - b))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -2e+294: tmp = 1.0 elif (b - c) <= -2e-49: tmp = x / (y * math.exp(((b - c) * -1.6666666666666667))) elif (b - c) <= 2e+122: tmp = 1.0 elif (b - c) <= 2e+155: tmp = x / (x + (y + (2.0 * (a * (y * (c - b)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -2e+294) tmp = 1.0; elseif (Float64(b - c) <= -2e-49) tmp = Float64(x / Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667)))); elseif (Float64(b - c) <= 2e+122) tmp = 1.0; elseif (Float64(b - c) <= 2e+155) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(a * Float64(y * Float64(c - 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 - c) <= -2e+294) tmp = 1.0; elseif ((b - c) <= -2e-49) tmp = x / (y * exp(((b - c) * -1.6666666666666667))); elseif ((b - c) <= 2e+122) tmp = 1.0; elseif ((b - c) <= 2e+155) tmp = x / (x + (y + (2.0 * (a * (y * (c - b)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -2e+294], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], -2e-49], N[(x / N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 2e+122], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 2e+155], N[(x / N[(x + N[(y + N[(2.0 * N[(a * N[(y * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -2 \cdot 10^{+294}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq -2 \cdot 10^{-49}:\\
\;\;\;\;\frac{x}{y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b - c \leq 2 \cdot 10^{+122}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 2 \cdot 10^{+155}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(a \cdot \left(y \cdot \left(c - b\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -2.00000000000000013e294 or -1.99999999999999987e-49 < (-.f64 b c) < 2.00000000000000003e122 or 2.00000000000000001e155 < (-.f64 b c) Initial program 96.7%
Taylor expanded in t around inf 68.2%
mul-1-neg68.2%
*-commutative68.2%
distribute-rgt-neg-in68.2%
distribute-neg-in68.2%
metadata-eval68.2%
Simplified68.2%
Taylor expanded in x around inf 69.5%
if -2.00000000000000013e294 < (-.f64 b c) < -1.99999999999999987e-49Initial program 95.6%
Taylor expanded in t around inf 72.3%
mul-1-neg72.3%
*-commutative72.3%
distribute-rgt-neg-in72.3%
distribute-neg-in72.3%
metadata-eval72.3%
Simplified72.3%
Taylor expanded in a around 0 67.9%
Taylor expanded in x around 0 66.8%
if 2.00000000000000003e122 < (-.f64 b c) < 2.00000000000000001e155Initial program 76.9%
Taylor expanded in a around inf 47.8%
Taylor expanded in a around 0 63.2%
Final simplification68.2%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= t -5.5e-250) (not (<= t 3.9e-30))) (/ x (+ 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 ((t <= -5.5e-250) || !(t <= 3.9e-30)) {
tmp = x / (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 ((t <= (-5.5d-250)) .or. (.not. (t <= 3.9d-30))) then
tmp = x / (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 ((t <= -5.5e-250) || !(t <= 3.9e-30)) {
tmp = x / (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 (t <= -5.5e-250) or not (t <= 3.9e-30): tmp = x / (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 ((t <= -5.5e-250) || !(t <= 3.9e-30)) tmp = Float64(x / 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 ((t <= -5.5e-250) || ~((t <= 3.9e-30))) tmp = x / (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[Or[LessEqual[t, -5.5e-250], N[Not[LessEqual[t, 3.9e-30]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.5 \cdot 10^{-250} \lor \neg \left(t \leq 3.9 \cdot 10^{-30}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if t < -5.5e-250 or 3.9000000000000003e-30 < t Initial program 96.5%
Taylor expanded in t around inf 86.5%
mul-1-neg86.5%
*-commutative86.5%
distribute-rgt-neg-in86.5%
distribute-neg-in86.5%
metadata-eval86.5%
Simplified86.5%
Taylor expanded in a around 0 75.6%
if -5.5e-250 < t < 3.9000000000000003e-30Initial program 92.9%
Taylor expanded in t around inf 32.8%
mul-1-neg32.8%
*-commutative32.8%
distribute-rgt-neg-in32.8%
distribute-neg-in32.8%
metadata-eval32.8%
Simplified32.8%
Taylor expanded in x around inf 54.4%
Final simplification68.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y 4.8e+74)
1.0
(if (or (<= y 8e+164) (not (<= y 4.2e+203)))
(/ x (* y (+ (* 2.0 (* a (- c b))) 1.0)))
1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 4.8e+74) {
tmp = 1.0;
} else if ((y <= 8e+164) || !(y <= 4.2e+203)) {
tmp = x / (y * ((2.0 * (a * (c - b))) + 1.0));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= 4.8d+74) then
tmp = 1.0d0
else if ((y <= 8d+164) .or. (.not. (y <= 4.2d+203))) then
tmp = x / (y * ((2.0d0 * (a * (c - b))) + 1.0d0))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 4.8e+74) {
tmp = 1.0;
} else if ((y <= 8e+164) || !(y <= 4.2e+203)) {
tmp = x / (y * ((2.0 * (a * (c - b))) + 1.0));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= 4.8e+74: tmp = 1.0 elif (y <= 8e+164) or not (y <= 4.2e+203): tmp = x / (y * ((2.0 * (a * (c - b))) + 1.0)) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= 4.8e+74) tmp = 1.0; elseif ((y <= 8e+164) || !(y <= 4.2e+203)) tmp = Float64(x / Float64(y * Float64(Float64(2.0 * Float64(a * Float64(c - b))) + 1.0))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= 4.8e+74) tmp = 1.0; elseif ((y <= 8e+164) || ~((y <= 4.2e+203))) tmp = x / (y * ((2.0 * (a * (c - b))) + 1.0)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, 4.8e+74], 1.0, If[Or[LessEqual[y, 8e+164], N[Not[LessEqual[y, 4.2e+203]], $MachinePrecision]], N[(x / N[(y * N[(N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 4.8 \cdot 10^{+74}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 8 \cdot 10^{+164} \lor \neg \left(y \leq 4.2 \cdot 10^{+203}\right):\\
\;\;\;\;\frac{x}{y \cdot \left(2 \cdot \left(a \cdot \left(c - b\right)\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < 4.80000000000000017e74 or 8e164 < y < 4.19999999999999967e203Initial program 94.5%
Taylor expanded in t around inf 67.7%
mul-1-neg67.7%
*-commutative67.7%
distribute-rgt-neg-in67.7%
distribute-neg-in67.7%
metadata-eval67.7%
Simplified67.7%
Taylor expanded in x around inf 58.3%
if 4.80000000000000017e74 < y < 8e164 or 4.19999999999999967e203 < y Initial program 100.0%
Taylor expanded in a around inf 80.6%
Taylor expanded in a around 0 68.6%
associate-*r*66.1%
Simplified66.1%
Taylor expanded in y around inf 63.8%
Final simplification59.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y 2.2e+74)
1.0
(if (<= y 2.9e+165)
(/ x (* y (+ (* 2.0 (* a (- c b))) 1.0)))
(if (<= y 1.08e+204) 1.0 (/ x (+ x (+ y (* 2.0 (* y (* a c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 2.2e+74) {
tmp = 1.0;
} else if (y <= 2.9e+165) {
tmp = x / (y * ((2.0 * (a * (c - b))) + 1.0));
} else if (y <= 1.08e+204) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (2.0 * (y * (a * c)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= 2.2d+74) then
tmp = 1.0d0
else if (y <= 2.9d+165) then
tmp = x / (y * ((2.0d0 * (a * (c - b))) + 1.0d0))
else if (y <= 1.08d+204) then
tmp = 1.0d0
else
tmp = x / (x + (y + (2.0d0 * (y * (a * c)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 2.2e+74) {
tmp = 1.0;
} else if (y <= 2.9e+165) {
tmp = x / (y * ((2.0 * (a * (c - b))) + 1.0));
} else if (y <= 1.08e+204) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (2.0 * (y * (a * c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= 2.2e+74: tmp = 1.0 elif y <= 2.9e+165: tmp = x / (y * ((2.0 * (a * (c - b))) + 1.0)) elif y <= 1.08e+204: tmp = 1.0 else: tmp = x / (x + (y + (2.0 * (y * (a * c))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= 2.2e+74) tmp = 1.0; elseif (y <= 2.9e+165) tmp = Float64(x / Float64(y * Float64(Float64(2.0 * Float64(a * Float64(c - b))) + 1.0))); elseif (y <= 1.08e+204) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(y * Float64(a * c)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= 2.2e+74) tmp = 1.0; elseif (y <= 2.9e+165) tmp = x / (y * ((2.0 * (a * (c - b))) + 1.0)); elseif (y <= 1.08e+204) tmp = 1.0; else tmp = x / (x + (y + (2.0 * (y * (a * c))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, 2.2e+74], 1.0, If[LessEqual[y, 2.9e+165], N[(x / N[(y * N[(N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.08e+204], 1.0, N[(x / N[(x + N[(y + N[(2.0 * N[(y * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.2 \cdot 10^{+74}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 2.9 \cdot 10^{+165}:\\
\;\;\;\;\frac{x}{y \cdot \left(2 \cdot \left(a \cdot \left(c - b\right)\right) + 1\right)}\\
\mathbf{elif}\;y \leq 1.08 \cdot 10^{+204}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(y \cdot \left(a \cdot c\right)\right)\right)}\\
\end{array}
\end{array}
if y < 2.2000000000000001e74 or 2.90000000000000006e165 < y < 1.08e204Initial program 94.5%
Taylor expanded in t around inf 67.7%
mul-1-neg67.7%
*-commutative67.7%
distribute-rgt-neg-in67.7%
distribute-neg-in67.7%
metadata-eval67.7%
Simplified67.7%
Taylor expanded in x around inf 58.3%
if 2.2000000000000001e74 < y < 2.90000000000000006e165Initial program 100.0%
Taylor expanded in a around inf 78.0%
Taylor expanded in a around 0 69.3%
associate-*r*64.9%
Simplified64.9%
Taylor expanded in y around inf 64.7%
if 1.08e204 < y Initial program 100.0%
Taylor expanded in a around inf 83.9%
Taylor expanded in a around 0 67.7%
associate-*r*67.7%
Simplified67.7%
Taylor expanded in c around inf 67.7%
associate-*r*67.7%
*-commutative67.7%
Simplified67.7%
Final simplification59.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y 3.6e+74)
1.0
(if (<= y 8.5e+164)
(/ x (+ y (* 2.0 (* (* a y) (- c b)))))
(if (<= y 2.06e+192) 1.0 (/ x (+ x (+ y (* 2.0 (* y (* a c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 3.6e+74) {
tmp = 1.0;
} else if (y <= 8.5e+164) {
tmp = x / (y + (2.0 * ((a * y) * (c - b))));
} else if (y <= 2.06e+192) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (2.0 * (y * (a * c)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= 3.6d+74) then
tmp = 1.0d0
else if (y <= 8.5d+164) then
tmp = x / (y + (2.0d0 * ((a * y) * (c - b))))
else if (y <= 2.06d+192) then
tmp = 1.0d0
else
tmp = x / (x + (y + (2.0d0 * (y * (a * c)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 3.6e+74) {
tmp = 1.0;
} else if (y <= 8.5e+164) {
tmp = x / (y + (2.0 * ((a * y) * (c - b))));
} else if (y <= 2.06e+192) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (2.0 * (y * (a * c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= 3.6e+74: tmp = 1.0 elif y <= 8.5e+164: tmp = x / (y + (2.0 * ((a * y) * (c - b)))) elif y <= 2.06e+192: tmp = 1.0 else: tmp = x / (x + (y + (2.0 * (y * (a * c))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= 3.6e+74) tmp = 1.0; elseif (y <= 8.5e+164) tmp = Float64(x / Float64(y + Float64(2.0 * Float64(Float64(a * y) * Float64(c - b))))); elseif (y <= 2.06e+192) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(y * Float64(a * c)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= 3.6e+74) tmp = 1.0; elseif (y <= 8.5e+164) tmp = x / (y + (2.0 * ((a * y) * (c - b)))); elseif (y <= 2.06e+192) tmp = 1.0; else tmp = x / (x + (y + (2.0 * (y * (a * c))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, 3.6e+74], 1.0, If[LessEqual[y, 8.5e+164], N[(x / N[(y + N[(2.0 * N[(N[(a * y), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.06e+192], 1.0, N[(x / N[(x + N[(y + N[(2.0 * N[(y * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 3.6 \cdot 10^{+74}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{+164}:\\
\;\;\;\;\frac{x}{y + 2 \cdot \left(\left(a \cdot y\right) \cdot \left(c - b\right)\right)}\\
\mathbf{elif}\;y \leq 2.06 \cdot 10^{+192}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(y \cdot \left(a \cdot c\right)\right)\right)}\\
\end{array}
\end{array}
if y < 3.59999999999999988e74 or 8.50000000000000027e164 < y < 2.0600000000000001e192Initial program 94.5%
Taylor expanded in t around inf 67.7%
mul-1-neg67.7%
*-commutative67.7%
distribute-rgt-neg-in67.7%
distribute-neg-in67.7%
metadata-eval67.7%
Simplified67.7%
Taylor expanded in x around inf 58.3%
if 3.59999999999999988e74 < y < 8.50000000000000027e164Initial program 100.0%
Taylor expanded in a around inf 78.0%
Taylor expanded in x around 0 59.8%
Taylor expanded in a around 0 64.7%
associate-*r*64.9%
Simplified64.8%
if 2.0600000000000001e192 < y Initial program 100.0%
Taylor expanded in a around inf 83.9%
Taylor expanded in a around 0 67.7%
associate-*r*67.7%
Simplified67.7%
Taylor expanded in c around inf 67.7%
associate-*r*67.7%
*-commutative67.7%
Simplified67.7%
Final simplification59.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y 6e+61)
1.0
(if (<= y 1.6e+169)
(/ x (+ x (+ y (* 2.0 (* a (* y (- c b)))))))
(if (<= y 1.65e+195) 1.0 (/ x (+ x (+ y (* 2.0 (* y (* a c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 6e+61) {
tmp = 1.0;
} else if (y <= 1.6e+169) {
tmp = x / (x + (y + (2.0 * (a * (y * (c - b))))));
} else if (y <= 1.65e+195) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (2.0 * (y * (a * c)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= 6d+61) then
tmp = 1.0d0
else if (y <= 1.6d+169) then
tmp = x / (x + (y + (2.0d0 * (a * (y * (c - b))))))
else if (y <= 1.65d+195) then
tmp = 1.0d0
else
tmp = x / (x + (y + (2.0d0 * (y * (a * c)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 6e+61) {
tmp = 1.0;
} else if (y <= 1.6e+169) {
tmp = x / (x + (y + (2.0 * (a * (y * (c - b))))));
} else if (y <= 1.65e+195) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (2.0 * (y * (a * c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= 6e+61: tmp = 1.0 elif y <= 1.6e+169: tmp = x / (x + (y + (2.0 * (a * (y * (c - b)))))) elif y <= 1.65e+195: tmp = 1.0 else: tmp = x / (x + (y + (2.0 * (y * (a * c))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= 6e+61) tmp = 1.0; elseif (y <= 1.6e+169) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(a * Float64(y * Float64(c - b))))))); elseif (y <= 1.65e+195) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(y * Float64(a * c)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= 6e+61) tmp = 1.0; elseif (y <= 1.6e+169) tmp = x / (x + (y + (2.0 * (a * (y * (c - b)))))); elseif (y <= 1.65e+195) tmp = 1.0; else tmp = x / (x + (y + (2.0 * (y * (a * c))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, 6e+61], 1.0, If[LessEqual[y, 1.6e+169], N[(x / N[(x + N[(y + N[(2.0 * N[(a * N[(y * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e+195], 1.0, N[(x / N[(x + N[(y + N[(2.0 * N[(y * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 6 \cdot 10^{+61}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{+169}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(a \cdot \left(y \cdot \left(c - b\right)\right)\right)\right)}\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{+195}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(y \cdot \left(a \cdot c\right)\right)\right)}\\
\end{array}
\end{array}
if y < 6e61 or 1.5999999999999999e169 < y < 1.65e195Initial program 94.8%
Taylor expanded in t around inf 67.0%
mul-1-neg67.0%
*-commutative67.0%
distribute-rgt-neg-in67.0%
distribute-neg-in67.0%
metadata-eval67.0%
Simplified67.0%
Taylor expanded in x around inf 58.3%
if 6e61 < y < 1.5999999999999999e169Initial program 96.3%
Taylor expanded in a around inf 78.5%
Taylor expanded in a around 0 67.9%
if 1.65e195 < y Initial program 100.0%
Taylor expanded in a around inf 83.9%
Taylor expanded in a around 0 67.7%
associate-*r*67.7%
Simplified67.7%
Taylor expanded in c around inf 67.7%
associate-*r*67.7%
*-commutative67.7%
Simplified67.7%
Final simplification60.0%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 95.3%
Taylor expanded in t around inf 68.6%
mul-1-neg68.6%
*-commutative68.6%
distribute-rgt-neg-in68.6%
distribute-neg-in68.6%
metadata-eval68.6%
Simplified68.6%
Taylor expanded in x around inf 53.9%
Final simplification53.9%
(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 2023308
(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)))))))))))