
(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 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ 2.0 (* t 3.0))) (t_2 (sqrt (+ t a))))
(if (<=
(+ (/ (* z t_2) t) (* (- b c) (- t_1 (+ a 0.8333333333333334))))
INFINITY)
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(+ (* z (/ t_2 t)) (* (- b c) (- (- t_1 0.8333333333333334) a)))))))
(/ x (+ x (* y (exp (* c (* 2.0 a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 2.0 / (t * 3.0);
double t_2 = sqrt((t + a));
double tmp;
if ((((z * t_2) / t) + ((b - c) * (t_1 - (a + 0.8333333333333334)))) <= ((double) INFINITY)) {
tmp = x / (x + (y * pow(exp(2.0), ((z * (t_2 / t)) + ((b - c) * ((t_1 - 0.8333333333333334) - a))))));
} else {
tmp = x / (x + (y * exp((c * (2.0 * a)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 2.0 / (t * 3.0);
double t_2 = Math.sqrt((t + a));
double tmp;
if ((((z * t_2) / t) + ((b - c) * (t_1 - (a + 0.8333333333333334)))) <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), ((z * (t_2 / t)) + ((b - c) * ((t_1 - 0.8333333333333334) - a))))));
} else {
tmp = x / (x + (y * Math.exp((c * (2.0 * a)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = 2.0 / (t * 3.0) t_2 = math.sqrt((t + a)) tmp = 0 if (((z * t_2) / t) + ((b - c) * (t_1 - (a + 0.8333333333333334)))) <= math.inf: tmp = x / (x + (y * math.pow(math.exp(2.0), ((z * (t_2 / t)) + ((b - c) * ((t_1 - 0.8333333333333334) - a)))))) else: tmp = x / (x + (y * math.exp((c * (2.0 * a))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(2.0 / Float64(t * 3.0)) t_2 = sqrt(Float64(t + a)) tmp = 0.0 if (Float64(Float64(Float64(z * t_2) / t) + Float64(Float64(b - c) * Float64(t_1 - Float64(a + 0.8333333333333334)))) <= Inf) tmp = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(Float64(z * Float64(t_2 / t)) + Float64(Float64(b - c) * Float64(Float64(t_1 - 0.8333333333333334) - a))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * Float64(2.0 * a)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = 2.0 / (t * 3.0); t_2 = sqrt((t + a)); tmp = 0.0; if ((((z * t_2) / t) + ((b - c) * (t_1 - (a + 0.8333333333333334)))) <= Inf) tmp = x / (x + (y * (exp(2.0) ^ ((z * (t_2 / t)) + ((b - c) * ((t_1 - 0.8333333333333334) - a)))))); else tmp = x / (x + (y * exp((c * (2.0 * a))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(N[(N[(z * t$95$2), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(t$95$1 - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(z * N[(t$95$2 / t), $MachinePrecision]), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(t$95$1 - 0.8333333333333334), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(c * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{2}{t \cdot 3}\\
t_2 := \sqrt{t + a}\\
\mathbf{if}\;\frac{z \cdot t\_2}{t} + \left(b - c\right) \cdot \left(t\_1 - \left(a + 0.8333333333333334\right)\right) \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(z \cdot \frac{t\_2}{t} + \left(b - c\right) \cdot \left(\left(t\_1 - 0.8333333333333334\right) - a\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot \left(2 \cdot a\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 98.4%
exp-prod98.4%
associate-/l*99.6%
associate--l+99.6%
metadata-eval99.6%
Simplified99.6%
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 a around inf 80.6%
Taylor expanded in c around inf 80.7%
associate-*r*80.7%
Simplified80.7%
Final simplification98.9%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
z
(/ (sqrt (+ t a)) t)
(* (+ a (- 0.8333333333333334 (/ 0.6666666666666666 t))) (- c b))))
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(z, (sqrt((t + a)) / t), ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * (c - b)))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(z, Float64(sqrt(Float64(t + a)) / t), Float64(Float64(a + Float64(0.8333333333333334 - Float64(0.6666666666666666 / t))) * Float64(c - b)))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(z * N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] / t), $MachinePrecision] + N[(N[(a + N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(z, \frac{\sqrt{t + a}}{t}, \left(a + \left(0.8333333333333334 - \frac{0.6666666666666666}{t}\right)\right) \cdot \left(c - b\right)\right)\right)}, x\right)}
\end{array}
Initial program 94.6%
Simplified98.1%
Final simplification98.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/ x (+ x (* y (exp (* c (* 2.0 a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((c * (2.0 * a)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp((c * (2.0 * a)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp((c * (2.0 * a))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * Float64(2.0 * a)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp((c * (2.0 * a))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(c * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t\_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot \left(2 \cdot a\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 98.4%
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 a around inf 80.6%
Taylor expanded in c around inf 80.7%
associate-*r*80.7%
Simplified80.7%
Final simplification97.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 1e-299)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (- 0.8333333333333334 (/ 0.6666666666666666 t)) (- c b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1e-299) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((0.8333333333333334 - (0.6666666666666666 / t)) * (c - b)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 1d-299) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((0.8333333333333334d0 - (0.6666666666666666d0 / t)) * (c - b)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1e-299) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((0.8333333333333334 - (0.6666666666666666 / t)) * (c - b)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1e-299: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((0.8333333333333334 - (0.6666666666666666 / t)) * (c - b))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1e-299) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(0.8333333333333334 - Float64(0.6666666666666666 / t)) * Float64(c - b)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 1e-299) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); else tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((0.8333333333333334 - (0.6666666666666666 / t)) * (c - b))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 1e-299], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 10^{-299}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(0.8333333333333334 - \frac{0.6666666666666666}{t}\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 9.99999999999999992e-300Initial program 89.3%
Taylor expanded in t around 0 92.6%
if 9.99999999999999992e-300 < t Initial program 96.4%
Taylor expanded in a around 0 84.7%
*-commutative84.7%
*-commutative84.7%
associate-*r/84.7%
metadata-eval84.7%
Simplified84.7%
Final simplification86.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 2.35e-178)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 0.64)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/ x (+ x (* y (exp (* 2.0 (* (- b c) -0.8333333333333334)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2.35e-178) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 0.64) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 2.35d-178) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 0.64d0) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * (-0.8333333333333334d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2.35e-178) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 0.64) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * -0.8333333333333334)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 2.35e-178: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 0.64: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * -0.8333333333333334))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 2.35e-178) 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 <= 0.64) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * -0.8333333333333334)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 2.35e-178) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 0.64) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 2.35e-178], 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, 0.64], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * -0.8333333333333334), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.35 \cdot 10^{-178}:\\
\;\;\;\;\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 0.64:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot -0.8333333333333334\right)}}\\
\end{array}
\end{array}
if t < 2.35e-178Initial program 91.1%
Taylor expanded in t around 0 91.2%
if 2.35e-178 < t < 0.640000000000000013Initial program 98.2%
Taylor expanded in b around inf 75.3%
associate-*r/75.3%
metadata-eval75.3%
+-commutative75.3%
Simplified75.3%
if 0.640000000000000013 < t Initial program 95.6%
Taylor expanded in a around 0 87.9%
*-commutative87.9%
*-commutative87.9%
associate-*r/87.9%
metadata-eval87.9%
Simplified87.9%
Taylor expanded in t around inf 81.0%
*-commutative81.0%
Simplified81.0%
Final simplification83.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b))))))))
(t_2 (/ x (+ x (* y (exp (* (/ b t) 1.3333333333333333)))))))
(if (<= t -1e-198)
t_1
(if (<= t 3.5e-90)
t_2
(if (<= t 2.35e-35)
t_1
(if (<= t 0.58)
t_2
(/
x
(+ x (* y (exp (* 2.0 (* (- b c) -0.8333333333333334))))))))))))
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 t_2 = x / (x + (y * exp(((b / t) * 1.3333333333333333))));
double tmp;
if (t <= -1e-198) {
tmp = t_1;
} else if (t <= 3.5e-90) {
tmp = t_2;
} else if (t <= 2.35e-35) {
tmp = t_1;
} else if (t <= 0.58) {
tmp = t_2;
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
t_2 = x / (x + (y * exp(((b / t) * 1.3333333333333333d0))))
if (t <= (-1d-198)) then
tmp = t_1
else if (t <= 3.5d-90) then
tmp = t_2
else if (t <= 2.35d-35) then
tmp = t_1
else if (t <= 0.58d0) then
tmp = t_2
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * (-0.8333333333333334d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double t_2 = x / (x + (y * Math.exp(((b / t) * 1.3333333333333333))));
double tmp;
if (t <= -1e-198) {
tmp = t_1;
} else if (t <= 3.5e-90) {
tmp = t_2;
} else if (t <= 2.35e-35) {
tmp = t_1;
} else if (t <= 0.58) {
tmp = t_2;
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * -0.8333333333333334)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) t_2 = x / (x + (y * math.exp(((b / t) * 1.3333333333333333)))) tmp = 0 if t <= -1e-198: tmp = t_1 elif t <= 3.5e-90: tmp = t_2 elif t <= 2.35e-35: tmp = t_1 elif t <= 0.58: tmp = t_2 else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * -0.8333333333333334))))) 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))))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b / t) * 1.3333333333333333))))) tmp = 0.0 if (t <= -1e-198) tmp = t_1; elseif (t <= 3.5e-90) tmp = t_2; elseif (t <= 2.35e-35) tmp = t_1; elseif (t <= 0.58) tmp = t_2; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * -0.8333333333333334)))))); 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)))))); t_2 = x / (x + (y * exp(((b / t) * 1.3333333333333333)))); tmp = 0.0; if (t <= -1e-198) tmp = t_1; elseif (t <= 3.5e-90) tmp = t_2; elseif (t <= 2.35e-35) tmp = t_1; elseif (t <= 0.58) tmp = t_2; else tmp = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334))))); 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]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(N[(b / t), $MachinePrecision] * 1.3333333333333333), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1e-198], t$95$1, If[LessEqual[t, 3.5e-90], t$95$2, If[LessEqual[t, 2.35e-35], t$95$1, If[LessEqual[t, 0.58], t$95$2, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * -0.8333333333333334), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
t_2 := \frac{x}{x + y \cdot e^{\frac{b}{t} \cdot 1.3333333333333333}}\\
\mathbf{if}\;t \leq -1 \cdot 10^{-198}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-90}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 2.35 \cdot 10^{-35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 0.58:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot -0.8333333333333334\right)}}\\
\end{array}
\end{array}
if t < -9.9999999999999991e-199 or 3.4999999999999999e-90 < t < 2.35e-35Initial program 95.3%
Taylor expanded in a around inf 80.5%
if -9.9999999999999991e-199 < t < 3.4999999999999999e-90 or 2.35e-35 < t < 0.57999999999999996Initial program 92.6%
Taylor expanded in t around 0 75.6%
Taylor expanded in b around inf 67.4%
*-commutative67.4%
Simplified67.4%
if 0.57999999999999996 < t Initial program 95.6%
Taylor expanded in a around 0 87.9%
*-commutative87.9%
*-commutative87.9%
associate-*r/87.9%
metadata-eval87.9%
Simplified87.9%
Taylor expanded in t around inf 81.0%
*-commutative81.0%
Simplified81.0%
Final simplification76.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -2e+47)
(/ x (* y (exp (* (- b c) -1.6666666666666667))))
(if (<= (- b c) 5e-31)
(/ x (+ x (* y (exp (* (* a b) -2.0)))))
(if (<= (- b c) 2e+104)
(/ x (+ x (* y (exp (* -1.3333333333333333 (/ c t))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -2e+47) {
tmp = x / (y * exp(((b - c) * -1.6666666666666667)));
} else if ((b - c) <= 5e-31) {
tmp = x / (x + (y * exp(((a * b) * -2.0))));
} else if ((b - c) <= 2e+104) {
tmp = x / (x + (y * exp((-1.3333333333333333 * (c / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= (-2d+47)) then
tmp = x / (y * exp(((b - c) * (-1.6666666666666667d0))))
else if ((b - c) <= 5d-31) then
tmp = x / (x + (y * exp(((a * b) * (-2.0d0)))))
else if ((b - c) <= 2d+104) then
tmp = x / (x + (y * exp(((-1.3333333333333333d0) * (c / t)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -2e+47) {
tmp = x / (y * Math.exp(((b - c) * -1.6666666666666667)));
} else if ((b - c) <= 5e-31) {
tmp = x / (x + (y * Math.exp(((a * b) * -2.0))));
} else if ((b - c) <= 2e+104) {
tmp = x / (x + (y * Math.exp((-1.3333333333333333 * (c / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -2e+47: tmp = x / (y * math.exp(((b - c) * -1.6666666666666667))) elif (b - c) <= 5e-31: tmp = x / (x + (y * math.exp(((a * b) * -2.0)))) elif (b - c) <= 2e+104: tmp = x / (x + (y * math.exp((-1.3333333333333333 * (c / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -2e+47) tmp = Float64(x / Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667)))); elseif (Float64(b - c) <= 5e-31) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(a * b) * -2.0))))); elseif (Float64(b - c) <= 2e+104) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-1.3333333333333333 * Float64(c / t)))))); 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+47) tmp = x / (y * exp(((b - c) * -1.6666666666666667))); elseif ((b - c) <= 5e-31) tmp = x / (x + (y * exp(((a * b) * -2.0)))); elseif ((b - c) <= 2e+104) tmp = x / (x + (y * exp((-1.3333333333333333 * (c / t))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -2e+47], N[(x / N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 5e-31], N[(x / N[(x + N[(y * N[Exp[N[(N[(a * b), $MachinePrecision] * -2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 2e+104], N[(x / N[(x + N[(y * N[Exp[N[(-1.3333333333333333 * N[(c / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -2 \cdot 10^{+47}:\\
\;\;\;\;\frac{x}{y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b - c \leq 5 \cdot 10^{-31}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(a \cdot b\right) \cdot -2}}\\
\mathbf{elif}\;b - c \leq 2 \cdot 10^{+104}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-1.3333333333333333 \cdot \frac{c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -2.0000000000000001e47Initial program 93.6%
Taylor expanded in a around 0 59.6%
*-commutative59.6%
*-commutative59.6%
associate-*r/59.6%
metadata-eval59.6%
Simplified59.6%
Taylor expanded in t around inf 67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in x around 0 67.7%
if -2.0000000000000001e47 < (-.f64 b c) < 5e-31Initial program 97.5%
Taylor expanded in a around inf 67.9%
Taylor expanded in c around 0 68.2%
*-commutative68.2%
*-commutative68.2%
Simplified68.2%
if 5e-31 < (-.f64 b c) < 2e104Initial program 97.2%
Taylor expanded in t around 0 66.9%
Taylor expanded in c around inf 70.3%
if 2e104 < (-.f64 b c) Initial program 91.0%
Taylor expanded in a around 0 62.5%
*-commutative62.5%
*-commutative62.5%
associate-*r/62.5%
metadata-eval62.5%
Simplified62.5%
Taylor expanded in t around inf 78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in x around inf 78.0%
Final simplification70.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
(+ a (- 0.8333333333333334 (/ 0.6666666666666666 t)))
c))))))))
(if (<= c -1.25e-5)
t_1
(if (<= c 5e+45)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(if (<= c 4e+167)
(/ x (+ x (* y (exp (* 2.0 (* (- b c) -0.8333333333333334))))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c)))));
double tmp;
if (c <= -1.25e-5) {
tmp = t_1;
} else if (c <= 5e+45) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if (c <= 4e+167) {
tmp = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334)))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((a + (0.8333333333333334d0 - (0.6666666666666666d0 / t))) * c)))))
if (c <= (-1.25d-5)) then
tmp = t_1
else if (c <= 5d+45) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else if (c <= 4d+167) then
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * (-0.8333333333333334d0))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c)))));
double tmp;
if (c <= -1.25e-5) {
tmp = t_1;
} else if (c <= 5e+45) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if (c <= 4e+167) {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * -0.8333333333333334)))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c))))) tmp = 0 if c <= -1.25e-5: tmp = t_1 elif c <= 5e+45: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) elif c <= 4e+167: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * -0.8333333333333334))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + Float64(0.8333333333333334 - Float64(0.6666666666666666 / t))) * c)))))) tmp = 0.0 if (c <= -1.25e-5) tmp = t_1; elseif (c <= 5e+45) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); elseif (c <= 4e+167) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * -0.8333333333333334)))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c))))); tmp = 0.0; if (c <= -1.25e-5) tmp = t_1; elseif (c <= 5e+45) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); elseif (c <= 4e+167) tmp = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.25e-5], t$95$1, If[LessEqual[c, 5e+45], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4e+167], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * -0.8333333333333334), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + \left(0.8333333333333334 - \frac{0.6666666666666666}{t}\right)\right) \cdot c\right)}}\\
\mathbf{if}\;c \leq -1.25 \cdot 10^{-5}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 5 \cdot 10^{+45}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{elif}\;c \leq 4 \cdot 10^{+167}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot -0.8333333333333334\right)}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.25000000000000006e-5 or 4.0000000000000002e167 < c Initial program 93.2%
Taylor expanded in c around inf 85.9%
+-commutative85.9%
associate-*r/85.9%
metadata-eval85.9%
associate-+r-85.9%
Simplified85.9%
if -1.25000000000000006e-5 < c < 5e45Initial program 97.0%
Taylor expanded in b around inf 83.1%
associate-*r/83.1%
metadata-eval83.1%
+-commutative83.1%
Simplified83.1%
if 5e45 < c < 4.0000000000000002e167Initial program 85.9%
Taylor expanded in a around 0 52.8%
*-commutative52.8%
*-commutative52.8%
associate-*r/52.8%
metadata-eval52.8%
Simplified52.8%
Taylor expanded in t around inf 86.2%
*-commutative86.2%
Simplified86.2%
Final simplification84.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -1e-5)
(/ x (* y (exp (* (- b c) -1.6666666666666667))))
(if (<= (- b c) 2e+104)
(/ x (+ x (* y (exp (* -1.3333333333333333 (/ c t))))))
1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -1e-5) {
tmp = x / (y * exp(((b - c) * -1.6666666666666667)));
} else if ((b - c) <= 2e+104) {
tmp = x / (x + (y * exp((-1.3333333333333333 * (c / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= (-1d-5)) then
tmp = x / (y * exp(((b - c) * (-1.6666666666666667d0))))
else if ((b - c) <= 2d+104) then
tmp = x / (x + (y * exp(((-1.3333333333333333d0) * (c / t)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -1e-5) {
tmp = x / (y * Math.exp(((b - c) * -1.6666666666666667)));
} else if ((b - c) <= 2e+104) {
tmp = x / (x + (y * Math.exp((-1.3333333333333333 * (c / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -1e-5: tmp = x / (y * math.exp(((b - c) * -1.6666666666666667))) elif (b - c) <= 2e+104: tmp = x / (x + (y * math.exp((-1.3333333333333333 * (c / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -1e-5) tmp = Float64(x / Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667)))); elseif (Float64(b - c) <= 2e+104) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-1.3333333333333333 * Float64(c / t)))))); 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-5) tmp = x / (y * exp(((b - c) * -1.6666666666666667))); elseif ((b - c) <= 2e+104) tmp = x / (x + (y * exp((-1.3333333333333333 * (c / t))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -1e-5], N[(x / N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 2e+104], N[(x / N[(x + N[(y * N[Exp[N[(-1.3333333333333333 * N[(c / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -1 \cdot 10^{-5}:\\
\;\;\;\;\frac{x}{y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b - c \leq 2 \cdot 10^{+104}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-1.3333333333333333 \cdot \frac{c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -1.00000000000000008e-5Initial program 94.3%
Taylor expanded in a around 0 57.0%
*-commutative57.0%
*-commutative57.0%
associate-*r/57.0%
metadata-eval57.0%
Simplified57.0%
Taylor expanded in t around inf 66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in x around 0 66.6%
if -1.00000000000000008e-5 < (-.f64 b c) < 2e104Initial program 97.1%
Taylor expanded in t around 0 68.2%
Taylor expanded in c around inf 60.6%
if 2e104 < (-.f64 b c) Initial program 91.0%
Taylor expanded in a around 0 62.5%
*-commutative62.5%
*-commutative62.5%
associate-*r/62.5%
metadata-eval62.5%
Simplified62.5%
Taylor expanded in t around inf 78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in x around inf 78.0%
Final simplification67.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) 5e-31)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= (- b c) 2e+104)
(/ x (+ x (* y (exp (* -1.3333333333333333 (/ c t))))))
1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 5e-31) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if ((b - c) <= 2e+104) {
tmp = x / (x + (y * exp((-1.3333333333333333 * (c / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= 5d-31) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if ((b - c) <= 2d+104) then
tmp = x / (x + (y * exp(((-1.3333333333333333d0) * (c / t)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 5e-31) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if ((b - c) <= 2e+104) {
tmp = x / (x + (y * Math.exp((-1.3333333333333333 * (c / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= 5e-31: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif (b - c) <= 2e+104: tmp = x / (x + (y * math.exp((-1.3333333333333333 * (c / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= 5e-31) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (Float64(b - c) <= 2e+104) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-1.3333333333333333 * Float64(c / t)))))); 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-31) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif ((b - c) <= 2e+104) tmp = x / (x + (y * exp((-1.3333333333333333 * (c / t))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], 5e-31], 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[N[(b - c), $MachinePrecision], 2e+104], N[(x / N[(x + N[(y * N[Exp[N[(-1.3333333333333333 * N[(c / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq 5 \cdot 10^{-31}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;b - c \leq 2 \cdot 10^{+104}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-1.3333333333333333 \cdot \frac{c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < 5e-31Initial program 95.5%
Taylor expanded in a around inf 69.8%
if 5e-31 < (-.f64 b c) < 2e104Initial program 97.2%
Taylor expanded in t around 0 66.9%
Taylor expanded in c around inf 70.3%
if 2e104 < (-.f64 b c) Initial program 91.0%
Taylor expanded in a around 0 62.5%
*-commutative62.5%
*-commutative62.5%
associate-*r/62.5%
metadata-eval62.5%
Simplified62.5%
Taylor expanded in t around inf 78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in x around inf 78.0%
Final simplification72.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 0.8)
(/
x
(+
x
(*
y
(exp
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/ x (+ x (* y (exp (* 2.0 (* (- b c) -0.8333333333333334))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 0.8) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 0.8d0) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * (-0.8333333333333334d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 0.8) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * -0.8333333333333334)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 0.8: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * -0.8333333333333334))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 0.8) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * -0.8333333333333334)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 0.8) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 0.8], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * -0.8333333333333334), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 0.8:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot -0.8333333333333334\right)}}\\
\end{array}
\end{array}
if t < 0.80000000000000004Initial program 93.8%
Taylor expanded in b around inf 74.6%
associate-*r/74.6%
metadata-eval74.6%
+-commutative74.6%
Simplified74.6%
if 0.80000000000000004 < t Initial program 95.6%
Taylor expanded in a around 0 87.9%
*-commutative87.9%
*-commutative87.9%
associate-*r/87.9%
metadata-eval87.9%
Simplified87.9%
Taylor expanded in t around inf 81.0%
*-commutative81.0%
Simplified81.0%
Final simplification77.4%
(FPCore (x y z t a b c) :precision binary64 (if (<= (- b c) -1e+18) (/ x (* y (exp (* (- b c) -1.6666666666666667)))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -1e+18) {
tmp = x / (y * exp(((b - c) * -1.6666666666666667)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= (-1d+18)) then
tmp = x / (y * exp(((b - c) * (-1.6666666666666667d0))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -1e+18) {
tmp = x / (y * Math.exp(((b - c) * -1.6666666666666667)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -1e+18: tmp = x / (y * math.exp(((b - c) * -1.6666666666666667))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -1e+18) tmp = Float64(x / Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= -1e+18) tmp = x / (y * exp(((b - c) * -1.6666666666666667))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -1e+18], N[(x / N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -1 \cdot 10^{+18}:\\
\;\;\;\;\frac{x}{y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -1e18Initial program 94.1%
Taylor expanded in a around 0 56.6%
*-commutative56.6%
*-commutative56.6%
associate-*r/56.6%
metadata-eval56.6%
Simplified56.6%
Taylor expanded in t around inf 67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in x around 0 67.7%
if -1e18 < (-.f64 b c) Initial program 94.8%
Taylor expanded in a around 0 67.6%
*-commutative67.6%
*-commutative67.6%
associate-*r/67.6%
metadata-eval67.6%
Simplified67.6%
Taylor expanded in t around inf 61.7%
*-commutative61.7%
Simplified61.7%
Taylor expanded in x around inf 63.1%
Final simplification64.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -3.4e+221)
(/ x (+ x (* y (+ (* (* a b) -2.0) 1.0))))
(if (<= b -1.15e-160)
1.0
(if (<= b 3.3e-273)
(/
x
(+
x
(*
y
(+
(* 2.0 (* c (+ (- a (/ 0.6666666666666666 t)) 0.8333333333333334)))
1.0))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.4e+221) {
tmp = x / (x + (y * (((a * b) * -2.0) + 1.0)));
} else if (b <= -1.15e-160) {
tmp = 1.0;
} else if (b <= 3.3e-273) {
tmp = x / (x + (y * ((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-3.4d+221)) then
tmp = x / (x + (y * (((a * b) * (-2.0d0)) + 1.0d0)))
else if (b <= (-1.15d-160)) then
tmp = 1.0d0
else if (b <= 3.3d-273) then
tmp = x / (x + (y * ((2.0d0 * (c * ((a - (0.6666666666666666d0 / t)) + 0.8333333333333334d0))) + 1.0d0)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.4e+221) {
tmp = x / (x + (y * (((a * b) * -2.0) + 1.0)));
} else if (b <= -1.15e-160) {
tmp = 1.0;
} else if (b <= 3.3e-273) {
tmp = x / (x + (y * ((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -3.4e+221: tmp = x / (x + (y * (((a * b) * -2.0) + 1.0))) elif b <= -1.15e-160: tmp = 1.0 elif b <= 3.3e-273: tmp = x / (x + (y * ((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -3.4e+221) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(a * b) * -2.0) + 1.0)))); elseif (b <= -1.15e-160) tmp = 1.0; elseif (b <= 3.3e-273) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(c * Float64(Float64(a - Float64(0.6666666666666666 / t)) + 0.8333333333333334))) + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -3.4e+221) tmp = x / (x + (y * (((a * b) * -2.0) + 1.0))); elseif (b <= -1.15e-160) tmp = 1.0; elseif (b <= 3.3e-273) tmp = x / (x + (y * ((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -3.4e+221], N[(x / N[(x + N[(y * N[(N[(N[(a * b), $MachinePrecision] * -2.0), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.15e-160], 1.0, If[LessEqual[b, 3.3e-273], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(c * N[(N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.4 \cdot 10^{+221}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(a \cdot b\right) \cdot -2 + 1\right)}\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{-160}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 3.3 \cdot 10^{-273}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(c \cdot \left(\left(a - \frac{0.6666666666666666}{t}\right) + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.3999999999999998e221Initial program 93.8%
Taylor expanded in b around inf 93.9%
associate-*r/93.9%
metadata-eval93.9%
+-commutative93.9%
Simplified93.9%
Taylor expanded in b around 0 81.8%
associate-*r*81.8%
associate-*r/81.8%
metadata-eval81.8%
+-commutative81.8%
*-commutative81.8%
*-commutative81.8%
+-commutative81.8%
Simplified81.8%
Taylor expanded in a around inf 82.0%
*-commutative82.0%
Simplified82.0%
if -3.3999999999999998e221 < b < -1.14999999999999992e-160 or 3.2999999999999999e-273 < b Initial program 94.9%
Taylor expanded in a around 0 63.7%
*-commutative63.7%
*-commutative63.7%
associate-*r/63.7%
metadata-eval63.7%
Simplified63.7%
Taylor expanded in t around inf 62.9%
*-commutative62.9%
Simplified62.9%
Taylor expanded in x around inf 61.2%
if -1.14999999999999992e-160 < b < 3.2999999999999999e-273Initial program 93.5%
Taylor expanded in c around inf 83.1%
+-commutative83.1%
associate-*r/83.1%
metadata-eval83.1%
associate-+r-83.1%
Simplified83.1%
Taylor expanded in c around 0 69.5%
*-commutative69.5%
+-commutative69.5%
associate-*r/69.5%
metadata-eval69.5%
associate-+r-69.5%
*-commutative69.5%
associate-+r-69.5%
+-commutative69.5%
associate-+r-69.5%
Simplified69.5%
Final simplification64.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -3.4e+221)
(/ x (+ x (* y (+ (* (* a b) -2.0) 1.0))))
(if (<= b -3.9e-160)
1.0
(if (<= b -2.85e-307)
(/ x (+ x (* y (+ (* 2.0 (* -0.6666666666666666 (/ c t))) 1.0))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.4e+221) {
tmp = x / (x + (y * (((a * b) * -2.0) + 1.0)));
} else if (b <= -3.9e-160) {
tmp = 1.0;
} else if (b <= -2.85e-307) {
tmp = x / (x + (y * ((2.0 * (-0.6666666666666666 * (c / t))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-3.4d+221)) then
tmp = x / (x + (y * (((a * b) * (-2.0d0)) + 1.0d0)))
else if (b <= (-3.9d-160)) then
tmp = 1.0d0
else if (b <= (-2.85d-307)) then
tmp = x / (x + (y * ((2.0d0 * ((-0.6666666666666666d0) * (c / t))) + 1.0d0)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.4e+221) {
tmp = x / (x + (y * (((a * b) * -2.0) + 1.0)));
} else if (b <= -3.9e-160) {
tmp = 1.0;
} else if (b <= -2.85e-307) {
tmp = x / (x + (y * ((2.0 * (-0.6666666666666666 * (c / t))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -3.4e+221: tmp = x / (x + (y * (((a * b) * -2.0) + 1.0))) elif b <= -3.9e-160: tmp = 1.0 elif b <= -2.85e-307: tmp = x / (x + (y * ((2.0 * (-0.6666666666666666 * (c / t))) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -3.4e+221) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(a * b) * -2.0) + 1.0)))); elseif (b <= -3.9e-160) tmp = 1.0; elseif (b <= -2.85e-307) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(-0.6666666666666666 * Float64(c / t))) + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -3.4e+221) tmp = x / (x + (y * (((a * b) * -2.0) + 1.0))); elseif (b <= -3.9e-160) tmp = 1.0; elseif (b <= -2.85e-307) tmp = x / (x + (y * ((2.0 * (-0.6666666666666666 * (c / t))) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -3.4e+221], N[(x / N[(x + N[(y * N[(N[(N[(a * b), $MachinePrecision] * -2.0), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.9e-160], 1.0, If[LessEqual[b, -2.85e-307], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(-0.6666666666666666 * N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.4 \cdot 10^{+221}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(a \cdot b\right) \cdot -2 + 1\right)}\\
\mathbf{elif}\;b \leq -3.9 \cdot 10^{-160}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -2.85 \cdot 10^{-307}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(-0.6666666666666666 \cdot \frac{c}{t}\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.3999999999999998e221Initial program 93.8%
Taylor expanded in b around inf 93.9%
associate-*r/93.9%
metadata-eval93.9%
+-commutative93.9%
Simplified93.9%
Taylor expanded in b around 0 81.8%
associate-*r*81.8%
associate-*r/81.8%
metadata-eval81.8%
+-commutative81.8%
*-commutative81.8%
*-commutative81.8%
+-commutative81.8%
Simplified81.8%
Taylor expanded in a around inf 82.0%
*-commutative82.0%
Simplified82.0%
if -3.3999999999999998e221 < b < -3.89999999999999989e-160 or -2.85000000000000009e-307 < b Initial program 95.1%
Taylor expanded in a around 0 62.7%
*-commutative62.7%
*-commutative62.7%
associate-*r/62.7%
metadata-eval62.7%
Simplified62.7%
Taylor expanded in t around inf 61.6%
*-commutative61.6%
Simplified61.6%
Taylor expanded in x around inf 60.8%
if -3.89999999999999989e-160 < b < -2.85000000000000009e-307Initial program 92.2%
Taylor expanded in c around inf 84.7%
+-commutative84.7%
associate-*r/84.7%
metadata-eval84.7%
associate-+r-84.7%
Simplified84.7%
Taylor expanded in c around 0 72.3%
*-commutative72.3%
+-commutative72.3%
associate-*r/72.3%
metadata-eval72.3%
associate-+r-72.3%
*-commutative72.3%
associate-+r-72.3%
+-commutative72.3%
associate-+r-72.3%
Simplified72.3%
Taylor expanded in t around 0 67.2%
Final simplification63.1%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= b -3.4e+221) (and (not (<= b -9.2e-161)) (<= b -4e-302))) (/ x (+ x (* y (+ (* (* a b) -2.0) 1.0)))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -3.4e+221) || (!(b <= -9.2e-161) && (b <= -4e-302))) {
tmp = x / (x + (y * (((a * b) * -2.0) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b <= (-3.4d+221)) .or. (.not. (b <= (-9.2d-161))) .and. (b <= (-4d-302))) then
tmp = x / (x + (y * (((a * b) * (-2.0d0)) + 1.0d0)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -3.4e+221) || (!(b <= -9.2e-161) && (b <= -4e-302))) {
tmp = x / (x + (y * (((a * b) * -2.0) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -3.4e+221) or (not (b <= -9.2e-161) and (b <= -4e-302)): tmp = x / (x + (y * (((a * b) * -2.0) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -3.4e+221) || (!(b <= -9.2e-161) && (b <= -4e-302))) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(a * b) * -2.0) + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -3.4e+221) || (~((b <= -9.2e-161)) && (b <= -4e-302))) tmp = x / (x + (y * (((a * b) * -2.0) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -3.4e+221], And[N[Not[LessEqual[b, -9.2e-161]], $MachinePrecision], LessEqual[b, -4e-302]]], N[(x / N[(x + N[(y * N[(N[(N[(a * b), $MachinePrecision] * -2.0), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.4 \cdot 10^{+221} \lor \neg \left(b \leq -9.2 \cdot 10^{-161}\right) \land b \leq -4 \cdot 10^{-302}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(a \cdot b\right) \cdot -2 + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.3999999999999998e221 or -9.2e-161 < b < -3.9999999999999999e-302Initial program 92.7%
Taylor expanded in b around inf 68.1%
associate-*r/68.1%
metadata-eval68.1%
+-commutative68.1%
Simplified68.1%
Taylor expanded in b around 0 61.0%
associate-*r*61.0%
associate-*r/61.0%
metadata-eval61.0%
+-commutative61.0%
*-commutative61.0%
*-commutative61.0%
+-commutative61.0%
Simplified61.0%
Taylor expanded in a around inf 61.0%
*-commutative61.0%
Simplified61.0%
if -3.3999999999999998e221 < b < -9.2e-161 or -3.9999999999999999e-302 < b Initial program 95.1%
Taylor expanded in a around 0 62.7%
*-commutative62.7%
*-commutative62.7%
associate-*r/62.7%
metadata-eval62.7%
Simplified62.7%
Taylor expanded in t around inf 61.6%
*-commutative61.6%
Simplified61.6%
Taylor expanded in x around inf 60.8%
Final simplification60.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -5e+221)
(/ x (+ x (* y (+ (* (* a b) -2.0) 1.0))))
(if (<= b -2.3e-160)
1.0
(if (<= b 1.35e-269) (/ x (- x (* y (- -1.0 (* 2.0 (* a c)))))) 1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -5e+221) {
tmp = x / (x + (y * (((a * b) * -2.0) + 1.0)));
} else if (b <= -2.3e-160) {
tmp = 1.0;
} else if (b <= 1.35e-269) {
tmp = x / (x - (y * (-1.0 - (2.0 * (a * c)))));
} 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 <= (-5d+221)) then
tmp = x / (x + (y * (((a * b) * (-2.0d0)) + 1.0d0)))
else if (b <= (-2.3d-160)) then
tmp = 1.0d0
else if (b <= 1.35d-269) then
tmp = x / (x - (y * ((-1.0d0) - (2.0d0 * (a * c)))))
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 <= -5e+221) {
tmp = x / (x + (y * (((a * b) * -2.0) + 1.0)));
} else if (b <= -2.3e-160) {
tmp = 1.0;
} else if (b <= 1.35e-269) {
tmp = x / (x - (y * (-1.0 - (2.0 * (a * c)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -5e+221: tmp = x / (x + (y * (((a * b) * -2.0) + 1.0))) elif b <= -2.3e-160: tmp = 1.0 elif b <= 1.35e-269: tmp = x / (x - (y * (-1.0 - (2.0 * (a * c))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -5e+221) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(a * b) * -2.0) + 1.0)))); elseif (b <= -2.3e-160) tmp = 1.0; elseif (b <= 1.35e-269) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(2.0 * Float64(a * c)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -5e+221) tmp = x / (x + (y * (((a * b) * -2.0) + 1.0))); elseif (b <= -2.3e-160) tmp = 1.0; elseif (b <= 1.35e-269) tmp = x / (x - (y * (-1.0 - (2.0 * (a * c))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -5e+221], N[(x / N[(x + N[(y * N[(N[(N[(a * b), $MachinePrecision] * -2.0), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.3e-160], 1.0, If[LessEqual[b, 1.35e-269], N[(x / N[(x - N[(y * N[(-1.0 - N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{+221}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(a \cdot b\right) \cdot -2 + 1\right)}\\
\mathbf{elif}\;b \leq -2.3 \cdot 10^{-160}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{-269}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - 2 \cdot \left(a \cdot c\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -5.0000000000000002e221Initial program 93.8%
Taylor expanded in b around inf 93.9%
associate-*r/93.9%
metadata-eval93.9%
+-commutative93.9%
Simplified93.9%
Taylor expanded in b around 0 81.8%
associate-*r*81.8%
associate-*r/81.8%
metadata-eval81.8%
+-commutative81.8%
*-commutative81.8%
*-commutative81.8%
+-commutative81.8%
Simplified81.8%
Taylor expanded in a around inf 82.0%
*-commutative82.0%
Simplified82.0%
if -5.0000000000000002e221 < b < -2.29999999999999985e-160 or 1.35000000000000008e-269 < b Initial program 94.9%
Taylor expanded in a around 0 63.7%
*-commutative63.7%
*-commutative63.7%
associate-*r/63.7%
metadata-eval63.7%
Simplified63.7%
Taylor expanded in t around inf 62.9%
*-commutative62.9%
Simplified62.9%
Taylor expanded in x around inf 61.2%
if -2.29999999999999985e-160 < b < 1.35000000000000008e-269Initial program 93.5%
Taylor expanded in a around inf 65.1%
Taylor expanded in c around inf 63.0%
associate-*r*63.0%
Simplified63.0%
Taylor expanded in a around 0 54.8%
*-commutative54.8%
Simplified54.8%
Final simplification61.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -3e+222)
(/ x (+ x (* y (+ (* (* a b) -2.0) 1.0))))
(if (<= b -6.6e-161)
1.0
(if (<= b 9.5e-269) (/ x (+ x (+ y (* 2.0 (* a (* y c)))))) 1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3e+222) {
tmp = x / (x + (y * (((a * b) * -2.0) + 1.0)));
} else if (b <= -6.6e-161) {
tmp = 1.0;
} else if (b <= 9.5e-269) {
tmp = x / (x + (y + (2.0 * (a * (y * c)))));
} 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 <= (-3d+222)) then
tmp = x / (x + (y * (((a * b) * (-2.0d0)) + 1.0d0)))
else if (b <= (-6.6d-161)) then
tmp = 1.0d0
else if (b <= 9.5d-269) then
tmp = x / (x + (y + (2.0d0 * (a * (y * c)))))
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 <= -3e+222) {
tmp = x / (x + (y * (((a * b) * -2.0) + 1.0)));
} else if (b <= -6.6e-161) {
tmp = 1.0;
} else if (b <= 9.5e-269) {
tmp = x / (x + (y + (2.0 * (a * (y * c)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -3e+222: tmp = x / (x + (y * (((a * b) * -2.0) + 1.0))) elif b <= -6.6e-161: tmp = 1.0 elif b <= 9.5e-269: tmp = x / (x + (y + (2.0 * (a * (y * c))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -3e+222) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(a * b) * -2.0) + 1.0)))); elseif (b <= -6.6e-161) tmp = 1.0; elseif (b <= 9.5e-269) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(a * Float64(y * c)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -3e+222) tmp = x / (x + (y * (((a * b) * -2.0) + 1.0))); elseif (b <= -6.6e-161) tmp = 1.0; elseif (b <= 9.5e-269) tmp = x / (x + (y + (2.0 * (a * (y * c))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -3e+222], N[(x / N[(x + N[(y * N[(N[(N[(a * b), $MachinePrecision] * -2.0), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.6e-161], 1.0, If[LessEqual[b, 9.5e-269], N[(x / N[(x + N[(y + N[(2.0 * N[(a * N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3 \cdot 10^{+222}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(a \cdot b\right) \cdot -2 + 1\right)}\\
\mathbf{elif}\;b \leq -6.6 \cdot 10^{-161}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{-269}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(a \cdot \left(y \cdot c\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.00000000000000014e222Initial program 93.8%
Taylor expanded in b around inf 93.9%
associate-*r/93.9%
metadata-eval93.9%
+-commutative93.9%
Simplified93.9%
Taylor expanded in b around 0 81.8%
associate-*r*81.8%
associate-*r/81.8%
metadata-eval81.8%
+-commutative81.8%
*-commutative81.8%
*-commutative81.8%
+-commutative81.8%
Simplified81.8%
Taylor expanded in a around inf 82.0%
*-commutative82.0%
Simplified82.0%
if -3.00000000000000014e222 < b < -6.5999999999999997e-161 or 9.5000000000000006e-269 < b Initial program 94.9%
Taylor expanded in a around 0 63.7%
*-commutative63.7%
*-commutative63.7%
associate-*r/63.7%
metadata-eval63.7%
Simplified63.7%
Taylor expanded in t around inf 62.9%
*-commutative62.9%
Simplified62.9%
Taylor expanded in x around inf 61.2%
if -6.5999999999999997e-161 < b < 9.5000000000000006e-269Initial program 93.5%
Taylor expanded in a around inf 65.1%
Taylor expanded in c around inf 63.0%
associate-*r*63.0%
Simplified63.0%
Taylor expanded in a around 0 57.0%
Final simplification61.7%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -6.8e+221) (* -0.5 (/ (/ x a) (* y b))) (if (<= b -3.6e-160) 1.0 (if (<= b -3.4e-303) (/ x (+ x y)) 1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -6.8e+221) {
tmp = -0.5 * ((x / a) / (y * b));
} else if (b <= -3.6e-160) {
tmp = 1.0;
} else if (b <= -3.4e-303) {
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 (b <= (-6.8d+221)) then
tmp = (-0.5d0) * ((x / a) / (y * b))
else if (b <= (-3.6d-160)) then
tmp = 1.0d0
else if (b <= (-3.4d-303)) 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 (b <= -6.8e+221) {
tmp = -0.5 * ((x / a) / (y * b));
} else if (b <= -3.6e-160) {
tmp = 1.0;
} else if (b <= -3.4e-303) {
tmp = x / (x + y);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -6.8e+221: tmp = -0.5 * ((x / a) / (y * b)) elif b <= -3.6e-160: tmp = 1.0 elif b <= -3.4e-303: tmp = x / (x + y) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -6.8e+221) tmp = Float64(-0.5 * Float64(Float64(x / a) / Float64(y * b))); elseif (b <= -3.6e-160) tmp = 1.0; elseif (b <= -3.4e-303) 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 (b <= -6.8e+221) tmp = -0.5 * ((x / a) / (y * b)); elseif (b <= -3.6e-160) tmp = 1.0; elseif (b <= -3.4e-303) tmp = x / (x + y); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -6.8e+221], N[(-0.5 * N[(N[(x / a), $MachinePrecision] / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.6e-160], 1.0, If[LessEqual[b, -3.4e-303], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.8 \cdot 10^{+221}:\\
\;\;\;\;-0.5 \cdot \frac{\frac{x}{a}}{y \cdot b}\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{-160}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -3.4 \cdot 10^{-303}:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -6.7999999999999997e221Initial program 93.8%
Taylor expanded in b around inf 93.9%
associate-*r/93.9%
metadata-eval93.9%
+-commutative93.9%
Simplified93.9%
Taylor expanded in b around 0 81.8%
associate-*r*81.8%
associate-*r/81.8%
metadata-eval81.8%
+-commutative81.8%
*-commutative81.8%
*-commutative81.8%
+-commutative81.8%
Simplified81.8%
Taylor expanded in a around inf 63.6%
associate-/r*63.6%
Simplified63.6%
if -6.7999999999999997e221 < b < -3.5999999999999997e-160 or -3.4e-303 < b Initial program 95.1%
Taylor expanded in a around 0 62.7%
*-commutative62.7%
*-commutative62.7%
associate-*r/62.7%
metadata-eval62.7%
Simplified62.7%
Taylor expanded in t around inf 61.6%
*-commutative61.6%
Simplified61.6%
Taylor expanded in x around inf 60.8%
if -3.5999999999999997e-160 < b < -3.4e-303Initial program 92.2%
Taylor expanded in b around inf 57.3%
associate-*r/57.3%
metadata-eval57.3%
+-commutative57.3%
Simplified57.3%
Taylor expanded in b around 0 52.2%
Final simplification59.7%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -2.6e+222) (* 0.75 (* t (/ x (* y b)))) (if (<= b -2.75e-160) 1.0 (if (<= b -1.45e-299) (/ x (+ x y)) 1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.6e+222) {
tmp = 0.75 * (t * (x / (y * b)));
} else if (b <= -2.75e-160) {
tmp = 1.0;
} else if (b <= -1.45e-299) {
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 (b <= (-2.6d+222)) then
tmp = 0.75d0 * (t * (x / (y * b)))
else if (b <= (-2.75d-160)) then
tmp = 1.0d0
else if (b <= (-1.45d-299)) 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 (b <= -2.6e+222) {
tmp = 0.75 * (t * (x / (y * b)));
} else if (b <= -2.75e-160) {
tmp = 1.0;
} else if (b <= -1.45e-299) {
tmp = x / (x + y);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -2.6e+222: tmp = 0.75 * (t * (x / (y * b))) elif b <= -2.75e-160: tmp = 1.0 elif b <= -1.45e-299: tmp = x / (x + y) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -2.6e+222) tmp = Float64(0.75 * Float64(t * Float64(x / Float64(y * b)))); elseif (b <= -2.75e-160) tmp = 1.0; elseif (b <= -1.45e-299) 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 (b <= -2.6e+222) tmp = 0.75 * (t * (x / (y * b))); elseif (b <= -2.75e-160) tmp = 1.0; elseif (b <= -1.45e-299) tmp = x / (x + y); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -2.6e+222], N[(0.75 * N[(t * N[(x / N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.75e-160], 1.0, If[LessEqual[b, -1.45e-299], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.6 \cdot 10^{+222}:\\
\;\;\;\;0.75 \cdot \left(t \cdot \frac{x}{y \cdot b}\right)\\
\mathbf{elif}\;b \leq -2.75 \cdot 10^{-160}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -1.45 \cdot 10^{-299}:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -2.6000000000000001e222Initial program 93.8%
Taylor expanded in b around inf 93.9%
associate-*r/93.9%
metadata-eval93.9%
+-commutative93.9%
Simplified93.9%
Taylor expanded in b around 0 81.8%
associate-*r*81.8%
associate-*r/81.8%
metadata-eval81.8%
+-commutative81.8%
*-commutative81.8%
*-commutative81.8%
+-commutative81.8%
Simplified81.8%
Taylor expanded in t around 0 63.5%
associate-/l*69.6%
Simplified69.6%
if -2.6000000000000001e222 < b < -2.75e-160 or -1.45000000000000013e-299 < b Initial program 95.1%
Taylor expanded in a around 0 62.7%
*-commutative62.7%
*-commutative62.7%
associate-*r/62.7%
metadata-eval62.7%
Simplified62.7%
Taylor expanded in t around inf 61.6%
*-commutative61.6%
Simplified61.6%
Taylor expanded in x around inf 60.8%
if -2.75e-160 < b < -1.45000000000000013e-299Initial program 92.2%
Taylor expanded in b around inf 57.3%
associate-*r/57.3%
metadata-eval57.3%
+-commutative57.3%
Simplified57.3%
Taylor expanded in b around 0 52.2%
Final simplification60.1%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -1.25e+223) (/ x (* y (+ (* (* a b) -2.0) 1.0))) (if (<= b -1.12e-160) 1.0 (if (<= b -3.8e-306) (/ x (+ x y)) 1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.25e+223) {
tmp = x / (y * (((a * b) * -2.0) + 1.0));
} else if (b <= -1.12e-160) {
tmp = 1.0;
} else if (b <= -3.8e-306) {
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 (b <= (-1.25d+223)) then
tmp = x / (y * (((a * b) * (-2.0d0)) + 1.0d0))
else if (b <= (-1.12d-160)) then
tmp = 1.0d0
else if (b <= (-3.8d-306)) 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 (b <= -1.25e+223) {
tmp = x / (y * (((a * b) * -2.0) + 1.0));
} else if (b <= -1.12e-160) {
tmp = 1.0;
} else if (b <= -3.8e-306) {
tmp = x / (x + y);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -1.25e+223: tmp = x / (y * (((a * b) * -2.0) + 1.0)) elif b <= -1.12e-160: tmp = 1.0 elif b <= -3.8e-306: tmp = x / (x + y) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -1.25e+223) tmp = Float64(x / Float64(y * Float64(Float64(Float64(a * b) * -2.0) + 1.0))); elseif (b <= -1.12e-160) tmp = 1.0; elseif (b <= -3.8e-306) 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 (b <= -1.25e+223) tmp = x / (y * (((a * b) * -2.0) + 1.0)); elseif (b <= -1.12e-160) tmp = 1.0; elseif (b <= -3.8e-306) tmp = x / (x + y); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -1.25e+223], N[(x / N[(y * N[(N[(N[(a * b), $MachinePrecision] * -2.0), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.12e-160], 1.0, If[LessEqual[b, -3.8e-306], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.25 \cdot 10^{+223}:\\
\;\;\;\;\frac{x}{y \cdot \left(\left(a \cdot b\right) \cdot -2 + 1\right)}\\
\mathbf{elif}\;b \leq -1.12 \cdot 10^{-160}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -3.8 \cdot 10^{-306}:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.24999999999999996e223Initial program 93.8%
Taylor expanded in b around inf 93.9%
associate-*r/93.9%
metadata-eval93.9%
+-commutative93.9%
Simplified93.9%
Taylor expanded in b around 0 81.8%
associate-*r*81.8%
associate-*r/81.8%
metadata-eval81.8%
+-commutative81.8%
*-commutative81.8%
*-commutative81.8%
+-commutative81.8%
Simplified81.8%
Taylor expanded in a around inf 82.0%
*-commutative82.0%
Simplified82.0%
Taylor expanded in x around 0 75.9%
if -1.24999999999999996e223 < b < -1.11999999999999997e-160 or -3.8e-306 < b Initial program 95.1%
Taylor expanded in a around 0 62.7%
*-commutative62.7%
*-commutative62.7%
associate-*r/62.7%
metadata-eval62.7%
Simplified62.7%
Taylor expanded in t around inf 61.6%
*-commutative61.6%
Simplified61.6%
Taylor expanded in x around inf 60.8%
if -1.11999999999999997e-160 < b < -3.8e-306Initial program 92.2%
Taylor expanded in b around inf 57.3%
associate-*r/57.3%
metadata-eval57.3%
+-commutative57.3%
Simplified57.3%
Taylor expanded in b around 0 52.2%
Final simplification60.5%
(FPCore (x y z t a b c) :precision binary64 (if (<= x -3.1e-137) 1.0 (if (<= x 1.65e-299) (* -0.75 (* t (/ x (* y c)))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= -3.1e-137) {
tmp = 1.0;
} else if (x <= 1.65e-299) {
tmp = -0.75 * (t * (x / (y * c)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (x <= (-3.1d-137)) then
tmp = 1.0d0
else if (x <= 1.65d-299) then
tmp = (-0.75d0) * (t * (x / (y * c)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= -3.1e-137) {
tmp = 1.0;
} else if (x <= 1.65e-299) {
tmp = -0.75 * (t * (x / (y * c)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= -3.1e-137: tmp = 1.0 elif x <= 1.65e-299: tmp = -0.75 * (t * (x / (y * c))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= -3.1e-137) tmp = 1.0; elseif (x <= 1.65e-299) tmp = Float64(-0.75 * Float64(t * Float64(x / Float64(y * c)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= -3.1e-137) tmp = 1.0; elseif (x <= 1.65e-299) tmp = -0.75 * (t * (x / (y * c))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, -3.1e-137], 1.0, If[LessEqual[x, 1.65e-299], N[(-0.75 * N[(t * N[(x / N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.1 \cdot 10^{-137}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-299}:\\
\;\;\;\;-0.75 \cdot \left(t \cdot \frac{x}{y \cdot c}\right)\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -3.09999999999999978e-137 or 1.6500000000000001e-299 < x Initial program 95.4%
Taylor expanded in a around 0 62.0%
*-commutative62.0%
*-commutative62.0%
associate-*r/62.0%
metadata-eval62.0%
Simplified62.0%
Taylor expanded in t around inf 63.8%
*-commutative63.8%
Simplified63.8%
Taylor expanded in x around inf 59.5%
if -3.09999999999999978e-137 < x < 1.6500000000000001e-299Initial program 90.6%
Taylor expanded in c around inf 72.4%
+-commutative72.4%
associate-*r/72.4%
metadata-eval72.4%
associate-+r-72.4%
Simplified72.4%
Taylor expanded in c around 0 65.8%
*-commutative65.8%
+-commutative65.8%
associate-*r/65.8%
metadata-eval65.8%
associate-+r-65.8%
*-commutative65.8%
associate-+r-65.8%
+-commutative65.8%
associate-+r-65.8%
Simplified65.8%
Taylor expanded in t around 0 40.7%
associate-/l*56.2%
*-commutative56.2%
Simplified56.2%
Final simplification58.9%
(FPCore (x y z t a b c) :precision binary64 (if (<= x -1.1e-134) 1.0 (if (<= x -6.8e-306) (/ 1.0 (/ (+ x y) x)) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= -1.1e-134) {
tmp = 1.0;
} else if (x <= -6.8e-306) {
tmp = 1.0 / ((x + y) / x);
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (x <= (-1.1d-134)) then
tmp = 1.0d0
else if (x <= (-6.8d-306)) then
tmp = 1.0d0 / ((x + y) / x)
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= -1.1e-134) {
tmp = 1.0;
} else if (x <= -6.8e-306) {
tmp = 1.0 / ((x + y) / x);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= -1.1e-134: tmp = 1.0 elif x <= -6.8e-306: tmp = 1.0 / ((x + y) / x) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= -1.1e-134) tmp = 1.0; elseif (x <= -6.8e-306) tmp = Float64(1.0 / Float64(Float64(x + y) / x)); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= -1.1e-134) tmp = 1.0; elseif (x <= -6.8e-306) tmp = 1.0 / ((x + y) / x); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, -1.1e-134], 1.0, If[LessEqual[x, -6.8e-306], N[(1.0 / N[(N[(x + y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.1 \cdot 10^{-134}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq -6.8 \cdot 10^{-306}:\\
\;\;\;\;\frac{1}{\frac{x + y}{x}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -1.1e-134 or -6.7999999999999996e-306 < x Initial program 95.4%
Taylor expanded in a around 0 62.1%
*-commutative62.1%
*-commutative62.1%
associate-*r/62.1%
metadata-eval62.1%
Simplified62.1%
Taylor expanded in t around inf 63.0%
*-commutative63.0%
Simplified63.0%
Taylor expanded in x around inf 59.1%
if -1.1e-134 < x < -6.7999999999999996e-306Initial program 89.9%
Taylor expanded in b around inf 69.1%
associate-*r/69.1%
metadata-eval69.1%
+-commutative69.1%
Simplified69.1%
Taylor expanded in b around 0 46.9%
clear-num48.8%
inv-pow48.8%
+-commutative48.8%
Applied egg-rr48.8%
unpow-148.8%
Simplified48.8%
Final simplification57.6%
(FPCore (x y z t a b c) :precision binary64 (if (<= x -7.6e-135) 1.0 (if (<= x -5.5e-306) (/ x (+ x y)) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= -7.6e-135) {
tmp = 1.0;
} else if (x <= -5.5e-306) {
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 (x <= (-7.6d-135)) then
tmp = 1.0d0
else if (x <= (-5.5d-306)) 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 (x <= -7.6e-135) {
tmp = 1.0;
} else if (x <= -5.5e-306) {
tmp = x / (x + y);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= -7.6e-135: tmp = 1.0 elif x <= -5.5e-306: tmp = x / (x + y) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= -7.6e-135) tmp = 1.0; elseif (x <= -5.5e-306) 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 (x <= -7.6e-135) tmp = 1.0; elseif (x <= -5.5e-306) tmp = x / (x + y); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, -7.6e-135], 1.0, If[LessEqual[x, -5.5e-306], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.6 \cdot 10^{-135}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq -5.5 \cdot 10^{-306}:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -7.6000000000000005e-135 or -5.49999999999999992e-306 < x Initial program 95.4%
Taylor expanded in a around 0 62.1%
*-commutative62.1%
*-commutative62.1%
associate-*r/62.1%
metadata-eval62.1%
Simplified62.1%
Taylor expanded in t around inf 63.0%
*-commutative63.0%
Simplified63.0%
Taylor expanded in x around inf 59.1%
if -7.6000000000000005e-135 < x < -5.49999999999999992e-306Initial program 89.9%
Taylor expanded in b around inf 69.1%
associate-*r/69.1%
metadata-eval69.1%
+-commutative69.1%
Simplified69.1%
Taylor expanded in b around 0 46.9%
Final simplification57.3%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 94.6%
Taylor expanded in a around 0 64.0%
*-commutative64.0%
*-commutative64.0%
associate-*r/64.0%
metadata-eval64.0%
Simplified64.0%
Taylor expanded in t around inf 63.7%
*-commutative63.7%
Simplified63.7%
Taylor expanded in x around inf 54.0%
Final simplification54.0%
(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 2024039
(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)))))))))))