
(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 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- (+ a 0.8333333333333334) (/ 2.0 (* t 3.0))) (- c b)))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + (((a + 0.8333333333333334) - (2.0 / (t * 3.0))) * (c - b));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * Math.sqrt((t + a))) / t) + (((a + 0.8333333333333334) - (2.0 / (t * 3.0))) * (c - b));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((t + a))) / t) + (((a + 0.8333333333333334) - (2.0 / (t * 3.0))) * (c - b)) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(Float64(a + 0.8333333333333334) - Float64(2.0 / Float64(t * 3.0))) * Float64(c - b))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((t + a))) / t) + (((a + 0.8333333333333334) - (2.0 / (t * 3.0))) * (c - b)); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(\left(a + 0.8333333333333334\right) - \frac{2}{t \cdot 3}\right) \cdot \left(c - b\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 99.2%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) Initial program 0.0%
Taylor expanded in t around 0 77.6%
Final simplification98.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t)))))
(if (or (<= c -1.48e+54) (not (<= c 6.8e+161)))
(/ x (+ x (* y (exp (* 2.0 (* c t_1))))))
(/
x
(+ x (* y (exp (* 2.0 (- (* (sqrt (+ t a)) (/ z t)) (* b t_1))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a + (0.8333333333333334 + (-0.6666666666666666 / t));
double tmp;
if ((c <= -1.48e+54) || !(c <= 6.8e+161)) {
tmp = x / (x + (y * exp((2.0 * (c * t_1)))));
} else {
tmp = x / (x + (y * exp((2.0 * ((sqrt((t + a)) * (z / t)) - (b * t_1))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = a + (0.8333333333333334d0 + ((-0.6666666666666666d0) / t))
if ((c <= (-1.48d+54)) .or. (.not. (c <= 6.8d+161))) then
tmp = x / (x + (y * exp((2.0d0 * (c * t_1)))))
else
tmp = x / (x + (y * exp((2.0d0 * ((sqrt((t + a)) * (z / t)) - (b * t_1))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a + (0.8333333333333334 + (-0.6666666666666666 / t));
double tmp;
if ((c <= -1.48e+54) || !(c <= 6.8e+161)) {
tmp = x / (x + (y * Math.exp((2.0 * (c * t_1)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((Math.sqrt((t + a)) * (z / t)) - (b * t_1))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = a + (0.8333333333333334 + (-0.6666666666666666 / t)) tmp = 0 if (c <= -1.48e+54) or not (c <= 6.8e+161): tmp = x / (x + (y * math.exp((2.0 * (c * t_1))))) else: tmp = x / (x + (y * math.exp((2.0 * ((math.sqrt((t + a)) * (z / t)) - (b * t_1)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))) tmp = 0.0 if ((c <= -1.48e+54) || !(c <= 6.8e+161)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * t_1)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(sqrt(Float64(t + a)) * Float64(z / t)) - Float64(b * t_1))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = a + (0.8333333333333334 + (-0.6666666666666666 / t)); tmp = 0.0; if ((c <= -1.48e+54) || ~((c <= 6.8e+161))) tmp = x / (x + (y * exp((2.0 * (c * t_1))))); else tmp = x / (x + (y * exp((2.0 * ((sqrt((t + a)) * (z / t)) - (b * t_1)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(a + N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[c, -1.48e+54], N[Not[LessEqual[c, 6.8e+161]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision] - N[(b * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\\
\mathbf{if}\;c \leq -1.48 \cdot 10^{+54} \lor \neg \left(c \leq 6.8 \cdot 10^{+161}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot t_1\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\sqrt{t + a} \cdot \frac{z}{t} - b \cdot t_1\right)}}\\
\end{array}
\end{array}
if c < -1.48e54 or 6.79999999999999986e161 < c Initial program 92.0%
Taylor expanded in c around inf 93.2%
cancel-sign-sub-inv93.2%
+-commutative93.2%
metadata-eval93.2%
associate-*r/93.2%
metadata-eval93.2%
associate-+r+93.2%
Simplified93.2%
if -1.48e54 < c < 6.79999999999999986e161Initial program 95.5%
Taylor expanded in c around 0 91.2%
fma-neg91.8%
+-commutative91.8%
fma-neg91.2%
cancel-sign-sub-inv91.2%
+-commutative91.2%
metadata-eval91.2%
associate-*r/91.2%
metadata-eval91.2%
associate-+r+91.2%
Simplified91.2%
Final simplification92.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 1.85e-271)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 1.02e-32)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t)))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
(/ (- 0.6944444444444444 (* a a)) (- 0.8333333333333334 a))
(- c b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.85e-271) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 1.02e-32) {
tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * exp((2.0 * (((0.6944444444444444 - (a * a)) / (0.8333333333333334 - a)) * (c - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 1.85d-271) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 1.02d-32) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + (0.8333333333333334d0 + ((-0.6666666666666666d0) / t))))))))
else
tmp = x / (x + (y * exp((2.0d0 * (((0.6944444444444444d0 - (a * a)) / (0.8333333333333334d0 - a)) * (c - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.85e-271) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 1.02e-32) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((0.6944444444444444 - (a * a)) / (0.8333333333333334 - a)) * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1.85e-271: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 1.02e-32: tmp = x / (x + (y * math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))) else: tmp = x / (x + (y * math.exp((2.0 * (((0.6944444444444444 - (a * a)) / (0.8333333333333334 - a)) * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1.85e-271) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); elseif (t <= 1.02e-32) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(0.6944444444444444 - Float64(a * a)) / Float64(0.8333333333333334 - a)) * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 1.85e-271) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 1.02e-32) tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))); else tmp = x / (x + (y * exp((2.0 * (((0.6944444444444444 - (a * a)) / (0.8333333333333334 - a)) * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 1.85e-271], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.02e-32], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(0.6944444444444444 - N[(a * a), $MachinePrecision]), $MachinePrecision] / N[(0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.85 \cdot 10^{-271}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{-32}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{0.6944444444444444 - a \cdot a}{0.8333333333333334 - a} \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 1.85000000000000011e-271Initial program 91.8%
Taylor expanded in t around 0 93.4%
if 1.85000000000000011e-271 < t < 1.02000000000000002e-32Initial program 91.3%
Taylor expanded in c around inf 77.7%
cancel-sign-sub-inv77.7%
+-commutative77.7%
metadata-eval77.7%
associate-*r/77.7%
metadata-eval77.7%
associate-+r+77.7%
Simplified77.7%
if 1.02000000000000002e-32 < t Initial program 97.4%
Taylor expanded in t around inf 89.8%
mul-1-neg89.8%
distribute-rgt-neg-in89.8%
+-commutative89.8%
Simplified89.8%
+-commutative89.8%
flip-+90.7%
metadata-eval90.7%
Applied egg-rr90.7%
Final simplification87.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -1.75e-247)
(/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b)))))))
(if (<= t 1.02e-32)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t)))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
(/ (- 0.6944444444444444 (* a a)) (- 0.8333333333333334 a))
(- c b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1.75e-247) {
tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
} else if (t <= 1.02e-32) {
tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * exp((2.0 * (((0.6944444444444444 - (a * a)) / (0.8333333333333334 - a)) * (c - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-1.75d-247)) then
tmp = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
else if (t <= 1.02d-32) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + (0.8333333333333334d0 + ((-0.6666666666666666d0) / t))))))))
else
tmp = x / (x + (y * exp((2.0d0 * (((0.6944444444444444d0 - (a * a)) / (0.8333333333333334d0 - a)) * (c - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1.75e-247) {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
} else if (t <= 1.02e-32) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((0.6944444444444444 - (a * a)) / (0.8333333333333334 - a)) * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -1.75e-247: tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) elif t <= 1.02e-32: tmp = x / (x + (y * math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))) else: tmp = x / (x + (y * math.exp((2.0 * (((0.6944444444444444 - (a * a)) / (0.8333333333333334 - a)) * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -1.75e-247) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))); elseif (t <= 1.02e-32) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(0.6944444444444444 - Float64(a * a)) / Float64(0.8333333333333334 - a)) * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -1.75e-247) tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); elseif (t <= 1.02e-32) tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))); else tmp = x / (x + (y * exp((2.0 * (((0.6944444444444444 - (a * a)) / (0.8333333333333334 - a)) * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -1.75e-247], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.02e-32], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(0.6944444444444444 - N[(a * a), $MachinePrecision]), $MachinePrecision] / N[(0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.75 \cdot 10^{-247}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{-32}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{0.6944444444444444 - a \cdot a}{0.8333333333333334 - a} \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < -1.75e-247Initial program 93.6%
Taylor expanded in t around inf 85.6%
mul-1-neg85.6%
distribute-rgt-neg-in85.6%
+-commutative85.6%
Simplified85.6%
if -1.75e-247 < t < 1.02000000000000002e-32Initial program 90.5%
Taylor expanded in c around inf 76.6%
cancel-sign-sub-inv76.6%
+-commutative76.6%
metadata-eval76.6%
associate-*r/76.6%
metadata-eval76.6%
associate-+r+76.6%
Simplified76.6%
if 1.02000000000000002e-32 < t Initial program 97.4%
Taylor expanded in t around inf 89.8%
mul-1-neg89.8%
distribute-rgt-neg-in89.8%
+-commutative89.8%
Simplified89.8%
+-commutative89.8%
flip-+90.7%
metadata-eval90.7%
Applied egg-rr90.7%
Final simplification84.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+ x (+ y (* (* a 2.0) (/ (* y (- (* c c) (* b b))) (+ b c))))))))
(if (<= a 4.6e-294)
t_1
(if (<= a 3.25e-242)
1.0
(if (<= a 2.1e-151)
t_1
(if (<= a 5.3e-18)
1.0
(if (or (<= a 4.6e+95) (not (<= a 1.85e+142)))
(/ x (+ x (* y (exp (* a (* c 2.0))))))
(/ x (- x (* y (+ -1.0 (* (- b c) (* a 2.0)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c)))));
double tmp;
if (a <= 4.6e-294) {
tmp = t_1;
} else if (a <= 3.25e-242) {
tmp = 1.0;
} else if (a <= 2.1e-151) {
tmp = t_1;
} else if (a <= 5.3e-18) {
tmp = 1.0;
} else if ((a <= 4.6e+95) || !(a <= 1.85e+142)) {
tmp = x / (x + (y * exp((a * (c * 2.0)))));
} else {
tmp = x / (x - (y * (-1.0 + ((b - c) * (a * 2.0)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y + ((a * 2.0d0) * ((y * ((c * c) - (b * b))) / (b + c)))))
if (a <= 4.6d-294) then
tmp = t_1
else if (a <= 3.25d-242) then
tmp = 1.0d0
else if (a <= 2.1d-151) then
tmp = t_1
else if (a <= 5.3d-18) then
tmp = 1.0d0
else if ((a <= 4.6d+95) .or. (.not. (a <= 1.85d+142))) then
tmp = x / (x + (y * exp((a * (c * 2.0d0)))))
else
tmp = x / (x - (y * ((-1.0d0) + ((b - c) * (a * 2.0d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c)))));
double tmp;
if (a <= 4.6e-294) {
tmp = t_1;
} else if (a <= 3.25e-242) {
tmp = 1.0;
} else if (a <= 2.1e-151) {
tmp = t_1;
} else if (a <= 5.3e-18) {
tmp = 1.0;
} else if ((a <= 4.6e+95) || !(a <= 1.85e+142)) {
tmp = x / (x + (y * Math.exp((a * (c * 2.0)))));
} else {
tmp = x / (x - (y * (-1.0 + ((b - c) * (a * 2.0)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c))))) tmp = 0 if a <= 4.6e-294: tmp = t_1 elif a <= 3.25e-242: tmp = 1.0 elif a <= 2.1e-151: tmp = t_1 elif a <= 5.3e-18: tmp = 1.0 elif (a <= 4.6e+95) or not (a <= 1.85e+142): tmp = x / (x + (y * math.exp((a * (c * 2.0))))) else: tmp = x / (x - (y * (-1.0 + ((b - c) * (a * 2.0))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y + Float64(Float64(a * 2.0) * Float64(Float64(y * Float64(Float64(c * c) - Float64(b * b))) / Float64(b + c)))))) tmp = 0.0 if (a <= 4.6e-294) tmp = t_1; elseif (a <= 3.25e-242) tmp = 1.0; elseif (a <= 2.1e-151) tmp = t_1; elseif (a <= 5.3e-18) tmp = 1.0; elseif ((a <= 4.6e+95) || !(a <= 1.85e+142)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(a * Float64(c * 2.0)))))); else tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(Float64(b - c) * Float64(a * 2.0)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c))))); tmp = 0.0; if (a <= 4.6e-294) tmp = t_1; elseif (a <= 3.25e-242) tmp = 1.0; elseif (a <= 2.1e-151) tmp = t_1; elseif (a <= 5.3e-18) tmp = 1.0; elseif ((a <= 4.6e+95) || ~((a <= 1.85e+142))) tmp = x / (x + (y * exp((a * (c * 2.0))))); else tmp = x / (x - (y * (-1.0 + ((b - c) * (a * 2.0))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y + N[(N[(a * 2.0), $MachinePrecision] * N[(N[(y * N[(N[(c * c), $MachinePrecision] - N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(b + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, 4.6e-294], t$95$1, If[LessEqual[a, 3.25e-242], 1.0, If[LessEqual[a, 2.1e-151], t$95$1, If[LessEqual[a, 5.3e-18], 1.0, If[Or[LessEqual[a, 4.6e+95], N[Not[LessEqual[a, 1.85e+142]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(a * N[(c * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x - N[(y * N[(-1.0 + N[(N[(b - c), $MachinePrecision] * N[(a * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + \left(y + \left(a \cdot 2\right) \cdot \frac{y \cdot \left(c \cdot c - b \cdot b\right)}{b + c}\right)}\\
\mathbf{if}\;a \leq 4.6 \cdot 10^{-294}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.25 \cdot 10^{-242}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{-151}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 5.3 \cdot 10^{-18}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 4.6 \cdot 10^{+95} \lor \neg \left(a \leq 1.85 \cdot 10^{+142}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{a \cdot \left(c \cdot 2\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + \left(b - c\right) \cdot \left(a \cdot 2\right)\right)}\\
\end{array}
\end{array}
if a < 4.60000000000000032e-294 or 3.2499999999999999e-242 < a < 2.0999999999999999e-151Initial program 97.7%
Taylor expanded in a around inf 47.9%
Taylor expanded in a around 0 50.5%
associate-*r*50.5%
*-commutative50.5%
*-commutative50.5%
Simplified50.5%
flip--60.1%
associate-*l/62.4%
*-commutative62.4%
+-commutative62.4%
Applied egg-rr62.4%
if 4.60000000000000032e-294 < a < 3.2499999999999999e-242 or 2.0999999999999999e-151 < a < 5.3000000000000003e-18Initial program 95.5%
Taylor expanded in c around inf 69.3%
cancel-sign-sub-inv69.3%
+-commutative69.3%
metadata-eval69.3%
associate-*r/69.3%
metadata-eval69.3%
associate-+r+69.3%
Simplified69.3%
Taylor expanded in c around 0 42.9%
+-commutative42.9%
Simplified42.9%
Taylor expanded in x around inf 69.2%
if 5.3000000000000003e-18 < a < 4.59999999999999994e95 or 1.8499999999999999e142 < a Initial program 90.3%
Taylor expanded in a around inf 75.2%
Taylor expanded in c around inf 67.2%
associate-*r*67.2%
*-commutative67.2%
associate-*l*67.2%
Simplified67.2%
if 4.59999999999999994e95 < a < 1.8499999999999999e142Initial program 100.0%
Taylor expanded in a around inf 44.5%
Taylor expanded in a around 0 79.1%
associate-*r*79.1%
*-commutative79.1%
Simplified79.1%
Final simplification66.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -5e-310)
(/ x (+ x (* y (exp (* a (* c 2.0))))))
(if (<= t 9.5e-181)
(/ x (+ x (+ y (* 2.0 (* y (* a c))))))
(if (<= t 3.3e-156)
1.0
(if (or (<= t 1.75e-84) (and (not (<= t 1.12e+157)) (<= t 1.2e+231)))
(/ x (+ x (+ y (* (* a 2.0) (/ (* y (- (* c c) (* b b))) (+ b c))))))
(/ x (+ x (* y (exp (* (* a b) -2.0))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -5e-310) {
tmp = x / (x + (y * exp((a * (c * 2.0)))));
} else if (t <= 9.5e-181) {
tmp = x / (x + (y + (2.0 * (y * (a * c)))));
} else if (t <= 3.3e-156) {
tmp = 1.0;
} else if ((t <= 1.75e-84) || (!(t <= 1.12e+157) && (t <= 1.2e+231))) {
tmp = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c)))));
} else {
tmp = x / (x + (y * exp(((a * b) * -2.0))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-5d-310)) then
tmp = x / (x + (y * exp((a * (c * 2.0d0)))))
else if (t <= 9.5d-181) then
tmp = x / (x + (y + (2.0d0 * (y * (a * c)))))
else if (t <= 3.3d-156) then
tmp = 1.0d0
else if ((t <= 1.75d-84) .or. (.not. (t <= 1.12d+157)) .and. (t <= 1.2d+231)) then
tmp = x / (x + (y + ((a * 2.0d0) * ((y * ((c * c) - (b * b))) / (b + c)))))
else
tmp = x / (x + (y * exp(((a * b) * (-2.0d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -5e-310) {
tmp = x / (x + (y * Math.exp((a * (c * 2.0)))));
} else if (t <= 9.5e-181) {
tmp = x / (x + (y + (2.0 * (y * (a * c)))));
} else if (t <= 3.3e-156) {
tmp = 1.0;
} else if ((t <= 1.75e-84) || (!(t <= 1.12e+157) && (t <= 1.2e+231))) {
tmp = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c)))));
} else {
tmp = x / (x + (y * Math.exp(((a * b) * -2.0))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -5e-310: tmp = x / (x + (y * math.exp((a * (c * 2.0))))) elif t <= 9.5e-181: tmp = x / (x + (y + (2.0 * (y * (a * c))))) elif t <= 3.3e-156: tmp = 1.0 elif (t <= 1.75e-84) or (not (t <= 1.12e+157) and (t <= 1.2e+231)): tmp = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c))))) else: tmp = x / (x + (y * math.exp(((a * b) * -2.0)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -5e-310) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(a * Float64(c * 2.0)))))); elseif (t <= 9.5e-181) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(y * Float64(a * c)))))); elseif (t <= 3.3e-156) tmp = 1.0; elseif ((t <= 1.75e-84) || (!(t <= 1.12e+157) && (t <= 1.2e+231))) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(a * 2.0) * Float64(Float64(y * Float64(Float64(c * c) - Float64(b * b))) / Float64(b + c)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(a * b) * -2.0))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -5e-310) tmp = x / (x + (y * exp((a * (c * 2.0))))); elseif (t <= 9.5e-181) tmp = x / (x + (y + (2.0 * (y * (a * c))))); elseif (t <= 3.3e-156) tmp = 1.0; elseif ((t <= 1.75e-84) || (~((t <= 1.12e+157)) && (t <= 1.2e+231))) tmp = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c))))); else tmp = x / (x + (y * exp(((a * b) * -2.0)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -5e-310], N[(x / N[(x + N[(y * N[Exp[N[(a * N[(c * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.5e-181], N[(x / N[(x + N[(y + N[(2.0 * N[(y * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.3e-156], 1.0, If[Or[LessEqual[t, 1.75e-84], And[N[Not[LessEqual[t, 1.12e+157]], $MachinePrecision], LessEqual[t, 1.2e+231]]], N[(x / N[(x + N[(y + N[(N[(a * 2.0), $MachinePrecision] * N[(N[(y * N[(N[(c * c), $MachinePrecision] - N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(b + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(N[(a * b), $MachinePrecision] * -2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{-310}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{a \cdot \left(c \cdot 2\right)}}\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{-181}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(y \cdot \left(a \cdot c\right)\right)\right)}\\
\mathbf{elif}\;t \leq 3.3 \cdot 10^{-156}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{-84} \lor \neg \left(t \leq 1.12 \cdot 10^{+157}\right) \land t \leq 1.2 \cdot 10^{+231}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(a \cdot 2\right) \cdot \frac{y \cdot \left(c \cdot c - b \cdot b\right)}{b + c}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(a \cdot b\right) \cdot -2}}\\
\end{array}
\end{array}
if t < -4.999999999999985e-310Initial program 93.8%
Taylor expanded in a around inf 83.4%
Taylor expanded in c around inf 68.3%
associate-*r*68.3%
*-commutative68.3%
associate-*l*68.3%
Simplified68.3%
if -4.999999999999985e-310 < t < 9.49999999999999998e-181Initial program 86.1%
Taylor expanded in a around inf 35.6%
Taylor expanded in c around inf 43.7%
associate-*r*43.7%
*-commutative43.7%
associate-*l*43.7%
Simplified43.7%
Taylor expanded in a around 0 57.4%
associate-*r*62.6%
Simplified62.6%
if 9.49999999999999998e-181 < t < 3.2999999999999999e-156Initial program 71.4%
Taylor expanded in c around inf 44.4%
cancel-sign-sub-inv44.4%
+-commutative44.4%
metadata-eval44.4%
associate-*r/44.4%
metadata-eval44.4%
associate-+r+44.4%
Simplified44.4%
Taylor expanded in c around 0 16.8%
+-commutative16.8%
Simplified16.8%
Taylor expanded in x around inf 86.2%
if 3.2999999999999999e-156 < t < 1.7500000000000001e-84 or 1.11999999999999995e157 < t < 1.20000000000000003e231Initial program 96.2%
Taylor expanded in a around inf 51.9%
Taylor expanded in a around 0 50.2%
associate-*r*50.2%
*-commutative50.2%
*-commutative50.2%
Simplified50.2%
flip--64.9%
associate-*l/68.6%
*-commutative68.6%
+-commutative68.6%
Applied egg-rr68.6%
if 1.7500000000000001e-84 < t < 1.11999999999999995e157 or 1.20000000000000003e231 < t Initial program 98.0%
Taylor expanded in a around inf 66.1%
Taylor expanded in c around 0 68.1%
*-commutative68.1%
Simplified68.1%
Final simplification68.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= t 5.9e-305)
t_1
(if (<= t 2.6e-174)
(/ x (+ x (+ y (* 2.0 (* y (* a c))))))
(if (<= t 5.5e-158)
1.0
(if (<= t 1.25e-77)
(/
x
(+ x (+ y (* (* a 2.0) (/ (* y (- (* c c) (* b b))) (+ b c))))))
(if (<= t 760000000000.0)
t_1
(/ x (+ x (* y (exp (* (- c b) 1.6666666666666667))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= 5.9e-305) {
tmp = t_1;
} else if (t <= 2.6e-174) {
tmp = x / (x + (y + (2.0 * (y * (a * c)))));
} else if (t <= 5.5e-158) {
tmp = 1.0;
} else if (t <= 1.25e-77) {
tmp = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c)))));
} else if (t <= 760000000000.0) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
if (t <= 5.9d-305) then
tmp = t_1
else if (t <= 2.6d-174) then
tmp = x / (x + (y + (2.0d0 * (y * (a * c)))))
else if (t <= 5.5d-158) then
tmp = 1.0d0
else if (t <= 1.25d-77) then
tmp = x / (x + (y + ((a * 2.0d0) * ((y * ((c * c) - (b * b))) / (b + c)))))
else if (t <= 760000000000.0d0) then
tmp = t_1
else
tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= 5.9e-305) {
tmp = t_1;
} else if (t <= 2.6e-174) {
tmp = x / (x + (y + (2.0 * (y * (a * c)))));
} else if (t <= 5.5e-158) {
tmp = 1.0;
} else if (t <= 1.25e-77) {
tmp = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c)))));
} else if (t <= 760000000000.0) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp(((c - b) * 1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) tmp = 0 if t <= 5.9e-305: tmp = t_1 elif t <= 2.6e-174: tmp = x / (x + (y + (2.0 * (y * (a * c))))) elif t <= 5.5e-158: tmp = 1.0 elif t <= 1.25e-77: tmp = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c))))) elif t <= 760000000000.0: tmp = t_1 else: tmp = x / (x + (y * math.exp(((c - b) * 1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))) tmp = 0.0 if (t <= 5.9e-305) tmp = t_1; elseif (t <= 2.6e-174) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(y * Float64(a * c)))))); elseif (t <= 5.5e-158) tmp = 1.0; elseif (t <= 1.25e-77) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(a * 2.0) * Float64(Float64(y * Float64(Float64(c * c) - Float64(b * b))) / Float64(b + c)))))); elseif (t <= 760000000000.0) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c - b) * 1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (a * (c - b)))))); tmp = 0.0; if (t <= 5.9e-305) tmp = t_1; elseif (t <= 2.6e-174) tmp = x / (x + (y + (2.0 * (y * (a * c))))); elseif (t <= 5.5e-158) tmp = 1.0; elseif (t <= 1.25e-77) tmp = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c))))); elseif (t <= 760000000000.0) tmp = t_1; else tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 5.9e-305], t$95$1, If[LessEqual[t, 2.6e-174], N[(x / N[(x + N[(y + N[(2.0 * N[(y * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e-158], 1.0, If[LessEqual[t, 1.25e-77], N[(x / N[(x + N[(y + N[(N[(a * 2.0), $MachinePrecision] * N[(N[(y * N[(N[(c * c), $MachinePrecision] - N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(b + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 760000000000.0], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(N[(c - b), $MachinePrecision] * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq 5.9 \cdot 10^{-305}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-174}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(y \cdot \left(a \cdot c\right)\right)\right)}\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-158}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-77}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(a \cdot 2\right) \cdot \frac{y \cdot \left(c \cdot c - b \cdot b\right)}{b + c}\right)}\\
\mathbf{elif}\;t \leq 760000000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if t < 5.9000000000000005e-305 or 1.24999999999999991e-77 < t < 7.6e11Initial program 94.3%
Taylor expanded in a around inf 78.8%
if 5.9000000000000005e-305 < t < 2.6000000000000002e-174Initial program 85.7%
Taylor expanded in a around inf 36.5%
Taylor expanded in c around inf 44.9%
associate-*r*44.9%
*-commutative44.9%
associate-*l*44.9%
Simplified44.9%
Taylor expanded in a around 0 59.0%
associate-*r*64.3%
Simplified64.3%
if 2.6000000000000002e-174 < t < 5.50000000000000025e-158Initial program 71.4%
Taylor expanded in c around inf 44.4%
cancel-sign-sub-inv44.4%
+-commutative44.4%
metadata-eval44.4%
associate-*r/44.4%
metadata-eval44.4%
associate-+r+44.4%
Simplified44.4%
Taylor expanded in c around 0 16.8%
+-commutative16.8%
Simplified16.8%
Taylor expanded in x around inf 86.2%
if 5.50000000000000025e-158 < t < 1.24999999999999991e-77Initial program 96.7%
Taylor expanded in a around inf 42.3%
Taylor expanded in a around 0 55.4%
associate-*r*55.4%
*-commutative55.4%
*-commutative55.4%
Simplified55.4%
flip--64.9%
associate-*l/68.2%
*-commutative68.2%
+-commutative68.2%
Applied egg-rr68.2%
if 7.6e11 < t Initial program 98.0%
Taylor expanded in t around inf 93.0%
mul-1-neg93.0%
distribute-rgt-neg-in93.0%
+-commutative93.0%
Simplified93.0%
Taylor expanded in a around 0 87.6%
+-commutative87.6%
*-commutative87.6%
Simplified87.6%
Final simplification79.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b)))))))))
(if (<= t -4.1e-299)
t_1
(if (<= t 1.8e-126)
(/ x (+ x (* y (exp (* 2.0 (* b (/ 0.6666666666666666 t)))))))
(if (<= t 1.35e-32)
(/ x (+ x (+ y (* (* a 2.0) (/ (* y (- (* c c) (* b b))) (+ b c))))))
(if (<= t 900000.0)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
double tmp;
if (t <= -4.1e-299) {
tmp = t_1;
} else if (t <= 1.8e-126) {
tmp = x / (x + (y * exp((2.0 * (b * (0.6666666666666666 / t))))));
} else if (t <= 1.35e-32) {
tmp = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c)))));
} else if (t <= 900000.0) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
if (t <= (-4.1d-299)) then
tmp = t_1
else if (t <= 1.8d-126) then
tmp = x / (x + (y * exp((2.0d0 * (b * (0.6666666666666666d0 / t))))))
else if (t <= 1.35d-32) then
tmp = x / (x + (y + ((a * 2.0d0) * ((y * ((c * c) - (b * b))) / (b + c)))))
else if (t <= 900000.0d0) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
double tmp;
if (t <= -4.1e-299) {
tmp = t_1;
} else if (t <= 1.8e-126) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (0.6666666666666666 / t))))));
} else if (t <= 1.35e-32) {
tmp = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c)))));
} else if (t <= 900000.0) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) tmp = 0 if t <= -4.1e-299: tmp = t_1 elif t <= 1.8e-126: tmp = x / (x + (y * math.exp((2.0 * (b * (0.6666666666666666 / t)))))) elif t <= 1.35e-32: tmp = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c))))) elif t <= 900000.0: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))) tmp = 0.0 if (t <= -4.1e-299) tmp = t_1; elseif (t <= 1.8e-126) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(0.6666666666666666 / t))))))); elseif (t <= 1.35e-32) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(a * 2.0) * Float64(Float64(y * Float64(Float64(c * c) - Float64(b * b))) / Float64(b + c)))))); elseif (t <= 900000.0) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); tmp = 0.0; if (t <= -4.1e-299) tmp = t_1; elseif (t <= 1.8e-126) tmp = x / (x + (y * exp((2.0 * (b * (0.6666666666666666 / t)))))); elseif (t <= 1.35e-32) tmp = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c))))); elseif (t <= 900000.0) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.1e-299], t$95$1, If[LessEqual[t, 1.8e-126], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.35e-32], N[(x / N[(x + N[(y + N[(N[(a * 2.0), $MachinePrecision] * N[(N[(y * N[(N[(c * c), $MachinePrecision] - N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(b + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 900000.0], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq -4.1 \cdot 10^{-299}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{-126}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \frac{0.6666666666666666}{t}\right)}}\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{-32}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(a \cdot 2\right) \cdot \frac{y \cdot \left(c \cdot c - b \cdot b\right)}{b + c}\right)}\\
\mathbf{elif}\;t \leq 900000:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -4.1000000000000001e-299 or 9e5 < t Initial program 96.3%
Taylor expanded in t around inf 89.7%
mul-1-neg89.7%
distribute-rgt-neg-in89.7%
+-commutative89.7%
Simplified89.7%
if -4.1000000000000001e-299 < t < 1.8e-126Initial program 87.0%
Taylor expanded in b around inf 69.5%
associate-*r/69.5%
metadata-eval69.5%
+-commutative69.5%
Simplified69.5%
Taylor expanded in t around 0 76.7%
associate-*r/76.7%
associate-*l/76.7%
*-commutative76.7%
Simplified76.7%
if 1.8e-126 < t < 1.3499999999999999e-32Initial program 96.3%
Taylor expanded in a around inf 46.7%
Taylor expanded in a around 0 57.9%
associate-*r*57.9%
*-commutative57.9%
*-commutative57.9%
Simplified57.9%
flip--68.2%
associate-*l/68.2%
*-commutative68.2%
+-commutative68.2%
Applied egg-rr68.2%
if 1.3499999999999999e-32 < t < 9e5Initial program 93.3%
Taylor expanded in a around inf 74.1%
Final simplification83.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (- c b) 1.6666666666666667)))))))
(if (<= t 7.4e-305)
t_1
(if (<= t 1.7e-181)
(/ x (+ x (+ y (* 2.0 (* y (* a c))))))
(if (<= t 1.25e-155)
1.0
(if (<= t 1.58e-145)
(* (- y x) (/ x (* (+ x y) (- y x))))
(if (<= t 3.1e-40)
(/
x
(+ x (+ y (* (* a 2.0) (/ (* y (- (* c c) (* b b))) (+ b c))))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp(((c - b) * 1.6666666666666667))));
double tmp;
if (t <= 7.4e-305) {
tmp = t_1;
} else if (t <= 1.7e-181) {
tmp = x / (x + (y + (2.0 * (y * (a * c)))));
} else if (t <= 1.25e-155) {
tmp = 1.0;
} else if (t <= 1.58e-145) {
tmp = (y - x) * (x / ((x + y) * (y - x)));
} else if (t <= 3.1e-40) {
tmp = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c)))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp(((c - b) * 1.6666666666666667d0))))
if (t <= 7.4d-305) then
tmp = t_1
else if (t <= 1.7d-181) then
tmp = x / (x + (y + (2.0d0 * (y * (a * c)))))
else if (t <= 1.25d-155) then
tmp = 1.0d0
else if (t <= 1.58d-145) then
tmp = (y - x) * (x / ((x + y) * (y - x)))
else if (t <= 3.1d-40) then
tmp = x / (x + (y + ((a * 2.0d0) * ((y * ((c * c) - (b * b))) / (b + c)))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp(((c - b) * 1.6666666666666667))));
double tmp;
if (t <= 7.4e-305) {
tmp = t_1;
} else if (t <= 1.7e-181) {
tmp = x / (x + (y + (2.0 * (y * (a * c)))));
} else if (t <= 1.25e-155) {
tmp = 1.0;
} else if (t <= 1.58e-145) {
tmp = (y - x) * (x / ((x + y) * (y - x)));
} else if (t <= 3.1e-40) {
tmp = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c)))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp(((c - b) * 1.6666666666666667)))) tmp = 0 if t <= 7.4e-305: tmp = t_1 elif t <= 1.7e-181: tmp = x / (x + (y + (2.0 * (y * (a * c))))) elif t <= 1.25e-155: tmp = 1.0 elif t <= 1.58e-145: tmp = (y - x) * (x / ((x + y) * (y - x))) elif t <= 3.1e-40: tmp = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c - b) * 1.6666666666666667))))) tmp = 0.0 if (t <= 7.4e-305) tmp = t_1; elseif (t <= 1.7e-181) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(y * Float64(a * c)))))); elseif (t <= 1.25e-155) tmp = 1.0; elseif (t <= 1.58e-145) tmp = Float64(Float64(y - x) * Float64(x / Float64(Float64(x + y) * Float64(y - x)))); elseif (t <= 3.1e-40) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(a * 2.0) * Float64(Float64(y * Float64(Float64(c * c) - Float64(b * b))) / Float64(b + c)))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp(((c - b) * 1.6666666666666667)))); tmp = 0.0; if (t <= 7.4e-305) tmp = t_1; elseif (t <= 1.7e-181) tmp = x / (x + (y + (2.0 * (y * (a * c))))); elseif (t <= 1.25e-155) tmp = 1.0; elseif (t <= 1.58e-145) tmp = (y - x) * (x / ((x + y) * (y - x))); elseif (t <= 3.1e-40) tmp = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(N[(c - b), $MachinePrecision] * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 7.4e-305], t$95$1, If[LessEqual[t, 1.7e-181], N[(x / N[(x + N[(y + N[(2.0 * N[(y * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.25e-155], 1.0, If[LessEqual[t, 1.58e-145], N[(N[(y - x), $MachinePrecision] * N[(x / N[(N[(x + y), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.1e-40], N[(x / N[(x + N[(y + N[(N[(a * 2.0), $MachinePrecision] * N[(N[(y * N[(N[(c * c), $MachinePrecision] - N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(b + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\mathbf{if}\;t \leq 7.4 \cdot 10^{-305}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-181}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(y \cdot \left(a \cdot c\right)\right)\right)}\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-155}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1.58 \cdot 10^{-145}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{x}{\left(x + y\right) \cdot \left(y - x\right)}\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{-40}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(a \cdot 2\right) \cdot \frac{y \cdot \left(c \cdot c - b \cdot b\right)}{b + c}\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < 7.39999999999999954e-305 or 3.10000000000000011e-40 < t Initial program 96.1%
Taylor expanded in t around inf 87.0%
mul-1-neg87.0%
distribute-rgt-neg-in87.0%
+-commutative87.0%
Simplified87.0%
Taylor expanded in a around 0 81.4%
+-commutative81.4%
*-commutative81.4%
Simplified81.4%
if 7.39999999999999954e-305 < t < 1.7e-181Initial program 85.7%
Taylor expanded in a around inf 36.5%
Taylor expanded in c around inf 44.9%
associate-*r*44.9%
*-commutative44.9%
associate-*l*44.9%
Simplified44.9%
Taylor expanded in a around 0 59.0%
associate-*r*64.3%
Simplified64.3%
if 1.7e-181 < t < 1.25e-155Initial program 71.4%
Taylor expanded in c around inf 44.4%
cancel-sign-sub-inv44.4%
+-commutative44.4%
metadata-eval44.4%
associate-*r/44.4%
metadata-eval44.4%
associate-+r+44.4%
Simplified44.4%
Taylor expanded in c around 0 16.8%
+-commutative16.8%
Simplified16.8%
Taylor expanded in x around inf 86.2%
if 1.25e-155 < t < 1.58000000000000003e-145Initial program 100.0%
Taylor expanded in c around inf 100.0%
cancel-sign-sub-inv100.0%
+-commutative100.0%
metadata-eval100.0%
associate-*r/100.0%
metadata-eval100.0%
associate-+r+100.0%
Simplified100.0%
Taylor expanded in c around 0 67.7%
+-commutative67.7%
Simplified67.7%
flip-+100.0%
associate-/r/100.0%
Applied egg-rr100.0%
difference-of-squares100.0%
+-commutative100.0%
Simplified100.0%
if 1.58000000000000003e-145 < t < 3.10000000000000011e-40Initial program 96.9%
Taylor expanded in a around inf 45.9%
Taylor expanded in a around 0 52.4%
associate-*r*52.4%
*-commutative52.4%
*-commutative52.4%
Simplified52.4%
flip--61.1%
associate-*l/64.1%
*-commutative64.1%
+-commutative64.1%
Applied egg-rr64.1%
Final simplification77.3%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= t -1.75e-247) (not (<= t 2.3e-11)))
(/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -1.75e-247) || !(t <= 2.3e-11)) {
tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
} else {
tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((t <= (-1.75d-247)) .or. (.not. (t <= 2.3d-11))) then
tmp = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
else
tmp = x / (x + (y * exp((2.0d0 * (c * (a + (0.8333333333333334d0 + ((-0.6666666666666666d0) / t))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -1.75e-247) || !(t <= 2.3e-11)) {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -1.75e-247) or not (t <= 2.3e-11): tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -1.75e-247) || !(t <= 2.3e-11)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((t <= -1.75e-247) || ~((t <= 2.3e-11))) tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); else tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -1.75e-247], N[Not[LessEqual[t, 2.3e-11]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.75 \cdot 10^{-247} \lor \neg \left(t \leq 2.3 \cdot 10^{-11}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right)\right)}}\\
\end{array}
\end{array}
if t < -1.75e-247 or 2.30000000000000014e-11 < t Initial program 96.7%
Taylor expanded in t around inf 89.7%
mul-1-neg89.7%
distribute-rgt-neg-in89.7%
+-commutative89.7%
Simplified89.7%
if -1.75e-247 < t < 2.30000000000000014e-11Initial program 90.5%
Taylor expanded in c around inf 76.1%
cancel-sign-sub-inv76.1%
+-commutative76.1%
metadata-eval76.1%
associate-*r/76.1%
metadata-eval76.1%
associate-+r+76.1%
Simplified76.1%
Final simplification84.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -1e-297)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 1e-33)
(/ x (+ x (* y (exp (* 2.0 (* b (/ 0.6666666666666666 t)))))))
(/ x (+ x (* y (exp (* (- c b) 1.6666666666666667))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1e-297) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 1e-33) {
tmp = x / (x + (y * exp((2.0 * (b * (0.6666666666666666 / t))))));
} else {
tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-1d-297)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 1d-33) then
tmp = x / (x + (y * exp((2.0d0 * (b * (0.6666666666666666d0 / t))))))
else
tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1e-297) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 1e-33) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (0.6666666666666666 / t))))));
} else {
tmp = x / (x + (y * Math.exp(((c - b) * 1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -1e-297: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 1e-33: tmp = x / (x + (y * math.exp((2.0 * (b * (0.6666666666666666 / t)))))) else: tmp = x / (x + (y * math.exp(((c - b) * 1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -1e-297) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 1e-33) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(0.6666666666666666 / t))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c - b) * 1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -1e-297) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 1e-33) tmp = x / (x + (y * exp((2.0 * (b * (0.6666666666666666 / t)))))); else tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -1e-297], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e-33], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(N[(c - b), $MachinePrecision] * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{-297}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 10^{-33}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \frac{0.6666666666666666}{t}\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if t < -1.00000000000000004e-297Initial program 93.5%
Taylor expanded in a around inf 84.4%
if -1.00000000000000004e-297 < t < 1.0000000000000001e-33Initial program 90.0%
Taylor expanded in b around inf 67.8%
associate-*r/67.8%
metadata-eval67.8%
+-commutative67.8%
Simplified67.8%
Taylor expanded in t around 0 69.0%
associate-*r/69.0%
associate-*l/69.0%
*-commutative69.0%
Simplified69.0%
if 1.0000000000000001e-33 < t Initial program 97.4%
Taylor expanded in t around inf 89.8%
mul-1-neg89.8%
distribute-rgt-neg-in89.8%
+-commutative89.8%
Simplified89.8%
Taylor expanded in a around 0 84.4%
+-commutative84.4%
*-commutative84.4%
Simplified84.4%
Final simplification79.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+ x (+ y (* (* a 2.0) (/ (* y (- (* c c) (* b b))) (+ b c))))))))
(if (<= c -2.32e+42)
1.0
(if (<= c -5.2e-86)
t_1
(if (<= c -7.2e-104)
1.0
(if (<= c -3.6e-209)
(/ x (- x (* y (- -1.0 (* 1.3333333333333333 (/ b t))))))
(if (<= c 2e-208)
1.0
(if (<= c 4.2e+197)
t_1
(/ x (+ x (+ y (* (* a 2.0) (* y (- c b))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c)))));
double tmp;
if (c <= -2.32e+42) {
tmp = 1.0;
} else if (c <= -5.2e-86) {
tmp = t_1;
} else if (c <= -7.2e-104) {
tmp = 1.0;
} else if (c <= -3.6e-209) {
tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t)))));
} else if (c <= 2e-208) {
tmp = 1.0;
} else if (c <= 4.2e+197) {
tmp = t_1;
} else {
tmp = x / (x + (y + ((a * 2.0) * (y * (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) :: t_1
real(8) :: tmp
t_1 = x / (x + (y + ((a * 2.0d0) * ((y * ((c * c) - (b * b))) / (b + c)))))
if (c <= (-2.32d+42)) then
tmp = 1.0d0
else if (c <= (-5.2d-86)) then
tmp = t_1
else if (c <= (-7.2d-104)) then
tmp = 1.0d0
else if (c <= (-3.6d-209)) then
tmp = x / (x - (y * ((-1.0d0) - (1.3333333333333333d0 * (b / t)))))
else if (c <= 2d-208) then
tmp = 1.0d0
else if (c <= 4.2d+197) then
tmp = t_1
else
tmp = x / (x + (y + ((a * 2.0d0) * (y * (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 t_1 = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c)))));
double tmp;
if (c <= -2.32e+42) {
tmp = 1.0;
} else if (c <= -5.2e-86) {
tmp = t_1;
} else if (c <= -7.2e-104) {
tmp = 1.0;
} else if (c <= -3.6e-209) {
tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t)))));
} else if (c <= 2e-208) {
tmp = 1.0;
} else if (c <= 4.2e+197) {
tmp = t_1;
} else {
tmp = x / (x + (y + ((a * 2.0) * (y * (c - b)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c))))) tmp = 0 if c <= -2.32e+42: tmp = 1.0 elif c <= -5.2e-86: tmp = t_1 elif c <= -7.2e-104: tmp = 1.0 elif c <= -3.6e-209: tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t))))) elif c <= 2e-208: tmp = 1.0 elif c <= 4.2e+197: tmp = t_1 else: tmp = x / (x + (y + ((a * 2.0) * (y * (c - b))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y + Float64(Float64(a * 2.0) * Float64(Float64(y * Float64(Float64(c * c) - Float64(b * b))) / Float64(b + c)))))) tmp = 0.0 if (c <= -2.32e+42) tmp = 1.0; elseif (c <= -5.2e-86) tmp = t_1; elseif (c <= -7.2e-104) tmp = 1.0; elseif (c <= -3.6e-209) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(1.3333333333333333 * Float64(b / t)))))); elseif (c <= 2e-208) tmp = 1.0; elseif (c <= 4.2e+197) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(a * 2.0) * Float64(y * Float64(c - b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y + ((a * 2.0) * ((y * ((c * c) - (b * b))) / (b + c))))); tmp = 0.0; if (c <= -2.32e+42) tmp = 1.0; elseif (c <= -5.2e-86) tmp = t_1; elseif (c <= -7.2e-104) tmp = 1.0; elseif (c <= -3.6e-209) tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t))))); elseif (c <= 2e-208) tmp = 1.0; elseif (c <= 4.2e+197) tmp = t_1; else tmp = x / (x + (y + ((a * 2.0) * (y * (c - b))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y + N[(N[(a * 2.0), $MachinePrecision] * N[(N[(y * N[(N[(c * c), $MachinePrecision] - N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(b + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.32e+42], 1.0, If[LessEqual[c, -5.2e-86], t$95$1, If[LessEqual[c, -7.2e-104], 1.0, If[LessEqual[c, -3.6e-209], N[(x / N[(x - N[(y * N[(-1.0 - N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2e-208], 1.0, If[LessEqual[c, 4.2e+197], t$95$1, N[(x / N[(x + N[(y + N[(N[(a * 2.0), $MachinePrecision] * N[(y * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + \left(y + \left(a \cdot 2\right) \cdot \frac{y \cdot \left(c \cdot c - b \cdot b\right)}{b + c}\right)}\\
\mathbf{if}\;c \leq -2.32 \cdot 10^{+42}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -5.2 \cdot 10^{-86}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -7.2 \cdot 10^{-104}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -3.6 \cdot 10^{-209}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - 1.3333333333333333 \cdot \frac{b}{t}\right)}\\
\mathbf{elif}\;c \leq 2 \cdot 10^{-208}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 4.2 \cdot 10^{+197}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(a \cdot 2\right) \cdot \left(y \cdot \left(c - b\right)\right)\right)}\\
\end{array}
\end{array}
if c < -2.31999999999999991e42 or -5.2000000000000002e-86 < c < -7.1999999999999996e-104 or -3.60000000000000016e-209 < c < 2.0000000000000002e-208Initial program 94.4%
Taylor expanded in c around inf 73.9%
cancel-sign-sub-inv73.9%
+-commutative73.9%
metadata-eval73.9%
associate-*r/73.9%
metadata-eval73.9%
associate-+r+73.9%
Simplified73.9%
Taylor expanded in c around 0 37.5%
+-commutative37.5%
Simplified37.5%
Taylor expanded in x around inf 64.7%
if -2.31999999999999991e42 < c < -5.2000000000000002e-86 or 2.0000000000000002e-208 < c < 4.20000000000000013e197Initial program 94.0%
Taylor expanded in a around inf 60.0%
Taylor expanded in a around 0 50.3%
associate-*r*50.3%
*-commutative50.3%
*-commutative50.3%
Simplified50.3%
flip--61.8%
associate-*l/63.0%
*-commutative63.0%
+-commutative63.0%
Applied egg-rr63.0%
if -7.1999999999999996e-104 < c < -3.60000000000000016e-209Initial program 95.7%
Taylor expanded in b around inf 83.3%
associate-*r/83.3%
metadata-eval83.3%
+-commutative83.3%
Simplified83.3%
Taylor expanded in t around 0 74.9%
associate-*r/74.9%
associate-*l/74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in b around 0 66.8%
if 4.20000000000000013e197 < c Initial program 92.6%
Taylor expanded in a around inf 57.0%
Taylor expanded in a around 0 67.8%
associate-*r*67.8%
*-commutative67.8%
*-commutative67.8%
Simplified67.8%
Final simplification64.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (- x (* y (- -1.0 (* 1.3333333333333333 (/ b t))))))))
(if (<= c -1.3e-21)
1.0
(if (<= c -7.8e-210)
t_1
(if (<= c 8.2e-304)
1.0
(if (<= c 4.7e+21)
t_1
(if (<= c 6e+193)
(/
x
(+ x (+ y (* 2.0 (+ (* y (* a c)) (* (* a a) (* y (* c c))))))))
(/ x (+ x (+ y (* (* a 2.0) (* y (- c b)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t)))));
double tmp;
if (c <= -1.3e-21) {
tmp = 1.0;
} else if (c <= -7.8e-210) {
tmp = t_1;
} else if (c <= 8.2e-304) {
tmp = 1.0;
} else if (c <= 4.7e+21) {
tmp = t_1;
} else if (c <= 6e+193) {
tmp = x / (x + (y + (2.0 * ((y * (a * c)) + ((a * a) * (y * (c * c)))))));
} else {
tmp = x / (x + (y + ((a * 2.0) * (y * (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) :: t_1
real(8) :: tmp
t_1 = x / (x - (y * ((-1.0d0) - (1.3333333333333333d0 * (b / t)))))
if (c <= (-1.3d-21)) then
tmp = 1.0d0
else if (c <= (-7.8d-210)) then
tmp = t_1
else if (c <= 8.2d-304) then
tmp = 1.0d0
else if (c <= 4.7d+21) then
tmp = t_1
else if (c <= 6d+193) then
tmp = x / (x + (y + (2.0d0 * ((y * (a * c)) + ((a * a) * (y * (c * c)))))))
else
tmp = x / (x + (y + ((a * 2.0d0) * (y * (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 t_1 = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t)))));
double tmp;
if (c <= -1.3e-21) {
tmp = 1.0;
} else if (c <= -7.8e-210) {
tmp = t_1;
} else if (c <= 8.2e-304) {
tmp = 1.0;
} else if (c <= 4.7e+21) {
tmp = t_1;
} else if (c <= 6e+193) {
tmp = x / (x + (y + (2.0 * ((y * (a * c)) + ((a * a) * (y * (c * c)))))));
} else {
tmp = x / (x + (y + ((a * 2.0) * (y * (c - b)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t))))) tmp = 0 if c <= -1.3e-21: tmp = 1.0 elif c <= -7.8e-210: tmp = t_1 elif c <= 8.2e-304: tmp = 1.0 elif c <= 4.7e+21: tmp = t_1 elif c <= 6e+193: tmp = x / (x + (y + (2.0 * ((y * (a * c)) + ((a * a) * (y * (c * c))))))) else: tmp = x / (x + (y + ((a * 2.0) * (y * (c - b))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(1.3333333333333333 * Float64(b / t)))))) tmp = 0.0 if (c <= -1.3e-21) tmp = 1.0; elseif (c <= -7.8e-210) tmp = t_1; elseif (c <= 8.2e-304) tmp = 1.0; elseif (c <= 4.7e+21) tmp = t_1; elseif (c <= 6e+193) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(Float64(y * Float64(a * c)) + Float64(Float64(a * a) * Float64(y * Float64(c * c)))))))); else tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(a * 2.0) * Float64(y * Float64(c - b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t))))); tmp = 0.0; if (c <= -1.3e-21) tmp = 1.0; elseif (c <= -7.8e-210) tmp = t_1; elseif (c <= 8.2e-304) tmp = 1.0; elseif (c <= 4.7e+21) tmp = t_1; elseif (c <= 6e+193) tmp = x / (x + (y + (2.0 * ((y * (a * c)) + ((a * a) * (y * (c * c))))))); else tmp = x / (x + (y + ((a * 2.0) * (y * (c - b))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x - N[(y * N[(-1.0 - N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.3e-21], 1.0, If[LessEqual[c, -7.8e-210], t$95$1, If[LessEqual[c, 8.2e-304], 1.0, If[LessEqual[c, 4.7e+21], t$95$1, If[LessEqual[c, 6e+193], N[(x / N[(x + N[(y + N[(2.0 * N[(N[(y * N[(a * c), $MachinePrecision]), $MachinePrecision] + N[(N[(a * a), $MachinePrecision] * N[(y * N[(c * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y + N[(N[(a * 2.0), $MachinePrecision] * N[(y * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x - y \cdot \left(-1 - 1.3333333333333333 \cdot \frac{b}{t}\right)}\\
\mathbf{if}\;c \leq -1.3 \cdot 10^{-21}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -7.8 \cdot 10^{-210}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 8.2 \cdot 10^{-304}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 4.7 \cdot 10^{+21}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 6 \cdot 10^{+193}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(y \cdot \left(a \cdot c\right) + \left(a \cdot a\right) \cdot \left(y \cdot \left(c \cdot c\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(a \cdot 2\right) \cdot \left(y \cdot \left(c - b\right)\right)\right)}\\
\end{array}
\end{array}
if c < -1.30000000000000009e-21 or -7.7999999999999995e-210 < c < 8.20000000000000005e-304Initial program 93.8%
Taylor expanded in c around inf 78.9%
cancel-sign-sub-inv78.9%
+-commutative78.9%
metadata-eval78.9%
associate-*r/78.9%
metadata-eval78.9%
associate-+r+78.9%
Simplified78.9%
Taylor expanded in c around 0 36.4%
+-commutative36.4%
Simplified36.4%
Taylor expanded in x around inf 64.7%
if -1.30000000000000009e-21 < c < -7.7999999999999995e-210 or 8.20000000000000005e-304 < c < 4.7e21Initial program 96.1%
Taylor expanded in b around inf 82.2%
associate-*r/82.2%
metadata-eval82.2%
+-commutative82.2%
Simplified82.2%
Taylor expanded in t around 0 64.6%
associate-*r/64.6%
associate-*l/64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in b around 0 57.7%
if 4.7e21 < c < 6e193Initial program 90.7%
Taylor expanded in a around inf 63.8%
Taylor expanded in c around inf 51.7%
associate-*r*51.7%
*-commutative51.7%
associate-*l*51.7%
Simplified51.7%
Taylor expanded in a around 0 54.0%
distribute-lft-out54.0%
associate-*r*57.2%
unpow257.2%
*-commutative57.2%
unpow257.2%
Simplified57.2%
if 6e193 < c Initial program 92.6%
Taylor expanded in a around inf 57.0%
Taylor expanded in a around 0 67.8%
associate-*r*67.8%
*-commutative67.8%
*-commutative67.8%
Simplified67.8%
Final simplification61.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (- x (* y (- -1.0 (* 1.3333333333333333 (/ b t))))))))
(if (<= c -8.8e-21)
1.0
(if (<= c -5e-210)
t_1
(if (<= c 6.5e-303)
1.0
(if (<= c 5.4e+28) t_1 (/ x (+ x (+ y (* 2.0 (* a (* c y))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t)))));
double tmp;
if (c <= -8.8e-21) {
tmp = 1.0;
} else if (c <= -5e-210) {
tmp = t_1;
} else if (c <= 6.5e-303) {
tmp = 1.0;
} else if (c <= 5.4e+28) {
tmp = t_1;
} else {
tmp = x / (x + (y + (2.0 * (a * (c * 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) :: t_1
real(8) :: tmp
t_1 = x / (x - (y * ((-1.0d0) - (1.3333333333333333d0 * (b / t)))))
if (c <= (-8.8d-21)) then
tmp = 1.0d0
else if (c <= (-5d-210)) then
tmp = t_1
else if (c <= 6.5d-303) then
tmp = 1.0d0
else if (c <= 5.4d+28) then
tmp = t_1
else
tmp = x / (x + (y + (2.0d0 * (a * (c * 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 t_1 = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t)))));
double tmp;
if (c <= -8.8e-21) {
tmp = 1.0;
} else if (c <= -5e-210) {
tmp = t_1;
} else if (c <= 6.5e-303) {
tmp = 1.0;
} else if (c <= 5.4e+28) {
tmp = t_1;
} else {
tmp = x / (x + (y + (2.0 * (a * (c * y)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t))))) tmp = 0 if c <= -8.8e-21: tmp = 1.0 elif c <= -5e-210: tmp = t_1 elif c <= 6.5e-303: tmp = 1.0 elif c <= 5.4e+28: tmp = t_1 else: tmp = x / (x + (y + (2.0 * (a * (c * y))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(1.3333333333333333 * Float64(b / t)))))) tmp = 0.0 if (c <= -8.8e-21) tmp = 1.0; elseif (c <= -5e-210) tmp = t_1; elseif (c <= 6.5e-303) tmp = 1.0; elseif (c <= 5.4e+28) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(a * Float64(c * y)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t))))); tmp = 0.0; if (c <= -8.8e-21) tmp = 1.0; elseif (c <= -5e-210) tmp = t_1; elseif (c <= 6.5e-303) tmp = 1.0; elseif (c <= 5.4e+28) tmp = t_1; else tmp = x / (x + (y + (2.0 * (a * (c * y))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x - N[(y * N[(-1.0 - N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -8.8e-21], 1.0, If[LessEqual[c, -5e-210], t$95$1, If[LessEqual[c, 6.5e-303], 1.0, If[LessEqual[c, 5.4e+28], t$95$1, N[(x / N[(x + N[(y + N[(2.0 * N[(a * N[(c * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x - y \cdot \left(-1 - 1.3333333333333333 \cdot \frac{b}{t}\right)}\\
\mathbf{if}\;c \leq -8.8 \cdot 10^{-21}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -5 \cdot 10^{-210}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 6.5 \cdot 10^{-303}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 5.4 \cdot 10^{+28}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(a \cdot \left(c \cdot y\right)\right)\right)}\\
\end{array}
\end{array}
if c < -8.8000000000000002e-21 or -5.0000000000000002e-210 < c < 6.50000000000000028e-303Initial program 93.8%
Taylor expanded in c around inf 78.9%
cancel-sign-sub-inv78.9%
+-commutative78.9%
metadata-eval78.9%
associate-*r/78.9%
metadata-eval78.9%
associate-+r+78.9%
Simplified78.9%
Taylor expanded in c around 0 36.4%
+-commutative36.4%
Simplified36.4%
Taylor expanded in x around inf 64.7%
if -8.8000000000000002e-21 < c < -5.0000000000000002e-210 or 6.50000000000000028e-303 < c < 5.4000000000000003e28Initial program 96.1%
Taylor expanded in b around inf 82.2%
associate-*r/82.2%
metadata-eval82.2%
+-commutative82.2%
Simplified82.2%
Taylor expanded in t around 0 64.6%
associate-*r/64.6%
associate-*l/64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in b around 0 57.7%
if 5.4000000000000003e28 < c Initial program 91.6%
Taylor expanded in a around inf 60.7%
Taylor expanded in c around inf 52.5%
associate-*r*52.5%
*-commutative52.5%
associate-*l*52.5%
Simplified52.5%
Taylor expanded in a around 0 52.6%
*-commutative52.6%
Simplified52.6%
Final simplification59.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -8.5e-21)
1.0
(if (<= c -5.2e-209)
(/ x (- x (* y (- -1.0 (* 1.3333333333333333 (/ b t))))))
(if (<= c 3.3e-208) 1.0 (/ x (+ x (+ y (* (* a 2.0) (* y (- c b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -8.5e-21) {
tmp = 1.0;
} else if (c <= -5.2e-209) {
tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t)))));
} else if (c <= 3.3e-208) {
tmp = 1.0;
} else {
tmp = x / (x + (y + ((a * 2.0) * (y * (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 (c <= (-8.5d-21)) then
tmp = 1.0d0
else if (c <= (-5.2d-209)) then
tmp = x / (x - (y * ((-1.0d0) - (1.3333333333333333d0 * (b / t)))))
else if (c <= 3.3d-208) then
tmp = 1.0d0
else
tmp = x / (x + (y + ((a * 2.0d0) * (y * (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 (c <= -8.5e-21) {
tmp = 1.0;
} else if (c <= -5.2e-209) {
tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t)))));
} else if (c <= 3.3e-208) {
tmp = 1.0;
} else {
tmp = x / (x + (y + ((a * 2.0) * (y * (c - b)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -8.5e-21: tmp = 1.0 elif c <= -5.2e-209: tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t))))) elif c <= 3.3e-208: tmp = 1.0 else: tmp = x / (x + (y + ((a * 2.0) * (y * (c - b))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -8.5e-21) tmp = 1.0; elseif (c <= -5.2e-209) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(1.3333333333333333 * Float64(b / t)))))); elseif (c <= 3.3e-208) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(a * 2.0) * Float64(y * Float64(c - b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -8.5e-21) tmp = 1.0; elseif (c <= -5.2e-209) tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t))))); elseif (c <= 3.3e-208) tmp = 1.0; else tmp = x / (x + (y + ((a * 2.0) * (y * (c - b))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -8.5e-21], 1.0, If[LessEqual[c, -5.2e-209], N[(x / N[(x - N[(y * N[(-1.0 - N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.3e-208], 1.0, N[(x / N[(x + N[(y + N[(N[(a * 2.0), $MachinePrecision] * N[(y * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -8.5 \cdot 10^{-21}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -5.2 \cdot 10^{-209}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - 1.3333333333333333 \cdot \frac{b}{t}\right)}\\
\mathbf{elif}\;c \leq 3.3 \cdot 10^{-208}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(a \cdot 2\right) \cdot \left(y \cdot \left(c - b\right)\right)\right)}\\
\end{array}
\end{array}
if c < -8.4999999999999993e-21 or -5.19999999999999969e-209 < c < 3.30000000000000006e-208Initial program 94.8%
Taylor expanded in c around inf 73.1%
cancel-sign-sub-inv73.1%
+-commutative73.1%
metadata-eval73.1%
associate-*r/73.1%
metadata-eval73.1%
associate-+r+73.1%
Simplified73.1%
Taylor expanded in c around 0 38.5%
+-commutative38.5%
Simplified38.5%
Taylor expanded in x around inf 62.9%
if -8.4999999999999993e-21 < c < -5.19999999999999969e-209Initial program 94.4%
Taylor expanded in b around inf 83.5%
associate-*r/83.5%
metadata-eval83.5%
+-commutative83.5%
Simplified83.5%
Taylor expanded in t around 0 64.1%
associate-*r/64.1%
associate-*l/64.1%
*-commutative64.1%
Simplified64.1%
Taylor expanded in b around 0 56.2%
if 3.30000000000000006e-208 < c Initial program 93.4%
Taylor expanded in a around inf 60.8%
Taylor expanded in a around 0 54.5%
associate-*r*54.5%
*-commutative54.5%
*-commutative54.5%
Simplified54.5%
Final simplification58.5%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= a 4.4e-79) (and (not (<= a 1.9e+14)) (<= a 6.2e+57))) (/ x (- x (* y (- -1.0 (* 1.3333333333333333 (/ b t)))))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((a <= 4.4e-79) || (!(a <= 1.9e+14) && (a <= 6.2e+57))) {
tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t)))));
} 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 ((a <= 4.4d-79) .or. (.not. (a <= 1.9d+14)) .and. (a <= 6.2d+57)) then
tmp = x / (x - (y * ((-1.0d0) - (1.3333333333333333d0 * (b / t)))))
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 ((a <= 4.4e-79) || (!(a <= 1.9e+14) && (a <= 6.2e+57))) {
tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (a <= 4.4e-79) or (not (a <= 1.9e+14) and (a <= 6.2e+57)): tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((a <= 4.4e-79) || (!(a <= 1.9e+14) && (a <= 6.2e+57))) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(1.3333333333333333 * Float64(b / t)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((a <= 4.4e-79) || (~((a <= 1.9e+14)) && (a <= 6.2e+57))) tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * (b / t))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[a, 4.4e-79], And[N[Not[LessEqual[a, 1.9e+14]], $MachinePrecision], LessEqual[a, 6.2e+57]]], N[(x / N[(x - N[(y * N[(-1.0 - N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 4.4 \cdot 10^{-79} \lor \neg \left(a \leq 1.9 \cdot 10^{+14}\right) \land a \leq 6.2 \cdot 10^{+57}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - 1.3333333333333333 \cdot \frac{b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if a < 4.3999999999999998e-79 or 1.9e14 < a < 6.20000000000000026e57Initial program 96.3%
Taylor expanded in b around inf 71.7%
associate-*r/71.7%
metadata-eval71.7%
+-commutative71.7%
Simplified71.7%
Taylor expanded in t around 0 57.3%
associate-*r/57.3%
associate-*l/57.3%
*-commutative57.3%
Simplified57.3%
Taylor expanded in b around 0 54.7%
if 4.3999999999999998e-79 < a < 1.9e14 or 6.20000000000000026e57 < a Initial program 91.8%
Taylor expanded in c around inf 67.0%
cancel-sign-sub-inv67.0%
+-commutative67.0%
metadata-eval67.0%
associate-*r/67.0%
metadata-eval67.0%
associate-+r+67.0%
Simplified67.0%
Taylor expanded in c around 0 30.0%
+-commutative30.0%
Simplified30.0%
Taylor expanded in x around inf 58.4%
Final simplification56.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -2.45e+197)
(/ x (* y (- 1.0 (* 2.0 (* a (- b c))))))
(if (<= b 2.25e-163)
1.0
(if (<= b 8e-79) (* (- y x) (/ x (* (+ x y) (- y x)))) 1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.45e+197) {
tmp = x / (y * (1.0 - (2.0 * (a * (b - c)))));
} else if (b <= 2.25e-163) {
tmp = 1.0;
} else if (b <= 8e-79) {
tmp = (y - x) * (x / ((x + y) * (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 (b <= (-2.45d+197)) then
tmp = x / (y * (1.0d0 - (2.0d0 * (a * (b - c)))))
else if (b <= 2.25d-163) then
tmp = 1.0d0
else if (b <= 8d-79) then
tmp = (y - x) * (x / ((x + y) * (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 (b <= -2.45e+197) {
tmp = x / (y * (1.0 - (2.0 * (a * (b - c)))));
} else if (b <= 2.25e-163) {
tmp = 1.0;
} else if (b <= 8e-79) {
tmp = (y - x) * (x / ((x + y) * (y - x)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -2.45e+197: tmp = x / (y * (1.0 - (2.0 * (a * (b - c))))) elif b <= 2.25e-163: tmp = 1.0 elif b <= 8e-79: tmp = (y - x) * (x / ((x + y) * (y - x))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -2.45e+197) tmp = Float64(x / Float64(y * Float64(1.0 - Float64(2.0 * Float64(a * Float64(b - c)))))); elseif (b <= 2.25e-163) tmp = 1.0; elseif (b <= 8e-79) tmp = Float64(Float64(y - x) * Float64(x / Float64(Float64(x + y) * 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 (b <= -2.45e+197) tmp = x / (y * (1.0 - (2.0 * (a * (b - c))))); elseif (b <= 2.25e-163) tmp = 1.0; elseif (b <= 8e-79) tmp = (y - x) * (x / ((x + y) * (y - x))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -2.45e+197], N[(x / N[(y * N[(1.0 - N[(2.0 * N[(a * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.25e-163], 1.0, If[LessEqual[b, 8e-79], N[(N[(y - x), $MachinePrecision] * N[(x / N[(N[(x + y), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.45 \cdot 10^{+197}:\\
\;\;\;\;\frac{x}{y \cdot \left(1 - 2 \cdot \left(a \cdot \left(b - c\right)\right)\right)}\\
\mathbf{elif}\;b \leq 2.25 \cdot 10^{-163}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 8 \cdot 10^{-79}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{x}{\left(x + y\right) \cdot \left(y - x\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -2.45000000000000013e197Initial program 82.0%
Taylor expanded in a around inf 73.6%
Taylor expanded in a around 0 60.8%
associate-*r*60.8%
*-commutative60.8%
*-commutative60.8%
Simplified60.8%
Taylor expanded in y around inf 60.4%
if -2.45000000000000013e197 < b < 2.2499999999999999e-163 or 8e-79 < b Initial program 96.3%
Taylor expanded in c around inf 70.7%
cancel-sign-sub-inv70.7%
+-commutative70.7%
metadata-eval70.7%
associate-*r/70.7%
metadata-eval70.7%
associate-+r+70.7%
Simplified70.7%
Taylor expanded in c around 0 40.6%
+-commutative40.6%
Simplified40.6%
Taylor expanded in x around inf 54.5%
if 2.2499999999999999e-163 < b < 8e-79Initial program 84.4%
Taylor expanded in c around inf 74.5%
cancel-sign-sub-inv74.5%
+-commutative74.5%
metadata-eval74.5%
associate-*r/74.5%
metadata-eval74.5%
associate-+r+74.5%
Simplified74.5%
Taylor expanded in c around 0 34.0%
+-commutative34.0%
Simplified34.0%
flip-+59.4%
associate-/r/64.4%
Applied egg-rr64.4%
difference-of-squares64.4%
+-commutative64.4%
Simplified64.4%
Final simplification55.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a 7.5e-294)
(/ x (+ x y))
(if (<= a 4e+14)
1.0
(if (<= a 1.8e+62)
(/ x (+ x (* 1.3333333333333333 (* y (/ b t)))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 7.5e-294) {
tmp = x / (x + y);
} else if (a <= 4e+14) {
tmp = 1.0;
} else if (a <= 1.8e+62) {
tmp = x / (x + (1.3333333333333333 * (y * (b / t))));
} 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 (a <= 7.5d-294) then
tmp = x / (x + y)
else if (a <= 4d+14) then
tmp = 1.0d0
else if (a <= 1.8d+62) then
tmp = x / (x + (1.3333333333333333d0 * (y * (b / t))))
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 (a <= 7.5e-294) {
tmp = x / (x + y);
} else if (a <= 4e+14) {
tmp = 1.0;
} else if (a <= 1.8e+62) {
tmp = x / (x + (1.3333333333333333 * (y * (b / t))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 7.5e-294: tmp = x / (x + y) elif a <= 4e+14: tmp = 1.0 elif a <= 1.8e+62: tmp = x / (x + (1.3333333333333333 * (y * (b / t)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 7.5e-294) tmp = Float64(x / Float64(x + y)); elseif (a <= 4e+14) tmp = 1.0; elseif (a <= 1.8e+62) tmp = Float64(x / Float64(x + Float64(1.3333333333333333 * Float64(y * Float64(b / t))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= 7.5e-294) tmp = x / (x + y); elseif (a <= 4e+14) tmp = 1.0; elseif (a <= 1.8e+62) tmp = x / (x + (1.3333333333333333 * (y * (b / t)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 7.5e-294], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4e+14], 1.0, If[LessEqual[a, 1.8e+62], N[(x / N[(x + N[(1.3333333333333333 * N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 7.5 \cdot 10^{-294}:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{elif}\;a \leq 4 \cdot 10^{+14}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{+62}:\\
\;\;\;\;\frac{x}{x + 1.3333333333333333 \cdot \left(y \cdot \frac{b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if a < 7.5000000000000004e-294Initial program 98.3%
Taylor expanded in c around inf 70.3%
cancel-sign-sub-inv70.3%
+-commutative70.3%
metadata-eval70.3%
associate-*r/70.3%
metadata-eval70.3%
associate-+r+70.3%
Simplified70.3%
Taylor expanded in c around 0 48.6%
+-commutative48.6%
Simplified48.6%
if 7.5000000000000004e-294 < a < 4e14 or 1.8e62 < a Initial program 93.3%
Taylor expanded in c around inf 70.6%
cancel-sign-sub-inv70.6%
+-commutative70.6%
metadata-eval70.6%
associate-*r/70.6%
metadata-eval70.6%
associate-+r+70.6%
Simplified70.6%
Taylor expanded in c around 0 36.0%
+-commutative36.0%
Simplified36.0%
Taylor expanded in x around inf 57.8%
if 4e14 < a < 1.8e62Initial program 89.5%
Taylor expanded in b around inf 69.8%
associate-*r/69.8%
metadata-eval69.8%
+-commutative69.8%
Simplified69.8%
Taylor expanded in t around 0 59.6%
associate-*r/59.6%
associate-*l/59.6%
*-commutative59.6%
Simplified59.6%
Taylor expanded in b around 0 59.9%
Taylor expanded in b around inf 54.7%
*-commutative54.7%
associate-*r/54.8%
Simplified54.8%
Final simplification55.5%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -1.32e+134) (* -0.5 (/ x (* a (* b y)))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.32e+134) {
tmp = -0.5 * (x / (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 (b <= (-1.32d+134)) then
tmp = (-0.5d0) * (x / (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 (b <= -1.32e+134) {
tmp = -0.5 * (x / (a * (b * y)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -1.32e+134: tmp = -0.5 * (x / (a * (b * y))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -1.32e+134) tmp = Float64(-0.5 * Float64(x / 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 (b <= -1.32e+134) tmp = -0.5 * (x / (a * (b * y))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -1.32e+134], N[(-0.5 * N[(x / N[(a * N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.32 \cdot 10^{+134}:\\
\;\;\;\;-0.5 \cdot \frac{x}{a \cdot \left(b \cdot y\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.32e134Initial program 88.7%
Taylor expanded in a around inf 55.8%
Taylor expanded in a around 0 50.4%
associate-*r*50.4%
*-commutative50.4%
*-commutative50.4%
Simplified50.4%
Taylor expanded in b around inf 45.1%
if -1.32e134 < b Initial program 95.0%
Taylor expanded in c around inf 71.9%
cancel-sign-sub-inv71.9%
+-commutative71.9%
metadata-eval71.9%
associate-*r/71.9%
metadata-eval71.9%
associate-+r+71.9%
Simplified71.9%
Taylor expanded in c around 0 41.7%
+-commutative41.7%
Simplified41.7%
Taylor expanded in x around inf 54.0%
Final simplification52.8%
(FPCore (x y z t a b c) :precision binary64 (if (<= a 4.2e-297) (/ x (+ x y)) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 4.2e-297) {
tmp = x / (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 (a <= 4.2d-297) then
tmp = x / (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 (a <= 4.2e-297) {
tmp = x / (x + y);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 4.2e-297: tmp = x / (x + y) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 4.2e-297) tmp = Float64(x / 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 (a <= 4.2e-297) tmp = x / (x + y); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 4.2e-297], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 4.2 \cdot 10^{-297}:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if a < 4.20000000000000027e-297Initial program 98.3%
Taylor expanded in c around inf 70.3%
cancel-sign-sub-inv70.3%
+-commutative70.3%
metadata-eval70.3%
associate-*r/70.3%
metadata-eval70.3%
associate-+r+70.3%
Simplified70.3%
Taylor expanded in c around 0 48.6%
+-commutative48.6%
Simplified48.6%
if 4.20000000000000027e-297 < a Initial program 92.9%
Taylor expanded in c around inf 70.0%
cancel-sign-sub-inv70.0%
+-commutative70.0%
metadata-eval70.0%
associate-*r/70.0%
metadata-eval70.0%
associate-+r+70.0%
Simplified70.0%
Taylor expanded in c around 0 36.4%
+-commutative36.4%
Simplified36.4%
Taylor expanded in x around inf 55.0%
Final simplification53.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%
Taylor expanded in c around inf 70.1%
cancel-sign-sub-inv70.1%
+-commutative70.1%
metadata-eval70.1%
associate-*r/70.1%
metadata-eval70.1%
associate-+r+70.1%
Simplified70.1%
Taylor expanded in c around 0 39.2%
+-commutative39.2%
Simplified39.2%
Taylor expanded in x around inf 50.1%
Final simplification50.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* z (sqrt (+ t a)))) (t_2 (- a (/ 5.0 6.0))))
(if (< t -2.118326644891581e-50)
(/
x
(+
x
(* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b)))))))
(if (< t 5.196588770651547e-123)
(/
x
(+
x
(*
y
(exp
(*
2.0
(/
(-
(* t_1 (* (* 3.0 t) t_2))
(*
(- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0)
(* t_2 (* (- b c) t))))
(* (* (* t t) 3.0) t_2)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ t_1 t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = z * sqrt((t + a));
double t_2 = a - (5.0 / 6.0);
double tmp;
if (t < -2.118326644891581e-50) {
tmp = x / (x + (y * exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b))))));
} else if (t < 5.196588770651547e-123) {
tmp = x / (x + (y * exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * sqrt((t + a))
t_2 = a - (5.0d0 / 6.0d0)
if (t < (-2.118326644891581d-50)) then
tmp = x / (x + (y * exp((2.0d0 * (((a * c) + (0.8333333333333334d0 * c)) - (a * b))))))
else if (t < 5.196588770651547d-123) then
tmp = x / (x + (y * exp((2.0d0 * (((t_1 * ((3.0d0 * t) * t_2)) - (((((5.0d0 / 6.0d0) + a) * (3.0d0 * t)) - 2.0d0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0d0) * t_2))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((t_1 / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = z * Math.sqrt((t + a));
double t_2 = a - (5.0 / 6.0);
double tmp;
if (t < -2.118326644891581e-50) {
tmp = x / (x + (y * Math.exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b))))));
} else if (t < 5.196588770651547e-123) {
tmp = x / (x + (y * Math.exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = z * math.sqrt((t + a)) t_2 = a - (5.0 / 6.0) tmp = 0 if t < -2.118326644891581e-50: tmp = x / (x + (y * math.exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b)))))) elif t < 5.196588770651547e-123: tmp = x / (x + (y * math.exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2)))))) else: tmp = x / (x + (y * math.exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(z * sqrt(Float64(t + a))) t_2 = Float64(a - Float64(5.0 / 6.0)) tmp = 0.0 if (t < -2.118326644891581e-50) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(a * c) + Float64(0.8333333333333334 * c)) - Float64(a * b))))))); elseif (t < 5.196588770651547e-123) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(t_1 * Float64(Float64(3.0 * t) * t_2)) - Float64(Float64(Float64(Float64(Float64(5.0 / 6.0) + a) * Float64(3.0 * t)) - 2.0) * Float64(t_2 * Float64(Float64(b - c) * t)))) / Float64(Float64(Float64(t * t) * 3.0) * t_2))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(t_1 / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = z * sqrt((t + a)); t_2 = a - (5.0 / 6.0); tmp = 0.0; if (t < -2.118326644891581e-50) tmp = x / (x + (y * exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b)))))); elseif (t < 5.196588770651547e-123) tmp = x / (x + (y * exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2)))))); else tmp = x / (x + (y * exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a - N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -2.118326644891581e-50], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(a * c), $MachinePrecision] + N[(0.8333333333333334 * c), $MachinePrecision]), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[t, 5.196588770651547e-123], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(t$95$1 * N[(N[(3.0 * t), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(N[(N[(5.0 / 6.0), $MachinePrecision] + a), $MachinePrecision] * N[(3.0 * t), $MachinePrecision]), $MachinePrecision] - 2.0), $MachinePrecision] * N[(t$95$2 * N[(N[(b - c), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(t * t), $MachinePrecision] * 3.0), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(t$95$1 / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \sqrt{t + a}\\
t_2 := a - \frac{5}{6}\\
\mathbf{if}\;t < -2.118326644891581 \cdot 10^{-50}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a \cdot c + 0.8333333333333334 \cdot c\right) - a \cdot b\right)}}\\
\mathbf{elif}\;t < 5.196588770651547 \cdot 10^{-123}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{t_1 \cdot \left(\left(3 \cdot t\right) \cdot t_2\right) - \left(\left(\frac{5}{6} + a\right) \cdot \left(3 \cdot t\right) - 2\right) \cdot \left(t_2 \cdot \left(\left(b - c\right) \cdot t\right)\right)}{\left(\left(t \cdot t\right) \cdot 3\right) \cdot t_2}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{t_1}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}\\
\end{array}
\end{array}
herbie shell --seed 2023297
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:herbie-target
(if (< t -2.118326644891581e-50) (/ x (+ x (* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b))))))) (if (< t 5.196588770651547e-123) (/ x (+ x (* y (exp (* 2.0 (/ (- (* (* z (sqrt (+ t a))) (* (* 3.0 t) (- a (/ 5.0 6.0)))) (* (- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0) (* (- a (/ 5.0 6.0)) (* (- b c) t)))) (* (* (* t t) 3.0) (- a (/ 5.0 6.0))))))))) (/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))