
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
(+ (+ a 0.8333333333333334) (/ -0.6666666666666666 t))
(- c b)
(* (/ z t) (sqrt (+ a t)))))
x)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / fma(y, pow(exp(2.0), fma(((a + 0.8333333333333334) + (-0.6666666666666666 / t)), (c - b), ((z / t) * sqrt((a + t))))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(Float64(Float64(a + 0.8333333333333334) + Float64(-0.6666666666666666 / t)), Float64(c - b), Float64(Float64(z / t) * sqrt(Float64(a + t))))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision] + N[(N[(z / t), $MachinePrecision] * N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(\left(a + 0.8333333333333334\right) + \frac{-0.6666666666666666}{t}, c - b, \frac{z}{t} \cdot \sqrt{a + t}\right)\right)}, x\right)}
\end{array}
Initial program 94.2%
Simplified98.9%
Final simplification98.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ a t))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/
x
(+
x
(+
y
(*
2.0
(*
c
(log1p
(expm1
(*
y
(+ 0.8333333333333334 (- a (/ 0.6666666666666666 t))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y + (2.0 * (c * log1p(expm1((y * (0.8333333333333334 + (a - (0.6666666666666666 / t))))))))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * Math.sqrt((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (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 + (2.0 * (c * Math.log1p(Math.expm1((y * (0.8333333333333334 + (a - (0.6666666666666666 / t))))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (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 + (2.0 * (c * math.log1p(math.expm1((y * (0.8333333333333334 + (a - (0.6666666666666666 / t)))))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(a + t))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(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 + Float64(2.0 * Float64(c * log1p(expm1(Float64(y * Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))))))))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(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[(2.0 * N[(c * N[Log[1 + N[(Exp[N[(y * N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]] - 1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{a + t}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(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 + \left(y + 2 \cdot \left(c \cdot \mathsf{log1p}\left(\mathsf{expm1}\left(y \cdot \left(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\right)\right)\right)\right)\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 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 c around inf 55.3%
cancel-sign-sub-inv55.3%
+-commutative55.3%
metadata-eval55.3%
associate-*r/55.3%
metadata-eval55.3%
associate-+l+55.3%
Simplified55.3%
Taylor expanded in c around 0 47.9%
associate-*r/47.9%
metadata-eval47.9%
Simplified47.9%
log1p-expm1-u70.2%
associate--l+70.2%
Applied egg-rr70.2%
Final simplification97.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 8.2e-263)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 2e+110)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (- c b) (+ 0.8333333333333334 (/ -0.6666666666666666 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 <= 8.2e-263) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 2e+110) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((c - b) * (0.8333333333333334 + (-0.6666666666666666 / 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 <= 8.2d-263) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 2d+110) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((c - b) * (0.8333333333333334d0 + ((-0.6666666666666666d0) / 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 <= 8.2e-263) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 2e+110) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((c - b) * (0.8333333333333334 + (-0.6666666666666666 / 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 <= 8.2e-263: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 2e+110: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((c - b) * (0.8333333333333334 + (-0.6666666666666666 / 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 <= 8.2e-263) 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 <= 2e+110) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(c - b) * Float64(0.8333333333333334 + Float64(-0.6666666666666666 / 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 <= 8.2e-263) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 2e+110) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((c - b) * (0.8333333333333334 + (-0.6666666666666666 / 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, 8.2e-263], 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, 2e+110], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(c - b), $MachinePrecision] * 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[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 8.2 \cdot 10^{-263}:\\
\;\;\;\;\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 2 \cdot 10^{+110}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(c - b\right) \cdot \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right)}}\\
\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 < 8.1999999999999994e-263Initial program 96.3%
Taylor expanded in t around 0 96.5%
if 8.1999999999999994e-263 < t < 2e110Initial program 92.9%
Taylor expanded in a around 0 87.8%
*-commutative87.8%
*-commutative87.8%
cancel-sign-sub-inv87.8%
metadata-eval87.8%
associate-*r/87.8%
metadata-eval87.8%
Simplified87.8%
if 2e110 < t Initial program 93.6%
Taylor expanded in t around inf 93.7%
mul-1-neg93.7%
distribute-rgt-neg-in93.7%
+-commutative93.7%
neg-sub093.7%
associate--r-93.7%
neg-sub093.7%
+-commutative93.7%
sub-neg93.7%
Simplified93.7%
Final simplification92.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 7.6e-75)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 4.8e-8)
(/
x
(+
x
(+
y
(*
2.0
(*
c
(log1p
(expm1
(* y (+ 0.8333333333333334 (- a (/ 0.6666666666666666 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.6e-75) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 4.8e-8) {
tmp = x / (x + (y + (2.0 * (c * log1p(expm1((y * (0.8333333333333334 + (a - (0.6666666666666666 / t))))))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 7.6e-75) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 4.8e-8) {
tmp = x / (x + (y + (2.0 * (c * Math.log1p(Math.expm1((y * (0.8333333333333334 + (a - (0.6666666666666666 / 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.6e-75: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 4.8e-8: tmp = x / (x + (y + (2.0 * (c * math.log1p(math.expm1((y * (0.8333333333333334 + (a - (0.6666666666666666 / 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.6e-75) 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 <= 4.8e-8) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * log1p(expm1(Float64(y * Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / 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
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 7.6e-75], 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, 4.8e-8], N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[Log[1 + N[(Exp[N[(y * N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]] - 1), $MachinePrecision]], $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.6 \cdot 10^{-75}:\\
\;\;\;\;\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 4.8 \cdot 10^{-8}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \mathsf{log1p}\left(\mathsf{expm1}\left(y \cdot \left(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\right)\right)\right)\right)\right)}\\
\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.59999999999999987e-75Initial program 92.4%
Taylor expanded in t around 0 89.5%
if 7.59999999999999987e-75 < t < 4.79999999999999997e-8Initial program 95.0%
Taylor expanded in c around inf 66.1%
cancel-sign-sub-inv66.1%
+-commutative66.1%
metadata-eval66.1%
associate-*r/66.1%
metadata-eval66.1%
associate-+l+66.1%
Simplified66.1%
Taylor expanded in c around 0 71.0%
associate-*r/71.0%
metadata-eval71.0%
Simplified71.0%
log1p-expm1-u75.8%
associate--l+75.8%
Applied egg-rr75.8%
if 4.79999999999999997e-8 < t Initial program 96.2%
Taylor expanded in t around inf 91.7%
mul-1-neg91.7%
distribute-rgt-neg-in91.7%
+-commutative91.7%
neg-sub091.7%
associate--r-91.7%
neg-sub091.7%
+-commutative91.7%
sub-neg91.7%
Simplified91.7%
Final simplification89.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 1.12e-99)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 8.6e-9)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (+ a (+ 0.8333333333333334 (/ -0.6666666666666666 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 <= 1.12e-99) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 8.6e-9) {
tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / 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 <= 1.12d-99) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 8.6d-9) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + (0.8333333333333334d0 + ((-0.6666666666666666d0) / 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 <= 1.12e-99) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 8.6e-9) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1.12e-99: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 8.6e-9: tmp = x / (x + (y * math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1.12e-99) 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 <= 8.6e-9) 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(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 <= 1.12e-99) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 8.6e-9) tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / 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, 1.12e-99], 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, 8.6e-9], 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[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.12 \cdot 10^{-99}:\\
\;\;\;\;\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 8.6 \cdot 10^{-9}:\\
\;\;\;\;\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(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 1.11999999999999998e-99Initial program 92.7%
Taylor expanded in t around 0 91.2%
if 1.11999999999999998e-99 < t < 8.59999999999999925e-9Initial program 92.6%
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-+l+74.5%
Simplified74.5%
if 8.59999999999999925e-9 < t Initial program 96.3%
Taylor expanded in t around inf 90.9%
mul-1-neg90.9%
distribute-rgt-neg-in90.9%
+-commutative90.9%
neg-sub090.9%
associate--r-90.9%
neg-sub090.9%
+-commutative90.9%
sub-neg90.9%
Simplified90.9%
Final simplification89.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -5e+223)
(/
x
(+
x
(*
y
(+
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))
1.0))))
(if (<= (- b c) -1e+29)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
(if (<= (- b c) 1e-74) (/ x (+ x (* y (exp (* (* a b) -2.0))))) 1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -5e+223) {
tmp = x / (x + (y * ((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))) + 1.0)));
} else if ((b - c) <= -1e+29) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else if ((b - c) <= 1e-74) {
tmp = x / (x + (y * exp(((a * b) * -2.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 ((b - c) <= (-5d+223)) then
tmp = x / (x + (y * ((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))) + 1.0d0)))
else if ((b - c) <= (-1d+29)) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else if ((b - c) <= 1d-74) then
tmp = x / (x + (y * exp(((a * b) * (-2.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 ((b - c) <= -5e+223) {
tmp = x / (x + (y * ((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))) + 1.0)));
} else if ((b - c) <= -1e+29) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else if ((b - c) <= 1e-74) {
tmp = x / (x + (y * Math.exp(((a * b) * -2.0))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -5e+223: tmp = x / (x + (y * ((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))) + 1.0))) elif (b - c) <= -1e+29: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) elif (b - c) <= 1e-74: tmp = x / (x + (y * math.exp(((a * b) * -2.0)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -5e+223) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))) + 1.0)))); elseif (Float64(b - c) <= -1e+29) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); elseif (Float64(b - c) <= 1e-74) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(a * b) * -2.0))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= -5e+223) tmp = x / (x + (y * ((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))) + 1.0))); elseif ((b - c) <= -1e+29) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); elseif ((b - c) <= 1e-74) tmp = x / (x + (y * exp(((a * b) * -2.0)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -5e+223], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], -1e+29], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 1e-74], N[(x / N[(x + N[(y * N[Exp[N[(N[(a * b), $MachinePrecision] * -2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -5 \cdot 10^{+223}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right) + 1\right)}\\
\mathbf{elif}\;b - c \leq -1 \cdot 10^{+29}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{elif}\;b - c \leq 10^{-74}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(a \cdot b\right) \cdot -2}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -4.99999999999999985e223Initial program 93.4%
Taylor expanded in b around inf 74.2%
associate-*r/74.2%
metadata-eval74.2%
+-commutative74.2%
Simplified74.2%
Taylor expanded in b around 0 73.8%
associate-*r/73.8%
metadata-eval73.8%
+-commutative73.8%
+-commutative73.8%
Simplified73.8%
if -4.99999999999999985e223 < (-.f64 b c) < -9.99999999999999914e28Initial program 91.0%
Taylor expanded in t around inf 71.8%
mul-1-neg71.8%
distribute-rgt-neg-in71.8%
+-commutative71.8%
neg-sub071.8%
associate--r-71.8%
neg-sub071.8%
+-commutative71.8%
sub-neg71.8%
Simplified71.8%
Taylor expanded in a around 0 66.5%
Taylor expanded in b around 0 63.1%
if -9.99999999999999914e28 < (-.f64 b c) < 9.99999999999999958e-75Initial program 100.0%
Taylor expanded in a around inf 61.8%
Taylor expanded in c around 0 63.5%
*-commutative63.5%
*-commutative63.5%
Simplified63.5%
if 9.99999999999999958e-75 < (-.f64 b c) Initial program 92.8%
Taylor expanded in a around inf 63.9%
Taylor expanded in a around 0 36.3%
Taylor expanded in x around inf 69.5%
Final simplification67.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* b -1.6666666666666667)))))))
(if (<= t 1.9e-20)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 4.4e+125)
t_1
(if (<= t 9.8e+199)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
(if (<= t 7.2e+259)
t_1
(if (<= t 1.08e+294)
(/ x (+ x (- y (* 2.0 (* a (* y (- 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 t_1 = x / (x + (y * exp((b * -1.6666666666666667))));
double tmp;
if (t <= 1.9e-20) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 4.4e+125) {
tmp = t_1;
} else if (t <= 9.8e+199) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else if (t <= 7.2e+259) {
tmp = t_1;
} else if (t <= 1.08e+294) {
tmp = x / (x + (y - (2.0 * (a * (y * (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) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
if (t <= 1.9d-20) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 4.4d+125) then
tmp = t_1
else if (t <= 9.8d+199) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else if (t <= 7.2d+259) then
tmp = t_1
else if (t <= 1.08d+294) then
tmp = x / (x + (y - (2.0d0 * (a * (y * (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 t_1 = x / (x + (y * Math.exp((b * -1.6666666666666667))));
double tmp;
if (t <= 1.9e-20) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 4.4e+125) {
tmp = t_1;
} else if (t <= 9.8e+199) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else if (t <= 7.2e+259) {
tmp = t_1;
} else if (t <= 1.08e+294) {
tmp = x / (x + (y - (2.0 * (a * (y * (b - c))))));
} else {
tmp = x / (x + (y * Math.exp(((a * b) * -2.0))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((b * -1.6666666666666667)))) tmp = 0 if t <= 1.9e-20: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 4.4e+125: tmp = t_1 elif t <= 9.8e+199: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) elif t <= 7.2e+259: tmp = t_1 elif t <= 1.08e+294: tmp = x / (x + (y - (2.0 * (a * (y * (b - c)))))) else: tmp = x / (x + (y * math.exp(((a * b) * -2.0)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))) tmp = 0.0 if (t <= 1.9e-20) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 4.4e+125) tmp = t_1; elseif (t <= 9.8e+199) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); elseif (t <= 7.2e+259) tmp = t_1; elseif (t <= 1.08e+294) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(a * Float64(y * 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) t_1 = x / (x + (y * exp((b * -1.6666666666666667)))); tmp = 0.0; if (t <= 1.9e-20) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 4.4e+125) tmp = t_1; elseif (t <= 9.8e+199) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); elseif (t <= 7.2e+259) tmp = t_1; elseif (t <= 1.08e+294) tmp = x / (x + (y - (2.0 * (a * (y * (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_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 1.9e-20], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.4e+125], t$95$1, If[LessEqual[t, 9.8e+199], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.2e+259], t$95$1, If[LessEqual[t, 1.08e+294], N[(x / N[(x + N[(y - N[(2.0 * N[(a * N[(y * N[(b - c), $MachinePrecision]), $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}
t_1 := \frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{if}\;t \leq 1.9 \cdot 10^{-20}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 4.4 \cdot 10^{+125}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 9.8 \cdot 10^{+199}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{elif}\;t \leq 7.2 \cdot 10^{+259}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.08 \cdot 10^{+294}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(a \cdot \left(y \cdot \left(b - c\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(a \cdot b\right) \cdot -2}}\\
\end{array}
\end{array}
if t < 1.8999999999999999e-20Initial program 92.5%
Taylor expanded in t around 0 83.8%
Taylor expanded in a around 0 77.8%
if 1.8999999999999999e-20 < t < 4.39999999999999982e125 or 9.7999999999999993e199 < t < 7.2000000000000006e259Initial program 97.1%
Taylor expanded in t around inf 85.8%
mul-1-neg85.8%
distribute-rgt-neg-in85.8%
+-commutative85.8%
neg-sub085.8%
associate--r-85.8%
neg-sub085.8%
+-commutative85.8%
sub-neg85.8%
Simplified85.8%
Taylor expanded in a around 0 78.7%
Taylor expanded in c around 0 70.1%
if 4.39999999999999982e125 < t < 9.7999999999999993e199Initial program 95.2%
Taylor expanded in t around inf 95.4%
mul-1-neg95.4%
distribute-rgt-neg-in95.4%
+-commutative95.4%
neg-sub095.4%
associate--r-95.4%
neg-sub095.4%
+-commutative95.4%
sub-neg95.4%
Simplified95.4%
Taylor expanded in a around 0 76.9%
Taylor expanded in b around 0 72.3%
if 7.2000000000000006e259 < t < 1.08e294Initial program 93.9%
Taylor expanded in a around inf 82.0%
Taylor expanded in a around 0 75.0%
*-commutative75.0%
Simplified75.0%
if 1.08e294 < t Initial program 100.0%
Taylor expanded in a around inf 99.7%
Taylor expanded in c around 0 99.7%
*-commutative99.7%
*-commutative99.7%
Simplified99.7%
Final simplification75.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= t -6e-14)
t_1
(if (<= t 1.15e-8)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 1e+150)
(/ x (+ x (* y (exp (* 2.0 (* 0.8333333333333334 (- 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 * (c - b))))));
double tmp;
if (t <= -6e-14) {
tmp = t_1;
} else if (t <= 1.15e-8) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 1e+150) {
tmp = x / (x + (y * exp((2.0 * (0.8333333333333334 * (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 * (c - b))))))
if (t <= (-6d-14)) then
tmp = t_1
else if (t <= 1.15d-8) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 1d+150) then
tmp = x / (x + (y * exp((2.0d0 * (0.8333333333333334d0 * (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 * (c - b))))));
double tmp;
if (t <= -6e-14) {
tmp = t_1;
} else if (t <= 1.15e-8) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 1e+150) {
tmp = x / (x + (y * Math.exp((2.0 * (0.8333333333333334 * (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 * (c - b)))))) tmp = 0 if t <= -6e-14: tmp = t_1 elif t <= 1.15e-8: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 1e+150: tmp = x / (x + (y * math.exp((2.0 * (0.8333333333333334 * (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(a * Float64(c - b))))))) tmp = 0.0 if (t <= -6e-14) tmp = t_1; elseif (t <= 1.15e-8) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 1e+150) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(0.8333333333333334 * 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 * (c - b)))))); tmp = 0.0; if (t <= -6e-14) tmp = t_1; elseif (t <= 1.15e-8) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 1e+150) tmp = x / (x + (y * exp((2.0 * (0.8333333333333334 * (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[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6e-14], t$95$1, If[LessEqual[t, 1.15e-8], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e+150], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(0.8333333333333334 * 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(a \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq -6 \cdot 10^{-14}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-8}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 10^{+150}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(0.8333333333333334 \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -5.9999999999999997e-14 or 9.99999999999999981e149 < t Initial program 94.5%
Taylor expanded in a around inf 84.6%
if -5.9999999999999997e-14 < t < 1.15e-8Initial program 91.3%
Taylor expanded in t around 0 81.3%
Taylor expanded in a around 0 77.9%
if 1.15e-8 < t < 9.99999999999999981e149Initial program 100.0%
Taylor expanded in t around inf 91.5%
mul-1-neg91.5%
distribute-rgt-neg-in91.5%
+-commutative91.5%
neg-sub091.5%
associate--r-91.5%
neg-sub091.5%
+-commutative91.5%
sub-neg91.5%
Simplified91.5%
Taylor expanded in a around 0 86.4%
Final simplification81.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -1e-13)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 4.5e-6)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) 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 <= -1e-13) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 4.5e-6) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / 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 <= (-1d-13)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 4.5d-6) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / 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 <= -1e-13) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 4.5e-6) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / 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 <= -1e-13: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 4.5e-6: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / 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 <= -1e-13) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 4.5e-6) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -1e-13) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 4.5e-6) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / 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, -1e-13], 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, 4.5e-6], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{-13}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-6}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < -1e-13Initial program 100.0%
Taylor expanded in a around inf 96.0%
if -1e-13 < t < 4.50000000000000011e-6Initial program 91.3%
Taylor expanded in t around 0 81.3%
Taylor expanded in a around 0 77.9%
if 4.50000000000000011e-6 < t Initial program 96.2%
Taylor expanded in t around inf 91.7%
mul-1-neg91.7%
distribute-rgt-neg-in91.7%
+-commutative91.7%
neg-sub091.7%
associate--r-91.7%
neg-sub091.7%
+-commutative91.7%
sub-neg91.7%
Simplified91.7%
Final simplification85.3%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= t -5e+41) (not (<= t 2.5e-7))) (/ x (+ x (* y (exp (* 2.0 (* 0.8333333333333334 (- c b))))))) (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -5e+41) || !(t <= 2.5e-7)) {
tmp = x / (x + (y * exp((2.0 * (0.8333333333333334 * (c - b))))));
} else {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - 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 <= (-5d+41)) .or. (.not. (t <= 2.5d-7))) then
tmp = x / (x + (y * exp((2.0d0 * (0.8333333333333334d0 * (c - b))))))
else
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - 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 <= -5e+41) || !(t <= 2.5e-7)) {
tmp = x / (x + (y * Math.exp((2.0 * (0.8333333333333334 * (c - b))))));
} else {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -5e+41) or not (t <= 2.5e-7): tmp = x / (x + (y * math.exp((2.0 * (0.8333333333333334 * (c - b)))))) else: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -5e+41) || !(t <= 2.5e-7)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(0.8333333333333334 * Float64(c - b))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((t <= -5e+41) || ~((t <= 2.5e-7))) tmp = x / (x + (y * exp((2.0 * (0.8333333333333334 * (c - b)))))); else tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -5e+41], N[Not[LessEqual[t, 2.5e-7]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(0.8333333333333334 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{+41} \lor \neg \left(t \leq 2.5 \cdot 10^{-7}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(0.8333333333333334 \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\end{array}
\end{array}
if t < -5.00000000000000022e41 or 2.49999999999999989e-7 < t Initial program 96.7%
Taylor expanded in t around inf 92.8%
mul-1-neg92.8%
distribute-rgt-neg-in92.8%
+-commutative92.8%
neg-sub092.8%
associate--r-92.8%
neg-sub092.8%
+-commutative92.8%
sub-neg92.8%
Simplified92.8%
Taylor expanded in a around 0 81.5%
if -5.00000000000000022e41 < t < 2.49999999999999989e-7Initial program 91.9%
Taylor expanded in t around 0 82.5%
Taylor expanded in a around 0 78.0%
Final simplification79.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -5e+223)
(/
x
(+
x
(*
y
(+
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))
1.0))))
(if (<= (- b c) -5e-6)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
(if (<= (- b c) 1e-74)
(/
x
(+
x
(+
y
(*
2.0
(*
b
(*
y
(-
(* 0.6666666666666666 (/ 1.0 t))
(+ a 0.8333333333333334))))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -5e+223) {
tmp = x / (x + (y * ((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))) + 1.0)));
} else if ((b - c) <= -5e-6) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else if ((b - c) <= 1e-74) {
tmp = x / (x + (y + (2.0 * (b * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= (-5d+223)) then
tmp = x / (x + (y * ((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))) + 1.0d0)))
else if ((b - c) <= (-5d-6)) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else if ((b - c) <= 1d-74) then
tmp = x / (x + (y + (2.0d0 * (b * (y * ((0.6666666666666666d0 * (1.0d0 / t)) - (a + 0.8333333333333334d0)))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -5e+223) {
tmp = x / (x + (y * ((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))) + 1.0)));
} else if ((b - c) <= -5e-6) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else if ((b - c) <= 1e-74) {
tmp = x / (x + (y + (2.0 * (b * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -5e+223: tmp = x / (x + (y * ((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))) + 1.0))) elif (b - c) <= -5e-6: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) elif (b - c) <= 1e-74: tmp = x / (x + (y + (2.0 * (b * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -5e+223) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))) + 1.0)))); elseif (Float64(b - c) <= -5e-6) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); elseif (Float64(b - c) <= 1e-74) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(b * Float64(y * Float64(Float64(0.6666666666666666 * Float64(1.0 / t)) - Float64(a + 0.8333333333333334)))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= -5e+223) tmp = x / (x + (y * ((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))) + 1.0))); elseif ((b - c) <= -5e-6) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); elseif ((b - c) <= 1e-74) tmp = x / (x + (y + (2.0 * (b * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -5e+223], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], -5e-6], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 1e-74], N[(x / N[(x + N[(y + N[(2.0 * N[(b * N[(y * N[(N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -5 \cdot 10^{+223}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right) + 1\right)}\\
\mathbf{elif}\;b - c \leq -5 \cdot 10^{-6}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{elif}\;b - c \leq 10^{-74}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(b \cdot \left(y \cdot \left(0.6666666666666666 \cdot \frac{1}{t} - \left(a + 0.8333333333333334\right)\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -4.99999999999999985e223Initial program 93.4%
Taylor expanded in b around inf 74.2%
associate-*r/74.2%
metadata-eval74.2%
+-commutative74.2%
Simplified74.2%
Taylor expanded in b around 0 73.8%
associate-*r/73.8%
metadata-eval73.8%
+-commutative73.8%
+-commutative73.8%
Simplified73.8%
if -4.99999999999999985e223 < (-.f64 b c) < -5.00000000000000041e-6Initial program 92.1%
Taylor expanded in t around inf 70.8%
mul-1-neg70.8%
distribute-rgt-neg-in70.8%
+-commutative70.8%
neg-sub070.8%
associate--r-70.8%
neg-sub070.8%
+-commutative70.8%
sub-neg70.8%
Simplified70.8%
Taylor expanded in a around 0 66.2%
Taylor expanded in b around 0 60.1%
if -5.00000000000000041e-6 < (-.f64 b c) < 9.99999999999999958e-75Initial program 100.0%
Taylor expanded in b around inf 68.4%
associate-*r/68.4%
metadata-eval68.4%
+-commutative68.4%
Simplified68.4%
Taylor expanded in b around 0 59.7%
if 9.99999999999999958e-75 < (-.f64 b c) Initial program 92.8%
Taylor expanded in a around inf 63.9%
Taylor expanded in a around 0 36.3%
Taylor expanded in x around inf 69.5%
Final simplification65.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -2e+224)
(/
x
(+
x
(*
y
(+
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))
1.0))))
(if (<= (- b c) -1e+179)
1.0
(if (<= (- b c) -2e+112)
(/ x (+ x (* y (- 1.0 (* (- b c) (* 2.0 a))))))
(if (<= (- b c) 1e-74)
(/
x
(+
x
(+
y
(*
2.0
(*
b
(*
y
(-
(* 0.6666666666666666 (/ 1.0 t))
(+ a 0.8333333333333334))))))))
1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -2e+224) {
tmp = x / (x + (y * ((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))) + 1.0)));
} else if ((b - c) <= -1e+179) {
tmp = 1.0;
} else if ((b - c) <= -2e+112) {
tmp = x / (x + (y * (1.0 - ((b - c) * (2.0 * a)))));
} else if ((b - c) <= 1e-74) {
tmp = x / (x + (y + (2.0 * (b * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= (-2d+224)) then
tmp = x / (x + (y * ((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))) + 1.0d0)))
else if ((b - c) <= (-1d+179)) then
tmp = 1.0d0
else if ((b - c) <= (-2d+112)) then
tmp = x / (x + (y * (1.0d0 - ((b - c) * (2.0d0 * a)))))
else if ((b - c) <= 1d-74) then
tmp = x / (x + (y + (2.0d0 * (b * (y * ((0.6666666666666666d0 * (1.0d0 / t)) - (a + 0.8333333333333334d0)))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -2e+224) {
tmp = x / (x + (y * ((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))) + 1.0)));
} else if ((b - c) <= -1e+179) {
tmp = 1.0;
} else if ((b - c) <= -2e+112) {
tmp = x / (x + (y * (1.0 - ((b - c) * (2.0 * a)))));
} else if ((b - c) <= 1e-74) {
tmp = x / (x + (y + (2.0 * (b * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -2e+224: tmp = x / (x + (y * ((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))) + 1.0))) elif (b - c) <= -1e+179: tmp = 1.0 elif (b - c) <= -2e+112: tmp = x / (x + (y * (1.0 - ((b - c) * (2.0 * a))))) elif (b - c) <= 1e-74: tmp = x / (x + (y + (2.0 * (b * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -2e+224) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))) + 1.0)))); elseif (Float64(b - c) <= -1e+179) tmp = 1.0; elseif (Float64(b - c) <= -2e+112) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(Float64(b - c) * Float64(2.0 * a)))))); elseif (Float64(b - c) <= 1e-74) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(b * Float64(y * Float64(Float64(0.6666666666666666 * Float64(1.0 / t)) - Float64(a + 0.8333333333333334)))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= -2e+224) tmp = x / (x + (y * ((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))) + 1.0))); elseif ((b - c) <= -1e+179) tmp = 1.0; elseif ((b - c) <= -2e+112) tmp = x / (x + (y * (1.0 - ((b - c) * (2.0 * a))))); elseif ((b - c) <= 1e-74) tmp = x / (x + (y + (2.0 * (b * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -2e+224], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], -1e+179], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], -2e+112], N[(x / N[(x + N[(y * N[(1.0 - N[(N[(b - c), $MachinePrecision] * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 1e-74], N[(x / N[(x + N[(y + N[(2.0 * N[(b * N[(y * N[(N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -2 \cdot 10^{+224}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right) + 1\right)}\\
\mathbf{elif}\;b - c \leq -1 \cdot 10^{+179}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq -2 \cdot 10^{+112}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - \left(b - c\right) \cdot \left(2 \cdot a\right)\right)}\\
\mathbf{elif}\;b - c \leq 10^{-74}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(b \cdot \left(y \cdot \left(0.6666666666666666 \cdot \frac{1}{t} - \left(a + 0.8333333333333334\right)\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -1.99999999999999994e224Initial program 93.2%
Taylor expanded in b around inf 73.3%
associate-*r/73.3%
metadata-eval73.3%
+-commutative73.3%
Simplified73.3%
Taylor expanded in b around 0 72.9%
associate-*r/72.9%
metadata-eval72.9%
+-commutative72.9%
+-commutative72.9%
Simplified72.9%
if -1.99999999999999994e224 < (-.f64 b c) < -9.9999999999999998e178 or 9.99999999999999958e-75 < (-.f64 b c) Initial program 92.1%
Taylor expanded in a around inf 62.3%
Taylor expanded in a around 0 39.0%
Taylor expanded in x around inf 69.5%
if -9.9999999999999998e178 < (-.f64 b c) < -1.9999999999999999e112Initial program 93.5%
Taylor expanded in a around inf 87.1%
Taylor expanded in a around 0 80.7%
associate-*r*80.7%
*-commutative80.7%
*-commutative80.7%
Simplified80.7%
if -1.9999999999999999e112 < (-.f64 b c) < 9.99999999999999958e-75Initial program 97.6%
Taylor expanded in b around inf 67.1%
associate-*r/67.1%
metadata-eval67.1%
+-commutative67.1%
Simplified67.1%
Taylor expanded in b around 0 52.4%
Final simplification64.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (- x (* y (- -1.0 (* 1.3333333333333333 (/ (- b c) t))))))))
(if (<= (- b c) -2e+52)
(/ x (+ x (* y (+ (* b (* a -2.0)) 1.0))))
(if (<= (- b c) -5e-34)
1.0
(if (<= (- b c) 5e-111)
t_1
(if (<= (- b c) 4e-86)
(* (/ 0.75 b) (/ (* x t) y))
(if (<= (- b c) 1e-74) t_1 1.0)))))))
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 - c) / t)))));
double tmp;
if ((b - c) <= -2e+52) {
tmp = x / (x + (y * ((b * (a * -2.0)) + 1.0)));
} else if ((b - c) <= -5e-34) {
tmp = 1.0;
} else if ((b - c) <= 5e-111) {
tmp = t_1;
} else if ((b - c) <= 4e-86) {
tmp = (0.75 / b) * ((x * t) / y);
} else if ((b - c) <= 1e-74) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x / (x - (y * ((-1.0d0) - (1.3333333333333333d0 * ((b - c) / t)))))
if ((b - c) <= (-2d+52)) then
tmp = x / (x + (y * ((b * (a * (-2.0d0))) + 1.0d0)))
else if ((b - c) <= (-5d-34)) then
tmp = 1.0d0
else if ((b - c) <= 5d-111) then
tmp = t_1
else if ((b - c) <= 4d-86) then
tmp = (0.75d0 / b) * ((x * t) / y)
else if ((b - c) <= 1d-74) then
tmp = t_1
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 t_1 = x / (x - (y * (-1.0 - (1.3333333333333333 * ((b - c) / t)))));
double tmp;
if ((b - c) <= -2e+52) {
tmp = x / (x + (y * ((b * (a * -2.0)) + 1.0)));
} else if ((b - c) <= -5e-34) {
tmp = 1.0;
} else if ((b - c) <= 5e-111) {
tmp = t_1;
} else if ((b - c) <= 4e-86) {
tmp = (0.75 / b) * ((x * t) / y);
} else if ((b - c) <= 1e-74) {
tmp = t_1;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x - (y * (-1.0 - (1.3333333333333333 * ((b - c) / t))))) tmp = 0 if (b - c) <= -2e+52: tmp = x / (x + (y * ((b * (a * -2.0)) + 1.0))) elif (b - c) <= -5e-34: tmp = 1.0 elif (b - c) <= 5e-111: tmp = t_1 elif (b - c) <= 4e-86: tmp = (0.75 / b) * ((x * t) / y) elif (b - c) <= 1e-74: tmp = t_1 else: tmp = 1.0 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(Float64(b - c) / t)))))) tmp = 0.0 if (Float64(b - c) <= -2e+52) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(b * Float64(a * -2.0)) + 1.0)))); elseif (Float64(b - c) <= -5e-34) tmp = 1.0; elseif (Float64(b - c) <= 5e-111) tmp = t_1; elseif (Float64(b - c) <= 4e-86) tmp = Float64(Float64(0.75 / b) * Float64(Float64(x * t) / y)); elseif (Float64(b - c) <= 1e-74) tmp = t_1; else tmp = 1.0; 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 - c) / t))))); tmp = 0.0; if ((b - c) <= -2e+52) tmp = x / (x + (y * ((b * (a * -2.0)) + 1.0))); elseif ((b - c) <= -5e-34) tmp = 1.0; elseif ((b - c) <= 5e-111) tmp = t_1; elseif ((b - c) <= 4e-86) tmp = (0.75 / b) * ((x * t) / y); elseif ((b - c) <= 1e-74) tmp = t_1; else tmp = 1.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[(-1.0 - N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b - c), $MachinePrecision], -2e+52], N[(x / N[(x + N[(y * N[(N[(b * N[(a * -2.0), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], -5e-34], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 5e-111], t$95$1, If[LessEqual[N[(b - c), $MachinePrecision], 4e-86], N[(N[(0.75 / b), $MachinePrecision] * N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 1e-74], t$95$1, 1.0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x - y \cdot \left(-1 - 1.3333333333333333 \cdot \frac{b - c}{t}\right)}\\
\mathbf{if}\;b - c \leq -2 \cdot 10^{+52}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(b \cdot \left(a \cdot -2\right) + 1\right)}\\
\mathbf{elif}\;b - c \leq -5 \cdot 10^{-34}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 5 \cdot 10^{-111}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b - c \leq 4 \cdot 10^{-86}:\\
\;\;\;\;\frac{0.75}{b} \cdot \frac{x \cdot t}{y}\\
\mathbf{elif}\;b - c \leq 10^{-74}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -2e52Initial program 91.3%
Taylor expanded in a around inf 69.8%
Taylor expanded in c around 0 56.6%
*-commutative56.6%
*-commutative56.6%
Simplified56.6%
Taylor expanded in b around 0 54.2%
associate-*r*54.2%
*-commutative54.2%
*-commutative54.2%
Simplified54.2%
if -2e52 < (-.f64 b c) < -5.0000000000000003e-34 or 9.99999999999999958e-75 < (-.f64 b c) Initial program 93.8%
Taylor expanded in a around inf 63.4%
Taylor expanded in a around 0 34.3%
Taylor expanded in x around inf 65.9%
if -5.0000000000000003e-34 < (-.f64 b c) < 5.0000000000000003e-111 or 4.00000000000000034e-86 < (-.f64 b c) < 9.99999999999999958e-75Initial program 100.0%
Taylor expanded in t around 0 61.0%
Taylor expanded in t around inf 48.4%
Taylor expanded in a around 0 62.3%
if 5.0000000000000003e-111 < (-.f64 b c) < 4.00000000000000034e-86Initial program 100.0%
Taylor expanded in t around 0 100.0%
Taylor expanded in t around inf 53.5%
Taylor expanded in b around inf 50.0%
associate-*r/50.0%
Applied egg-rr50.0%
times-frac100.0%
Simplified100.0%
Final simplification61.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -2e+224)
(/
x
(+
x
(*
y
(+
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))
1.0))))
(if (<= (- b c) -1e+179)
1.0
(if (<= (- b c) 1e-74)
(/ x (+ x (* y (- 1.0 (* (- b c) (* 2.0 a))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -2e+224) {
tmp = x / (x + (y * ((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))) + 1.0)));
} else if ((b - c) <= -1e+179) {
tmp = 1.0;
} else if ((b - c) <= 1e-74) {
tmp = x / (x + (y * (1.0 - ((b - c) * (2.0 * a)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= (-2d+224)) then
tmp = x / (x + (y * ((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))) + 1.0d0)))
else if ((b - c) <= (-1d+179)) then
tmp = 1.0d0
else if ((b - c) <= 1d-74) then
tmp = x / (x + (y * (1.0d0 - ((b - c) * (2.0d0 * a)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -2e+224) {
tmp = x / (x + (y * ((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))) + 1.0)));
} else if ((b - c) <= -1e+179) {
tmp = 1.0;
} else if ((b - c) <= 1e-74) {
tmp = x / (x + (y * (1.0 - ((b - c) * (2.0 * a)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -2e+224: tmp = x / (x + (y * ((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))) + 1.0))) elif (b - c) <= -1e+179: tmp = 1.0 elif (b - c) <= 1e-74: tmp = x / (x + (y * (1.0 - ((b - c) * (2.0 * a))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -2e+224) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))) + 1.0)))); elseif (Float64(b - c) <= -1e+179) tmp = 1.0; elseif (Float64(b - c) <= 1e-74) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(Float64(b - c) * Float64(2.0 * a)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= -2e+224) tmp = x / (x + (y * ((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))) + 1.0))); elseif ((b - c) <= -1e+179) tmp = 1.0; elseif ((b - c) <= 1e-74) tmp = x / (x + (y * (1.0 - ((b - c) * (2.0 * a))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -2e+224], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], -1e+179], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 1e-74], N[(x / N[(x + N[(y * N[(1.0 - N[(N[(b - c), $MachinePrecision] * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -2 \cdot 10^{+224}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right) + 1\right)}\\
\mathbf{elif}\;b - c \leq -1 \cdot 10^{+179}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 10^{-74}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - \left(b - c\right) \cdot \left(2 \cdot a\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -1.99999999999999994e224Initial program 93.2%
Taylor expanded in b around inf 73.3%
associate-*r/73.3%
metadata-eval73.3%
+-commutative73.3%
Simplified73.3%
Taylor expanded in b around 0 72.9%
associate-*r/72.9%
metadata-eval72.9%
+-commutative72.9%
+-commutative72.9%
Simplified72.9%
if -1.99999999999999994e224 < (-.f64 b c) < -9.9999999999999998e178 or 9.99999999999999958e-75 < (-.f64 b c) Initial program 92.1%
Taylor expanded in a around inf 62.3%
Taylor expanded in a around 0 39.0%
Taylor expanded in x around inf 69.5%
if -9.9999999999999998e178 < (-.f64 b c) < 9.99999999999999958e-75Initial program 97.0%
Taylor expanded in a around inf 67.4%
Taylor expanded in a around 0 52.2%
associate-*r*52.2%
*-commutative52.2%
*-commutative52.2%
Simplified52.2%
Final simplification63.1%
(FPCore (x y z t a b c) :precision binary64 (if (<= (- b c) 1e-74) (/ x (+ x (* y (- 1.0 (* (- b c) (* 2.0 a)))))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 1e-74) {
tmp = x / (x + (y * (1.0 - ((b - c) * (2.0 * a)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= 1d-74) then
tmp = x / (x + (y * (1.0d0 - ((b - c) * (2.0d0 * a)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 1e-74) {
tmp = x / (x + (y * (1.0 - ((b - c) * (2.0 * a)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= 1e-74: tmp = x / (x + (y * (1.0 - ((b - c) * (2.0 * a))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= 1e-74) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(Float64(b - c) * Float64(2.0 * a)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= 1e-74) tmp = x / (x + (y * (1.0 - ((b - c) * (2.0 * a))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], 1e-74], N[(x / N[(x + N[(y * N[(1.0 - N[(N[(b - c), $MachinePrecision] * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq 10^{-74}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - \left(b - c\right) \cdot \left(2 \cdot a\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < 9.99999999999999958e-75Initial program 95.2%
Taylor expanded in a around inf 66.2%
Taylor expanded in a around 0 54.3%
associate-*r*54.3%
*-commutative54.3%
*-commutative54.3%
Simplified54.3%
if 9.99999999999999958e-75 < (-.f64 b c) Initial program 92.8%
Taylor expanded in a around inf 63.9%
Taylor expanded in a around 0 36.3%
Taylor expanded in x around inf 69.5%
Final simplification60.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -5.8e-282)
1.0
(if (<= c 7.2e-112)
(/ x (+ x y))
(if (<= c 2.8e+229)
1.0
(/ x (+ x (* (/ c (/ t y)) -1.3333333333333333)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -5.8e-282) {
tmp = 1.0;
} else if (c <= 7.2e-112) {
tmp = x / (x + y);
} else if (c <= 2.8e+229) {
tmp = 1.0;
} else {
tmp = x / (x + ((c / (t / y)) * -1.3333333333333333));
}
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 <= (-5.8d-282)) then
tmp = 1.0d0
else if (c <= 7.2d-112) then
tmp = x / (x + y)
else if (c <= 2.8d+229) then
tmp = 1.0d0
else
tmp = x / (x + ((c / (t / y)) * (-1.3333333333333333d0)))
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 <= -5.8e-282) {
tmp = 1.0;
} else if (c <= 7.2e-112) {
tmp = x / (x + y);
} else if (c <= 2.8e+229) {
tmp = 1.0;
} else {
tmp = x / (x + ((c / (t / y)) * -1.3333333333333333));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -5.8e-282: tmp = 1.0 elif c <= 7.2e-112: tmp = x / (x + y) elif c <= 2.8e+229: tmp = 1.0 else: tmp = x / (x + ((c / (t / y)) * -1.3333333333333333)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -5.8e-282) tmp = 1.0; elseif (c <= 7.2e-112) tmp = Float64(x / Float64(x + y)); elseif (c <= 2.8e+229) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(Float64(c / Float64(t / y)) * -1.3333333333333333))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -5.8e-282) tmp = 1.0; elseif (c <= 7.2e-112) tmp = x / (x + y); elseif (c <= 2.8e+229) tmp = 1.0; else tmp = x / (x + ((c / (t / y)) * -1.3333333333333333)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -5.8e-282], 1.0, If[LessEqual[c, 7.2e-112], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.8e+229], 1.0, N[(x / N[(x + N[(N[(c / N[(t / y), $MachinePrecision]), $MachinePrecision] * -1.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -5.8 \cdot 10^{-282}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 7.2 \cdot 10^{-112}:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{elif}\;c \leq 2.8 \cdot 10^{+229}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \frac{c}{\frac{t}{y}} \cdot -1.3333333333333333}\\
\end{array}
\end{array}
if c < -5.79999999999999995e-282 or 7.2000000000000002e-112 < c < 2.8000000000000002e229Initial program 93.3%
Taylor expanded in a around inf 65.9%
Taylor expanded in a around 0 36.4%
Taylor expanded in x around inf 56.1%
if -5.79999999999999995e-282 < c < 7.2000000000000002e-112Initial program 97.9%
Taylor expanded in a around inf 62.2%
Taylor expanded in a around 0 48.1%
if 2.8000000000000002e229 < c Initial program 92.9%
Taylor expanded in t around 0 57.8%
Taylor expanded in t around inf 44.4%
Taylor expanded in c around inf 72.0%
*-commutative72.0%
associate-/l*72.0%
Simplified72.0%
Final simplification55.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -1.75e-242)
1.0
(if (<= c 1.25e-113)
(/ x (+ x (* y (+ (* b (* a -2.0)) 1.0))))
(if (<= c 5.2e+226)
1.0
(/ x (+ x (* (/ c (/ t y)) -1.3333333333333333)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1.75e-242) {
tmp = 1.0;
} else if (c <= 1.25e-113) {
tmp = x / (x + (y * ((b * (a * -2.0)) + 1.0)));
} else if (c <= 5.2e+226) {
tmp = 1.0;
} else {
tmp = x / (x + ((c / (t / y)) * -1.3333333333333333));
}
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.75d-242)) then
tmp = 1.0d0
else if (c <= 1.25d-113) then
tmp = x / (x + (y * ((b * (a * (-2.0d0))) + 1.0d0)))
else if (c <= 5.2d+226) then
tmp = 1.0d0
else
tmp = x / (x + ((c / (t / y)) * (-1.3333333333333333d0)))
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.75e-242) {
tmp = 1.0;
} else if (c <= 1.25e-113) {
tmp = x / (x + (y * ((b * (a * -2.0)) + 1.0)));
} else if (c <= 5.2e+226) {
tmp = 1.0;
} else {
tmp = x / (x + ((c / (t / y)) * -1.3333333333333333));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -1.75e-242: tmp = 1.0 elif c <= 1.25e-113: tmp = x / (x + (y * ((b * (a * -2.0)) + 1.0))) elif c <= 5.2e+226: tmp = 1.0 else: tmp = x / (x + ((c / (t / y)) * -1.3333333333333333)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -1.75e-242) tmp = 1.0; elseif (c <= 1.25e-113) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(b * Float64(a * -2.0)) + 1.0)))); elseif (c <= 5.2e+226) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(Float64(c / Float64(t / y)) * -1.3333333333333333))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -1.75e-242) tmp = 1.0; elseif (c <= 1.25e-113) tmp = x / (x + (y * ((b * (a * -2.0)) + 1.0))); elseif (c <= 5.2e+226) tmp = 1.0; else tmp = x / (x + ((c / (t / y)) * -1.3333333333333333)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -1.75e-242], 1.0, If[LessEqual[c, 1.25e-113], N[(x / N[(x + N[(y * N[(N[(b * N[(a * -2.0), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.2e+226], 1.0, N[(x / N[(x + N[(N[(c / N[(t / y), $MachinePrecision]), $MachinePrecision] * -1.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.75 \cdot 10^{-242}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.25 \cdot 10^{-113}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(b \cdot \left(a \cdot -2\right) + 1\right)}\\
\mathbf{elif}\;c \leq 5.2 \cdot 10^{+226}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \frac{c}{\frac{t}{y}} \cdot -1.3333333333333333}\\
\end{array}
\end{array}
if c < -1.7499999999999999e-242 or 1.2499999999999999e-113 < c < 5.2000000000000005e226Initial program 93.0%
Taylor expanded in a around inf 66.7%
Taylor expanded in a around 0 37.7%
Taylor expanded in x around inf 56.8%
if -1.7499999999999999e-242 < c < 1.2499999999999999e-113Initial program 98.2%
Taylor expanded in a around inf 60.4%
Taylor expanded in c around 0 60.4%
*-commutative60.4%
*-commutative60.4%
Simplified60.4%
Taylor expanded in b around 0 50.6%
associate-*r*50.6%
*-commutative50.6%
*-commutative50.6%
Simplified50.6%
if 5.2000000000000005e226 < c Initial program 92.9%
Taylor expanded in t around 0 57.8%
Taylor expanded in t around inf 44.4%
Taylor expanded in c around inf 72.0%
*-commutative72.0%
associate-/l*72.0%
Simplified72.0%
Final simplification56.2%
(FPCore (x y z t a b c) :precision binary64 (if (<= c -2.3e-281) 1.0 (if (<= c 1.15e-110) (/ x (+ x y)) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -2.3e-281) {
tmp = 1.0;
} else if (c <= 1.15e-110) {
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 (c <= (-2.3d-281)) then
tmp = 1.0d0
else if (c <= 1.15d-110) 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 (c <= -2.3e-281) {
tmp = 1.0;
} else if (c <= 1.15e-110) {
tmp = x / (x + y);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -2.3e-281: tmp = 1.0 elif c <= 1.15e-110: tmp = x / (x + y) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -2.3e-281) tmp = 1.0; elseif (c <= 1.15e-110) 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 (c <= -2.3e-281) tmp = 1.0; elseif (c <= 1.15e-110) tmp = x / (x + y); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -2.3e-281], 1.0, If[LessEqual[c, 1.15e-110], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.3 \cdot 10^{-281}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.15 \cdot 10^{-110}:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if c < -2.29999999999999989e-281 or 1.1500000000000001e-110 < c Initial program 93.3%
Taylor expanded in a around inf 65.9%
Taylor expanded in a around 0 36.5%
Taylor expanded in x around inf 54.8%
if -2.29999999999999989e-281 < c < 1.1500000000000001e-110Initial program 97.9%
Taylor expanded in a around inf 62.2%
Taylor expanded in a around 0 48.1%
Final simplification53.6%
(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 a around inf 65.2%
Taylor expanded in a around 0 38.7%
Taylor expanded in x around inf 50.4%
Final simplification50.4%
(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 2023322
(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)))))))))))