
(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 28 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(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]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t\_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < +inf.0Initial program 99.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 t around 0 92.5%
Final simplification98.9%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= b -8.2e+77) (not (<= b 1.05e+118)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/
x
(*
y
(+
(exp
(*
2.0
(+
(*
(- b c)
(- (* 0.6666666666666666 (/ 1.0 t)) (+ a 0.8333333333333334)))
(* (sqrt (+ t a)) (/ z t)))))
(/ x y))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -8.2e+77) || !(b <= 1.05e+118)) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (y * (exp((2.0 * (((b - c) * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))) + (sqrt((t + a)) * (z / t))))) + (x / y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b <= (-8.2d+77)) .or. (.not. (b <= 1.05d+118))) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = x / (y * (exp((2.0d0 * (((b - c) * ((0.6666666666666666d0 * (1.0d0 / t)) - (a + 0.8333333333333334d0))) + (sqrt((t + a)) * (z / t))))) + (x / y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -8.2e+77) || !(b <= 1.05e+118)) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (y * (Math.exp((2.0 * (((b - c) * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))) + (Math.sqrt((t + a)) * (z / t))))) + (x / y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -8.2e+77) or not (b <= 1.05e+118): tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = x / (y * (math.exp((2.0 * (((b - c) * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))) + (math.sqrt((t + a)) * (z / t))))) + (x / y))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -8.2e+77) || !(b <= 1.05e+118)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = Float64(x / Float64(y * Float64(exp(Float64(2.0 * Float64(Float64(Float64(b - c) * Float64(Float64(0.6666666666666666 * Float64(1.0 / t)) - Float64(a + 0.8333333333333334))) + Float64(sqrt(Float64(t + a)) * Float64(z / t))))) + Float64(x / y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -8.2e+77) || ~((b <= 1.05e+118))) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (y * (exp((2.0 * (((b - c) * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))) + (sqrt((t + a)) * (z / t))))) + (x / y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -8.2e+77], N[Not[LessEqual[b, 1.05e+118]], $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], N[(x / N[(y * N[(N[Exp[N[(2.0 * N[(N[(N[(b - c), $MachinePrecision] * N[(N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.2 \cdot 10^{+77} \lor \neg \left(b \leq 1.05 \cdot 10^{+118}\right):\\
\;\;\;\;\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}:\\
\;\;\;\;\frac{x}{y \cdot \left(e^{2 \cdot \left(\left(b - c\right) \cdot \left(0.6666666666666666 \cdot \frac{1}{t} - \left(a + 0.8333333333333334\right)\right) + \sqrt{t + a} \cdot \frac{z}{t}\right)} + \frac{x}{y}\right)}\\
\end{array}
\end{array}
if b < -8.2000000000000002e77 or 1.05e118 < b Initial program 87.8%
Taylor expanded in b around inf 94.6%
associate-*r/94.6%
metadata-eval94.6%
Simplified94.6%
if -8.2000000000000002e77 < b < 1.05e118Initial program 97.6%
Simplified97.0%
Taylor expanded in y around inf 92.2%
Final simplification93.0%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= z -1.6e+127) (not (<= z 4.6e-9)))
(/ x (+ x (* y (exp (* 2.0 (+ (/ (* z (sqrt (+ t a))) t) (* a (- c b))))))))
(/
x
(*
y
(+
(/ x y)
(exp
(*
2.0
(*
(+ (+ a 0.8333333333333334) (/ -0.6666666666666666 t))
(- c b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -1.6e+127) || !(z <= 4.6e-9)) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) + (a * (c - b)))))));
} else {
tmp = x / (y * ((x / y) + exp((2.0 * (((a + 0.8333333333333334) + (-0.6666666666666666 / t)) * (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 ((z <= (-1.6d+127)) .or. (.not. (z <= 4.6d-9))) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) + (a * (c - b)))))))
else
tmp = x / (y * ((x / y) + exp((2.0d0 * (((a + 0.8333333333333334d0) + ((-0.6666666666666666d0) / t)) * (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 ((z <= -1.6e+127) || !(z <= 4.6e-9)) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) + (a * (c - b)))))));
} else {
tmp = x / (y * ((x / y) + Math.exp((2.0 * (((a + 0.8333333333333334) + (-0.6666666666666666 / t)) * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (z <= -1.6e+127) or not (z <= 4.6e-9): tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) + (a * (c - b))))))) else: tmp = x / (y * ((x / y) + math.exp((2.0 * (((a + 0.8333333333333334) + (-0.6666666666666666 / t)) * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -1.6e+127) || !(z <= 4.6e-9)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(a * Float64(c - b)))))))); else tmp = Float64(x / Float64(y * Float64(Float64(x / y) + exp(Float64(2.0 * Float64(Float64(Float64(a + 0.8333333333333334) + Float64(-0.6666666666666666 / t)) * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((z <= -1.6e+127) || ~((z <= 4.6e-9))) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) + (a * (c - b))))))); else tmp = x / (y * ((x / y) + exp((2.0 * (((a + 0.8333333333333334) + (-0.6666666666666666 / t)) * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -1.6e+127], N[Not[LessEqual[z, 4.6e-9]], $MachinePrecision]], 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[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(N[(x / y), $MachinePrecision] + N[Exp[N[(2.0 * N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.6 \cdot 10^{+127} \lor \neg \left(z \leq 4.6 \cdot 10^{-9}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} + a \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(\frac{x}{y} + e^{2 \cdot \left(\left(\left(a + 0.8333333333333334\right) + \frac{-0.6666666666666666}{t}\right) \cdot \left(c - b\right)\right)}\right)}\\
\end{array}
\end{array}
if z < -1.59999999999999988e127 or 4.5999999999999998e-9 < z Initial program 88.2%
Taylor expanded in a around inf 82.6%
if -1.59999999999999988e127 < z < 4.5999999999999998e-9Initial program 98.1%
Simplified95.5%
Taylor expanded in y around inf 91.1%
Taylor expanded in z around 0 91.8%
*-commutative91.8%
cancel-sign-sub-inv91.8%
metadata-eval91.8%
associate-*r/91.8%
metadata-eval91.8%
Simplified91.8%
Final simplification88.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= z -3.25e+128)
1.0
(if (<= z 4.6e+192)
(/
x
(*
y
(+
(/ x y)
(exp
(*
2.0
(*
(+ (+ a 0.8333333333333334) (/ -0.6666666666666666 t))
(- c b)))))))
(/ x (* y (+ (/ x y) (exp (* 2.0 (* (sqrt (+ t a)) (/ z t))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -3.25e+128) {
tmp = 1.0;
} else if (z <= 4.6e+192) {
tmp = x / (y * ((x / y) + exp((2.0 * (((a + 0.8333333333333334) + (-0.6666666666666666 / t)) * (c - b))))));
} else {
tmp = x / (y * ((x / y) + exp((2.0 * (sqrt((t + a)) * (z / t))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (z <= (-3.25d+128)) then
tmp = 1.0d0
else if (z <= 4.6d+192) then
tmp = x / (y * ((x / y) + exp((2.0d0 * (((a + 0.8333333333333334d0) + ((-0.6666666666666666d0) / t)) * (c - b))))))
else
tmp = x / (y * ((x / y) + exp((2.0d0 * (sqrt((t + a)) * (z / t))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -3.25e+128) {
tmp = 1.0;
} else if (z <= 4.6e+192) {
tmp = x / (y * ((x / y) + Math.exp((2.0 * (((a + 0.8333333333333334) + (-0.6666666666666666 / t)) * (c - b))))));
} else {
tmp = x / (y * ((x / y) + Math.exp((2.0 * (Math.sqrt((t + a)) * (z / t))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if z <= -3.25e+128: tmp = 1.0 elif z <= 4.6e+192: tmp = x / (y * ((x / y) + math.exp((2.0 * (((a + 0.8333333333333334) + (-0.6666666666666666 / t)) * (c - b)))))) else: tmp = x / (y * ((x / y) + math.exp((2.0 * (math.sqrt((t + a)) * (z / t)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (z <= -3.25e+128) tmp = 1.0; elseif (z <= 4.6e+192) tmp = Float64(x / Float64(y * Float64(Float64(x / y) + exp(Float64(2.0 * Float64(Float64(Float64(a + 0.8333333333333334) + Float64(-0.6666666666666666 / t)) * Float64(c - b))))))); else tmp = Float64(x / Float64(y * Float64(Float64(x / y) + exp(Float64(2.0 * Float64(sqrt(Float64(t + a)) * Float64(z / t))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (z <= -3.25e+128) tmp = 1.0; elseif (z <= 4.6e+192) tmp = x / (y * ((x / y) + exp((2.0 * (((a + 0.8333333333333334) + (-0.6666666666666666 / t)) * (c - b)))))); else tmp = x / (y * ((x / y) + exp((2.0 * (sqrt((t + a)) * (z / t)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -3.25e+128], 1.0, If[LessEqual[z, 4.6e+192], N[(x / N[(y * N[(N[(x / y), $MachinePrecision] + N[Exp[N[(2.0 * N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(N[(x / y), $MachinePrecision] + N[Exp[N[(2.0 * N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.25 \cdot 10^{+128}:\\
\;\;\;\;1\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{+192}:\\
\;\;\;\;\frac{x}{y \cdot \left(\frac{x}{y} + e^{2 \cdot \left(\left(\left(a + 0.8333333333333334\right) + \frac{-0.6666666666666666}{t}\right) \cdot \left(c - b\right)\right)}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(\frac{x}{y} + e^{2 \cdot \left(\sqrt{t + a} \cdot \frac{z}{t}\right)}\right)}\\
\end{array}
\end{array}
if z < -3.25000000000000015e128Initial program 83.5%
Simplified94.5%
Taylor expanded in x around inf 73.1%
if -3.25000000000000015e128 < z < 4.5999999999999999e192Initial program 96.9%
Simplified96.3%
Taylor expanded in y around inf 87.6%
Taylor expanded in z around 0 87.2%
*-commutative87.2%
cancel-sign-sub-inv87.2%
metadata-eval87.2%
associate-*r/87.2%
metadata-eval87.2%
Simplified87.2%
if 4.5999999999999999e192 < z Initial program 89.7%
Simplified93.2%
Taylor expanded in y around inf 79.4%
Taylor expanded in z around inf 86.4%
Final simplification85.1%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= b -3.55e+78) (not (<= b 3.3e+124)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/
x
(*
y
(+
(/ x y)
(exp
(*
2.0
(*
(+ (+ a 0.8333333333333334) (/ -0.6666666666666666 t))
(- c b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -3.55e+78) || !(b <= 3.3e+124)) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (y * ((x / y) + exp((2.0 * (((a + 0.8333333333333334) + (-0.6666666666666666 / t)) * (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 <= (-3.55d+78)) .or. (.not. (b <= 3.3d+124))) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = x / (y * ((x / y) + exp((2.0d0 * (((a + 0.8333333333333334d0) + ((-0.6666666666666666d0) / t)) * (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 <= -3.55e+78) || !(b <= 3.3e+124)) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (y * ((x / y) + Math.exp((2.0 * (((a + 0.8333333333333334) + (-0.6666666666666666 / t)) * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -3.55e+78) or not (b <= 3.3e+124): tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = x / (y * ((x / y) + math.exp((2.0 * (((a + 0.8333333333333334) + (-0.6666666666666666 / t)) * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -3.55e+78) || !(b <= 3.3e+124)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = Float64(x / Float64(y * Float64(Float64(x / y) + exp(Float64(2.0 * Float64(Float64(Float64(a + 0.8333333333333334) + Float64(-0.6666666666666666 / t)) * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -3.55e+78) || ~((b <= 3.3e+124))) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (y * ((x / y) + exp((2.0 * (((a + 0.8333333333333334) + (-0.6666666666666666 / t)) * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -3.55e+78], N[Not[LessEqual[b, 3.3e+124]], $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], N[(x / N[(y * N[(N[(x / y), $MachinePrecision] + N[Exp[N[(2.0 * N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.55 \cdot 10^{+78} \lor \neg \left(b \leq 3.3 \cdot 10^{+124}\right):\\
\;\;\;\;\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}:\\
\;\;\;\;\frac{x}{y \cdot \left(\frac{x}{y} + e^{2 \cdot \left(\left(\left(a + 0.8333333333333334\right) + \frac{-0.6666666666666666}{t}\right) \cdot \left(c - b\right)\right)}\right)}\\
\end{array}
\end{array}
if b < -3.54999999999999996e78 or 3.30000000000000015e124 < b Initial program 87.8%
Taylor expanded in b around inf 94.6%
associate-*r/94.6%
metadata-eval94.6%
Simplified94.6%
if -3.54999999999999996e78 < b < 3.30000000000000015e124Initial program 97.6%
Simplified97.0%
Taylor expanded in y around inf 92.2%
Taylor expanded in z around 0 79.5%
*-commutative79.5%
cancel-sign-sub-inv79.5%
metadata-eval79.5%
associate-*r/79.5%
metadata-eval79.5%
Simplified79.5%
Final simplification84.8%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= b -7.5e-105) (not (<= b 1350000000.0)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (- 0.8333333333333334 (- (/ 0.6666666666666666 t) a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -7.5e-105) || !(b <= 1350000000.0)) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (c * (0.8333333333333334 - ((0.6666666666666666 / t) - 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 ((b <= (-7.5d-105)) .or. (.not. (b <= 1350000000.0d0))) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * (c * (0.8333333333333334d0 - ((0.6666666666666666d0 / t) - 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 ((b <= -7.5e-105) || !(b <= 1350000000.0)) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * (0.8333333333333334 - ((0.6666666666666666 / t) - a)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -7.5e-105) or not (b <= 1350000000.0): tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * (0.8333333333333334 - ((0.6666666666666666 / t) - a))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -7.5e-105) || !(b <= 1350000000.0)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(0.8333333333333334 - Float64(Float64(0.6666666666666666 / t) - a)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -7.5e-105) || ~((b <= 1350000000.0))) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * (c * (0.8333333333333334 - ((0.6666666666666666 / t) - a))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -7.5e-105], N[Not[LessEqual[b, 1350000000.0]], $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], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(0.8333333333333334 - N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.5 \cdot 10^{-105} \lor \neg \left(b \leq 1350000000\right):\\
\;\;\;\;\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}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(0.8333333333333334 - \left(\frac{0.6666666666666666}{t} - a\right)\right)\right)}}\\
\end{array}
\end{array}
if b < -7.5000000000000006e-105 or 1.35e9 < b Initial program 90.4%
Taylor expanded in b around inf 86.0%
associate-*r/86.0%
metadata-eval86.0%
Simplified86.0%
if -7.5000000000000006e-105 < b < 1.35e9Initial program 99.1%
Taylor expanded in c around inf 77.4%
associate--l+77.4%
associate-*r/77.4%
metadata-eval77.4%
Simplified77.4%
Final simplification82.3%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= b -1.15e-104) (not (<= b 1.52e-70)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/ x (+ x (* y (exp (* 2.0 (* c (+ a 0.8333333333333334)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -1.15e-104) || !(b <= 1.52e-70)) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (c * (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 <= (-1.15d-104)) .or. (.not. (b <= 1.52d-70))) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * (c * (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 <= -1.15e-104) || !(b <= 1.52e-70)) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -1.15e-104) or not (b <= 1.52e-70): tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * (a + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -1.15e-104) || !(b <= 1.52e-70)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -1.15e-104) || ~((b <= 1.52e-70))) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -1.15e-104], N[Not[LessEqual[b, 1.52e-70]], $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], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.15 \cdot 10^{-104} \lor \neg \left(b \leq 1.52 \cdot 10^{-70}\right):\\
\;\;\;\;\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}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if b < -1.15e-104 or 1.51999999999999997e-70 < b Initial program 91.5%
Taylor expanded in b around inf 84.7%
associate-*r/84.7%
metadata-eval84.7%
Simplified84.7%
if -1.15e-104 < b < 1.51999999999999997e-70Initial program 98.9%
Taylor expanded in c around inf 78.0%
associate--l+78.0%
associate-*r/78.0%
metadata-eval78.0%
Simplified78.0%
Taylor expanded in t around inf 67.5%
*-commutative67.5%
Simplified67.5%
Final simplification78.5%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= t -2.4e-177) (not (<= t 4.7e+26))) (/ x (+ x (* y (exp (* 2.0 (* a c)))))) (/ x (+ x (* y (exp (/ (* b 1.3333333333333333) t)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -2.4e-177) || !(t <= 4.7e+26)) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else {
tmp = x / (x + (y * exp(((b * 1.3333333333333333) / t))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((t <= (-2.4d-177)) .or. (.not. (t <= 4.7d+26))) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else
tmp = x / (x + (y * exp(((b * 1.3333333333333333d0) / t))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -2.4e-177) || !(t <= 4.7e+26)) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else {
tmp = x / (x + (y * Math.exp(((b * 1.3333333333333333) / t))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -2.4e-177) or not (t <= 4.7e+26): tmp = x / (x + (y * math.exp((2.0 * (a * c))))) else: tmp = x / (x + (y * math.exp(((b * 1.3333333333333333) / t)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -2.4e-177) || !(t <= 4.7e+26)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b * 1.3333333333333333) / t))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((t <= -2.4e-177) || ~((t <= 4.7e+26))) tmp = x / (x + (y * exp((2.0 * (a * c))))); else tmp = x / (x + (y * exp(((b * 1.3333333333333333) / t)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -2.4e-177], N[Not[LessEqual[t, 4.7e+26]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(N[(b * 1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.4 \cdot 10^{-177} \lor \neg \left(t \leq 4.7 \cdot 10^{+26}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{b \cdot 1.3333333333333333}{t}}}\\
\end{array}
\end{array}
if t < -2.3999999999999999e-177 or 4.6999999999999998e26 < t Initial program 98.6%
Taylor expanded in c around inf 73.1%
associate--l+73.1%
associate-*r/73.1%
metadata-eval73.1%
Simplified73.1%
Taylor expanded in a around inf 66.2%
if -2.3999999999999999e-177 < t < 4.6999999999999998e26Initial program 88.8%
Taylor expanded in t around 0 72.7%
Taylor expanded in z around 0 71.7%
Taylor expanded in b around inf 65.1%
associate-*r/65.1%
Simplified65.1%
Final simplification65.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -6e+78)
(/
x
(+
x
(+
y
(*
(* c 2.0)
(/
(+ (* y -0.6666666666666666) (* t (* y (+ a 0.8333333333333334))))
t)))))
(if (<= b 2.6e-37)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= b 5.6e+115)
(/
x
(+
x
(+
y
(*
(* c 2.0)
(*
a
(+
y
(* y (/ (+ 0.8333333333333334 (/ -0.6666666666666666 t)) a))))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -6e+78) {
tmp = x / (x + (y + ((c * 2.0) * (((y * -0.6666666666666666) + (t * (y * (a + 0.8333333333333334)))) / t))));
} else if (b <= 2.6e-37) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (b <= 5.6e+115) {
tmp = x / (x + (y + ((c * 2.0) * (a * (y + (y * ((0.8333333333333334 + (-0.6666666666666666 / t)) / 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 <= (-6d+78)) then
tmp = x / (x + (y + ((c * 2.0d0) * (((y * (-0.6666666666666666d0)) + (t * (y * (a + 0.8333333333333334d0)))) / t))))
else if (b <= 2.6d-37) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (b <= 5.6d+115) then
tmp = x / (x + (y + ((c * 2.0d0) * (a * (y + (y * ((0.8333333333333334d0 + ((-0.6666666666666666d0) / t)) / 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 <= -6e+78) {
tmp = x / (x + (y + ((c * 2.0) * (((y * -0.6666666666666666) + (t * (y * (a + 0.8333333333333334)))) / t))));
} else if (b <= 2.6e-37) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (b <= 5.6e+115) {
tmp = x / (x + (y + ((c * 2.0) * (a * (y + (y * ((0.8333333333333334 + (-0.6666666666666666 / t)) / a)))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -6e+78: tmp = x / (x + (y + ((c * 2.0) * (((y * -0.6666666666666666) + (t * (y * (a + 0.8333333333333334)))) / t)))) elif b <= 2.6e-37: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif b <= 5.6e+115: tmp = x / (x + (y + ((c * 2.0) * (a * (y + (y * ((0.8333333333333334 + (-0.6666666666666666 / t)) / a))))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -6e+78) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(c * 2.0) * Float64(Float64(Float64(y * -0.6666666666666666) + Float64(t * Float64(y * Float64(a + 0.8333333333333334)))) / t))))); elseif (b <= 2.6e-37) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (b <= 5.6e+115) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(c * 2.0) * Float64(a * Float64(y + Float64(y * Float64(Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t)) / 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 <= -6e+78) tmp = x / (x + (y + ((c * 2.0) * (((y * -0.6666666666666666) + (t * (y * (a + 0.8333333333333334)))) / t)))); elseif (b <= 2.6e-37) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (b <= 5.6e+115) tmp = x / (x + (y + ((c * 2.0) * (a * (y + (y * ((0.8333333333333334 + (-0.6666666666666666 / t)) / a))))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -6e+78], N[(x / N[(x + N[(y + N[(N[(c * 2.0), $MachinePrecision] * N[(N[(N[(y * -0.6666666666666666), $MachinePrecision] + N[(t * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.6e-37], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.6e+115], N[(x / N[(x + N[(y + N[(N[(c * 2.0), $MachinePrecision] * N[(a * N[(y + N[(y * N[(N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6 \cdot 10^{+78}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(c \cdot 2\right) \cdot \frac{y \cdot -0.6666666666666666 + t \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right)}{t}\right)}\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{-37}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;b \leq 5.6 \cdot 10^{+115}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(c \cdot 2\right) \cdot \left(a \cdot \left(y + y \cdot \frac{0.8333333333333334 + \frac{-0.6666666666666666}{t}}{a}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -5.99999999999999964e78Initial program 86.1%
Taylor expanded in c around inf 55.5%
associate--l+55.5%
associate-*r/55.5%
metadata-eval55.5%
Simplified55.5%
Taylor expanded in c around 0 52.4%
associate-*r*52.4%
*-commutative52.4%
*-commutative52.4%
cancel-sign-sub-inv52.4%
metadata-eval52.4%
associate-*r/52.4%
metadata-eval52.4%
Simplified52.4%
Taylor expanded in t around 0 58.9%
if -5.99999999999999964e78 < b < 2.5999999999999998e-37Initial program 97.8%
Taylor expanded in c around inf 75.7%
associate--l+75.7%
associate-*r/75.7%
metadata-eval75.7%
Simplified75.7%
Taylor expanded in a around inf 64.0%
if 2.5999999999999998e-37 < b < 5.6000000000000001e115Initial program 96.5%
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 51.8%
associate-*r*51.8%
*-commutative51.8%
*-commutative51.8%
cancel-sign-sub-inv51.8%
metadata-eval51.8%
associate-*r/51.8%
metadata-eval51.8%
Simplified51.8%
Taylor expanded in a around inf 65.6%
associate-/l*69.1%
cancel-sign-sub-inv69.1%
metadata-eval69.1%
associate-*r/69.1%
metadata-eval69.1%
Simplified69.1%
if 5.6000000000000001e115 < b Initial program 89.1%
Simplified91.4%
Taylor expanded in x around inf 62.1%
Final simplification63.3%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 9e+27) (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t)))))) (/ x (+ x (* y (exp (* 2.0 (* c (+ a 0.8333333333333334)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 9e+27) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * (c * (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 (t <= 9d+27) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * (c * (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 (t <= 9e+27) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 9e+27: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * (a + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 9e+27) 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(c * Float64(a + 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 9e+27) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); else tmp = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 9e+27], 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[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 9 \cdot 10^{+27}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if t < 8.9999999999999998e27Initial program 91.3%
Taylor expanded in t around 0 74.2%
Taylor expanded in z around 0 72.8%
if 8.9999999999999998e27 < t Initial program 98.2%
Taylor expanded in c around inf 70.3%
associate--l+70.3%
associate-*r/70.3%
metadata-eval70.3%
Simplified70.3%
Taylor expanded in t around inf 70.3%
*-commutative70.3%
Simplified70.3%
Final simplification71.7%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 4.6e+26) (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t)))))) (/ x (+ x (* y (exp (* 2.0 (* a c))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 4.6e+26) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 4.6d+26) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 4.6e+26) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 4.6e+26: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 4.6e+26) 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(a * c)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 4.6e+26) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); else tmp = x / (x + (y * exp((2.0 * (a * c))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 4.6e+26], 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[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 4.6 \cdot 10^{+26}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\end{array}
\end{array}
if t < 4.6000000000000001e26Initial program 91.2%
Taylor expanded in t around 0 74.0%
Taylor expanded in z around 0 73.3%
if 4.6000000000000001e26 < t Initial program 98.2%
Taylor expanded in c around inf 69.6%
associate--l+69.6%
associate-*r/69.6%
metadata-eval69.6%
Simplified69.6%
Taylor expanded in a around inf 60.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= z -1.85e-290)
1.0
(if (<= z 2.1e-109)
(/
x
(-
x
(-
(*
(* c 2.0)
(* y (/ (- 0.6666666666666666 (* t (+ a 0.8333333333333334))) t)))
y)))
(if (<= z 2.8e+54)
1.0
(/
x
(+
x
(+
y
(*
(* c 2.0)
(/
(+ (* y -0.6666666666666666) (* t (* y (+ a 0.8333333333333334))))
t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -1.85e-290) {
tmp = 1.0;
} else if (z <= 2.1e-109) {
tmp = x / (x - (((c * 2.0) * (y * ((0.6666666666666666 - (t * (a + 0.8333333333333334))) / t))) - y));
} else if (z <= 2.8e+54) {
tmp = 1.0;
} else {
tmp = x / (x + (y + ((c * 2.0) * (((y * -0.6666666666666666) + (t * (y * (a + 0.8333333333333334)))) / t))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (z <= (-1.85d-290)) then
tmp = 1.0d0
else if (z <= 2.1d-109) then
tmp = x / (x - (((c * 2.0d0) * (y * ((0.6666666666666666d0 - (t * (a + 0.8333333333333334d0))) / t))) - y))
else if (z <= 2.8d+54) then
tmp = 1.0d0
else
tmp = x / (x + (y + ((c * 2.0d0) * (((y * (-0.6666666666666666d0)) + (t * (y * (a + 0.8333333333333334d0)))) / t))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -1.85e-290) {
tmp = 1.0;
} else if (z <= 2.1e-109) {
tmp = x / (x - (((c * 2.0) * (y * ((0.6666666666666666 - (t * (a + 0.8333333333333334))) / t))) - y));
} else if (z <= 2.8e+54) {
tmp = 1.0;
} else {
tmp = x / (x + (y + ((c * 2.0) * (((y * -0.6666666666666666) + (t * (y * (a + 0.8333333333333334)))) / t))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if z <= -1.85e-290: tmp = 1.0 elif z <= 2.1e-109: tmp = x / (x - (((c * 2.0) * (y * ((0.6666666666666666 - (t * (a + 0.8333333333333334))) / t))) - y)) elif z <= 2.8e+54: tmp = 1.0 else: tmp = x / (x + (y + ((c * 2.0) * (((y * -0.6666666666666666) + (t * (y * (a + 0.8333333333333334)))) / t)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (z <= -1.85e-290) tmp = 1.0; elseif (z <= 2.1e-109) tmp = Float64(x / Float64(x - Float64(Float64(Float64(c * 2.0) * Float64(y * Float64(Float64(0.6666666666666666 - Float64(t * Float64(a + 0.8333333333333334))) / t))) - y))); elseif (z <= 2.8e+54) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(c * 2.0) * Float64(Float64(Float64(y * -0.6666666666666666) + Float64(t * Float64(y * Float64(a + 0.8333333333333334)))) / t))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (z <= -1.85e-290) tmp = 1.0; elseif (z <= 2.1e-109) tmp = x / (x - (((c * 2.0) * (y * ((0.6666666666666666 - (t * (a + 0.8333333333333334))) / t))) - y)); elseif (z <= 2.8e+54) tmp = 1.0; else tmp = x / (x + (y + ((c * 2.0) * (((y * -0.6666666666666666) + (t * (y * (a + 0.8333333333333334)))) / t)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -1.85e-290], 1.0, If[LessEqual[z, 2.1e-109], N[(x / N[(x - N[(N[(N[(c * 2.0), $MachinePrecision] * N[(y * N[(N[(0.6666666666666666 - N[(t * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e+54], 1.0, N[(x / N[(x + N[(y + N[(N[(c * 2.0), $MachinePrecision] * N[(N[(N[(y * -0.6666666666666666), $MachinePrecision] + N[(t * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.85 \cdot 10^{-290}:\\
\;\;\;\;1\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-109}:\\
\;\;\;\;\frac{x}{x - \left(\left(c \cdot 2\right) \cdot \left(y \cdot \frac{0.6666666666666666 - t \cdot \left(a + 0.8333333333333334\right)}{t}\right) - y\right)}\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{+54}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(c \cdot 2\right) \cdot \frac{y \cdot -0.6666666666666666 + t \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right)}{t}\right)}\\
\end{array}
\end{array}
if z < -1.84999999999999989e-290 or 2.09999999999999996e-109 < z < 2.80000000000000015e54Initial program 94.1%
Simplified94.1%
Taylor expanded in x around inf 57.5%
if -1.84999999999999989e-290 < z < 2.09999999999999996e-109Initial program 100.0%
Taylor expanded in c around inf 64.6%
associate--l+64.6%
associate-*r/64.6%
metadata-eval64.6%
Simplified64.6%
Taylor expanded in c around 0 55.2%
associate-*r*55.2%
*-commutative55.2%
*-commutative55.2%
cancel-sign-sub-inv55.2%
metadata-eval55.2%
associate-*r/55.2%
metadata-eval55.2%
Simplified55.2%
Taylor expanded in t around 0 62.0%
if 2.80000000000000015e54 < z Initial program 88.9%
Taylor expanded in c around inf 53.7%
associate--l+53.7%
associate-*r/53.7%
metadata-eval53.7%
Simplified53.7%
Taylor expanded in c around 0 48.4%
associate-*r*48.4%
*-commutative48.4%
*-commutative48.4%
cancel-sign-sub-inv48.4%
metadata-eval48.4%
associate-*r/48.4%
metadata-eval48.4%
Simplified48.4%
Taylor expanded in t around 0 55.3%
Final simplification57.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= x 2.8e-301)
1.0
(if (<= x 1.45e+72)
(/
x
(+
x
(+
y
(*
(* c 2.0)
(* y (+ (+ a 0.8333333333333334) (/ -0.6666666666666666 t)))))))
(if (<= x 1.25e+107)
(/
x
(-
x
(*
y
(-
-1.0
(*
(- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))
(* b 2.0))))))
(/ x (* y (/ x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 2.8e-301) {
tmp = 1.0;
} else if (x <= 1.45e+72) {
tmp = x / (x + (y + ((c * 2.0) * (y * ((a + 0.8333333333333334) + (-0.6666666666666666 / t))))));
} else if (x <= 1.25e+107) {
tmp = x / (x - (y * (-1.0 - (((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)))));
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (x <= 2.8d-301) then
tmp = 1.0d0
else if (x <= 1.45d+72) then
tmp = x / (x + (y + ((c * 2.0d0) * (y * ((a + 0.8333333333333334d0) + ((-0.6666666666666666d0) / t))))))
else if (x <= 1.25d+107) then
tmp = x / (x - (y * ((-1.0d0) - (((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)) * (b * 2.0d0)))))
else
tmp = x / (y * (x / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 2.8e-301) {
tmp = 1.0;
} else if (x <= 1.45e+72) {
tmp = x / (x + (y + ((c * 2.0) * (y * ((a + 0.8333333333333334) + (-0.6666666666666666 / t))))));
} else if (x <= 1.25e+107) {
tmp = x / (x - (y * (-1.0 - (((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)))));
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= 2.8e-301: tmp = 1.0 elif x <= 1.45e+72: tmp = x / (x + (y + ((c * 2.0) * (y * ((a + 0.8333333333333334) + (-0.6666666666666666 / t)))))) elif x <= 1.25e+107: tmp = x / (x - (y * (-1.0 - (((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0))))) else: tmp = x / (y * (x / y)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= 2.8e-301) tmp = 1.0; elseif (x <= 1.45e+72) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(c * 2.0) * Float64(y * Float64(Float64(a + 0.8333333333333334) + Float64(-0.6666666666666666 / t))))))); elseif (x <= 1.25e+107) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)) * Float64(b * 2.0)))))); else tmp = Float64(x / Float64(y * Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= 2.8e-301) tmp = 1.0; elseif (x <= 1.45e+72) tmp = x / (x + (y + ((c * 2.0) * (y * ((a + 0.8333333333333334) + (-0.6666666666666666 / t)))))); elseif (x <= 1.25e+107) tmp = x / (x - (y * (-1.0 - (((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0))))); else tmp = x / (y * (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, 2.8e-301], 1.0, If[LessEqual[x, 1.45e+72], N[(x / N[(x + N[(y + N[(N[(c * 2.0), $MachinePrecision] * N[(y * N[(N[(a + 0.8333333333333334), $MachinePrecision] + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.25e+107], N[(x / N[(x - N[(y * N[(-1.0 - N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] * N[(b * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.8 \cdot 10^{-301}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{+72}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(c \cdot 2\right) \cdot \left(y \cdot \left(\left(a + 0.8333333333333334\right) + \frac{-0.6666666666666666}{t}\right)\right)\right)}\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{+107}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right) \cdot \left(b \cdot 2\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \frac{x}{y}}\\
\end{array}
\end{array}
if x < 2.8000000000000001e-301Initial program 95.8%
Simplified96.7%
Taylor expanded in x around inf 53.9%
if 2.8000000000000001e-301 < x < 1.45000000000000009e72Initial program 93.8%
Taylor expanded in c around inf 72.1%
associate--l+72.1%
associate-*r/72.1%
metadata-eval72.1%
Simplified72.1%
Taylor expanded in c around 0 56.3%
associate-*r*56.3%
*-commutative56.3%
*-commutative56.3%
cancel-sign-sub-inv56.3%
metadata-eval56.3%
associate-*r/56.3%
metadata-eval56.3%
Simplified56.3%
if 1.45000000000000009e72 < x < 1.25e107Initial program 90.0%
Taylor expanded in b around inf 61.3%
associate-*r/61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in b around 0 80.8%
associate-*r*80.8%
associate-*r/80.8%
metadata-eval80.8%
associate--l-80.8%
*-commutative80.8%
associate--l-80.8%
*-commutative80.8%
Simplified80.8%
if 1.25e107 < x Initial program 91.5%
Simplified91.6%
Taylor expanded in y around inf 64.3%
Taylor expanded in x around inf 58.7%
Final simplification56.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= x -3.6e-265)
1.0
(if (<= x 2.8e+108)
(/
x
(+
x
(+
y
(*
(* c 2.0)
(*
a
(+
y
(* y (/ (+ 0.8333333333333334 (/ -0.6666666666666666 t)) a))))))))
(/ x (* y (/ x y))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= -3.6e-265) {
tmp = 1.0;
} else if (x <= 2.8e+108) {
tmp = x / (x + (y + ((c * 2.0) * (a * (y + (y * ((0.8333333333333334 + (-0.6666666666666666 / t)) / a)))))));
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (x <= (-3.6d-265)) then
tmp = 1.0d0
else if (x <= 2.8d+108) then
tmp = x / (x + (y + ((c * 2.0d0) * (a * (y + (y * ((0.8333333333333334d0 + ((-0.6666666666666666d0) / t)) / a)))))))
else
tmp = x / (y * (x / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= -3.6e-265) {
tmp = 1.0;
} else if (x <= 2.8e+108) {
tmp = x / (x + (y + ((c * 2.0) * (a * (y + (y * ((0.8333333333333334 + (-0.6666666666666666 / t)) / a)))))));
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= -3.6e-265: tmp = 1.0 elif x <= 2.8e+108: tmp = x / (x + (y + ((c * 2.0) * (a * (y + (y * ((0.8333333333333334 + (-0.6666666666666666 / t)) / a))))))) else: tmp = x / (y * (x / y)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= -3.6e-265) tmp = 1.0; elseif (x <= 2.8e+108) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(c * 2.0) * Float64(a * Float64(y + Float64(y * Float64(Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t)) / a)))))))); else tmp = Float64(x / Float64(y * Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= -3.6e-265) tmp = 1.0; elseif (x <= 2.8e+108) tmp = x / (x + (y + ((c * 2.0) * (a * (y + (y * ((0.8333333333333334 + (-0.6666666666666666 / t)) / a))))))); else tmp = x / (y * (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, -3.6e-265], 1.0, If[LessEqual[x, 2.8e+108], N[(x / N[(x + N[(y + N[(N[(c * 2.0), $MachinePrecision] * N[(a * N[(y + N[(y * N[(N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.6 \cdot 10^{-265}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 2.8 \cdot 10^{+108}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(c \cdot 2\right) \cdot \left(a \cdot \left(y + y \cdot \frac{0.8333333333333334 + \frac{-0.6666666666666666}{t}}{a}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \frac{x}{y}}\\
\end{array}
\end{array}
if x < -3.6000000000000002e-265Initial program 95.5%
Simplified96.4%
Taylor expanded in x around inf 54.6%
if -3.6000000000000002e-265 < x < 2.7999999999999998e108Initial program 93.9%
Taylor expanded in c around inf 71.6%
associate--l+71.6%
associate-*r/71.6%
metadata-eval71.6%
Simplified71.6%
Taylor expanded in c around 0 52.1%
associate-*r*52.1%
*-commutative52.1%
*-commutative52.1%
cancel-sign-sub-inv52.1%
metadata-eval52.1%
associate-*r/52.1%
metadata-eval52.1%
Simplified52.1%
Taylor expanded in a around inf 56.9%
associate-/l*56.9%
cancel-sign-sub-inv56.9%
metadata-eval56.9%
associate-*r/56.9%
metadata-eval56.9%
Simplified56.9%
if 2.7999999999999998e108 < x Initial program 91.5%
Simplified91.6%
Taylor expanded in y around inf 64.3%
Taylor expanded in x around inf 58.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= x 1.95e-301)
1.0
(if (<= x 6e+107)
(/
x
(-
x
(*
y
(-
-1.0
(*
(+ (+ a 0.8333333333333334) (/ -0.6666666666666666 t))
(* c 2.0))))))
(/ x (* y (/ x y))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 1.95e-301) {
tmp = 1.0;
} else if (x <= 6e+107) {
tmp = x / (x - (y * (-1.0 - (((a + 0.8333333333333334) + (-0.6666666666666666 / t)) * (c * 2.0)))));
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (x <= 1.95d-301) then
tmp = 1.0d0
else if (x <= 6d+107) then
tmp = x / (x - (y * ((-1.0d0) - (((a + 0.8333333333333334d0) + ((-0.6666666666666666d0) / t)) * (c * 2.0d0)))))
else
tmp = x / (y * (x / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 1.95e-301) {
tmp = 1.0;
} else if (x <= 6e+107) {
tmp = x / (x - (y * (-1.0 - (((a + 0.8333333333333334) + (-0.6666666666666666 / t)) * (c * 2.0)))));
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= 1.95e-301: tmp = 1.0 elif x <= 6e+107: tmp = x / (x - (y * (-1.0 - (((a + 0.8333333333333334) + (-0.6666666666666666 / t)) * (c * 2.0))))) else: tmp = x / (y * (x / y)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= 1.95e-301) tmp = 1.0; elseif (x <= 6e+107) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(Float64(Float64(a + 0.8333333333333334) + Float64(-0.6666666666666666 / t)) * Float64(c * 2.0)))))); else tmp = Float64(x / Float64(y * Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= 1.95e-301) tmp = 1.0; elseif (x <= 6e+107) tmp = x / (x - (y * (-1.0 - (((a + 0.8333333333333334) + (-0.6666666666666666 / t)) * (c * 2.0))))); else tmp = x / (y * (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, 1.95e-301], 1.0, If[LessEqual[x, 6e+107], N[(x / N[(x - N[(y * N[(-1.0 - N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] * N[(c * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.95 \cdot 10^{-301}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 6 \cdot 10^{+107}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - \left(\left(a + 0.8333333333333334\right) + \frac{-0.6666666666666666}{t}\right) \cdot \left(c \cdot 2\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \frac{x}{y}}\\
\end{array}
\end{array}
if x < 1.9500000000000001e-301Initial program 95.8%
Simplified96.7%
Taylor expanded in x around inf 53.9%
if 1.9500000000000001e-301 < x < 6.00000000000000046e107Initial program 93.3%
Taylor expanded in c around inf 71.9%
associate--l+71.9%
associate-*r/71.9%
metadata-eval71.9%
Simplified71.9%
Taylor expanded in c around 0 53.5%
associate-*r*53.5%
*-commutative53.5%
cancel-sign-sub-inv53.5%
metadata-eval53.5%
associate-*r/53.5%
metadata-eval53.5%
Simplified53.5%
if 6.00000000000000046e107 < x Initial program 91.5%
Simplified91.6%
Taylor expanded in y around inf 64.3%
Taylor expanded in x around inf 58.7%
Final simplification54.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= x 1.95e-301)
1.0
(if (<= x 1.55e-13)
(/
x
(*
y
(-
1.0
(*
2.0
(*
c
(- (* 0.6666666666666666 (/ 1.0 t)) (+ a 0.8333333333333334)))))))
(/ x (* y (/ x y))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 1.95e-301) {
tmp = 1.0;
} else if (x <= 1.55e-13) {
tmp = x / (y * (1.0 - (2.0 * (c * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))))));
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (x <= 1.95d-301) then
tmp = 1.0d0
else if (x <= 1.55d-13) then
tmp = x / (y * (1.0d0 - (2.0d0 * (c * ((0.6666666666666666d0 * (1.0d0 / t)) - (a + 0.8333333333333334d0))))))
else
tmp = x / (y * (x / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 1.95e-301) {
tmp = 1.0;
} else if (x <= 1.55e-13) {
tmp = x / (y * (1.0 - (2.0 * (c * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))))));
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= 1.95e-301: tmp = 1.0 elif x <= 1.55e-13: tmp = x / (y * (1.0 - (2.0 * (c * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))))) else: tmp = x / (y * (x / y)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= 1.95e-301) tmp = 1.0; elseif (x <= 1.55e-13) tmp = Float64(x / Float64(y * Float64(1.0 - Float64(2.0 * Float64(c * Float64(Float64(0.6666666666666666 * Float64(1.0 / t)) - Float64(a + 0.8333333333333334))))))); else tmp = Float64(x / Float64(y * Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= 1.95e-301) tmp = 1.0; elseif (x <= 1.55e-13) tmp = x / (y * (1.0 - (2.0 * (c * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))))); else tmp = x / (y * (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, 1.95e-301], 1.0, If[LessEqual[x, 1.55e-13], N[(x / N[(y * N[(1.0 - N[(2.0 * N[(c * N[(N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.95 \cdot 10^{-301}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 1.55 \cdot 10^{-13}:\\
\;\;\;\;\frac{x}{y \cdot \left(1 - 2 \cdot \left(c \cdot \left(0.6666666666666666 \cdot \frac{1}{t} - \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \frac{x}{y}}\\
\end{array}
\end{array}
if x < 1.9500000000000001e-301Initial program 95.8%
Simplified96.7%
Taylor expanded in x around inf 53.9%
if 1.9500000000000001e-301 < x < 1.55e-13Initial program 91.3%
Taylor expanded in c around inf 69.8%
associate--l+69.8%
associate-*r/69.8%
metadata-eval69.8%
Simplified69.8%
Taylor expanded in c around 0 59.7%
associate-*r*59.7%
*-commutative59.7%
*-commutative59.7%
cancel-sign-sub-inv59.7%
metadata-eval59.7%
associate-*r/59.7%
metadata-eval59.7%
Simplified59.7%
Taylor expanded in y around inf 54.4%
if 1.55e-13 < x Initial program 93.7%
Simplified93.7%
Taylor expanded in y around inf 77.5%
Taylor expanded in x around inf 50.9%
Final simplification53.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= z -1.15e-291)
1.0
(if (or (<= z 9.8e-147) (not (<= z 4.6e+52)))
(/ x (+ x (+ y (* -2.0 (* a (* b y))))))
1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -1.15e-291) {
tmp = 1.0;
} else if ((z <= 9.8e-147) || !(z <= 4.6e+52)) {
tmp = x / (x + (y + (-2.0 * (a * (b * y)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (z <= (-1.15d-291)) then
tmp = 1.0d0
else if ((z <= 9.8d-147) .or. (.not. (z <= 4.6d+52))) then
tmp = x / (x + (y + ((-2.0d0) * (a * (b * y)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -1.15e-291) {
tmp = 1.0;
} else if ((z <= 9.8e-147) || !(z <= 4.6e+52)) {
tmp = x / (x + (y + (-2.0 * (a * (b * y)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if z <= -1.15e-291: tmp = 1.0 elif (z <= 9.8e-147) or not (z <= 4.6e+52): tmp = x / (x + (y + (-2.0 * (a * (b * y))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (z <= -1.15e-291) tmp = 1.0; elseif ((z <= 9.8e-147) || !(z <= 4.6e+52)) tmp = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(a * Float64(b * y)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (z <= -1.15e-291) tmp = 1.0; elseif ((z <= 9.8e-147) || ~((z <= 4.6e+52))) tmp = x / (x + (y + (-2.0 * (a * (b * y))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -1.15e-291], 1.0, If[Or[LessEqual[z, 9.8e-147], N[Not[LessEqual[z, 4.6e+52]], $MachinePrecision]], N[(x / N[(x + N[(y + N[(-2.0 * N[(a * N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.15 \cdot 10^{-291}:\\
\;\;\;\;1\\
\mathbf{elif}\;z \leq 9.8 \cdot 10^{-147} \lor \neg \left(z \leq 4.6 \cdot 10^{+52}\right):\\
\;\;\;\;\frac{x}{x + \left(y + -2 \cdot \left(a \cdot \left(b \cdot y\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if z < -1.15e-291 or 9.8000000000000001e-147 < z < 4.6e52Initial program 94.4%
Simplified94.4%
Taylor expanded in x around inf 55.8%
if -1.15e-291 < z < 9.8000000000000001e-147 or 4.6e52 < z Initial program 93.8%
Taylor expanded in b around inf 67.4%
associate-*r/67.4%
metadata-eval67.4%
Simplified67.4%
Taylor expanded in a around inf 51.4%
associate-*r*51.4%
mul-1-neg51.4%
Simplified51.4%
Taylor expanded in a around 0 50.5%
Final simplification53.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= x 4.7e-301)
1.0
(if (<= x 7e-115)
(/ x (+ x (* y (- 1.0 (* 1.3333333333333333 (/ (- c b) t))))))
(if (<= x 1e+105)
(/ x (+ x (+ y (* (* c 2.0) (* a y)))))
(/ x (* y (/ x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 4.7e-301) {
tmp = 1.0;
} else if (x <= 7e-115) {
tmp = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t)))));
} else if (x <= 1e+105) {
tmp = x / (x + (y + ((c * 2.0) * (a * y))));
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (x <= 4.7d-301) then
tmp = 1.0d0
else if (x <= 7d-115) then
tmp = x / (x + (y * (1.0d0 - (1.3333333333333333d0 * ((c - b) / t)))))
else if (x <= 1d+105) then
tmp = x / (x + (y + ((c * 2.0d0) * (a * y))))
else
tmp = x / (y * (x / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 4.7e-301) {
tmp = 1.0;
} else if (x <= 7e-115) {
tmp = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t)))));
} else if (x <= 1e+105) {
tmp = x / (x + (y + ((c * 2.0) * (a * y))));
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= 4.7e-301: tmp = 1.0 elif x <= 7e-115: tmp = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t))))) elif x <= 1e+105: tmp = x / (x + (y + ((c * 2.0) * (a * y)))) else: tmp = x / (y * (x / y)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= 4.7e-301) tmp = 1.0; elseif (x <= 7e-115) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(1.3333333333333333 * Float64(Float64(c - b) / t)))))); elseif (x <= 1e+105) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(c * 2.0) * Float64(a * y))))); else tmp = Float64(x / Float64(y * Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= 4.7e-301) tmp = 1.0; elseif (x <= 7e-115) tmp = x / (x + (y * (1.0 - (1.3333333333333333 * ((c - b) / t))))); elseif (x <= 1e+105) tmp = x / (x + (y + ((c * 2.0) * (a * y)))); else tmp = x / (y * (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, 4.7e-301], 1.0, If[LessEqual[x, 7e-115], N[(x / N[(x + N[(y * N[(1.0 - N[(1.3333333333333333 * N[(N[(c - b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1e+105], N[(x / N[(x + N[(y + N[(N[(c * 2.0), $MachinePrecision] * N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 4.7 \cdot 10^{-301}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-115}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - 1.3333333333333333 \cdot \frac{c - b}{t}\right)}\\
\mathbf{elif}\;x \leq 10^{+105}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(c \cdot 2\right) \cdot \left(a \cdot y\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \frac{x}{y}}\\
\end{array}
\end{array}
if x < 4.6999999999999997e-301Initial program 95.8%
Simplified96.7%
Taylor expanded in x around inf 53.9%
if 4.6999999999999997e-301 < x < 7.0000000000000004e-115Initial program 88.0%
Taylor expanded in t around 0 56.6%
Taylor expanded in t around inf 42.4%
Taylor expanded in z around 0 55.6%
if 7.0000000000000004e-115 < x < 9.9999999999999994e104Initial program 97.8%
Taylor expanded in c around inf 70.8%
associate--l+70.8%
associate-*r/70.8%
metadata-eval70.8%
Simplified70.8%
Taylor expanded in c around 0 50.0%
associate-*r*50.0%
*-commutative50.0%
*-commutative50.0%
cancel-sign-sub-inv50.0%
metadata-eval50.0%
associate-*r/50.0%
metadata-eval50.0%
Simplified50.0%
Taylor expanded in a around inf 50.0%
if 9.9999999999999994e104 < x Initial program 91.8%
Simplified91.9%
Taylor expanded in y around inf 65.7%
Taylor expanded in x around inf 58.4%
Final simplification54.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= x 3.3e-301)
1.0
(if (<= x 1.7e-119)
(*
(/ x c)
(/ 0.5 (* y (+ 0.8333333333333334 (+ a (/ -0.6666666666666666 t))))))
(if (<= x 6.5e+104)
(/ x (+ x (+ y (* (* c 2.0) (* a y)))))
(/ x (* y (/ x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 3.3e-301) {
tmp = 1.0;
} else if (x <= 1.7e-119) {
tmp = (x / c) * (0.5 / (y * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))));
} else if (x <= 6.5e+104) {
tmp = x / (x + (y + ((c * 2.0) * (a * y))));
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (x <= 3.3d-301) then
tmp = 1.0d0
else if (x <= 1.7d-119) then
tmp = (x / c) * (0.5d0 / (y * (0.8333333333333334d0 + (a + ((-0.6666666666666666d0) / t)))))
else if (x <= 6.5d+104) then
tmp = x / (x + (y + ((c * 2.0d0) * (a * y))))
else
tmp = x / (y * (x / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 3.3e-301) {
tmp = 1.0;
} else if (x <= 1.7e-119) {
tmp = (x / c) * (0.5 / (y * (0.8333333333333334 + (a + (-0.6666666666666666 / t)))));
} else if (x <= 6.5e+104) {
tmp = x / (x + (y + ((c * 2.0) * (a * y))));
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= 3.3e-301: tmp = 1.0 elif x <= 1.7e-119: tmp = (x / c) * (0.5 / (y * (0.8333333333333334 + (a + (-0.6666666666666666 / t))))) elif x <= 6.5e+104: tmp = x / (x + (y + ((c * 2.0) * (a * y)))) else: tmp = x / (y * (x / y)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= 3.3e-301) tmp = 1.0; elseif (x <= 1.7e-119) tmp = Float64(Float64(x / c) * Float64(0.5 / Float64(y * Float64(0.8333333333333334 + Float64(a + Float64(-0.6666666666666666 / t)))))); elseif (x <= 6.5e+104) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(c * 2.0) * Float64(a * y))))); else tmp = Float64(x / Float64(y * Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= 3.3e-301) tmp = 1.0; elseif (x <= 1.7e-119) tmp = (x / c) * (0.5 / (y * (0.8333333333333334 + (a + (-0.6666666666666666 / t))))); elseif (x <= 6.5e+104) tmp = x / (x + (y + ((c * 2.0) * (a * y)))); else tmp = x / (y * (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, 3.3e-301], 1.0, If[LessEqual[x, 1.7e-119], N[(N[(x / c), $MachinePrecision] * N[(0.5 / N[(y * N[(0.8333333333333334 + N[(a + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.5e+104], N[(x / N[(x + N[(y + N[(N[(c * 2.0), $MachinePrecision] * N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 3.3 \cdot 10^{-301}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{-119}:\\
\;\;\;\;\frac{x}{c} \cdot \frac{0.5}{y \cdot \left(0.8333333333333334 + \left(a + \frac{-0.6666666666666666}{t}\right)\right)}\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{+104}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(c \cdot 2\right) \cdot \left(a \cdot y\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \frac{x}{y}}\\
\end{array}
\end{array}
if x < 3.3e-301Initial program 95.8%
Simplified96.7%
Taylor expanded in x around inf 53.9%
if 3.3e-301 < x < 1.70000000000000012e-119Initial program 88.0%
Taylor expanded in c around inf 74.2%
associate--l+74.2%
associate-*r/74.2%
metadata-eval74.2%
Simplified74.2%
Taylor expanded in c around 0 57.9%
associate-*r*57.9%
*-commutative57.9%
*-commutative57.9%
cancel-sign-sub-inv57.9%
metadata-eval57.9%
associate-*r/57.9%
metadata-eval57.9%
Simplified57.9%
Taylor expanded in c around inf 48.5%
associate-*r/48.5%
associate-*r*48.1%
cancel-sign-sub-inv48.1%
metadata-eval48.1%
associate-*r/48.1%
metadata-eval48.1%
associate-+r+48.1%
Simplified48.1%
*-commutative48.1%
associate-*l*48.5%
times-frac55.4%
Applied egg-rr55.4%
if 1.70000000000000012e-119 < x < 6.5000000000000005e104Initial program 97.8%
Taylor expanded in c around inf 70.8%
associate--l+70.8%
associate-*r/70.8%
metadata-eval70.8%
Simplified70.8%
Taylor expanded in c around 0 50.0%
associate-*r*50.0%
*-commutative50.0%
*-commutative50.0%
cancel-sign-sub-inv50.0%
metadata-eval50.0%
associate-*r/50.0%
metadata-eval50.0%
Simplified50.0%
Taylor expanded in a around inf 50.0%
if 6.5000000000000005e104 < x Initial program 91.8%
Simplified91.9%
Taylor expanded in y around inf 65.7%
Taylor expanded in x around inf 58.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= z -5.6)
1.0
(if (<= z 1e-146)
(/ x (+ x (+ y (* (* c 2.0) (* a y)))))
(if (<= z 4.3e+52) 1.0 (/ x (+ x (+ y (* -2.0 (* a (* b y))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -5.6) {
tmp = 1.0;
} else if (z <= 1e-146) {
tmp = x / (x + (y + ((c * 2.0) * (a * y))));
} else if (z <= 4.3e+52) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (-2.0 * (a * (b * y)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (z <= (-5.6d0)) then
tmp = 1.0d0
else if (z <= 1d-146) then
tmp = x / (x + (y + ((c * 2.0d0) * (a * y))))
else if (z <= 4.3d+52) then
tmp = 1.0d0
else
tmp = x / (x + (y + ((-2.0d0) * (a * (b * y)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -5.6) {
tmp = 1.0;
} else if (z <= 1e-146) {
tmp = x / (x + (y + ((c * 2.0) * (a * y))));
} else if (z <= 4.3e+52) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (-2.0 * (a * (b * y)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if z <= -5.6: tmp = 1.0 elif z <= 1e-146: tmp = x / (x + (y + ((c * 2.0) * (a * y)))) elif z <= 4.3e+52: tmp = 1.0 else: tmp = x / (x + (y + (-2.0 * (a * (b * y))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (z <= -5.6) tmp = 1.0; elseif (z <= 1e-146) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(c * 2.0) * Float64(a * y))))); elseif (z <= 4.3e+52) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(a * Float64(b * y)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (z <= -5.6) tmp = 1.0; elseif (z <= 1e-146) tmp = x / (x + (y + ((c * 2.0) * (a * y)))); elseif (z <= 4.3e+52) tmp = 1.0; else tmp = x / (x + (y + (-2.0 * (a * (b * y))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -5.6], 1.0, If[LessEqual[z, 1e-146], N[(x / N[(x + N[(y + N[(N[(c * 2.0), $MachinePrecision] * N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.3e+52], 1.0, N[(x / N[(x + N[(y + N[(-2.0 * N[(a * N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.6:\\
\;\;\;\;1\\
\mathbf{elif}\;z \leq 10^{-146}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(c \cdot 2\right) \cdot \left(a \cdot y\right)\right)}\\
\mathbf{elif}\;z \leq 4.3 \cdot 10^{+52}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + -2 \cdot \left(a \cdot \left(b \cdot y\right)\right)\right)}\\
\end{array}
\end{array}
if z < -5.5999999999999996 or 1.00000000000000003e-146 < z < 4.3e52Initial program 93.6%
Simplified95.4%
Taylor expanded in x around inf 59.6%
if -5.5999999999999996 < z < 1.00000000000000003e-146Initial program 97.8%
Taylor expanded in c around inf 73.0%
associate--l+73.0%
associate-*r/73.0%
metadata-eval73.0%
Simplified73.0%
Taylor expanded in c around 0 48.9%
associate-*r*48.9%
*-commutative48.9%
*-commutative48.9%
cancel-sign-sub-inv48.9%
metadata-eval48.9%
associate-*r/48.9%
metadata-eval48.9%
Simplified48.9%
Taylor expanded in a around inf 52.3%
if 4.3e52 < z Initial program 89.1%
Taylor expanded in b around inf 55.4%
associate-*r/55.4%
metadata-eval55.4%
Simplified55.4%
Taylor expanded in a around inf 46.6%
associate-*r*46.6%
mul-1-neg46.6%
Simplified46.6%
Taylor expanded in a around 0 46.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= z -1.62e-289)
1.0
(/
x
(-
x
(-
(*
(* c 2.0)
(* y (/ (- 0.6666666666666666 (* t (+ a 0.8333333333333334))) t)))
y)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -1.62e-289) {
tmp = 1.0;
} else {
tmp = x / (x - (((c * 2.0) * (y * ((0.6666666666666666 - (t * (a + 0.8333333333333334))) / t))) - y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (z <= (-1.62d-289)) then
tmp = 1.0d0
else
tmp = x / (x - (((c * 2.0d0) * (y * ((0.6666666666666666d0 - (t * (a + 0.8333333333333334d0))) / t))) - y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -1.62e-289) {
tmp = 1.0;
} else {
tmp = x / (x - (((c * 2.0) * (y * ((0.6666666666666666 - (t * (a + 0.8333333333333334))) / t))) - y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if z <= -1.62e-289: tmp = 1.0 else: tmp = x / (x - (((c * 2.0) * (y * ((0.6666666666666666 - (t * (a + 0.8333333333333334))) / t))) - y)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (z <= -1.62e-289) tmp = 1.0; else tmp = Float64(x / Float64(x - Float64(Float64(Float64(c * 2.0) * Float64(y * Float64(Float64(0.6666666666666666 - Float64(t * Float64(a + 0.8333333333333334))) / t))) - y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (z <= -1.62e-289) tmp = 1.0; else tmp = x / (x - (((c * 2.0) * (y * ((0.6666666666666666 - (t * (a + 0.8333333333333334))) / t))) - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -1.62e-289], 1.0, N[(x / N[(x - N[(N[(N[(c * 2.0), $MachinePrecision] * N[(y * N[(N[(0.6666666666666666 - N[(t * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.62 \cdot 10^{-289}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - \left(\left(c \cdot 2\right) \cdot \left(y \cdot \frac{0.6666666666666666 - t \cdot \left(a + 0.8333333333333334\right)}{t}\right) - y\right)}\\
\end{array}
\end{array}
if z < -1.62000000000000011e-289Initial program 92.2%
Simplified93.9%
Taylor expanded in x around inf 57.0%
if -1.62000000000000011e-289 < z Initial program 95.7%
Taylor expanded in c around inf 60.3%
associate--l+60.3%
associate-*r/60.3%
metadata-eval60.3%
Simplified60.3%
Taylor expanded in c around 0 49.6%
associate-*r*49.6%
*-commutative49.6%
*-commutative49.6%
cancel-sign-sub-inv49.6%
metadata-eval49.6%
associate-*r/49.6%
metadata-eval49.6%
Simplified49.6%
Taylor expanded in t around 0 52.0%
Final simplification54.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= x 1.85e-301)
1.0
(if (<= x 2.05e+105)
(/ x (+ x (* y (+ 1.0 (* b (* a -2.0))))))
(/ x (* y (/ x y))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 1.85e-301) {
tmp = 1.0;
} else if (x <= 2.05e+105) {
tmp = x / (x + (y * (1.0 + (b * (a * -2.0)))));
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (x <= 1.85d-301) then
tmp = 1.0d0
else if (x <= 2.05d+105) then
tmp = x / (x + (y * (1.0d0 + (b * (a * (-2.0d0))))))
else
tmp = x / (y * (x / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 1.85e-301) {
tmp = 1.0;
} else if (x <= 2.05e+105) {
tmp = x / (x + (y * (1.0 + (b * (a * -2.0)))));
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= 1.85e-301: tmp = 1.0 elif x <= 2.05e+105: tmp = x / (x + (y * (1.0 + (b * (a * -2.0))))) else: tmp = x / (y * (x / y)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= 1.85e-301) tmp = 1.0; elseif (x <= 2.05e+105) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(b * Float64(a * -2.0)))))); else tmp = Float64(x / Float64(y * Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= 1.85e-301) tmp = 1.0; elseif (x <= 2.05e+105) tmp = x / (x + (y * (1.0 + (b * (a * -2.0))))); else tmp = x / (y * (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, 1.85e-301], 1.0, If[LessEqual[x, 2.05e+105], N[(x / N[(x + N[(y * N[(1.0 + N[(b * N[(a * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.85 \cdot 10^{-301}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 2.05 \cdot 10^{+105}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + b \cdot \left(a \cdot -2\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \frac{x}{y}}\\
\end{array}
\end{array}
if x < 1.8499999999999999e-301Initial program 95.8%
Simplified96.7%
Taylor expanded in x around inf 53.9%
if 1.8499999999999999e-301 < x < 2.0500000000000001e105Initial program 93.2%
Taylor expanded in b around inf 71.8%
associate-*r/71.8%
metadata-eval71.8%
Simplified71.8%
Taylor expanded in a around inf 60.9%
associate-*r*60.9%
mul-1-neg60.9%
Simplified60.9%
Taylor expanded in a around 0 45.8%
associate-*r*45.8%
*-commutative45.8%
Simplified45.8%
if 2.0500000000000001e105 < x Initial program 91.8%
Simplified91.9%
Taylor expanded in y around inf 65.7%
Taylor expanded in x around inf 58.4%
Final simplification52.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= x 5.2e-301)
1.0
(if (<= x 7.2e-16)
(/ x (* y (+ 1.0 (* b (* a -2.0)))))
(/ x (* y (/ x y))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 5.2e-301) {
tmp = 1.0;
} else if (x <= 7.2e-16) {
tmp = x / (y * (1.0 + (b * (a * -2.0))));
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (x <= 5.2d-301) then
tmp = 1.0d0
else if (x <= 7.2d-16) then
tmp = x / (y * (1.0d0 + (b * (a * (-2.0d0)))))
else
tmp = x / (y * (x / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 5.2e-301) {
tmp = 1.0;
} else if (x <= 7.2e-16) {
tmp = x / (y * (1.0 + (b * (a * -2.0))));
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= 5.2e-301: tmp = 1.0 elif x <= 7.2e-16: tmp = x / (y * (1.0 + (b * (a * -2.0)))) else: tmp = x / (y * (x / y)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= 5.2e-301) tmp = 1.0; elseif (x <= 7.2e-16) tmp = Float64(x / Float64(y * Float64(1.0 + Float64(b * Float64(a * -2.0))))); else tmp = Float64(x / Float64(y * Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= 5.2e-301) tmp = 1.0; elseif (x <= 7.2e-16) tmp = x / (y * (1.0 + (b * (a * -2.0)))); else tmp = x / (y * (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, 5.2e-301], 1.0, If[LessEqual[x, 7.2e-16], N[(x / N[(y * N[(1.0 + N[(b * N[(a * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 5.2 \cdot 10^{-301}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{-16}:\\
\;\;\;\;\frac{x}{y \cdot \left(1 + b \cdot \left(a \cdot -2\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \frac{x}{y}}\\
\end{array}
\end{array}
if x < 5.1999999999999996e-301Initial program 95.8%
Simplified96.7%
Taylor expanded in x around inf 53.9%
if 5.1999999999999996e-301 < x < 7.19999999999999965e-16Initial program 91.2%
Taylor expanded in b around inf 70.0%
associate-*r/70.0%
metadata-eval70.0%
Simplified70.0%
Taylor expanded in a around inf 63.4%
associate-*r*63.4%
mul-1-neg63.4%
Simplified63.4%
Taylor expanded in x around 0 50.9%
associate-*r*50.9%
*-commutative50.9%
Simplified50.9%
Taylor expanded in a around 0 46.7%
*-commutative46.7%
*-commutative46.7%
associate-*r*46.7%
Simplified46.7%
if 7.19999999999999965e-16 < x Initial program 93.8%
Simplified93.8%
Taylor expanded in y around inf 77.8%
Taylor expanded in x around inf 50.3%
(FPCore (x y z t a b c) :precision binary64 (if (<= x 3.5e-301) 1.0 (if (<= x 2.3e-166) (/ 1.0 (/ (+ x y) x)) (/ x (* y (/ x y))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 3.5e-301) {
tmp = 1.0;
} else if (x <= 2.3e-166) {
tmp = 1.0 / ((x + y) / x);
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (x <= 3.5d-301) then
tmp = 1.0d0
else if (x <= 2.3d-166) then
tmp = 1.0d0 / ((x + y) / x)
else
tmp = x / (y * (x / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 3.5e-301) {
tmp = 1.0;
} else if (x <= 2.3e-166) {
tmp = 1.0 / ((x + y) / x);
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= 3.5e-301: tmp = 1.0 elif x <= 2.3e-166: tmp = 1.0 / ((x + y) / x) else: tmp = x / (y * (x / y)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= 3.5e-301) tmp = 1.0; elseif (x <= 2.3e-166) tmp = Float64(1.0 / Float64(Float64(x + y) / x)); else tmp = Float64(x / Float64(y * Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= 3.5e-301) tmp = 1.0; elseif (x <= 2.3e-166) tmp = 1.0 / ((x + y) / x); else tmp = x / (y * (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, 3.5e-301], 1.0, If[LessEqual[x, 2.3e-166], N[(1.0 / N[(N[(x + y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 3.5 \cdot 10^{-301}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-166}:\\
\;\;\;\;\frac{1}{\frac{x + y}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \frac{x}{y}}\\
\end{array}
\end{array}
if x < 3.49999999999999992e-301Initial program 95.8%
Simplified96.7%
Taylor expanded in x around inf 53.9%
if 3.49999999999999992e-301 < x < 2.29999999999999999e-166Initial program 87.3%
Taylor expanded in c around inf 71.9%
associate--l+71.9%
associate-*r/71.9%
metadata-eval71.9%
Simplified71.9%
Taylor expanded in c around 0 48.8%
clear-num50.1%
inv-pow50.1%
Applied egg-rr50.1%
unpow-150.1%
Simplified50.1%
if 2.29999999999999999e-166 < x Initial program 94.3%
Simplified95.3%
Taylor expanded in y around inf 81.1%
Taylor expanded in x around inf 47.4%
(FPCore (x y z t a b c) :precision binary64 (if (<= x 1.9e-301) 1.0 (if (<= x 2.3e-168) (/ 1.0 (/ y x)) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 1.9e-301) {
tmp = 1.0;
} else if (x <= 2.3e-168) {
tmp = 1.0 / (y / x);
} 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 (x <= 1.9d-301) then
tmp = 1.0d0
else if (x <= 2.3d-168) then
tmp = 1.0d0 / (y / x)
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 (x <= 1.9e-301) {
tmp = 1.0;
} else if (x <= 2.3e-168) {
tmp = 1.0 / (y / x);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= 1.9e-301: tmp = 1.0 elif x <= 2.3e-168: tmp = 1.0 / (y / x) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= 1.9e-301) tmp = 1.0; elseif (x <= 2.3e-168) tmp = Float64(1.0 / Float64(y / x)); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= 1.9e-301) tmp = 1.0; elseif (x <= 2.3e-168) tmp = 1.0 / (y / x); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, 1.9e-301], 1.0, If[LessEqual[x, 2.3e-168], N[(1.0 / N[(y / x), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.9 \cdot 10^{-301}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-168}:\\
\;\;\;\;\frac{1}{\frac{y}{x}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < 1.89999999999999998e-301 or 2.29999999999999986e-168 < x Initial program 95.1%
Simplified96.0%
Taylor expanded in x around inf 49.2%
if 1.89999999999999998e-301 < x < 2.29999999999999986e-168Initial program 87.3%
Taylor expanded in c around inf 71.9%
associate--l+71.9%
associate-*r/71.9%
metadata-eval71.9%
Simplified71.9%
Taylor expanded in c around 0 48.8%
Taylor expanded in x around 0 48.8%
clear-num50.1%
inv-pow50.1%
Applied egg-rr50.1%
unpow-150.1%
Simplified50.1%
(FPCore (x y z t a b c) :precision binary64 (if (<= x 6.5e-301) 1.0 (if (<= x 9.5e-167) (/ x y) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 6.5e-301) {
tmp = 1.0;
} else if (x <= 9.5e-167) {
tmp = x / y;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (x <= 6.5d-301) then
tmp = 1.0d0
else if (x <= 9.5d-167) then
tmp = x / y
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 6.5e-301) {
tmp = 1.0;
} else if (x <= 9.5e-167) {
tmp = x / y;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= 6.5e-301: tmp = 1.0 elif x <= 9.5e-167: tmp = x / y else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= 6.5e-301) tmp = 1.0; elseif (x <= 9.5e-167) tmp = Float64(x / y); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= 6.5e-301) tmp = 1.0; elseif (x <= 9.5e-167) tmp = x / y; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, 6.5e-301], 1.0, If[LessEqual[x, 9.5e-167], N[(x / y), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 6.5 \cdot 10^{-301}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{-167}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < 6.49999999999999991e-301 or 9.49999999999999955e-167 < x Initial program 95.1%
Simplified96.0%
Taylor expanded in x around inf 49.2%
if 6.49999999999999991e-301 < x < 9.49999999999999955e-167Initial program 87.3%
Taylor expanded in c around inf 71.9%
associate--l+71.9%
associate-*r/71.9%
metadata-eval71.9%
Simplified71.9%
Taylor expanded in c around 0 48.8%
Taylor expanded in x around 0 48.8%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 3.8e+170) 1.0 (/ x (+ x y))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 3.8e+170) {
tmp = 1.0;
} else {
tmp = x / (x + y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 3.8d+170) then
tmp = 1.0d0
else
tmp = x / (x + y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 3.8e+170) {
tmp = 1.0;
} else {
tmp = x / (x + y);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 3.8e+170: tmp = 1.0 else: tmp = x / (x + y) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 3.8e+170) tmp = 1.0; else tmp = Float64(x / Float64(x + y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 3.8e+170) tmp = 1.0; else tmp = x / (x + y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 3.8e+170], 1.0, N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 3.8 \cdot 10^{+170}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y}\\
\end{array}
\end{array}
if t < 3.7999999999999998e170Initial program 93.4%
Simplified94.4%
Taylor expanded in x around inf 49.1%
if 3.7999999999999998e170 < t Initial program 96.7%
Taylor expanded in c around inf 69.4%
associate--l+69.4%
associate-*r/69.4%
metadata-eval69.4%
Simplified69.4%
Taylor expanded in c around 0 44.5%
(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.2%
Simplified95.7%
Taylor expanded in x around inf 45.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* z (sqrt (+ t a)))) (t_2 (- a (/ 5.0 6.0))))
(if (< t -2.118326644891581e-50)
(/
x
(+
x
(* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b)))))))
(if (< t 5.196588770651547e-123)
(/
x
(+
x
(*
y
(exp
(*
2.0
(/
(-
(* t_1 (* (* 3.0 t) t_2))
(*
(- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0)
(* t_2 (* (- b c) t))))
(* (* (* t t) 3.0) t_2)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ t_1 t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = z * sqrt((t + a));
double t_2 = a - (5.0 / 6.0);
double tmp;
if (t < -2.118326644891581e-50) {
tmp = x / (x + (y * exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b))))));
} else if (t < 5.196588770651547e-123) {
tmp = x / (x + (y * exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * sqrt((t + a))
t_2 = a - (5.0d0 / 6.0d0)
if (t < (-2.118326644891581d-50)) then
tmp = x / (x + (y * exp((2.0d0 * (((a * c) + (0.8333333333333334d0 * c)) - (a * b))))))
else if (t < 5.196588770651547d-123) then
tmp = x / (x + (y * exp((2.0d0 * (((t_1 * ((3.0d0 * t) * t_2)) - (((((5.0d0 / 6.0d0) + a) * (3.0d0 * t)) - 2.0d0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0d0) * t_2))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((t_1 / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = z * Math.sqrt((t + a));
double t_2 = a - (5.0 / 6.0);
double tmp;
if (t < -2.118326644891581e-50) {
tmp = x / (x + (y * Math.exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b))))));
} else if (t < 5.196588770651547e-123) {
tmp = x / (x + (y * Math.exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = z * math.sqrt((t + a)) t_2 = a - (5.0 / 6.0) tmp = 0 if t < -2.118326644891581e-50: tmp = x / (x + (y * math.exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b)))))) elif t < 5.196588770651547e-123: tmp = x / (x + (y * math.exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2)))))) else: tmp = x / (x + (y * math.exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(z * sqrt(Float64(t + a))) t_2 = Float64(a - Float64(5.0 / 6.0)) tmp = 0.0 if (t < -2.118326644891581e-50) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(a * c) + Float64(0.8333333333333334 * c)) - Float64(a * b))))))); elseif (t < 5.196588770651547e-123) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(t_1 * Float64(Float64(3.0 * t) * t_2)) - Float64(Float64(Float64(Float64(Float64(5.0 / 6.0) + a) * Float64(3.0 * t)) - 2.0) * Float64(t_2 * Float64(Float64(b - c) * t)))) / Float64(Float64(Float64(t * t) * 3.0) * t_2))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(t_1 / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = z * sqrt((t + a)); t_2 = a - (5.0 / 6.0); tmp = 0.0; if (t < -2.118326644891581e-50) tmp = x / (x + (y * exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b)))))); elseif (t < 5.196588770651547e-123) tmp = x / (x + (y * exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2)))))); else tmp = x / (x + (y * exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a - N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -2.118326644891581e-50], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(a * c), $MachinePrecision] + N[(0.8333333333333334 * c), $MachinePrecision]), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[t, 5.196588770651547e-123], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(t$95$1 * N[(N[(3.0 * t), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(N[(N[(5.0 / 6.0), $MachinePrecision] + a), $MachinePrecision] * N[(3.0 * t), $MachinePrecision]), $MachinePrecision] - 2.0), $MachinePrecision] * N[(t$95$2 * N[(N[(b - c), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(t * t), $MachinePrecision] * 3.0), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(t$95$1 / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \sqrt{t + a}\\
t_2 := a - \frac{5}{6}\\
\mathbf{if}\;t < -2.118326644891581 \cdot 10^{-50}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a \cdot c + 0.8333333333333334 \cdot c\right) - a \cdot b\right)}}\\
\mathbf{elif}\;t < 5.196588770651547 \cdot 10^{-123}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{t\_1 \cdot \left(\left(3 \cdot t\right) \cdot t\_2\right) - \left(\left(\frac{5}{6} + a\right) \cdot \left(3 \cdot t\right) - 2\right) \cdot \left(t\_2 \cdot \left(\left(b - c\right) \cdot t\right)\right)}{\left(\left(t \cdot t\right) \cdot 3\right) \cdot t\_2}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{t\_1}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}\\
\end{array}
\end{array}
herbie shell --seed 2024165
(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)))))))))))