
(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 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(if (<= b 1e+132)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334)))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= 1e+132) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))))))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= 1d+132) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) + ((b - c) * ((2.0d0 / (t * 3.0d0)) - (a + 0.8333333333333334d0))))))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= 1e+132) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= 1e+132: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= 1e+132) tmp = 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(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334))))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= 1e+132) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))))))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, 1e+132], 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[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 10^{+132}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if b < 9.99999999999999991e131Initial program 99.5%
if 9.99999999999999991e131 < b Initial program 83.6%
Taylor expanded in b around inf 100.0%
associate-*r/100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Final simplification99.6%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(log
(exp
(fma
z
(/ (sqrt (+ t a)) t)
(* (- (+ a 0.8333333333333334) (/ -2.0 (* t -3.0))) (- c b)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * log(exp(fma(z, (sqrt((t + a)) / t), (((a + 0.8333333333333334) - (-2.0 / (t * -3.0))) * (c - b)))))))));
}
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * log(exp(fma(z, Float64(sqrt(Float64(t + a)) / t), Float64(Float64(Float64(a + 0.8333333333333334) - Float64(-2.0 / Float64(t * -3.0))) * Float64(c - b)))))))))) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[Log[N[Exp[N[(z * N[(N[Sqrt[N[(t + a), $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]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \log \left(e^{\mathsf{fma}\left(z, \frac{\sqrt{t + a}}{t}, \left(\left(a + 0.8333333333333334\right) - \frac{-2}{t \cdot -3}\right) \cdot \left(c - b\right)\right)}\right)}}
\end{array}
Initial program 97.6%
add-log-exp97.6%
associate-/l*97.2%
fma-neg98.4%
*-commutative98.4%
distribute-rgt-neg-in98.4%
metadata-eval98.4%
frac-2neg98.4%
metadata-eval98.4%
distribute-rgt-neg-in98.4%
metadata-eval98.4%
Applied egg-rr98.4%
Final simplification98.4%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
z
(/ (sqrt (+ t a)) t)
(* (- c b) (+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t))))))
x)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / fma(y, pow(exp(2.0), fma(z, (sqrt((t + a)) / t), ((c - b) * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(z, Float64(sqrt(Float64(t + a)) / t), Float64(Float64(c - b) * Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t)))))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(z * N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] / t), $MachinePrecision] + N[(N[(c - b), $MachinePrecision] * N[(a + N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(z, \frac{\sqrt{t + a}}{t}, \left(c - b\right) \cdot \left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right)\right)\right)}, x\right)}
\end{array}
Initial program 97.6%
Simplified98.4%
Final simplification98.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 5.6e-247)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* (- c b) -0.6666666666666666)) t))))))
(if (<= t 1.15e-16)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (+ a 0.8333333333333334) (- c b)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 5.6e-247) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + ((c - b) * -0.6666666666666666)) / t)))));
} else if (t <= 1.15e-16) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 5.6d-247) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((c - b) * (-0.6666666666666666d0))) / t)))))
else if (t <= 1.15d-16) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((a + 0.8333333333333334d0) * (c - b)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 5.6e-247) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + ((c - b) * -0.6666666666666666)) / t)))));
} else if (t <= 1.15e-16) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 5.6e-247: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + ((c - b) * -0.6666666666666666)) / t))))) elif t <= 1.15e-16: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 5.6e-247) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(Float64(c - b) * -0.6666666666666666)) / t)))))); elseif (t <= 1.15e-16) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(a + 0.8333333333333334) * Float64(c - b)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 5.6e-247) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + ((c - b) * -0.6666666666666666)) / t))))); elseif (t <= 1.15e-16) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); else tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 5.6e-247], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(N[(c - b), $MachinePrecision] * -0.6666666666666666), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.15e-16], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 5.6 \cdot 10^{-247}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + \left(c - b\right) \cdot -0.6666666666666666}{t}}}\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-16}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 5.59999999999999973e-247Initial program 97.6%
Taylor expanded in t around 0 91.8%
if 5.59999999999999973e-247 < t < 1.15e-16Initial program 98.3%
Taylor expanded in t around 0 56.6%
Taylor expanded in z around 0 73.6%
if 1.15e-16 < t Initial program 97.2%
Taylor expanded in t around inf 100.0%
Final simplification90.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) c))))))))
(if (<= c -1e+72)
t_1
(if (<= c -1.55e+27)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= c 1.6e+102)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * c)))));
double tmp;
if (c <= -1e+72) {
tmp = t_1;
} else if (c <= -1.55e+27) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (c <= 1.6e+102) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * c)))))
if (c <= (-1d+72)) then
tmp = t_1
else if (c <= (-1.55d+27)) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (c <= 1.6d+102) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * c)))));
double tmp;
if (c <= -1e+72) {
tmp = t_1;
} else if (c <= -1.55e+27) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (c <= 1.6e+102) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * c))))) tmp = 0 if c <= -1e+72: tmp = t_1 elif c <= -1.55e+27: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif c <= 1.6e+102: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * c)))))) tmp = 0.0 if (c <= -1e+72) tmp = t_1; elseif (c <= -1.55e+27) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (c <= 1.6e+102) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * c))))); tmp = 0.0; if (c <= -1e+72) tmp = t_1; elseif (c <= -1.55e+27) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (c <= 1.6e+102) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1e+72], t$95$1, If[LessEqual[c, -1.55e+27], 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[c, 1.6e+102], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot c\right)}}\\
\mathbf{if}\;c \leq -1 \cdot 10^{+72}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.55 \cdot 10^{+27}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;c \leq 1.6 \cdot 10^{+102}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -9.99999999999999944e71 or 1.6e102 < c Initial program 97.4%
Taylor expanded in c around inf 91.0%
cancel-sign-sub-inv91.0%
+-commutative91.0%
metadata-eval91.0%
associate-*r/91.0%
metadata-eval91.0%
associate-+l+91.0%
Simplified91.0%
Taylor expanded in t around inf 75.5%
if -9.99999999999999944e71 < c < -1.54999999999999998e27Initial program 100.0%
Taylor expanded in t around 0 61.1%
Taylor expanded in z around 0 78.6%
if -1.54999999999999998e27 < c < 1.6e102Initial program 97.5%
Taylor expanded in b around inf 83.2%
associate-*r/83.2%
metadata-eval83.2%
+-commutative83.2%
Simplified83.2%
Final simplification80.6%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -9.5e-50) (not (<= c 2.1e+28)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* c (+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t)))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
a
(-
(* b (/ (+ (/ 0.6666666666666666 t) -0.8333333333333334) a))
b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -9.5e-50) || !(c <= 2.1e+28)) {
tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * exp((2.0 * (a * ((b * (((0.6666666666666666 / t) + -0.8333333333333334) / a)) - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((c <= (-9.5d-50)) .or. (.not. (c <= 2.1d+28))) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + (0.8333333333333334d0 + ((-0.6666666666666666d0) / t))))))))
else
tmp = x / (x + (y * exp((2.0d0 * (a * ((b * (((0.6666666666666666d0 / t) + (-0.8333333333333334d0)) / a)) - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -9.5e-50) || !(c <= 2.1e+28)) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * ((b * (((0.6666666666666666 / t) + -0.8333333333333334) / a)) - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (c <= -9.5e-50) or not (c <= 2.1e+28): tmp = x / (x + (y * math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))) else: tmp = x / (x + (y * math.exp((2.0 * (a * ((b * (((0.6666666666666666 / t) + -0.8333333333333334) / a)) - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((c <= -9.5e-50) || !(c <= 2.1e+28)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(Float64(b * Float64(Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334) / a)) - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((c <= -9.5e-50) || ~((c <= 2.1e+28))) tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))); else tmp = x / (x + (y * exp((2.0 * (a * ((b * (((0.6666666666666666 / t) + -0.8333333333333334) / a)) - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[c, -9.5e-50], N[Not[LessEqual[c, 2.1e+28]], $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], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(N[(b * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -9.5 \cdot 10^{-50} \lor \neg \left(c \leq 2.1 \cdot 10^{+28}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(b \cdot \frac{\frac{0.6666666666666666}{t} + -0.8333333333333334}{a} - b\right)\right)}}\\
\end{array}
\end{array}
if c < -9.4999999999999993e-50 or 2.09999999999999989e28 < c Initial program 97.6%
Taylor expanded in c around inf 87.4%
cancel-sign-sub-inv87.4%
+-commutative87.4%
metadata-eval87.4%
associate-*r/87.4%
metadata-eval87.4%
associate-+l+87.4%
Simplified87.4%
if -9.4999999999999993e-50 < c < 2.09999999999999989e28Initial program 97.7%
Taylor expanded in b around inf 85.3%
associate-*r/85.3%
metadata-eval85.3%
+-commutative85.3%
Simplified85.3%
Taylor expanded in a around inf 83.8%
mul-1-neg83.8%
+-commutative83.8%
unsub-neg83.8%
associate-/l*86.0%
sub-neg86.0%
associate-*r/86.0%
metadata-eval86.0%
metadata-eval86.0%
Simplified86.0%
Final simplification86.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 9e-14)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (or (<= t 5e+82) (not (<= t 3.4e+124)))
(/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) c))))))
(/ x (+ x (* y (exp (* -2.0 (* (+ a 0.8333333333333334) b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 9e-14) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if ((t <= 5e+82) || !(t <= 3.4e+124)) {
tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * c)))));
} else {
tmp = x / (x + (y * exp((-2.0 * ((a + 0.8333333333333334) * b)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 9d-14) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if ((t <= 5d+82) .or. (.not. (t <= 3.4d+124))) then
tmp = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * c)))))
else
tmp = x / (x + (y * exp(((-2.0d0) * ((a + 0.8333333333333334d0) * b)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 9e-14) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if ((t <= 5e+82) || !(t <= 3.4e+124)) {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * c)))));
} else {
tmp = x / (x + (y * Math.exp((-2.0 * ((a + 0.8333333333333334) * b)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 9e-14: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif (t <= 5e+82) or not (t <= 3.4e+124): tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * c))))) else: tmp = x / (x + (y * math.exp((-2.0 * ((a + 0.8333333333333334) * b))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 9e-14) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif ((t <= 5e+82) || !(t <= 3.4e+124)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * c)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(Float64(a + 0.8333333333333334) * b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 9e-14) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif ((t <= 5e+82) || ~((t <= 3.4e+124))) tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * c))))); else tmp = x / (x + (y * exp((-2.0 * ((a + 0.8333333333333334) * b))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 9e-14], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 5e+82], N[Not[LessEqual[t, 3.4e+124]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 9 \cdot 10^{-14}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 5 \cdot 10^{+82} \lor \neg \left(t \leq 3.4 \cdot 10^{+124}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot c\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot b\right)}}\\
\end{array}
\end{array}
if t < 8.9999999999999995e-14Initial program 97.9%
Taylor expanded in t around 0 75.7%
Taylor expanded in z around 0 78.6%
if 8.9999999999999995e-14 < t < 5.00000000000000015e82 or 3.4e124 < t Initial program 96.8%
Taylor expanded in c around inf 81.5%
cancel-sign-sub-inv81.5%
+-commutative81.5%
metadata-eval81.5%
associate-*r/81.5%
metadata-eval81.5%
associate-+l+81.5%
Simplified81.5%
Taylor expanded in t around inf 81.5%
if 5.00000000000000015e82 < t < 3.4e124Initial program 99.9%
Taylor expanded in b around inf 87.0%
associate-*r/87.0%
metadata-eval87.0%
+-commutative87.0%
Simplified87.0%
Taylor expanded in t around inf 87.0%
Final simplification80.1%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -9.2e-50) (not (<= c 2e+28)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* c (+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t)))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -9.2e-50) || !(c <= 2e+28)) {
tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((c <= (-9.2d-50)) .or. (.not. (c <= 2d+28))) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + (0.8333333333333334d0 + ((-0.6666666666666666d0) / t))))))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -9.2e-50) || !(c <= 2e+28)) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (c <= -9.2e-50) or not (c <= 2e+28): tmp = x / (x + (y * math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((c <= -9.2e-50) || !(c <= 2e+28)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((c <= -9.2e-50) || ~((c <= 2e+28))) tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[c, -9.2e-50], N[Not[LessEqual[c, 2e+28]], $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], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -9.2 \cdot 10^{-50} \lor \neg \left(c \leq 2 \cdot 10^{+28}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if c < -9.20000000000000078e-50 or 1.99999999999999992e28 < c Initial program 97.6%
Taylor expanded in c around inf 87.4%
cancel-sign-sub-inv87.4%
+-commutative87.4%
metadata-eval87.4%
associate-*r/87.4%
metadata-eval87.4%
associate-+l+87.4%
Simplified87.4%
if -9.20000000000000078e-50 < c < 1.99999999999999992e28Initial program 97.7%
Taylor expanded in b around inf 85.3%
associate-*r/85.3%
metadata-eval85.3%
+-commutative85.3%
Simplified85.3%
Final simplification86.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -2.4e-175)
(/ x (+ x (* y (exp (* -2.0 (* a b))))))
(if (<= t 1300000000000.0)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ b t))))))
(/ x (+ x (* y (exp (* -2.0 (* (+ a 0.8333333333333334) b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -2.4e-175) {
tmp = x / (x + (y * exp((-2.0 * (a * b)))));
} else if (t <= 1300000000000.0) {
tmp = x / (x + (y * exp((1.3333333333333333 * (b / t)))));
} else {
tmp = x / (x + (y * exp((-2.0 * ((a + 0.8333333333333334) * b)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-2.4d-175)) then
tmp = x / (x + (y * exp(((-2.0d0) * (a * b)))))
else if (t <= 1300000000000.0d0) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * (b / t)))))
else
tmp = x / (x + (y * exp(((-2.0d0) * ((a + 0.8333333333333334d0) * b)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -2.4e-175) {
tmp = x / (x + (y * Math.exp((-2.0 * (a * b)))));
} else if (t <= 1300000000000.0) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * (b / t)))));
} else {
tmp = x / (x + (y * Math.exp((-2.0 * ((a + 0.8333333333333334) * b)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -2.4e-175: tmp = x / (x + (y * math.exp((-2.0 * (a * b))))) elif t <= 1300000000000.0: tmp = x / (x + (y * math.exp((1.3333333333333333 * (b / t))))) else: tmp = x / (x + (y * math.exp((-2.0 * ((a + 0.8333333333333334) * b))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -2.4e-175) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))); elseif (t <= 1300000000000.0) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(b / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(Float64(a + 0.8333333333333334) * b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -2.4e-175) tmp = x / (x + (y * exp((-2.0 * (a * b))))); elseif (t <= 1300000000000.0) tmp = x / (x + (y * exp((1.3333333333333333 * (b / t))))); else tmp = x / (x + (y * exp((-2.0 * ((a + 0.8333333333333334) * b))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -2.4e-175], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1300000000000.0], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.4 \cdot 10^{-175}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;t \leq 1300000000000:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot b\right)}}\\
\end{array}
\end{array}
if t < -2.4e-175Initial program 100.0%
Taylor expanded in b around inf 70.2%
associate-*r/70.2%
metadata-eval70.2%
+-commutative70.2%
Simplified70.2%
Taylor expanded in t around inf 72.4%
Taylor expanded in a around inf 72.4%
*-commutative72.4%
Simplified72.4%
if -2.4e-175 < t < 1.3e12Initial program 97.2%
Taylor expanded in b around inf 73.2%
associate-*r/73.2%
metadata-eval73.2%
+-commutative73.2%
Simplified73.2%
Taylor expanded in a around inf 71.5%
mul-1-neg71.5%
+-commutative71.5%
unsub-neg71.5%
associate-/l*73.2%
sub-neg73.2%
associate-*r/73.2%
metadata-eval73.2%
metadata-eval73.2%
Simplified73.2%
Taylor expanded in t around 0 73.2%
*-commutative73.2%
Simplified73.2%
Taylor expanded in a around 0 68.0%
if 1.3e12 < t Initial program 97.1%
Taylor expanded in b around inf 74.1%
associate-*r/74.1%
metadata-eval74.1%
+-commutative74.1%
Simplified74.1%
Taylor expanded in t around inf 74.1%
Final simplification71.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -1.8e-176)
(/ x (+ x (* y (exp (* -2.0 (* a b))))))
(if (<= t 5e-18)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ b t))))))
(/ x (+ x (* y (exp (* b -1.6666666666666667))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1.8e-176) {
tmp = x / (x + (y * exp((-2.0 * (a * b)))));
} else if (t <= 5e-18) {
tmp = x / (x + (y * exp((1.3333333333333333 * (b / t)))));
} else {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-1.8d-176)) then
tmp = x / (x + (y * exp(((-2.0d0) * (a * b)))))
else if (t <= 5d-18) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * (b / t)))))
else
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1.8e-176) {
tmp = x / (x + (y * Math.exp((-2.0 * (a * b)))));
} else if (t <= 5e-18) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * (b / t)))));
} else {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -1.8e-176: tmp = x / (x + (y * math.exp((-2.0 * (a * b))))) elif t <= 5e-18: tmp = x / (x + (y * math.exp((1.3333333333333333 * (b / t))))) else: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -1.8e-176) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))); elseif (t <= 5e-18) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(b / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -1.8e-176) tmp = x / (x + (y * exp((-2.0 * (a * b))))); elseif (t <= 5e-18) tmp = x / (x + (y * exp((1.3333333333333333 * (b / t))))); else tmp = x / (x + (y * exp((b * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -1.8e-176], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5e-18], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.8 \cdot 10^{-176}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-18}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -1.8000000000000001e-176Initial program 100.0%
Taylor expanded in b around inf 70.2%
associate-*r/70.2%
metadata-eval70.2%
+-commutative70.2%
Simplified70.2%
Taylor expanded in t around inf 72.4%
Taylor expanded in a around inf 72.4%
*-commutative72.4%
Simplified72.4%
if -1.8000000000000001e-176 < t < 5.00000000000000036e-18Initial program 97.0%
Taylor expanded in b around inf 76.1%
associate-*r/76.1%
metadata-eval76.1%
+-commutative76.1%
Simplified76.1%
Taylor expanded in a around inf 74.2%
mul-1-neg74.2%
+-commutative74.2%
unsub-neg74.2%
associate-/l*76.1%
sub-neg76.1%
associate-*r/76.1%
metadata-eval76.1%
metadata-eval76.1%
Simplified76.1%
Taylor expanded in t around 0 76.1%
*-commutative76.1%
Simplified76.1%
Taylor expanded in a around 0 70.5%
if 5.00000000000000036e-18 < t Initial program 97.3%
Taylor expanded in b around inf 71.3%
associate-*r/71.3%
metadata-eval71.3%
+-commutative71.3%
Simplified71.3%
Taylor expanded in t around inf 71.3%
Taylor expanded in a around 0 67.9%
Final simplification69.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -8.5e-144)
(/ x (+ x (* y (exp (* -2.0 (* a b))))))
(if (<= t 92000000000000.0)
1.0
(/ x (+ x (* y (exp (* b -1.6666666666666667))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -8.5e-144) {
tmp = x / (x + (y * exp((-2.0 * (a * b)))));
} else if (t <= 92000000000000.0) {
tmp = 1.0;
} else {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-8.5d-144)) then
tmp = x / (x + (y * exp(((-2.0d0) * (a * b)))))
else if (t <= 92000000000000.0d0) then
tmp = 1.0d0
else
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -8.5e-144) {
tmp = x / (x + (y * Math.exp((-2.0 * (a * b)))));
} else if (t <= 92000000000000.0) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -8.5e-144: tmp = x / (x + (y * math.exp((-2.0 * (a * b))))) elif t <= 92000000000000.0: tmp = 1.0 else: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -8.5e-144) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))); elseif (t <= 92000000000000.0) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -8.5e-144) tmp = x / (x + (y * exp((-2.0 * (a * b))))); elseif (t <= 92000000000000.0) tmp = 1.0; else tmp = x / (x + (y * exp((b * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -8.5e-144], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 92000000000000.0], 1.0, N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8.5 \cdot 10^{-144}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;t \leq 92000000000000:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -8.49999999999999958e-144Initial program 100.0%
Taylor expanded in b around inf 71.7%
associate-*r/71.7%
metadata-eval71.7%
+-commutative71.7%
Simplified71.7%
Taylor expanded in t around inf 71.7%
Taylor expanded in a around inf 71.7%
*-commutative71.7%
Simplified71.7%
if -8.49999999999999958e-144 < t < 9.2e13Initial program 97.4%
Taylor expanded in b around inf 72.6%
associate-*r/72.6%
metadata-eval72.6%
+-commutative72.6%
Simplified72.6%
Taylor expanded in b around 0 36.6%
Taylor expanded in x around inf 58.9%
if 9.2e13 < t Initial program 97.1%
Taylor expanded in b around inf 74.1%
associate-*r/74.1%
metadata-eval74.1%
+-commutative74.1%
Simplified74.1%
Taylor expanded in t around inf 74.1%
Taylor expanded in a around 0 70.5%
Final simplification65.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -7.2e+24)
(/ x (* y (exp (* -2.0 (* a b)))))
(if (<= t 1400000000000.0)
1.0
(/ x (+ x (* y (exp (* b -1.6666666666666667))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -7.2e+24) {
tmp = x / (y * exp((-2.0 * (a * b))));
} else if (t <= 1400000000000.0) {
tmp = 1.0;
} else {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-7.2d+24)) then
tmp = x / (y * exp(((-2.0d0) * (a * b))))
else if (t <= 1400000000000.0d0) then
tmp = 1.0d0
else
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -7.2e+24) {
tmp = x / (y * Math.exp((-2.0 * (a * b))));
} else if (t <= 1400000000000.0) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -7.2e+24: tmp = x / (y * math.exp((-2.0 * (a * b)))) elif t <= 1400000000000.0: tmp = 1.0 else: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -7.2e+24) tmp = Float64(x / Float64(y * exp(Float64(-2.0 * Float64(a * b))))); elseif (t <= 1400000000000.0) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -7.2e+24) tmp = x / (y * exp((-2.0 * (a * b)))); elseif (t <= 1400000000000.0) tmp = 1.0; else tmp = x / (x + (y * exp((b * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -7.2e+24], N[(x / N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1400000000000.0], 1.0, N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.2 \cdot 10^{+24}:\\
\;\;\;\;\frac{x}{y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;t \leq 1400000000000:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -7.19999999999999966e24Initial program 100.0%
Taylor expanded in b around inf 56.1%
associate-*r/56.1%
metadata-eval56.1%
+-commutative56.1%
Simplified56.1%
Taylor expanded in t around inf 56.1%
Taylor expanded in a around inf 56.1%
*-commutative56.1%
Simplified56.1%
Taylor expanded in x around 0 55.7%
if -7.19999999999999966e24 < t < 1.4e12Initial program 97.8%
Taylor expanded in b around inf 73.6%
associate-*r/73.6%
metadata-eval73.6%
+-commutative73.6%
Simplified73.6%
Taylor expanded in b around 0 35.6%
Taylor expanded in x around inf 58.3%
if 1.4e12 < t Initial program 97.1%
Taylor expanded in b around inf 74.1%
associate-*r/74.1%
metadata-eval74.1%
+-commutative74.1%
Simplified74.1%
Taylor expanded in t around inf 74.1%
Taylor expanded in a around 0 70.5%
Final simplification63.0%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 8e-13) (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t)))))) (/ x (+ x (* y (exp (* -2.0 (* (+ a 0.8333333333333334) b))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 8e-13) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * exp((-2.0 * ((a + 0.8333333333333334) * b)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 8d-13) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else
tmp = x / (x + (y * exp(((-2.0d0) * ((a + 0.8333333333333334d0) * b)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 8e-13) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * Math.exp((-2.0 * ((a + 0.8333333333333334) * b)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 8e-13: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) else: tmp = x / (x + (y * math.exp((-2.0 * ((a + 0.8333333333333334) * b))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 8e-13) 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(a + 0.8333333333333334) * b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 8e-13) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); else tmp = x / (x + (y * exp((-2.0 * ((a + 0.8333333333333334) * b))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 8e-13], 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[(a + 0.8333333333333334), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 8 \cdot 10^{-13}:\\
\;\;\;\;\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(a + 0.8333333333333334\right) \cdot b\right)}}\\
\end{array}
\end{array}
if t < 8.0000000000000002e-13Initial program 97.9%
Taylor expanded in t around 0 75.7%
Taylor expanded in z around 0 78.6%
if 8.0000000000000002e-13 < t Initial program 97.2%
Taylor expanded in b around inf 72.6%
associate-*r/72.6%
metadata-eval72.6%
+-commutative72.6%
Simplified72.6%
Taylor expanded in t around inf 72.6%
Final simplification76.1%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= z -2.5e-305) (not (<= z 4.4e-149)))
1.0
(/
x
(+
x
(*
y
(+
1.0
(*
2.0
(* a (* b (+ (* 0.6666666666666666 (/ 1.0 (* t a))) -1.0))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -2.5e-305) || !(z <= 4.4e-149)) {
tmp = 1.0;
} else {
tmp = x / (x + (y * (1.0 + (2.0 * (a * (b * ((0.6666666666666666 * (1.0 / (t * a))) + -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 ((z <= (-2.5d-305)) .or. (.not. (z <= 4.4d-149))) then
tmp = 1.0d0
else
tmp = x / (x + (y * (1.0d0 + (2.0d0 * (a * (b * ((0.6666666666666666d0 * (1.0d0 / (t * a))) + (-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 ((z <= -2.5e-305) || !(z <= 4.4e-149)) {
tmp = 1.0;
} else {
tmp = x / (x + (y * (1.0 + (2.0 * (a * (b * ((0.6666666666666666 * (1.0 / (t * a))) + -1.0)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (z <= -2.5e-305) or not (z <= 4.4e-149): tmp = 1.0 else: tmp = x / (x + (y * (1.0 + (2.0 * (a * (b * ((0.6666666666666666 * (1.0 / (t * a))) + -1.0))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -2.5e-305) || !(z <= 4.4e-149)) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(2.0 * Float64(a * Float64(b * Float64(Float64(0.6666666666666666 * Float64(1.0 / Float64(t * a))) + -1.0)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((z <= -2.5e-305) || ~((z <= 4.4e-149))) tmp = 1.0; else tmp = x / (x + (y * (1.0 + (2.0 * (a * (b * ((0.6666666666666666 * (1.0 / (t * a))) + -1.0))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -2.5e-305], N[Not[LessEqual[z, 4.4e-149]], $MachinePrecision]], 1.0, N[(x / N[(x + N[(y * N[(1.0 + N[(2.0 * N[(a * N[(b * N[(N[(0.6666666666666666 * N[(1.0 / N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.5 \cdot 10^{-305} \lor \neg \left(z \leq 4.4 \cdot 10^{-149}\right):\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + 2 \cdot \left(a \cdot \left(b \cdot \left(0.6666666666666666 \cdot \frac{1}{t \cdot a} + -1\right)\right)\right)\right)}\\
\end{array}
\end{array}
if z < -2.49999999999999993e-305 or 4.3999999999999996e-149 < z Initial program 97.2%
Taylor expanded in b around inf 72.3%
associate-*r/72.3%
metadata-eval72.3%
+-commutative72.3%
Simplified72.3%
Taylor expanded in b around 0 35.3%
Taylor expanded in x around inf 56.2%
if -2.49999999999999993e-305 < z < 4.3999999999999996e-149Initial program 99.9%
Taylor expanded in b around inf 77.5%
associate-*r/77.5%
metadata-eval77.5%
+-commutative77.5%
Simplified77.5%
Taylor expanded in a around inf 77.5%
mul-1-neg77.5%
+-commutative77.5%
unsub-neg77.5%
associate-/l*77.5%
sub-neg77.5%
associate-*r/77.5%
metadata-eval77.5%
metadata-eval77.5%
Simplified77.5%
Taylor expanded in t around 0 74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in b around 0 54.9%
Final simplification56.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -1.08e+198)
(/
x
(+
x
(*
y
(+
1.0
(* (* 2.0 b) (+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a)))))))
(if (<= b -2.25e+163)
1.0
(if (<= b -2.4e+61)
(/ x (+ x (* y (+ 1.0 (* -2.0 (* (+ a 0.8333333333333334) b))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.08e+198) {
tmp = x / (x + (y * (1.0 + ((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))))));
} else if (b <= -2.25e+163) {
tmp = 1.0;
} else if (b <= -2.4e+61) {
tmp = x / (x + (y * (1.0 + (-2.0 * ((a + 0.8333333333333334) * 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 <= (-1.08d+198)) then
tmp = x / (x + (y * (1.0d0 + ((2.0d0 * b) * ((0.6666666666666666d0 / t) + ((-0.8333333333333334d0) - a))))))
else if (b <= (-2.25d+163)) then
tmp = 1.0d0
else if (b <= (-2.4d+61)) then
tmp = x / (x + (y * (1.0d0 + ((-2.0d0) * ((a + 0.8333333333333334d0) * 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 <= -1.08e+198) {
tmp = x / (x + (y * (1.0 + ((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))))));
} else if (b <= -2.25e+163) {
tmp = 1.0;
} else if (b <= -2.4e+61) {
tmp = x / (x + (y * (1.0 + (-2.0 * ((a + 0.8333333333333334) * b)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -1.08e+198: tmp = x / (x + (y * (1.0 + ((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a)))))) elif b <= -2.25e+163: tmp = 1.0 elif b <= -2.4e+61: tmp = x / (x + (y * (1.0 + (-2.0 * ((a + 0.8333333333333334) * b))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -1.08e+198) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(Float64(2.0 * b) * Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a))))))); elseif (b <= -2.25e+163) tmp = 1.0; elseif (b <= -2.4e+61) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(-2.0 * Float64(Float64(a + 0.8333333333333334) * 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 <= -1.08e+198) tmp = x / (x + (y * (1.0 + ((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a)))))); elseif (b <= -2.25e+163) tmp = 1.0; elseif (b <= -2.4e+61) tmp = x / (x + (y * (1.0 + (-2.0 * ((a + 0.8333333333333334) * b))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -1.08e+198], N[(x / N[(x + N[(y * N[(1.0 + N[(N[(2.0 * b), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.25e+163], 1.0, If[LessEqual[b, -2.4e+61], N[(x / N[(x + N[(y * N[(1.0 + N[(-2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.08 \cdot 10^{+198}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + \left(2 \cdot b\right) \cdot \left(\frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right)\right)\right)}\\
\mathbf{elif}\;b \leq -2.25 \cdot 10^{+163}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -2.4 \cdot 10^{+61}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + -2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot b\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.08e198Initial program 96.2%
Taylor expanded in b around inf 92.5%
associate-*r/92.5%
metadata-eval92.5%
+-commutative92.5%
Simplified92.5%
Taylor expanded in b around 0 66.7%
associate-*r*66.7%
*-commutative66.7%
sub-neg66.7%
associate-*r/66.7%
metadata-eval66.7%
mul-1-neg66.7%
distribute-lft-in66.7%
metadata-eval66.7%
mul-1-neg66.7%
unsub-neg66.7%
Simplified66.7%
if -1.08e198 < b < -2.24999999999999994e163 or -2.3999999999999999e61 < b Initial program 97.7%
Taylor expanded in b around inf 69.5%
associate-*r/69.5%
metadata-eval69.5%
+-commutative69.5%
Simplified69.5%
Taylor expanded in b around 0 38.5%
Taylor expanded in x around inf 57.4%
if -2.24999999999999994e163 < b < -2.3999999999999999e61Initial program 100.0%
Taylor expanded in b around inf 92.5%
associate-*r/92.5%
metadata-eval92.5%
+-commutative92.5%
Simplified92.5%
Taylor expanded in t around inf 85.1%
Taylor expanded in b around 0 63.1%
Final simplification58.6%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -4e+66) (/ x (+ x (* y (+ 1.0 (* -2.0 (* (+ a 0.8333333333333334) b)))))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -4e+66) {
tmp = x / (x + (y * (1.0 + (-2.0 * ((a + 0.8333333333333334) * 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 <= (-4d+66)) then
tmp = x / (x + (y * (1.0d0 + ((-2.0d0) * ((a + 0.8333333333333334d0) * 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 <= -4e+66) {
tmp = x / (x + (y * (1.0 + (-2.0 * ((a + 0.8333333333333334) * b)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -4e+66: tmp = x / (x + (y * (1.0 + (-2.0 * ((a + 0.8333333333333334) * b))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -4e+66) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(-2.0 * Float64(Float64(a + 0.8333333333333334) * 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 <= -4e+66) tmp = x / (x + (y * (1.0 + (-2.0 * ((a + 0.8333333333333334) * b))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -4e+66], N[(x / N[(x + N[(y * N[(1.0 + N[(-2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4 \cdot 10^{+66}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + -2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot b\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.99999999999999978e66Initial program 98.1%
Taylor expanded in b around inf 89.0%
associate-*r/89.0%
metadata-eval89.0%
+-commutative89.0%
Simplified89.0%
Taylor expanded in t around inf 63.4%
Taylor expanded in b around 0 56.6%
if -3.99999999999999978e66 < b Initial program 97.5%
Taylor expanded in b around inf 68.9%
associate-*r/68.9%
metadata-eval68.9%
+-commutative68.9%
Simplified68.9%
Taylor expanded in b around 0 38.1%
Taylor expanded in x around inf 56.8%
Final simplification56.8%
(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 97.6%
Taylor expanded in b around inf 73.0%
associate-*r/73.0%
metadata-eval73.0%
+-commutative73.0%
Simplified73.0%
Taylor expanded in b around 0 35.9%
Taylor expanded in x around inf 52.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 2024096
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:alt
(if (< t -2.118326644891581e-50) (/ x (+ x (* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b))))))) (if (< t 5.196588770651547e-123) (/ x (+ x (* y (exp (* 2.0 (/ (- (* (* z (sqrt (+ t a))) (* (* 3.0 t) (- a (/ 5.0 6.0)))) (* (- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0) (* (- a (/ 5.0 6.0)) (* (- b c) t)))) (* (* (* t t) 3.0) (- a (/ 5.0 6.0))))))))) (/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))