
(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 19 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 (/ 2.0 (* t 3.0))) (t_2 (sqrt (+ a t))))
(if (<=
(+ (/ (* z t_2) t) (* (- b c) (- t_1 (+ 0.8333333333333334 a))))
INFINITY)
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(+ (* z (/ t_2 t)) (* (- b c) (- (- t_1 0.8333333333333334) a)))))))
(/
x
(-
x
(*
y
(-
-1.0
(*
(* 2.0 c)
(+ 0.8333333333333334 (+ a (/ -0.6666666666666666 t)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 2.0 / (t * 3.0);
double t_2 = sqrt((a + t));
double tmp;
if ((((z * t_2) / t) + ((b - c) * (t_1 - (0.8333333333333334 + a)))) <= ((double) INFINITY)) {
tmp = x / (x + (y * pow(exp(2.0), ((z * (t_2 / t)) + ((b - c) * ((t_1 - 0.8333333333333334) - a))))));
} else {
tmp = x / (x - (y * (-1.0 - ((2.0 * c) * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 2.0 / (t * 3.0);
double t_2 = Math.sqrt((a + t));
double tmp;
if ((((z * t_2) / t) + ((b - c) * (t_1 - (0.8333333333333334 + a)))) <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), ((z * (t_2 / t)) + ((b - c) * ((t_1 - 0.8333333333333334) - a))))));
} else {
tmp = x / (x - (y * (-1.0 - ((2.0 * c) * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = 2.0 / (t * 3.0) t_2 = math.sqrt((a + t)) tmp = 0 if (((z * t_2) / t) + ((b - c) * (t_1 - (0.8333333333333334 + a)))) <= math.inf: tmp = x / (x + (y * math.pow(math.exp(2.0), ((z * (t_2 / t)) + ((b - c) * ((t_1 - 0.8333333333333334) - a)))))) else: tmp = x / (x - (y * (-1.0 - ((2.0 * c) * (0.8333333333333334 + (a + (-0.6666666666666666 / t))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(2.0 / Float64(t * 3.0)) t_2 = sqrt(Float64(a + t)) tmp = 0.0 if (Float64(Float64(Float64(z * t_2) / t) + Float64(Float64(b - c) * Float64(t_1 - Float64(0.8333333333333334 + a)))) <= Inf) tmp = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(Float64(z * Float64(t_2 / t)) + Float64(Float64(b - c) * Float64(Float64(t_1 - 0.8333333333333334) - a))))))); else tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(Float64(2.0 * c) * Float64(0.8333333333333334 + Float64(a + Float64(-0.6666666666666666 / t)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = 2.0 / (t * 3.0); t_2 = sqrt((a + t)); tmp = 0.0; if ((((z * t_2) / t) + ((b - c) * (t_1 - (0.8333333333333334 + a)))) <= Inf) tmp = x / (x + (y * (exp(2.0) ^ ((z * (t_2 / t)) + ((b - c) * ((t_1 - 0.8333333333333334) - a)))))); else tmp = x / (x - (y * (-1.0 - ((2.0 * c) * (0.8333333333333334 + (a + (-0.6666666666666666 / t))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(N[(N[(z * t$95$2), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(t$95$1 - N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(z * N[(t$95$2 / t), $MachinePrecision]), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(t$95$1 - 0.8333333333333334), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x - N[(y * N[(-1.0 - N[(N[(2.0 * c), $MachinePrecision] * N[(0.8333333333333334 + N[(a + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{2}{t \cdot 3}\\
t_2 := \sqrt{a + t}\\
\mathbf{if}\;\frac{z \cdot t\_2}{t} + \left(b - c\right) \cdot \left(t\_1 - \left(0.8333333333333334 + a\right)\right) \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(z \cdot \frac{t\_2}{t} + \left(b - c\right) \cdot \left(\left(t\_1 - 0.8333333333333334\right) - a\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - \left(2 \cdot c\right) \cdot \left(0.8333333333333334 + \left(a + \frac{-0.6666666666666666}{t}\right)\right)\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < +inf.0Initial program 98.4%
exp-prod98.4%
Simplified99.2%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 0.0%
Taylor expanded in c around inf 51.6%
associate--l+51.6%
associate-*r/51.6%
metadata-eval51.6%
Simplified51.6%
Taylor expanded in c around 0 74.6%
associate-*r*74.6%
associate--l+74.6%
associate-*r/74.6%
metadata-eval74.6%
sub-neg74.6%
distribute-neg-frac74.6%
metadata-eval74.6%
Simplified74.6%
Final simplification98.2%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(*
x
(+
1.0
(*
y
(/
(pow
(exp 2.0)
(fma
(- c b)
(+ 0.8333333333333334 (- a (/ 0.6666666666666666 t)))
(* z (/ (sqrt (+ a t)) t))))
x))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x * (1.0 + (y * (pow(exp(2.0), fma((c - b), (0.8333333333333334 + (a - (0.6666666666666666 / t))), (z * (sqrt((a + t)) / t)))) / x))));
}
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x * Float64(1.0 + Float64(y * Float64((exp(2.0) ^ fma(Float64(c - b), Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))), Float64(z * Float64(sqrt(Float64(a + t)) / t)))) / x))))) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x * N[(1.0 + N[(y * N[(N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(c - b), $MachinePrecision] * N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x \cdot \left(1 + y \cdot \frac{{\left(e^{2}\right)}^{\left(\mathsf{fma}\left(c - b, 0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right), z \cdot \frac{\sqrt{a + t}}{t}\right)\right)}}{x}\right)}
\end{array}
Initial program 94.6%
Simplified97.3%
Taylor expanded in x around inf 96.1%
Simplified98.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ a t))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ 0.8333333333333334 a))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/
x
(-
x
(*
y
(-
-1.0
(*
(* 2.0 c)
(+ 0.8333333333333334 (+ a (/ -0.6666666666666666 t)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (0.8333333333333334 + a)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x - (y * (-1.0 - ((2.0 * c) * (0.8333333333333334 + (a + (-0.6666666666666666 / 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((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (0.8333333333333334 + a)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x - (y * (-1.0 - ((2.0 * c) * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (0.8333333333333334 + a))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x - (y * (-1.0 - ((2.0 * c) * (0.8333333333333334 + (a + (-0.6666666666666666 / t))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(a + t))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(0.8333333333333334 + a)))) 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 * Float64(-1.0 - Float64(Float64(2.0 * c) * Float64(0.8333333333333334 + Float64(a + Float64(-0.6666666666666666 / t)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (0.8333333333333334 + a))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x - (y * (-1.0 - ((2.0 * c) * (0.8333333333333334 + (a + (-0.6666666666666666 / 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[(a + t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x - N[(y * N[(-1.0 - N[(N[(2.0 * c), $MachinePrecision] * N[(0.8333333333333334 + N[(a + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{a + t}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(0.8333333333333334 + a\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t\_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - \left(2 \cdot c\right) \cdot \left(0.8333333333333334 + \left(a + \frac{-0.6666666666666666}{t}\right)\right)\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < +inf.0Initial program 98.4%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 0.0%
Taylor expanded in c around inf 51.6%
associate--l+51.6%
associate-*r/51.6%
metadata-eval51.6%
Simplified51.6%
Taylor expanded in c around 0 74.6%
associate-*r*74.6%
associate--l+74.6%
associate-*r/74.6%
metadata-eval74.6%
sub-neg74.6%
distribute-neg-frac74.6%
metadata-eval74.6%
Simplified74.6%
Final simplification97.5%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= (- b c) -5000000000000.0) (not (<= (- b c) 1e-9)))
(/
x
(*
x
(+
1.0
(*
y
(/
(exp
(*
2.0
(*
(- b c)
(- (* 0.6666666666666666 (/ 1.0 t)) (+ 0.8333333333333334 a)))))
x)))))
(/
x
(+ x (* y (exp (* 2.0 (+ (/ (* z (sqrt (+ a t))) t) (* a (- c b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (((b - c) <= -5000000000000.0) || !((b - c) <= 1e-9)) {
tmp = x / (x * (1.0 + (y * (exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - (0.8333333333333334 + a))))) / x))));
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt((a + t))) / t) + (a * (c - b)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (((b - c) <= (-5000000000000.0d0)) .or. (.not. ((b - c) <= 1d-9))) then
tmp = x / (x * (1.0d0 + (y * (exp((2.0d0 * ((b - c) * ((0.6666666666666666d0 * (1.0d0 / t)) - (0.8333333333333334d0 + a))))) / x))))
else
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt((a + t))) / t) + (a * (c - b)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (((b - c) <= -5000000000000.0) || !((b - c) <= 1e-9)) {
tmp = x / (x * (1.0 + (y * (Math.exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - (0.8333333333333334 + a))))) / x))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((a + t))) / t) + (a * (c - b)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if ((b - c) <= -5000000000000.0) or not ((b - c) <= 1e-9): tmp = x / (x * (1.0 + (y * (math.exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - (0.8333333333333334 + a))))) / x)))) else: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt((a + t))) / t) + (a * (c - b))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((Float64(b - c) <= -5000000000000.0) || !(Float64(b - c) <= 1e-9)) tmp = Float64(x / Float64(x * Float64(1.0 + Float64(y * Float64(exp(Float64(2.0 * Float64(Float64(b - c) * Float64(Float64(0.6666666666666666 * Float64(1.0 / t)) - Float64(0.8333333333333334 + a))))) / x))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(a + t))) / t) + Float64(a * Float64(c - b)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (((b - c) <= -5000000000000.0) || ~(((b - c) <= 1e-9))) tmp = x / (x * (1.0 + (y * (exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - (0.8333333333333334 + a))))) / x)))); else tmp = x / (x + (y * exp((2.0 * (((z * sqrt((a + t))) / t) + (a * (c - b))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[N[(b - c), $MachinePrecision], -5000000000000.0], N[Not[LessEqual[N[(b - c), $MachinePrecision], 1e-9]], $MachinePrecision]], N[(x / N[(x * N[(1.0 + N[(y * N[(N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision] - N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -5000000000000 \lor \neg \left(b - c \leq 10^{-9}\right):\\
\;\;\;\;\frac{x}{x \cdot \left(1 + y \cdot \frac{e^{2 \cdot \left(\left(b - c\right) \cdot \left(0.6666666666666666 \cdot \frac{1}{t} - \left(0.8333333333333334 + a\right)\right)\right)}}{x}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{a + t}}{t} + a \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if (-.f64 b c) < -5e12 or 1.00000000000000006e-9 < (-.f64 b c) Initial program 93.3%
Simplified96.9%
Taylor expanded in x around inf 95.3%
Simplified97.5%
Taylor expanded in z around 0 95.4%
if -5e12 < (-.f64 b c) < 1.00000000000000006e-9Initial program 98.4%
Taylor expanded in a around inf 92.2%
Final simplification94.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -2.1e+56)
(/
x
(*
x
(+ 1.0 (* y (/ (exp (* 2.0 (* (+ 0.8333333333333334 a) (- c b)))) x)))))
(if (<= t 2.1e-225)
(/
x
(+
x
(*
y
(exp
(* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(/
x
(*
x
(+
1.0
(*
y
(/
(exp
(*
2.0
(*
(- b c)
(- (* 0.6666666666666666 (/ 1.0 t)) (+ 0.8333333333333334 a)))))
x))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -2.1e+56) {
tmp = x / (x * (1.0 + (y * (exp((2.0 * ((0.8333333333333334 + a) * (c - b)))) / x))));
} else if (t <= 2.1e-225) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else {
tmp = x / (x * (1.0 + (y * (exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - (0.8333333333333334 + a))))) / x))));
}
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.1d+56)) then
tmp = x / (x * (1.0d0 + (y * (exp((2.0d0 * ((0.8333333333333334d0 + a) * (c - b)))) / x))))
else if (t <= 2.1d-225) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else
tmp = x / (x * (1.0d0 + (y * (exp((2.0d0 * ((b - c) * ((0.6666666666666666d0 * (1.0d0 / t)) - (0.8333333333333334d0 + a))))) / x))))
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.1e+56) {
tmp = x / (x * (1.0 + (y * (Math.exp((2.0 * ((0.8333333333333334 + a) * (c - b)))) / x))));
} else if (t <= 2.1e-225) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else {
tmp = x / (x * (1.0 + (y * (Math.exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - (0.8333333333333334 + a))))) / x))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -2.1e+56: tmp = x / (x * (1.0 + (y * (math.exp((2.0 * ((0.8333333333333334 + a) * (c - b)))) / x)))) elif t <= 2.1e-225: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) else: tmp = x / (x * (1.0 + (y * (math.exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - (0.8333333333333334 + a))))) / x)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -2.1e+56) tmp = Float64(x / Float64(x * Float64(1.0 + Float64(y * Float64(exp(Float64(2.0 * Float64(Float64(0.8333333333333334 + a) * Float64(c - b)))) / x))))); elseif (t <= 2.1e-225) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); else tmp = Float64(x / Float64(x * Float64(1.0 + Float64(y * Float64(exp(Float64(2.0 * Float64(Float64(b - c) * Float64(Float64(0.6666666666666666 * Float64(1.0 / t)) - Float64(0.8333333333333334 + a))))) / x))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -2.1e+56) tmp = x / (x * (1.0 + (y * (exp((2.0 * ((0.8333333333333334 + a) * (c - b)))) / x)))); elseif (t <= 2.1e-225) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); else tmp = x / (x * (1.0 + (y * (exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - (0.8333333333333334 + a))))) / x)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -2.1e+56], N[(x / N[(x * N[(1.0 + N[(y * N[(N[Exp[N[(2.0 * N[(N[(0.8333333333333334 + a), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.1e-225], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x * N[(1.0 + N[(y * N[(N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision] - N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.1 \cdot 10^{+56}:\\
\;\;\;\;\frac{x}{x \cdot \left(1 + y \cdot \frac{e^{2 \cdot \left(\left(0.8333333333333334 + a\right) \cdot \left(c - b\right)\right)}}{x}\right)}\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{-225}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x \cdot \left(1 + y \cdot \frac{e^{2 \cdot \left(\left(b - c\right) \cdot \left(0.6666666666666666 \cdot \frac{1}{t} - \left(0.8333333333333334 + a\right)\right)\right)}}{x}\right)}\\
\end{array}
\end{array}
if t < -2.10000000000000017e56Initial program 73.0%
Simplified100.0%
Taylor expanded in x around inf 90.9%
Simplified91.2%
Taylor expanded in z around 0 91.2%
Taylor expanded in t around inf 91.2%
if -2.10000000000000017e56 < t < 2.1e-225Initial program 91.5%
Taylor expanded in t around 0 98.6%
if 2.1e-225 < t Initial program 97.2%
Simplified99.4%
Taylor expanded in x around inf 98.8%
Simplified100.0%
Taylor expanded in z around 0 92.5%
Final simplification94.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= z -8e+277)
(/
x
(+
x
(* y (exp (* 2.0 (/ (- (* z (sqrt a)) (* c 0.6666666666666666)) t))))))
(/
x
(*
x
(+
1.0
(*
y
(/
(exp
(*
2.0
(*
(- b c)
(- (* 0.6666666666666666 (/ 1.0 t)) (+ 0.8333333333333334 a)))))
x)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -8e+277) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (c * 0.6666666666666666)) / t)))));
} else {
tmp = x / (x * (1.0 + (y * (exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - (0.8333333333333334 + a))))) / x))));
}
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 <= (-8d+277)) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) - (c * 0.6666666666666666d0)) / t)))))
else
tmp = x / (x * (1.0d0 + (y * (exp((2.0d0 * ((b - c) * ((0.6666666666666666d0 * (1.0d0 / t)) - (0.8333333333333334d0 + a))))) / x))))
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 <= -8e+277) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) - (c * 0.6666666666666666)) / t)))));
} else {
tmp = x / (x * (1.0 + (y * (Math.exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - (0.8333333333333334 + a))))) / x))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if z <= -8e+277: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) - (c * 0.6666666666666666)) / t))))) else: tmp = x / (x * (1.0 + (y * (math.exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - (0.8333333333333334 + a))))) / x)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (z <= -8e+277) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) - Float64(c * 0.6666666666666666)) / t)))))); else tmp = Float64(x / Float64(x * Float64(1.0 + Float64(y * Float64(exp(Float64(2.0 * Float64(Float64(b - c) * Float64(Float64(0.6666666666666666 * Float64(1.0 / t)) - Float64(0.8333333333333334 + a))))) / x))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (z <= -8e+277) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (c * 0.6666666666666666)) / t))))); else tmp = x / (x * (1.0 + (y * (exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - (0.8333333333333334 + a))))) / x)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -8e+277], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] - N[(c * 0.6666666666666666), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x * N[(1.0 + N[(y * N[(N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision] - N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8 \cdot 10^{+277}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} - c \cdot 0.6666666666666666}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x \cdot \left(1 + y \cdot \frac{e^{2 \cdot \left(\left(b - c\right) \cdot \left(0.6666666666666666 \cdot \frac{1}{t} - \left(0.8333333333333334 + a\right)\right)\right)}}{x}\right)}\\
\end{array}
\end{array}
if z < -8.00000000000000002e277Initial program 80.0%
Taylor expanded in t around 0 100.0%
Taylor expanded in b around 0 100.0%
*-commutative100.0%
Simplified100.0%
if -8.00000000000000002e277 < z Initial program 94.9%
Simplified97.6%
Taylor expanded in x around inf 96.4%
Simplified98.0%
Taylor expanded in z around 0 91.3%
Final simplification91.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= z -3.7e+149)
1.0
(/
x
(*
x
(+
1.0
(*
y
(/
(exp
(*
2.0
(*
(- b c)
(- (* 0.6666666666666666 (/ 1.0 t)) (+ 0.8333333333333334 a)))))
x)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -3.7e+149) {
tmp = 1.0;
} else {
tmp = x / (x * (1.0 + (y * (exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - (0.8333333333333334 + a))))) / x))));
}
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 <= (-3.7d+149)) then
tmp = 1.0d0
else
tmp = x / (x * (1.0d0 + (y * (exp((2.0d0 * ((b - c) * ((0.6666666666666666d0 * (1.0d0 / t)) - (0.8333333333333334d0 + a))))) / x))))
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 <= -3.7e+149) {
tmp = 1.0;
} else {
tmp = x / (x * (1.0 + (y * (Math.exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - (0.8333333333333334 + a))))) / x))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if z <= -3.7e+149: tmp = 1.0 else: tmp = x / (x * (1.0 + (y * (math.exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - (0.8333333333333334 + a))))) / x)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (z <= -3.7e+149) tmp = 1.0; else tmp = Float64(x / Float64(x * Float64(1.0 + Float64(y * Float64(exp(Float64(2.0 * Float64(Float64(b - c) * Float64(Float64(0.6666666666666666 * Float64(1.0 / t)) - Float64(0.8333333333333334 + a))))) / x))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (z <= -3.7e+149) tmp = 1.0; else tmp = x / (x * (1.0 + (y * (exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - (0.8333333333333334 + a))))) / x)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -3.7e+149], 1.0, N[(x / N[(x * N[(1.0 + N[(y * N[(N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision] - N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.7 \cdot 10^{+149}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x \cdot \left(1 + y \cdot \frac{e^{2 \cdot \left(\left(b - c\right) \cdot \left(0.6666666666666666 \cdot \frac{1}{t} - \left(0.8333333333333334 + a\right)\right)\right)}}{x}\right)}\\
\end{array}
\end{array}
if z < -3.69999999999999978e149Initial program 85.4%
Simplified96.4%
Taylor expanded in x around inf 78.5%
if -3.69999999999999978e149 < z Initial program 95.6%
Simplified97.4%
Taylor expanded in x around inf 96.9%
Simplified98.3%
Taylor expanded in z around 0 92.8%
Final simplification91.3%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -1.2e+54) (not (<= c 6e+65)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* c (+ 0.8333333333333334 (- a (/ 0.6666666666666666 t)))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ 0.8333333333333334 a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -1.2e+54) || !(c <= 6e+65)) {
tmp = x / (x + (y * exp((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (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 ((c <= (-1.2d+54)) .or. (.not. (c <= 6d+65))) then
tmp = x / (x + (y * exp((2.0d0 * (c * (0.8333333333333334d0 + (a - (0.6666666666666666d0 / t))))))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (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 ((c <= -1.2e+54) || !(c <= 6e+65)) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (0.8333333333333334 + a)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (c <= -1.2e+54) or not (c <= 6e+65): tmp = x / (x + (y * math.exp((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t)))))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (0.8333333333333334 + a))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((c <= -1.2e+54) || !(c <= 6e+65)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(0.8333333333333334 + a)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((c <= -1.2e+54) || ~((c <= 6e+65))) tmp = x / (x + (y * exp((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t)))))))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (0.8333333333333334 + a))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[c, -1.2e+54], N[Not[LessEqual[c, 6e+65]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(0.8333333333333334 + N[(a - 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[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.2 \cdot 10^{+54} \lor \neg \left(c \leq 6 \cdot 10^{+65}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(0.8333333333333334 + \left(a - \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(0.8333333333333334 + a\right)\right)\right)}}\\
\end{array}
\end{array}
if c < -1.19999999999999999e54 or 6.0000000000000004e65 < c Initial program 95.4%
Taylor expanded in c around inf 92.2%
associate--l+92.2%
associate-*r/92.2%
metadata-eval92.2%
Simplified92.2%
if -1.19999999999999999e54 < c < 6.0000000000000004e65Initial program 94.1%
Taylor expanded in b around inf 78.5%
associate-*r/78.5%
metadata-eval78.5%
Simplified78.5%
Final simplification83.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 3.9e-55)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(/
x
(*
x
(+ 1.0 (* y (/ (exp (* 2.0 (* (+ 0.8333333333333334 a) (- c b)))) x)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 3.9e-55) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x * (1.0 + (y * (exp((2.0 * ((0.8333333333333334 + a) * (c - b)))) / x))));
}
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 <= 3.9d-55) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else
tmp = x / (x * (1.0d0 + (y * (exp((2.0d0 * ((0.8333333333333334d0 + a) * (c - b)))) / x))))
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 <= 3.9e-55) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x * (1.0 + (y * (Math.exp((2.0 * ((0.8333333333333334 + a) * (c - b)))) / x))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 3.9e-55: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) else: tmp = x / (x * (1.0 + (y * (math.exp((2.0 * ((0.8333333333333334 + a) * (c - b)))) / x)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 3.9e-55) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); else tmp = Float64(x / Float64(x * Float64(1.0 + Float64(y * Float64(exp(Float64(2.0 * Float64(Float64(0.8333333333333334 + a) * Float64(c - b)))) / x))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 3.9e-55) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); else tmp = x / (x * (1.0 + (y * (exp((2.0 * ((0.8333333333333334 + a) * (c - b)))) / x)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 3.9e-55], 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[(1.0 + N[(y * N[(N[Exp[N[(2.0 * N[(N[(0.8333333333333334 + a), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 3.9 \cdot 10^{-55}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x \cdot \left(1 + y \cdot \frac{e^{2 \cdot \left(\left(0.8333333333333334 + a\right) \cdot \left(c - b\right)\right)}}{x}\right)}\\
\end{array}
\end{array}
if t < 3.9e-55Initial program 92.1%
Taylor expanded in t around 0 86.0%
Taylor expanded in z around 0 80.9%
if 3.9e-55 < t Initial program 97.0%
Simplified100.0%
Taylor expanded in x around inf 100.0%
Simplified99.9%
Taylor expanded in z around 0 93.7%
Taylor expanded in t around inf 91.5%
Final simplification86.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 1.3e-54)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 2e+236)
(/ x (+ x (* y (exp (* -2.0 (* b (+ 0.8333333333333334 a)))))))
(/ x (+ x (* y (exp (* 2.0 (* 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.3e-54) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 2e+236) {
tmp = x / (x + (y * exp((-2.0 * (b * (0.8333333333333334 + a))))));
} else {
tmp = x / (x + (y * exp((2.0 * (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.3d-54) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 2d+236) then
tmp = x / (x + (y * exp(((-2.0d0) * (b * (0.8333333333333334d0 + a))))))
else
tmp = x / (x + (y * exp((2.0d0 * (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.3e-54) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 2e+236) {
tmp = x / (x + (y * Math.exp((-2.0 * (b * (0.8333333333333334 + a))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * (0.8333333333333334 + a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1.3e-54: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 2e+236: tmp = x / (x + (y * math.exp((-2.0 * (b * (0.8333333333333334 + a)))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * (0.8333333333333334 + a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1.3e-54) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 2e+236) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(b * Float64(0.8333333333333334 + a))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(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.3e-54) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 2e+236) tmp = x / (x + (y * exp((-2.0 * (b * (0.8333333333333334 + a)))))); else tmp = x / (x + (y * exp((2.0 * (c * (0.8333333333333334 + a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 1.3e-54], 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+236], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(b * N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.3 \cdot 10^{-54}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+236}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(b \cdot \left(0.8333333333333334 + a\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(0.8333333333333334 + a\right)\right)}}\\
\end{array}
\end{array}
if t < 1.30000000000000001e-54Initial program 92.1%
Taylor expanded in t around 0 86.0%
Taylor expanded in z around 0 80.9%
if 1.30000000000000001e-54 < t < 2.00000000000000011e236Initial program 97.0%
Taylor expanded in b around inf 76.3%
associate-*r/76.3%
metadata-eval76.3%
Simplified76.3%
Taylor expanded in t around inf 75.3%
if 2.00000000000000011e236 < t Initial program 96.9%
Taylor expanded in c around inf 68.9%
associate--l+68.9%
associate-*r/68.9%
metadata-eval68.9%
Simplified68.9%
Taylor expanded in t around inf 68.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -2e+71)
1.0
(if (<= c 8.2e+54)
(/ x (+ x (* y (exp (* -2.0 (* b (+ 0.8333333333333334 a)))))))
(/ x (+ x (* y (exp (* 2.0 (* c a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -2e+71) {
tmp = 1.0;
} else if (c <= 8.2e+54) {
tmp = x / (x + (y * exp((-2.0 * (b * (0.8333333333333334 + a))))));
} else {
tmp = x / (x + (y * exp((2.0 * (c * 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 (c <= (-2d+71)) then
tmp = 1.0d0
else if (c <= 8.2d+54) then
tmp = x / (x + (y * exp(((-2.0d0) * (b * (0.8333333333333334d0 + a))))))
else
tmp = x / (x + (y * exp((2.0d0 * (c * 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 (c <= -2e+71) {
tmp = 1.0;
} else if (c <= 8.2e+54) {
tmp = x / (x + (y * Math.exp((-2.0 * (b * (0.8333333333333334 + a))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * a)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -2e+71: tmp = 1.0 elif c <= 8.2e+54: tmp = x / (x + (y * math.exp((-2.0 * (b * (0.8333333333333334 + a)))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * a))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -2e+71) tmp = 1.0; elseif (c <= 8.2e+54) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(b * Float64(0.8333333333333334 + a))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * a)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -2e+71) tmp = 1.0; elseif (c <= 8.2e+54) tmp = x / (x + (y * exp((-2.0 * (b * (0.8333333333333334 + a)))))); else tmp = x / (x + (y * exp((2.0 * (c * a))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -2e+71], 1.0, If[LessEqual[c, 8.2e+54], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(b * N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * a), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2 \cdot 10^{+71}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 8.2 \cdot 10^{+54}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(b \cdot \left(0.8333333333333334 + a\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot a\right)}}\\
\end{array}
\end{array}
if c < -2.0000000000000001e71Initial program 100.0%
Simplified97.7%
Taylor expanded in x around inf 66.2%
if -2.0000000000000001e71 < c < 8.19999999999999935e54Initial program 94.2%
Taylor expanded in b around inf 78.6%
associate-*r/78.6%
metadata-eval78.6%
Simplified78.6%
Taylor expanded in t around inf 68.4%
if 8.19999999999999935e54 < c Initial program 90.8%
Taylor expanded in c around inf 88.7%
associate--l+88.7%
associate-*r/88.7%
metadata-eval88.7%
Simplified88.7%
Taylor expanded in a around inf 68.5%
*-commutative68.5%
Simplified68.5%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -3.7e+91) (/ x (+ x (* y (exp (* b -1.6666666666666667))))) (if (<= b 9.5e-150) (/ x (+ x (* y (exp (* 2.0 (* c a)))))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.7e+91) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (b <= 9.5e-150) {
tmp = x / (x + (y * exp((2.0 * (c * a)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-3.7d+91)) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (b <= 9.5d-150) then
tmp = x / (x + (y * exp((2.0d0 * (c * a)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.7e+91) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (b <= 9.5e-150) {
tmp = x / (x + (y * Math.exp((2.0 * (c * a)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -3.7e+91: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif b <= 9.5e-150: tmp = x / (x + (y * math.exp((2.0 * (c * a))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -3.7e+91) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (b <= 9.5e-150) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * a)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -3.7e+91) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (b <= 9.5e-150) tmp = x / (x + (y * exp((2.0 * (c * a))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -3.7e+91], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.5e-150], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * a), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.7 \cdot 10^{+91}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{-150}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot a\right)}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.69999999999999984e91Initial program 91.7%
Taylor expanded in b around inf 85.9%
associate-*r/85.9%
metadata-eval85.9%
Simplified85.9%
Taylor expanded in t around inf 77.8%
Taylor expanded in a around 0 79.8%
*-commutative79.8%
Simplified79.8%
if -3.69999999999999984e91 < b < 9.50000000000000013e-150Initial program 94.2%
Taylor expanded in c around inf 76.0%
associate--l+76.0%
associate-*r/76.0%
metadata-eval76.0%
Simplified76.0%
Taylor expanded in a around inf 61.9%
*-commutative61.9%
Simplified61.9%
if 9.50000000000000013e-150 < b Initial program 96.2%
Simplified99.0%
Taylor expanded in x around inf 64.0%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 9.2e-33) (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t)))))) (/ x (* x (+ 1.0 (* y (/ (exp (* 1.6666666666666667 (- c b))) x)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 9.2e-33) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x * (1.0 + (y * (exp((1.6666666666666667 * (c - b))) / x))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 9.2d-33) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else
tmp = x / (x * (1.0d0 + (y * (exp((1.6666666666666667d0 * (c - b))) / x))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 9.2e-33) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x * (1.0 + (y * (Math.exp((1.6666666666666667 * (c - b))) / x))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 9.2e-33: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) else: tmp = x / (x * (1.0 + (y * (math.exp((1.6666666666666667 * (c - b))) / x)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 9.2e-33) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); else tmp = Float64(x / Float64(x * Float64(1.0 + Float64(y * Float64(exp(Float64(1.6666666666666667 * Float64(c - b))) / x))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 9.2e-33) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); else tmp = x / (x * (1.0 + (y * (exp((1.6666666666666667 * (c - b))) / x)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 9.2e-33], 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[(1.0 + N[(y * N[(N[Exp[N[(1.6666666666666667 * N[(c - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 9.2 \cdot 10^{-33}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x \cdot \left(1 + y \cdot \frac{e^{1.6666666666666667 \cdot \left(c - b\right)}}{x}\right)}\\
\end{array}
\end{array}
if t < 9.19999999999999942e-33Initial program 92.3%
Taylor expanded in t around 0 84.0%
Taylor expanded in z around 0 80.5%
if 9.19999999999999942e-33 < t Initial program 96.9%
Simplified100.0%
Taylor expanded in x around inf 100.0%
Simplified99.9%
Taylor expanded in z around 0 93.6%
Taylor expanded in t around inf 92.1%
Taylor expanded in a around 0 79.2%
*-commutative79.2%
Simplified79.2%
Final simplification79.9%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 4.2e-54) (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t)))))) (/ x (+ x (* y (exp (* -2.0 (* b (+ 0.8333333333333334 a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 4.2e-54) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * exp((-2.0 * (b * (0.8333333333333334 + a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 4.2d-54) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else
tmp = x / (x + (y * exp(((-2.0d0) * (b * (0.8333333333333334d0 + a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 4.2e-54) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * Math.exp((-2.0 * (b * (0.8333333333333334 + a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 4.2e-54: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) else: tmp = x / (x + (y * math.exp((-2.0 * (b * (0.8333333333333334 + a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 4.2e-54) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(b * Float64(0.8333333333333334 + a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 4.2e-54) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); else tmp = x / (x + (y * exp((-2.0 * (b * (0.8333333333333334 + a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 4.2e-54], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(b * N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 4.2 \cdot 10^{-54}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(b \cdot \left(0.8333333333333334 + a\right)\right)}}\\
\end{array}
\end{array}
if t < 4.2e-54Initial program 92.1%
Taylor expanded in t around 0 86.0%
Taylor expanded in z around 0 80.9%
if 4.2e-54 < t Initial program 97.0%
Taylor expanded in b around inf 70.8%
associate-*r/70.8%
metadata-eval70.8%
Simplified70.8%
Taylor expanded in t around inf 70.0%
(FPCore (x y z t a b c) :precision binary64 (if (<= (- b c) 5e-154) (/ x (+ x (* y (exp (* b -1.6666666666666667))))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 5e-154) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= 5d-154) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 5e-154) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= 5e-154: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= 5e-154) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= 5e-154) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], 5e-154], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq 5 \cdot 10^{-154}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < 5.0000000000000002e-154Initial program 91.5%
Taylor expanded in b around inf 66.1%
associate-*r/66.1%
metadata-eval66.1%
Simplified66.1%
Taylor expanded in t around inf 62.4%
Taylor expanded in a around 0 57.1%
*-commutative57.1%
Simplified57.1%
if 5.0000000000000002e-154 < (-.f64 b c) Initial program 97.7%
Simplified98.4%
Taylor expanded in x around inf 67.2%
(FPCore (x y z t a b c) :precision binary64 (if (<= (- b c) 5e-154) (/ x (+ x (+ y (* -2.0 (* b (* y (+ 0.8333333333333334 a))))))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 5e-154) {
tmp = x / (x + (y + (-2.0 * (b * (y * (0.8333333333333334 + a))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= 5d-154) then
tmp = x / (x + (y + ((-2.0d0) * (b * (y * (0.8333333333333334d0 + a))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 5e-154) {
tmp = x / (x + (y + (-2.0 * (b * (y * (0.8333333333333334 + a))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= 5e-154: tmp = x / (x + (y + (-2.0 * (b * (y * (0.8333333333333334 + a)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= 5e-154) tmp = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(b * Float64(y * Float64(0.8333333333333334 + a))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= 5e-154) tmp = x / (x + (y + (-2.0 * (b * (y * (0.8333333333333334 + a)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], 5e-154], N[(x / N[(x + N[(y + N[(-2.0 * N[(b * N[(y * N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq 5 \cdot 10^{-154}:\\
\;\;\;\;\frac{x}{x + \left(y + -2 \cdot \left(b \cdot \left(y \cdot \left(0.8333333333333334 + a\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < 5.0000000000000002e-154Initial program 91.5%
Taylor expanded in b around inf 66.1%
associate-*r/66.1%
metadata-eval66.1%
Simplified66.1%
Taylor expanded in t around inf 62.4%
Taylor expanded in b around 0 45.1%
*-commutative45.1%
Simplified45.1%
if 5.0000000000000002e-154 < (-.f64 b c) Initial program 97.7%
Simplified98.4%
Taylor expanded in x around inf 67.2%
Final simplification56.1%
(FPCore (x y z t a b c) :precision binary64 (if (<= (- b c) 5e-154) (/ x (+ x (+ y (* 2.0 (* c (* y a)))))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 5e-154) {
tmp = x / (x + (y + (2.0 * (c * (y * a)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= 5d-154) then
tmp = x / (x + (y + (2.0d0 * (c * (y * a)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 5e-154) {
tmp = x / (x + (y + (2.0 * (c * (y * a)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= 5e-154: tmp = x / (x + (y + (2.0 * (c * (y * a))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= 5e-154) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * Float64(y * a)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= 5e-154) tmp = x / (x + (y + (2.0 * (c * (y * a))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], 5e-154], N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq 5 \cdot 10^{-154}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \left(y \cdot a\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < 5.0000000000000002e-154Initial program 91.5%
Taylor expanded in c around inf 62.8%
associate--l+62.8%
associate-*r/62.8%
metadata-eval62.8%
Simplified62.8%
Taylor expanded in c around 0 39.1%
Taylor expanded in a around inf 42.0%
if 5.0000000000000002e-154 < (-.f64 b c) Initial program 97.7%
Simplified98.4%
Taylor expanded in x around inf 67.2%
(FPCore (x y z t a b c) :precision binary64 (if (<= z 1.65e+148) 1.0 (+ (+ 1.0 (/ x y)) -1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= 1.65e+148) {
tmp = 1.0;
} else {
tmp = (1.0 + (x / y)) + -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 <= 1.65d+148) then
tmp = 1.0d0
else
tmp = (1.0d0 + (x / y)) + (-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 <= 1.65e+148) {
tmp = 1.0;
} else {
tmp = (1.0 + (x / y)) + -1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if z <= 1.65e+148: tmp = 1.0 else: tmp = (1.0 + (x / y)) + -1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (z <= 1.65e+148) tmp = 1.0; else tmp = Float64(Float64(1.0 + Float64(x / y)) + -1.0); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (z <= 1.65e+148) tmp = 1.0; else tmp = (1.0 + (x / y)) + -1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, 1.65e+148], 1.0, N[(N[(1.0 + N[(x / y), $MachinePrecision]), $MachinePrecision] + -1.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 1.65 \cdot 10^{+148}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\left(1 + \frac{x}{y}\right) + -1\\
\end{array}
\end{array}
if z < 1.65000000000000005e148Initial program 96.3%
Simplified97.2%
Taylor expanded in x around inf 54.5%
if 1.65000000000000005e148 < z Initial program 85.5%
Taylor expanded in b around inf 53.1%
associate-*r/53.1%
metadata-eval53.1%
Simplified53.1%
Taylor expanded in b around 0 29.8%
+-commutative29.8%
Simplified29.8%
Taylor expanded in x around 0 8.6%
expm1-log1p-u8.4%
log1p-define50.3%
expm1-undefine50.3%
add-exp-log50.5%
+-commutative50.5%
Applied egg-rr50.5%
Final simplification53.9%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 94.6%
Simplified97.3%
Taylor expanded in x around inf 50.1%
(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 2024186
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:alt
(! :herbie-platform default (if (< t -2118326644891581/100000000000000000000000000000000000000000000000000000000000000000) (/ x (+ x (* y (exp (* 2 (- (+ (* a c) (* 4166666666666667/5000000000000000 c)) (* a b))))))) (if (< t 5196588770651547/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ x (+ x (* y (exp (* 2 (/ (- (* (* z (sqrt (+ t a))) (* (* 3 t) (- a (/ 5 6)))) (* (- (* (+ (/ 5 6) a) (* 3 t)) 2) (* (- a (/ 5 6)) (* (- b c) t)))) (* (* (* t t) 3) (- a (/ 5 6))))))))) (/ x (+ x (* y (exp (* 2 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5 6)) (/ 2 (* t 3)))))))))))))
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))