
(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 (sqrt (+ t a))))
(if (<=
(+
(/ (* z t_1) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))
INFINITY)
(/
x
(+
x
(*
y
(pow
(sqrt (exp 2.0))
(*
2.0
(+
(* t_1 (/ z t))
(* (- b c) (- (- (/ (/ 2.0 t) 3.0) 0.8333333333333334) a))))))))
(/ x (+ x (* y (exp (* 2.0 (* a (- (/ (* z (pow a -0.5)) t) b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = sqrt((t + a));
double tmp;
if ((((z * t_1) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))) <= ((double) INFINITY)) {
tmp = x / (x + (y * pow(sqrt(exp(2.0)), (2.0 * ((t_1 * (z / t)) + ((b - c) * ((((2.0 / t) / 3.0) - 0.8333333333333334) - a)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (a * (((z * pow(a, -0.5)) / t) - b))))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = Math.sqrt((t + a));
double tmp;
if ((((z * t_1) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))) <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.pow(Math.sqrt(Math.exp(2.0)), (2.0 * ((t_1 * (z / t)) + ((b - c) * ((((2.0 / t) / 3.0) - 0.8333333333333334) - a)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * (((z * Math.pow(a, -0.5)) / t) - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = math.sqrt((t + a)) tmp = 0 if (((z * t_1) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))) <= math.inf: tmp = x / (x + (y * math.pow(math.sqrt(math.exp(2.0)), (2.0 * ((t_1 * (z / t)) + ((b - c) * ((((2.0 / t) / 3.0) - 0.8333333333333334) - a))))))) else: tmp = x / (x + (y * math.exp((2.0 * (a * (((z * math.pow(a, -0.5)) / t) - b)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = sqrt(Float64(t + a)) tmp = 0.0 if (Float64(Float64(Float64(z * t_1) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) <= Inf) tmp = Float64(x / Float64(x + Float64(y * (sqrt(exp(2.0)) ^ Float64(2.0 * Float64(Float64(t_1 * Float64(z / t)) + Float64(Float64(b - c) * Float64(Float64(Float64(Float64(2.0 / t) / 3.0) - 0.8333333333333334) - a)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(Float64(Float64(z * (a ^ -0.5)) / t) - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = sqrt((t + a)); tmp = 0.0; if ((((z * t_1) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))) <= Inf) tmp = x / (x + (y * (sqrt(exp(2.0)) ^ (2.0 * ((t_1 * (z / t)) + ((b - c) * ((((2.0 / t) / 3.0) - 0.8333333333333334) - a))))))); else tmp = x / (x + (y * exp((2.0 * (a * (((z * (a ^ -0.5)) / t) - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(N[(N[(z * t$95$1), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(x / N[(x + N[(y * N[Power[N[Sqrt[N[Exp[2.0], $MachinePrecision]], $MachinePrecision], N[(2.0 * N[(N[(t$95$1 * N[(z / t), $MachinePrecision]), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(N[(N[(2.0 / t), $MachinePrecision] / 3.0), $MachinePrecision] - 0.8333333333333334), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(N[(N[(z * N[Power[a, -0.5], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt{t + a}\\
\mathbf{if}\;\frac{z \cdot t\_1}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right) \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(\sqrt{e^{2}}\right)}^{\left(2 \cdot \left(t\_1 \cdot \frac{z}{t} + \left(b - c\right) \cdot \left(\left(\frac{\frac{2}{t}}{3} - 0.8333333333333334\right) - a\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(\frac{z \cdot {a}^{-0.5}}{t} - b\right)\right)}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < +inf.0Initial program 99.6%
exp-prod99.6%
Simplified98.0%
expm1-log1p-u98.0%
expm1-undefine98.0%
Applied egg-rr98.0%
expm1-define98.0%
Simplified98.0%
add-sqr-sqrt98.0%
unpow-prod-down98.0%
expm1-log1p-u98.0%
associate-*r/97.6%
associate-+r-97.6%
expm1-log1p-u97.5%
Applied egg-rr99.6%
pow-sqr99.6%
+-commutative99.6%
associate-*l/100.0%
+-commutative100.0%
associate--l+100.0%
associate-/r*100.0%
Simplified100.0%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 0.0%
Taylor expanded in a around inf 100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in c around 0 100.0%
associate-*r/100.0%
pow1/2100.0%
inv-pow100.0%
pow-pow100.0%
metadata-eval100.0%
Applied egg-rr100.0%
Final simplification100.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/ x (+ x (* y (exp (* 2.0 (* a (- (/ (* z (pow a -0.5)) t) b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((2.0 * (a * (((z * pow(a, -0.5)) / t) - b))))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * (((z * Math.pow(a, -0.5)) / t) - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp((2.0 * (a * (((z * math.pow(a, -0.5)) / t) - b)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(Float64(Float64(z * (a ^ -0.5)) / t) - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp((2.0 * (a * (((z * (a ^ -0.5)) / t) - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(N[(N[(z * N[Power[a, -0.5], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t\_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(\frac{z \cdot {a}^{-0.5}}{t} - b\right)\right)}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < +inf.0Initial program 99.6%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 0.0%
Taylor expanded in a around inf 100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in c around 0 100.0%
associate-*r/100.0%
pow1/2100.0%
inv-pow100.0%
pow-pow100.0%
metadata-eval100.0%
Applied egg-rr100.0%
Final simplification99.6%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= z -5e+175) (not (<= z 1.4e+99)))
(/ x (+ x (* y (exp (* 2.0 (* z (/ (sqrt (+ t a)) t)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
(- b c)
(- (- (/ 0.6666666666666666 t) a) 0.8333333333333334)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -5e+175) || !(z <= 1.4e+99)) {
tmp = x / (x + (y * exp((2.0 * (z * (sqrt((t + a)) / t))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((z <= (-5d+175)) .or. (.not. (z <= 1.4d+99))) then
tmp = x / (x + (y * exp((2.0d0 * (z * (sqrt((t + a)) / t))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((z <= -5e+175) || !(z <= 1.4e+99)) {
tmp = x / (x + (y * Math.exp((2.0 * (z * (Math.sqrt((t + a)) / t))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (z <= -5e+175) or not (z <= 1.4e+99): tmp = x / (x + (y * math.exp((2.0 * (z * (math.sqrt((t + a)) / t)))))) else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((z <= -5e+175) || !(z <= 1.4e+99)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(z * Float64(sqrt(Float64(t + a)) / t))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((z <= -5e+175) || ~((z <= 1.4e+99))) tmp = x / (x + (y * exp((2.0 * (z * (sqrt((t + a)) / t)))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[z, -5e+175], N[Not[LessEqual[z, 1.4e+99]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(z * N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5 \cdot 10^{+175} \lor \neg \left(z \leq 1.4 \cdot 10^{+99}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \frac{\sqrt{t + a}}{t}\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if z < -5e175 or 1.4e99 < z Initial program 84.9%
Taylor expanded in a around inf 84.9%
Taylor expanded in z around inf 94.1%
associate-*l/94.1%
+-commutative94.1%
associate-*r/94.1%
+-commutative94.1%
Simplified94.1%
if -5e175 < z < 1.4e99Initial program 99.4%
Taylor expanded in z around 0 94.9%
associate-*r*94.9%
neg-mul-194.9%
associate--l+94.9%
associate-*r/94.9%
metadata-eval94.9%
Simplified94.9%
Final simplification94.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 5e-207)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
(- b c)
(- (- (/ 0.6666666666666666 t) a) 0.8333333333333334)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 5e-207) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 5d-207) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 5e-207) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 5e-207: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 5e-207) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 5e-207) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 5e-207], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 5 \cdot 10^{-207}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if t < 5.00000000000000014e-207Initial program 90.4%
Taylor expanded in t around 0 96.5%
if 5.00000000000000014e-207 < t Initial program 98.3%
Taylor expanded in z around 0 91.6%
associate-*r*91.6%
neg-mul-191.6%
associate--l+91.6%
associate-*r/91.6%
metadata-eval91.6%
Simplified91.6%
Final simplification93.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= z 3e+217)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* (- b c) (- (- (/ 0.6666666666666666 t) a) 0.8333333333333334)))))))
(/ x (+ x (* y (exp (* 2.0 (* (/ z t) (sqrt a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= 3e+217) {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((z / t) * sqrt(a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (z <= 3d+217) then
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((z / t) * sqrt(a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= 3e+217) {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((z / t) * Math.sqrt(a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if z <= 3e+217: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))) else: tmp = x / (x + (y * math.exp((2.0 * ((z / t) * math.sqrt(a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (z <= 3e+217) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z / t) * sqrt(a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (z <= 3e+217) tmp = x / (x + (y * exp((2.0 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))); else tmp = x / (x + (y * exp((2.0 * ((z / t) * sqrt(a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, 3e+217], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z / t), $MachinePrecision] * N[Sqrt[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 3 \cdot 10^{+217}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z}{t} \cdot \sqrt{a}\right)}}\\
\end{array}
\end{array}
if z < 2.99999999999999976e217Initial program 96.2%
Taylor expanded in z around 0 90.1%
associate-*r*90.1%
neg-mul-190.1%
associate--l+90.1%
associate-*r/90.1%
metadata-eval90.1%
Simplified90.1%
if 2.99999999999999976e217 < z Initial program 90.0%
Taylor expanded in a around inf 90.0%
*-commutative90.0%
Simplified90.0%
Taylor expanded in a around 0 90.0%
*-commutative90.0%
Simplified90.0%
Final simplification90.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= z 3.8e+248)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* (- b c) (- (- (/ 0.6666666666666666 t) a) 0.8333333333333334)))))))
(/ x (log1p (expm1 (+ x y))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= 3.8e+248) {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else {
tmp = x / log1p(expm1((x + y)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= 3.8e+248) {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else {
tmp = x / Math.log1p(Math.expm1((x + y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if z <= 3.8e+248: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))) else: tmp = x / math.log1p(math.expm1((x + y))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (z <= 3.8e+248) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334))))))); else tmp = Float64(x / log1p(expm1(Float64(x + y)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, 3.8e+248], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[Log[1 + N[(Exp[N[(x + y), $MachinePrecision]] - 1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 3.8 \cdot 10^{+248}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\mathsf{log1p}\left(\mathsf{expm1}\left(x + y\right)\right)}\\
\end{array}
\end{array}
if z < 3.8000000000000001e248Initial program 95.8%
Taylor expanded in z around 0 89.9%
associate-*r*89.9%
neg-mul-189.9%
associate--l+89.9%
associate-*r/89.9%
metadata-eval89.9%
Simplified89.9%
if 3.8000000000000001e248 < z Initial program 93.8%
Taylor expanded in c around inf 45.5%
associate--l+45.5%
associate-*r/45.5%
metadata-eval45.5%
Simplified45.5%
Taylor expanded in a around inf 33.5%
Taylor expanded in c around 0 24.0%
+-commutative24.0%
Simplified24.0%
log1p-expm1-u75.7%
+-commutative75.7%
Applied egg-rr75.7%
Final simplification89.0%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= a -9000000.0) (not (<= a 8e+134)))
(/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
(- b c)
(- (* 0.6666666666666666 (/ 1.0 t)) 0.8333333333333334)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((a <= -9000000.0) || !(a <= 8e+134)) {
tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - 0.8333333333333334))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((a <= (-9000000.0d0)) .or. (.not. (a <= 8d+134))) then
tmp = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((0.6666666666666666d0 * (1.0d0 / t)) - 0.8333333333333334d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((a <= -9000000.0) || !(a <= 8e+134)) {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (a <= -9000000.0) or not (a <= 8e+134): tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((a <= -9000000.0) || !(a <= 8e+134)) 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(Float64(b - c) * Float64(Float64(0.6666666666666666 * Float64(1.0 / t)) - 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((a <= -9000000.0) || ~((a <= 8e+134))) tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * ((0.6666666666666666 * (1.0 / t)) - 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[a, -9000000.0], N[Not[LessEqual[a, 8e+134]], $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[(N[(b - c), $MachinePrecision] * N[(N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9000000 \lor \neg \left(a \leq 8 \cdot 10^{+134}\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(\left(b - c\right) \cdot \left(0.6666666666666666 \cdot \frac{1}{t} - 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if a < -9e6 or 7.99999999999999937e134 < a Initial program 90.8%
Taylor expanded in z around 0 86.0%
associate-*r*86.0%
neg-mul-186.0%
associate--l+86.0%
associate-*r/86.0%
metadata-eval86.0%
Simplified86.0%
Taylor expanded in t around inf 82.2%
+-commutative82.2%
Simplified82.2%
if -9e6 < a < 7.99999999999999937e134Initial program 97.8%
Taylor expanded in z around 0 87.6%
associate-*r*87.6%
neg-mul-187.6%
associate--l+87.6%
associate-*r/87.6%
metadata-eval87.6%
Simplified87.6%
Taylor expanded in a around 0 87.6%
Final simplification86.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -1e+25)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= b -1.85e-140)
(/ x (+ x (* y (exp (* -2.0 (* a b))))))
(if (<= b 1.05e-114)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1e+25) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (b <= -1.85e-140) {
tmp = x / (x + (y * exp((-2.0 * (a * b)))));
} else if (b <= 1.05e-114) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-1d+25)) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (b <= (-1.85d-140)) then
tmp = x / (x + (y * exp(((-2.0d0) * (a * b)))))
else if (b <= 1.05d-114) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1e+25) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (b <= -1.85e-140) {
tmp = x / (x + (y * Math.exp((-2.0 * (a * b)))));
} else if (b <= 1.05e-114) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -1e+25: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif b <= -1.85e-140: tmp = x / (x + (y * math.exp((-2.0 * (a * b))))) elif b <= 1.05e-114: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -1e+25) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (b <= -1.85e-140) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))); elseif (b <= 1.05e-114) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -1e+25) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (b <= -1.85e-140) tmp = x / (x + (y * exp((-2.0 * (a * b))))); elseif (b <= 1.05e-114) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -1e+25], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.85e-140], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.05e-114], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1 \cdot 10^{+25}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b \leq -1.85 \cdot 10^{-140}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-114}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.00000000000000009e25Initial program 91.3%
Taylor expanded in z around 0 89.8%
associate-*r*89.8%
neg-mul-189.8%
associate--l+89.8%
associate-*r/89.8%
metadata-eval89.8%
Simplified89.8%
Taylor expanded in a around 0 77.9%
Taylor expanded in t around inf 57.5%
*-commutative57.5%
Simplified57.5%
Taylor expanded in c around 0 60.9%
if -1.00000000000000009e25 < b < -1.84999999999999989e-140Initial program 94.3%
Taylor expanded in a around inf 75.1%
*-commutative75.1%
Simplified75.1%
Taylor expanded in c around 0 72.4%
Taylor expanded in z around 0 68.2%
if -1.84999999999999989e-140 < b < 1.04999999999999996e-114Initial program 100.0%
Taylor expanded in z around 0 83.3%
associate-*r*83.3%
neg-mul-183.3%
associate--l+83.3%
associate-*r/83.3%
metadata-eval83.3%
Simplified83.3%
Taylor expanded in a around 0 80.1%
Taylor expanded in t around inf 65.9%
*-commutative65.9%
Simplified65.9%
Taylor expanded in c around inf 65.9%
*-commutative65.9%
Simplified65.9%
if 1.04999999999999996e-114 < b Initial program 95.2%
Simplified94.1%
Taylor expanded in x around inf 63.8%
Final simplification64.4%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= t -1.7e-93) (not (<= t 1.2e-62))) (/ x (+ x (* y (exp (* (- c b) 1.6666666666666667))))) (/ x (+ x (* y (exp (* -1.3333333333333333 (/ c t))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -1.7e-93) || !(t <= 1.2e-62)) {
tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667))));
} else {
tmp = x / (x + (y * exp((-1.3333333333333333 * (c / 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.7d-93)) .or. (.not. (t <= 1.2d-62))) then
tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667d0))))
else
tmp = x / (x + (y * exp(((-1.3333333333333333d0) * (c / 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.7e-93) || !(t <= 1.2e-62)) {
tmp = x / (x + (y * Math.exp(((c - b) * 1.6666666666666667))));
} else {
tmp = x / (x + (y * Math.exp((-1.3333333333333333 * (c / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -1.7e-93) or not (t <= 1.2e-62): tmp = x / (x + (y * math.exp(((c - b) * 1.6666666666666667)))) else: tmp = x / (x + (y * math.exp((-1.3333333333333333 * (c / t))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -1.7e-93) || !(t <= 1.2e-62)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c - b) * 1.6666666666666667))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-1.3333333333333333 * Float64(c / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((t <= -1.7e-93) || ~((t <= 1.2e-62))) tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667)))); else tmp = x / (x + (y * exp((-1.3333333333333333 * (c / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -1.7e-93], N[Not[LessEqual[t, 1.2e-62]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(N[(c - b), $MachinePrecision] * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(-1.3333333333333333 * N[(c / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{-93} \lor \neg \left(t \leq 1.2 \cdot 10^{-62}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-1.3333333333333333 \cdot \frac{c}{t}}}\\
\end{array}
\end{array}
if t < -1.70000000000000001e-93 or 1.19999999999999992e-62 < t Initial program 98.7%
Taylor expanded in z around 0 92.3%
associate-*r*92.3%
neg-mul-192.3%
associate--l+92.3%
associate-*r/92.3%
metadata-eval92.3%
Simplified92.3%
Taylor expanded in a around 0 81.3%
Taylor expanded in t around inf 80.2%
*-commutative80.2%
Simplified80.2%
if -1.70000000000000001e-93 < t < 1.19999999999999992e-62Initial program 91.2%
Taylor expanded in c around inf 69.4%
associate--l+69.4%
associate-*r/69.4%
metadata-eval69.4%
Simplified69.4%
Taylor expanded in t around 0 69.4%
associate-*r/69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in c around 0 69.4%
Final simplification75.9%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 7.5e-23) (/ x (+ x (* y (exp (* -1.3333333333333333 (/ (- c b) t)))))) (/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 7.5e-23) {
tmp = x / (x + (y * exp((-1.3333333333333333 * ((c - b) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 7.5d-23) then
tmp = x / (x + (y * exp(((-1.3333333333333333d0) * ((c - b) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 7.5e-23) {
tmp = x / (x + (y * Math.exp((-1.3333333333333333 * ((c - b) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 7.5e-23: tmp = x / (x + (y * math.exp((-1.3333333333333333 * ((c - b) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 7.5e-23) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-1.3333333333333333 * Float64(Float64(c - b) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 7.5e-23) tmp = x / (x + (y * exp((-1.3333333333333333 * ((c - b) / t))))); else tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 7.5e-23], N[(x / N[(x + N[(y * N[Exp[N[(-1.3333333333333333 * N[(N[(c - b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 7.5 \cdot 10^{-23}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-1.3333333333333333 \cdot \frac{c - b}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 7.4999999999999998e-23Initial program 92.7%
Taylor expanded in z around 0 81.2%
associate-*r*81.2%
neg-mul-181.2%
associate--l+81.2%
associate-*r/81.2%
metadata-eval81.2%
Simplified81.2%
Taylor expanded in a around 0 74.8%
Taylor expanded in t around 0 73.4%
if 7.4999999999999998e-23 < t Initial program 99.1%
Taylor expanded in z around 0 94.1%
associate-*r*94.1%
neg-mul-194.1%
associate--l+94.1%
associate-*r/94.1%
metadata-eval94.1%
Simplified94.1%
Taylor expanded in t around inf 94.4%
+-commutative94.4%
Simplified94.4%
(FPCore (x y z t a b c) :precision binary64 (if (<= t -1.55e-208) (/ x (+ x (* y (exp (* c 1.6666666666666667))))) (if (<= t 7.5e-51) 1.0 (/ x (+ x (* y (exp (* b -1.6666666666666667))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1.55e-208) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else if (t <= 7.5e-51) {
tmp = 1.0;
} else {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-1.55d-208)) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else if (t <= 7.5d-51) then
tmp = 1.0d0
else
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1.55e-208) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else if (t <= 7.5e-51) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -1.55e-208: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) elif t <= 7.5e-51: tmp = 1.0 else: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -1.55e-208) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); elseif (t <= 7.5e-51) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -1.55e-208) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); elseif (t <= 7.5e-51) tmp = 1.0; else tmp = x / (x + (y * exp((b * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -1.55e-208], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.5e-51], 1.0, N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.55 \cdot 10^{-208}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-51}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -1.5499999999999999e-208Initial program 95.2%
Taylor expanded in z around 0 81.5%
associate-*r*81.5%
neg-mul-181.5%
associate--l+81.5%
associate-*r/81.5%
metadata-eval81.5%
Simplified81.5%
Taylor expanded in a around 0 79.2%
Taylor expanded in t around inf 72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in c around inf 63.6%
*-commutative63.6%
Simplified63.6%
if -1.5499999999999999e-208 < t < 7.49999999999999976e-51Initial program 92.0%
Simplified86.5%
Taylor expanded in x around inf 53.8%
if 7.49999999999999976e-51 < t Initial program 98.4%
Taylor expanded in z around 0 93.7%
associate-*r*93.7%
neg-mul-193.7%
associate--l+93.7%
associate-*r/93.7%
metadata-eval93.7%
Simplified93.7%
Taylor expanded in a around 0 82.5%
Taylor expanded in t around inf 81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in c around 0 67.6%
Final simplification62.2%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(* (- b c) (- (- (/ 0.6666666666666666 t) a) 0.8333333333333334))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
}
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 * ((b - c) * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0))))))
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 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * ((b - c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right)}}
\end{array}
Initial program 95.7%
Taylor expanded in z around 0 87.1%
associate-*r*87.1%
neg-mul-187.1%
associate--l+87.1%
associate-*r/87.1%
metadata-eval87.1%
Simplified87.1%
Final simplification87.1%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 2.5e-24) (/ x (+ x (* y (exp (* -1.3333333333333333 (/ (- c b) 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 <= 2.5e-24) {
tmp = x / (x + (y * exp((-1.3333333333333333 * ((c - b) / 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 <= 2.5d-24) then
tmp = x / (x + (y * exp(((-1.3333333333333333d0) * ((c - b) / 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 <= 2.5e-24) {
tmp = x / (x + (y * Math.exp((-1.3333333333333333 * ((c - b) / 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 <= 2.5e-24: tmp = x / (x + (y * math.exp((-1.3333333333333333 * ((c - b) / 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 <= 2.5e-24) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-1.3333333333333333 * Float64(Float64(c - b) / 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 <= 2.5e-24) tmp = x / (x + (y * exp((-1.3333333333333333 * ((c - b) / 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, 2.5e-24], N[(x / N[(x + N[(y * N[Exp[N[(-1.3333333333333333 * N[(N[(c - b), $MachinePrecision] / t), $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 2.5 \cdot 10^{-24}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-1.3333333333333333 \cdot \frac{c - b}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if t < 2.4999999999999999e-24Initial program 92.7%
Taylor expanded in z around 0 81.2%
associate-*r*81.2%
neg-mul-181.2%
associate--l+81.2%
associate-*r/81.2%
metadata-eval81.2%
Simplified81.2%
Taylor expanded in a around 0 74.8%
Taylor expanded in t around 0 73.4%
if 2.4999999999999999e-24 < t Initial program 99.1%
Taylor expanded in z around 0 94.1%
associate-*r*94.1%
neg-mul-194.1%
associate--l+94.1%
associate-*r/94.1%
metadata-eval94.1%
Simplified94.1%
Taylor expanded in a around 0 83.8%
Taylor expanded in t around inf 84.1%
*-commutative84.1%
Simplified84.1%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 3.25e-46) (/ x (+ x (* y (exp (* -1.3333333333333333 (/ c t)))))) (/ x (+ x (* y (exp (* b -1.6666666666666667)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 3.25e-46) {
tmp = x / (x + (y * exp((-1.3333333333333333 * (c / t)))));
} else {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 3.25d-46) then
tmp = x / (x + (y * exp(((-1.3333333333333333d0) * (c / t)))))
else
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 3.25e-46) {
tmp = x / (x + (y * Math.exp((-1.3333333333333333 * (c / t)))));
} else {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 3.25e-46: tmp = x / (x + (y * math.exp((-1.3333333333333333 * (c / t))))) else: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 3.25e-46) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-1.3333333333333333 * Float64(c / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 3.25e-46) tmp = x / (x + (y * exp((-1.3333333333333333 * (c / t))))); else tmp = x / (x + (y * exp((b * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 3.25e-46], N[(x / N[(x + N[(y * N[Exp[N[(-1.3333333333333333 * N[(c / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 3.25 \cdot 10^{-46}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-1.3333333333333333 \cdot \frac{c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < 3.24999999999999983e-46Initial program 93.2%
Taylor expanded in c around inf 67.6%
associate--l+67.6%
associate-*r/67.6%
metadata-eval67.6%
Simplified67.6%
Taylor expanded in t around 0 66.1%
associate-*r/66.1%
*-commutative66.1%
Simplified66.1%
Taylor expanded in c around 0 66.1%
if 3.24999999999999983e-46 < t Initial program 98.4%
Taylor expanded in z around 0 93.6%
associate-*r*93.6%
neg-mul-193.6%
associate--l+93.6%
associate-*r/93.6%
metadata-eval93.6%
Simplified93.6%
Taylor expanded in a around 0 82.2%
Taylor expanded in t around inf 81.7%
*-commutative81.7%
Simplified81.7%
Taylor expanded in c around 0 67.8%
Final simplification66.9%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 7.4e-59) 1.0 (/ x (+ x (* y (exp (* b -1.6666666666666667)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 7.4e-59) {
tmp = 1.0;
} else {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 7.4d-59) then
tmp = 1.0d0
else
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 7.4e-59) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 7.4e-59: tmp = 1.0 else: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 7.4e-59) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 7.4e-59) tmp = 1.0; else tmp = x / (x + (y * exp((b * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 7.4e-59], 1.0, N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 7.4 \cdot 10^{-59}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < 7.3999999999999998e-59Initial program 93.0%
Simplified89.2%
Taylor expanded in x around inf 53.9%
if 7.3999999999999998e-59 < t Initial program 98.4%
Taylor expanded in z around 0 93.8%
associate-*r*93.8%
neg-mul-193.8%
associate--l+93.8%
associate-*r/93.8%
metadata-eval93.8%
Simplified93.8%
Taylor expanded in a around 0 82.0%
Taylor expanded in t around inf 80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in c around 0 66.5%
Final simplification60.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y 2e-278)
1.0
(if (<= y 1.55e-60)
(/ x (* y (+ (/ x y) 1.0)))
(/ x (+ x (* a (+ (* 2.0 (* c y)) (/ y a))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 2e-278) {
tmp = 1.0;
} else if (y <= 1.55e-60) {
tmp = x / (y * ((x / y) + 1.0));
} else {
tmp = x / (x + (a * ((2.0 * (c * y)) + (y / a))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= 2d-278) then
tmp = 1.0d0
else if (y <= 1.55d-60) then
tmp = x / (y * ((x / y) + 1.0d0))
else
tmp = x / (x + (a * ((2.0d0 * (c * y)) + (y / a))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 2e-278) {
tmp = 1.0;
} else if (y <= 1.55e-60) {
tmp = x / (y * ((x / y) + 1.0));
} else {
tmp = x / (x + (a * ((2.0 * (c * y)) + (y / a))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= 2e-278: tmp = 1.0 elif y <= 1.55e-60: tmp = x / (y * ((x / y) + 1.0)) else: tmp = x / (x + (a * ((2.0 * (c * y)) + (y / a)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= 2e-278) tmp = 1.0; elseif (y <= 1.55e-60) tmp = Float64(x / Float64(y * Float64(Float64(x / y) + 1.0))); else tmp = Float64(x / Float64(x + Float64(a * Float64(Float64(2.0 * Float64(c * y)) + Float64(y / a))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= 2e-278) tmp = 1.0; elseif (y <= 1.55e-60) tmp = x / (y * ((x / y) + 1.0)); else tmp = x / (x + (a * ((2.0 * (c * y)) + (y / a)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, 2e-278], 1.0, If[LessEqual[y, 1.55e-60], N[(x / N[(y * N[(N[(x / y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(a * N[(N[(2.0 * N[(c * y), $MachinePrecision]), $MachinePrecision] + N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2 \cdot 10^{-278}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{-60}:\\
\;\;\;\;\frac{x}{y \cdot \left(\frac{x}{y} + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + a \cdot \left(2 \cdot \left(c \cdot y\right) + \frac{y}{a}\right)}\\
\end{array}
\end{array}
if y < 1.99999999999999988e-278Initial program 94.7%
Simplified92.8%
Taylor expanded in x around inf 58.3%
if 1.99999999999999988e-278 < y < 1.54999999999999994e-60Initial program 95.3%
Taylor expanded in c around inf 63.1%
associate--l+63.1%
associate-*r/63.1%
metadata-eval63.1%
Simplified63.1%
Taylor expanded in a around inf 42.3%
Taylor expanded in c around 0 40.0%
+-commutative40.0%
Simplified40.0%
Taylor expanded in y around inf 58.3%
if 1.54999999999999994e-60 < y Initial program 98.4%
Taylor expanded in c around inf 70.7%
associate--l+70.7%
associate-*r/70.7%
metadata-eval70.7%
Simplified70.7%
Taylor expanded in a around inf 59.3%
Taylor expanded in c around 0 50.1%
associate-*r*50.1%
*-commutative50.1%
Simplified50.1%
Taylor expanded in a around inf 52.6%
Final simplification56.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y 1.35e-278)
1.0
(if (<= y 3e-59)
(/ x (* y (+ (/ x y) 1.0)))
(/ x (+ x (+ y (* (* c y) (* a 2.0))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 1.35e-278) {
tmp = 1.0;
} else if (y <= 3e-59) {
tmp = x / (y * ((x / y) + 1.0));
} else {
tmp = x / (x + (y + ((c * y) * (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) :: tmp
if (y <= 1.35d-278) then
tmp = 1.0d0
else if (y <= 3d-59) then
tmp = x / (y * ((x / y) + 1.0d0))
else
tmp = x / (x + (y + ((c * y) * (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 tmp;
if (y <= 1.35e-278) {
tmp = 1.0;
} else if (y <= 3e-59) {
tmp = x / (y * ((x / y) + 1.0));
} else {
tmp = x / (x + (y + ((c * y) * (a * 2.0))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= 1.35e-278: tmp = 1.0 elif y <= 3e-59: tmp = x / (y * ((x / y) + 1.0)) else: tmp = x / (x + (y + ((c * y) * (a * 2.0)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= 1.35e-278) tmp = 1.0; elseif (y <= 3e-59) tmp = Float64(x / Float64(y * Float64(Float64(x / y) + 1.0))); else tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(c * y) * Float64(a * 2.0))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= 1.35e-278) tmp = 1.0; elseif (y <= 3e-59) tmp = x / (y * ((x / y) + 1.0)); else tmp = x / (x + (y + ((c * y) * (a * 2.0)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, 1.35e-278], 1.0, If[LessEqual[y, 3e-59], N[(x / N[(y * N[(N[(x / y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y + N[(N[(c * y), $MachinePrecision] * N[(a * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.35 \cdot 10^{-278}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 3 \cdot 10^{-59}:\\
\;\;\;\;\frac{x}{y \cdot \left(\frac{x}{y} + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(c \cdot y\right) \cdot \left(a \cdot 2\right)\right)}\\
\end{array}
\end{array}
if y < 1.3500000000000001e-278Initial program 94.7%
Simplified92.8%
Taylor expanded in x around inf 58.3%
if 1.3500000000000001e-278 < y < 3.0000000000000001e-59Initial program 95.3%
Taylor expanded in c around inf 63.1%
associate--l+63.1%
associate-*r/63.1%
metadata-eval63.1%
Simplified63.1%
Taylor expanded in a around inf 42.3%
Taylor expanded in c around 0 40.0%
+-commutative40.0%
Simplified40.0%
Taylor expanded in y around inf 58.3%
if 3.0000000000000001e-59 < y Initial program 98.4%
Taylor expanded in c around inf 70.7%
associate--l+70.7%
associate-*r/70.7%
metadata-eval70.7%
Simplified70.7%
Taylor expanded in a around inf 59.3%
Taylor expanded in c around 0 50.1%
associate-*r*50.1%
*-commutative50.1%
Simplified50.1%
Final simplification56.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y 1.5e-278)
1.0
(if (<= y 2.1e-61)
(/ x (* y (+ (/ x y) 1.0)))
(/ x (- x (* y (- -1.0 (* 2.0 (* a c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 1.5e-278) {
tmp = 1.0;
} else if (y <= 2.1e-61) {
tmp = x / (y * ((x / y) + 1.0));
} else {
tmp = x / (x - (y * (-1.0 - (2.0 * (a * c)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= 1.5d-278) then
tmp = 1.0d0
else if (y <= 2.1d-61) then
tmp = x / (y * ((x / y) + 1.0d0))
else
tmp = x / (x - (y * ((-1.0d0) - (2.0d0 * (a * c)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 1.5e-278) {
tmp = 1.0;
} else if (y <= 2.1e-61) {
tmp = x / (y * ((x / y) + 1.0));
} else {
tmp = x / (x - (y * (-1.0 - (2.0 * (a * c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= 1.5e-278: tmp = 1.0 elif y <= 2.1e-61: tmp = x / (y * ((x / y) + 1.0)) else: tmp = x / (x - (y * (-1.0 - (2.0 * (a * c))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= 1.5e-278) tmp = 1.0; elseif (y <= 2.1e-61) tmp = Float64(x / Float64(y * Float64(Float64(x / y) + 1.0))); else tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(2.0 * Float64(a * c)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= 1.5e-278) tmp = 1.0; elseif (y <= 2.1e-61) tmp = x / (y * ((x / y) + 1.0)); else tmp = x / (x - (y * (-1.0 - (2.0 * (a * c))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, 1.5e-278], 1.0, If[LessEqual[y, 2.1e-61], N[(x / N[(y * N[(N[(x / y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x - N[(y * N[(-1.0 - N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.5 \cdot 10^{-278}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{-61}:\\
\;\;\;\;\frac{x}{y \cdot \left(\frac{x}{y} + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - 2 \cdot \left(a \cdot c\right)\right)}\\
\end{array}
\end{array}
if y < 1.5e-278Initial program 94.7%
Simplified92.8%
Taylor expanded in x around inf 58.3%
if 1.5e-278 < y < 2.0999999999999999e-61Initial program 95.3%
Taylor expanded in c around inf 63.1%
associate--l+63.1%
associate-*r/63.1%
metadata-eval63.1%
Simplified63.1%
Taylor expanded in a around inf 42.3%
Taylor expanded in c around 0 40.0%
+-commutative40.0%
Simplified40.0%
Taylor expanded in y around inf 58.3%
if 2.0999999999999999e-61 < y Initial program 98.4%
Taylor expanded in c around inf 70.7%
associate--l+70.7%
associate-*r/70.7%
metadata-eval70.7%
Simplified70.7%
Taylor expanded in a around inf 59.3%
Taylor expanded in c around 0 48.6%
*-commutative48.6%
Simplified48.6%
Final simplification55.9%
(FPCore (x y z t a b c) :precision binary64 (if (<= y 1e-207) 1.0 (/ x (* a (- (/ (+ x y) a) (* y (* c -2.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= 1e-207) {
tmp = 1.0;
} else {
tmp = x / (a * (((x + y) / a) - (y * (c * -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 (y <= 1d-207) then
tmp = 1.0d0
else
tmp = x / (a * (((x + y) / a) - (y * (c * (-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 (y <= 1e-207) {
tmp = 1.0;
} else {
tmp = x / (a * (((x + y) / a) - (y * (c * -2.0))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= 1e-207: tmp = 1.0 else: tmp = x / (a * (((x + y) / a) - (y * (c * -2.0)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= 1e-207) tmp = 1.0; else tmp = Float64(x / Float64(a * Float64(Float64(Float64(x + y) / a) - Float64(y * Float64(c * -2.0))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= 1e-207) tmp = 1.0; else tmp = x / (a * (((x + y) / a) - (y * (c * -2.0)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, 1e-207], 1.0, N[(x / N[(a * N[(N[(N[(x + y), $MachinePrecision] / a), $MachinePrecision] - N[(y * N[(c * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 10^{-207}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(\frac{x + y}{a} - y \cdot \left(c \cdot -2\right)\right)}\\
\end{array}
\end{array}
if y < 9.99999999999999925e-208Initial program 94.5%
Simplified92.2%
Taylor expanded in x around inf 57.8%
if 9.99999999999999925e-208 < y Initial program 97.8%
Taylor expanded in c around inf 69.1%
associate--l+69.1%
associate-*r/69.1%
metadata-eval69.1%
Simplified69.1%
Taylor expanded in a around inf 52.7%
Taylor expanded in c around 0 45.3%
associate-*r*45.3%
*-commutative45.3%
Simplified45.3%
Taylor expanded in a around -inf 53.5%
associate-*r*53.5%
neg-mul-153.5%
mul-1-neg53.5%
unsub-neg53.5%
associate-*r*53.5%
Simplified53.5%
Final simplification56.2%
(FPCore (x y z t a b c) :precision binary64 (if (<= c -1.5e+20) 1.0 (if (<= c -9e-249) (/ x (* y (+ (/ x y) 1.0))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1.5e+20) {
tmp = 1.0;
} else if (c <= -9e-249) {
tmp = x / (y * ((x / y) + 1.0));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-1.5d+20)) then
tmp = 1.0d0
else if (c <= (-9d-249)) then
tmp = x / (y * ((x / y) + 1.0d0))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1.5e+20) {
tmp = 1.0;
} else if (c <= -9e-249) {
tmp = x / (y * ((x / y) + 1.0));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -1.5e+20: tmp = 1.0 elif c <= -9e-249: tmp = x / (y * ((x / y) + 1.0)) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -1.5e+20) tmp = 1.0; elseif (c <= -9e-249) tmp = Float64(x / Float64(y * Float64(Float64(x / y) + 1.0))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -1.5e+20) tmp = 1.0; elseif (c <= -9e-249) tmp = x / (y * ((x / y) + 1.0)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -1.5e+20], 1.0, If[LessEqual[c, -9e-249], N[(x / N[(y * N[(N[(x / y), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.5 \cdot 10^{+20}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -9 \cdot 10^{-249}:\\
\;\;\;\;\frac{x}{y \cdot \left(\frac{x}{y} + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if c < -1.5e20 or -8.99999999999999962e-249 < c Initial program 94.8%
Simplified93.8%
Taylor expanded in x around inf 57.1%
if -1.5e20 < c < -8.99999999999999962e-249Initial program 98.4%
Taylor expanded in c around inf 54.8%
associate--l+54.8%
associate-*r/54.8%
metadata-eval54.8%
Simplified54.8%
Taylor expanded in a around inf 42.7%
Taylor expanded in c around 0 38.4%
+-commutative38.4%
Simplified38.4%
Taylor expanded in y around inf 52.0%
Final simplification55.9%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 95.7%
Simplified94.6%
Taylor expanded in x around inf 51.2%
(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 2024163
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:alt
(! :herbie-platform default (if (< t -2118326644891581/100000000000000000000000000000000000000000000000000000000000000000) (/ x (+ x (* y (exp (* 2 (- (+ (* a c) (* 4166666666666667/5000000000000000 c)) (* a b))))))) (if (< t 5196588770651547/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ x (+ x (* y (exp (* 2 (/ (- (* (* z (sqrt (+ t a))) (* (* 3 t) (- a (/ 5 6)))) (* (- (* (+ (/ 5 6) a) (* 3 t)) 2) (* (- a (/ 5 6)) (* (- b c) t)))) (* (* (* t t) 3) (- a (/ 5 6))))))))) (/ x (+ x (* y (exp (* 2 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5 6)) (/ 2 (* t 3)))))))))))))
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))