
(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 25 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
(if (<= t 2.4e-224)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(+
(* z (/ (sqrt (+ t a)) t))
(* (- b c) (- (- (/ 2.0 (* t 3.0)) 0.8333333333333334) a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2.4e-224) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else {
tmp = x / (x + (y * pow(exp(2.0), ((z * (sqrt((t + a)) / t)) + ((b - c) * (((2.0 / (t * 3.0)) - 0.8333333333333334) - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 2.4d-224) 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((t + a)) / t)) + ((b - c) * (((2.0d0 / (t * 3.0d0)) - 0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2.4e-224) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), ((z * (Math.sqrt((t + a)) / t)) + ((b - c) * (((2.0 / (t * 3.0)) - 0.8333333333333334) - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 2.4e-224: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) else: tmp = x / (x + (y * math.pow(math.exp(2.0), ((z * (math.sqrt((t + a)) / t)) + ((b - c) * (((2.0 / (t * 3.0)) - 0.8333333333333334) - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 2.4e-224) 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(2.0) ^ Float64(Float64(z * Float64(sqrt(Float64(t + a)) / t)) + Float64(Float64(b - c) * Float64(Float64(Float64(2.0 / Float64(t * 3.0)) - 0.8333333333333334) - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 2.4e-224) 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((t + a)) / t)) + ((b - c) * (((2.0 / (t * 3.0)) - 0.8333333333333334) - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 2.4e-224], 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[Power[N[Exp[2.0], $MachinePrecision], N[(N[(z * N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - 0.8333333333333334), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.4 \cdot 10^{-224}:\\
\;\;\;\;\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 {\left(e^{2}\right)}^{\left(z \cdot \frac{\sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\left(\frac{2}{t \cdot 3} - 0.8333333333333334\right) - a\right)\right)}}\\
\end{array}
\end{array}
if t < 2.40000000000000014e-224Initial program 84.0%
Taylor expanded in t around 0 92.3%
if 2.40000000000000014e-224 < t Initial program 92.9%
exp-prod92.9%
associate-/l*98.9%
associate--l+98.9%
metadata-eval98.9%
Simplified98.9%
Final simplification96.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 90.3%
Simplified96.5%
Final simplification96.5%
(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
(+
(* (* 2.0 b) (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))
1.0)))))))
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 * (((2.0 * b) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))) + 1.0)));
}
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 * (((2.0 * b) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))) + 1.0)));
}
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 * (((2.0 * b) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))) + 1.0))) 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 * Float64(Float64(Float64(2.0 * b) * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334))) + 1.0)))); 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 * (((2.0 * b) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))) + 1.0))); 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[(N[(N[(2.0 * b), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $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 \left(\left(2 \cdot b\right) \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right) + 1\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 97.1%
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 b around inf 62.3%
associate-*r/62.3%
metadata-eval62.3%
+-commutative62.3%
Simplified62.3%
Taylor expanded in b around 0 62.3%
associate-*r*62.3%
sub-neg62.3%
*-commutative62.3%
sub-neg62.3%
associate-*r/62.3%
metadata-eval62.3%
Simplified62.3%
Final simplification94.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(* z (sqrt (/ 1.0 t)))
(*
(- 0.8333333333333334 (/ 0.6666666666666666 t))
(- b c)))))))))
(t_2 (/ x (+ x (* y (exp (* 2.0 (* a (- c b))))))))
(t_3
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))))
(if (<= a -0.82)
t_2
(if (<= a 6e-115)
t_1
(if (<= a 1.4e-23)
t_3
(if (<= a 0.00023) t_1 (if (<= a 1.95e+70) t_3 t_2)))))))
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 * ((z * sqrt((1.0 / t))) - ((0.8333333333333334 - (0.6666666666666666 / t)) * (b - c)))))));
double t_2 = x / (x + (y * exp((2.0 * (a * (c - b))))));
double t_3 = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
double tmp;
if (a <= -0.82) {
tmp = t_2;
} else if (a <= 6e-115) {
tmp = t_1;
} else if (a <= 1.4e-23) {
tmp = t_3;
} else if (a <= 0.00023) {
tmp = t_1;
} else if (a <= 1.95e+70) {
tmp = t_3;
} else {
tmp = t_2;
}
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) :: t_3
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) - ((0.8333333333333334d0 - (0.6666666666666666d0 / t)) * (b - c)))))))
t_2 = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
t_3 = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
if (a <= (-0.82d0)) then
tmp = t_2
else if (a <= 6d-115) then
tmp = t_1
else if (a <= 1.4d-23) then
tmp = t_3
else if (a <= 0.00023d0) then
tmp = t_1
else if (a <= 1.95d+70) then
tmp = t_3
else
tmp = t_2
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 * ((z * Math.sqrt((1.0 / t))) - ((0.8333333333333334 - (0.6666666666666666 / t)) * (b - c)))))));
double t_2 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double t_3 = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
double tmp;
if (a <= -0.82) {
tmp = t_2;
} else if (a <= 6e-115) {
tmp = t_1;
} else if (a <= 1.4e-23) {
tmp = t_3;
} else if (a <= 0.00023) {
tmp = t_1;
} else if (a <= 1.95e+70) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) - ((0.8333333333333334 - (0.6666666666666666 / t)) * (b - c))))))) t_2 = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) t_3 = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) tmp = 0 if a <= -0.82: tmp = t_2 elif a <= 6e-115: tmp = t_1 elif a <= 1.4e-23: tmp = t_3 elif a <= 0.00023: tmp = t_1 elif a <= 1.95e+70: tmp = t_3 else: tmp = t_2 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(z * sqrt(Float64(1.0 / t))) - Float64(Float64(0.8333333333333334 - Float64(0.6666666666666666 / t)) * Float64(b - c)))))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))) t_3 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))) tmp = 0.0 if (a <= -0.82) tmp = t_2; elseif (a <= 6e-115) tmp = t_1; elseif (a <= 1.4e-23) tmp = t_3; elseif (a <= 0.00023) tmp = t_1; elseif (a <= 1.95e+70) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) - ((0.8333333333333334 - (0.6666666666666666 / t)) * (b - c))))))); t_2 = x / (x + (y * exp((2.0 * (a * (c - b)))))); t_3 = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); tmp = 0.0; if (a <= -0.82) tmp = t_2; elseif (a <= 6e-115) tmp = t_1; elseif (a <= 1.4e-23) tmp = t_3; elseif (a <= 0.00023) tmp = t_1; elseif (a <= 1.95e+70) tmp = t_3; else tmp = t_2; 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[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - N[(N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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$3 = 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[a, -0.82], t$95$2, If[LessEqual[a, 6e-115], t$95$1, If[LessEqual[a, 1.4e-23], t$95$3, If[LessEqual[a, 0.00023], t$95$1, If[LessEqual[a, 1.95e+70], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \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(b - c\right)\right)}}\\
t_2 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
t_3 := \frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{if}\;a \leq -0.82:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 6 \cdot 10^{-115}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{-23}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq 0.00023:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.95 \cdot 10^{+70}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -0.819999999999999951 or 1.94999999999999987e70 < a Initial program 83.1%
Taylor expanded in a around inf 88.4%
if -0.819999999999999951 < a < 6.0000000000000003e-115 or 1.3999999999999999e-23 < a < 2.3000000000000001e-4Initial program 96.3%
Taylor expanded in a around 0 97.2%
*-commutative97.2%
*-commutative97.2%
associate-*r/97.2%
metadata-eval97.2%
Simplified97.2%
if 6.0000000000000003e-115 < a < 1.3999999999999999e-23 or 2.3000000000000001e-4 < a < 1.94999999999999987e70Initial program 91.8%
Taylor expanded in t around 0 96.0%
Final simplification93.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))))))))
(t_2
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
(+ a (- 0.8333333333333334 (/ 0.6666666666666666 t)))
c))))))))
(if (<= b -380.0)
t_1
(if (<= b 4e-245)
t_2
(if (<= b 3.8e-221)
(/ x (+ x (* y (exp (* 2.0 (* z (sqrt (/ 1.0 t))))))))
(if (<= b 0.405) t_2 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 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
double t_2 = x / (x + (y * exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c)))));
double tmp;
if (b <= -380.0) {
tmp = t_1;
} else if (b <= 4e-245) {
tmp = t_2;
} else if (b <= 3.8e-221) {
tmp = x / (x + (y * exp((2.0 * (z * sqrt((1.0 / t)))))));
} else if (b <= 0.405) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
t_2 = x / (x + (y * exp((2.0d0 * ((a + (0.8333333333333334d0 - (0.6666666666666666d0 / t))) * c)))))
if (b <= (-380.0d0)) then
tmp = t_1
else if (b <= 4d-245) then
tmp = t_2
else if (b <= 3.8d-221) then
tmp = x / (x + (y * exp((2.0d0 * (z * sqrt((1.0d0 / t)))))))
else if (b <= 0.405d0) then
tmp = t_2
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 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
double t_2 = x / (x + (y * Math.exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c)))));
double tmp;
if (b <= -380.0) {
tmp = t_1;
} else if (b <= 4e-245) {
tmp = t_2;
} else if (b <= 3.8e-221) {
tmp = x / (x + (y * Math.exp((2.0 * (z * Math.sqrt((1.0 / t)))))));
} else if (b <= 0.405) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) t_2 = x / (x + (y * math.exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c))))) tmp = 0 if b <= -380.0: tmp = t_1 elif b <= 4e-245: tmp = t_2 elif b <= 3.8e-221: tmp = x / (x + (y * math.exp((2.0 * (z * math.sqrt((1.0 / t))))))) elif b <= 0.405: tmp = t_2 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(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))) t_2 = 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 (b <= -380.0) tmp = t_1; elseif (b <= 4e-245) tmp = t_2; elseif (b <= 3.8e-221) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(z * sqrt(Float64(1.0 / t)))))))); elseif (b <= 0.405) tmp = t_2; 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 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); t_2 = x / (x + (y * exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c))))); tmp = 0.0; if (b <= -380.0) tmp = t_1; elseif (b <= 4e-245) tmp = t_2; elseif (b <= 3.8e-221) tmp = x / (x + (y * exp((2.0 * (z * sqrt((1.0 / t))))))); elseif (b <= 0.405) tmp = t_2; 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[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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[b, -380.0], t$95$1, If[LessEqual[b, 4e-245], t$95$2, If[LessEqual[b, 3.8e-221], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.405], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
t_2 := \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}\;b \leq -380:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4 \cdot 10^{-245}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{-221}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}}\right)}}\\
\mathbf{elif}\;b \leq 0.405:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -380 or 0.40500000000000003 < b Initial program 87.7%
Taylor expanded in b around inf 85.0%
associate-*r/85.0%
metadata-eval85.0%
+-commutative85.0%
Simplified85.0%
if -380 < b < 3.9999999999999997e-245 or 3.8000000000000001e-221 < b < 0.40500000000000003Initial program 92.6%
Taylor expanded in c around inf 88.5%
+-commutative88.5%
associate-*r/88.5%
metadata-eval88.5%
associate-+r-88.5%
Simplified88.5%
if 3.9999999999999997e-245 < b < 3.8000000000000001e-221Initial program 100.0%
Taylor expanded in a around 0 83.9%
*-commutative83.9%
*-commutative83.9%
associate-*r/83.9%
metadata-eval83.9%
Simplified83.9%
Taylor expanded in z around inf 100.0%
Final simplification87.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 1.8e-89)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 0.8)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* (+ a (- 0.8333333333333334 (/ 0.6666666666666666 t))) c))))))
(if (<= t 3.4e+200)
(/ x (+ x (* y (exp (* 2.0 (* (- b c) -0.8333333333333334))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
b
(- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.8e-89) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 0.8) {
tmp = x / (x + (y * exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c)))));
} else if (t <= 3.4e+200) {
tmp = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334)))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 1.8d-89) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 0.8d0) then
tmp = x / (x + (y * exp((2.0d0 * ((a + (0.8333333333333334d0 - (0.6666666666666666d0 / t))) * c)))))
else if (t <= 3.4d+200) then
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * (-0.8333333333333334d0))))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.8e-89) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 0.8) {
tmp = x / (x + (y * Math.exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c)))));
} else if (t <= 3.4e+200) {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * -0.8333333333333334)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1.8e-89: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 0.8: tmp = x / (x + (y * math.exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c))))) elif t <= 3.4e+200: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * -0.8333333333333334))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1.8e-89) 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.8) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + Float64(0.8333333333333334 - Float64(0.6666666666666666 / t))) * c)))))); elseif (t <= 3.4e+200) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * -0.8333333333333334)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 1.8e-89) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 0.8) tmp = x / (x + (y * exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c))))); elseif (t <= 3.4e+200) tmp = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334))))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 1.8e-89], 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.8], 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[t, 3.4e+200], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * -0.8333333333333334), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.8 \cdot 10^{-89}:\\
\;\;\;\;\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.8:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + \left(0.8333333333333334 - \frac{0.6666666666666666}{t}\right)\right) \cdot c\right)}}\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{+200}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot -0.8333333333333334\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if t < 1.80000000000000003e-89Initial program 87.4%
Taylor expanded in t around 0 90.3%
if 1.80000000000000003e-89 < t < 0.80000000000000004Initial program 100.0%
Taylor expanded in c around inf 87.6%
+-commutative87.6%
associate-*r/87.6%
metadata-eval87.6%
associate-+r-87.6%
Simplified87.6%
if 0.80000000000000004 < t < 3.39999999999999969e200Initial program 95.7%
Taylor expanded in a around 0 94.4%
*-commutative94.4%
*-commutative94.4%
associate-*r/94.4%
metadata-eval94.4%
Simplified94.4%
Taylor expanded in t around inf 88.8%
*-commutative88.8%
Simplified88.8%
if 3.39999999999999969e200 < t Initial program 85.2%
Taylor expanded in b around inf 83.6%
associate-*r/83.6%
metadata-eval83.6%
+-commutative83.6%
Simplified83.6%
Final simplification88.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -3.5e+76)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= (- b c) -2e+18)
1.0
(if (<= (- b c) 2e-143)
(/ x (+ x (* y (exp (* -2.0 (* a b))))))
(if (<= (- b c) 1e+169)
1.0
(if (<= (- b c) 4e+227)
(/ x (- x (* y (+ -1.0 (* 1.3333333333333333 (/ (- c b) t))))))
1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -3.5e+76) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if ((b - c) <= -2e+18) {
tmp = 1.0;
} else if ((b - c) <= 2e-143) {
tmp = x / (x + (y * exp((-2.0 * (a * b)))));
} else if ((b - c) <= 1e+169) {
tmp = 1.0;
} else if ((b - c) <= 4e+227) {
tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= (-3.5d+76)) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if ((b - c) <= (-2d+18)) then
tmp = 1.0d0
else if ((b - c) <= 2d-143) then
tmp = x / (x + (y * exp(((-2.0d0) * (a * b)))))
else if ((b - c) <= 1d+169) then
tmp = 1.0d0
else if ((b - c) <= 4d+227) then
tmp = x / (x - (y * ((-1.0d0) + (1.3333333333333333d0 * ((c - b) / t)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -3.5e+76) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if ((b - c) <= -2e+18) {
tmp = 1.0;
} else if ((b - c) <= 2e-143) {
tmp = x / (x + (y * Math.exp((-2.0 * (a * b)))));
} else if ((b - c) <= 1e+169) {
tmp = 1.0;
} else if ((b - c) <= 4e+227) {
tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -3.5e+76: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif (b - c) <= -2e+18: tmp = 1.0 elif (b - c) <= 2e-143: tmp = x / (x + (y * math.exp((-2.0 * (a * b))))) elif (b - c) <= 1e+169: tmp = 1.0 elif (b - c) <= 4e+227: tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -3.5e+76) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (Float64(b - c) <= -2e+18) tmp = 1.0; elseif (Float64(b - c) <= 2e-143) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))); elseif (Float64(b - c) <= 1e+169) tmp = 1.0; elseif (Float64(b - c) <= 4e+227) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(1.3333333333333333 * Float64(Float64(c - b) / t)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= -3.5e+76) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif ((b - c) <= -2e+18) tmp = 1.0; elseif ((b - c) <= 2e-143) tmp = x / (x + (y * exp((-2.0 * (a * b))))); elseif ((b - c) <= 1e+169) tmp = 1.0; elseif ((b - c) <= 4e+227) tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -3.5e+76], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], -2e+18], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 2e-143], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 1e+169], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 4e+227], N[(x / N[(x - N[(y * N[(-1.0 + N[(1.3333333333333333 * N[(N[(c - b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -3.5 \cdot 10^{+76}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b - c \leq -2 \cdot 10^{+18}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 2 \cdot 10^{-143}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;b - c \leq 10^{+169}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 4 \cdot 10^{+227}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 1.3333333333333333 \cdot \frac{c - b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -3.5e76Initial program 91.5%
Taylor expanded in a around 0 68.6%
*-commutative68.6%
*-commutative68.6%
associate-*r/68.6%
metadata-eval68.6%
Simplified68.6%
Taylor expanded in t around inf 70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in c around 0 63.5%
if -3.5e76 < (-.f64 b c) < -2e18 or 1.9999999999999999e-143 < (-.f64 b c) < 9.99999999999999934e168 or 4.0000000000000004e227 < (-.f64 b c) Initial program 88.0%
Taylor expanded in b around inf 67.3%
associate-*r/67.3%
metadata-eval67.3%
+-commutative67.3%
Simplified67.3%
Taylor expanded in b around 0 36.9%
associate-*r*36.9%
sub-neg36.9%
*-commutative36.9%
sub-neg36.9%
associate-*r/36.9%
metadata-eval36.9%
Simplified36.9%
Taylor expanded in x around inf 68.5%
if -2e18 < (-.f64 b c) < 1.9999999999999999e-143Initial program 97.7%
Taylor expanded in a around inf 69.6%
Taylor expanded in c around 0 71.9%
if 9.99999999999999934e168 < (-.f64 b c) < 4.0000000000000004e227Initial program 82.5%
Taylor expanded in t around 0 64.9%
Taylor expanded in a around 0 71.5%
Taylor expanded in t around inf 71.5%
Final simplification67.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= x -6.8e-110)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= x 7e-307)
1.0
(if (or (<= x 8.6e-19) (not (<= x 3.7e+216)))
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= -6.8e-110) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (x <= 7e-307) {
tmp = 1.0;
} else if ((x <= 8.6e-19) || !(x <= 3.7e+216)) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (x <= (-6.8d-110)) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (x <= 7d-307) then
tmp = 1.0d0
else if ((x <= 8.6d-19) .or. (.not. (x <= 3.7d+216))) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= -6.8e-110) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (x <= 7e-307) {
tmp = 1.0;
} else if ((x <= 8.6e-19) || !(x <= 3.7e+216)) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= -6.8e-110: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif x <= 7e-307: tmp = 1.0 elif (x <= 8.6e-19) or not (x <= 3.7e+216): tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= -6.8e-110) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (x <= 7e-307) tmp = 1.0; elseif ((x <= 8.6e-19) || !(x <= 3.7e+216)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= -6.8e-110) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (x <= 7e-307) tmp = 1.0; elseif ((x <= 8.6e-19) || ~((x <= 3.7e+216))) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, -6.8e-110], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7e-307], 1.0, If[Or[LessEqual[x, 8.6e-19], N[Not[LessEqual[x, 3.7e+216]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.8 \cdot 10^{-110}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-307}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 8.6 \cdot 10^{-19} \lor \neg \left(x \leq 3.7 \cdot 10^{+216}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -6.8000000000000002e-110Initial program 89.2%
Taylor expanded in a around 0 64.9%
*-commutative64.9%
*-commutative64.9%
associate-*r/64.9%
metadata-eval64.9%
Simplified64.9%
Taylor expanded in t around inf 67.0%
*-commutative67.0%
Simplified67.0%
Taylor expanded in c around 0 64.7%
if -6.8000000000000002e-110 < x < 7.0000000000000004e-307 or 8.6e-19 < x < 3.6999999999999999e216Initial program 92.9%
Taylor expanded in b around inf 67.9%
associate-*r/67.9%
metadata-eval67.9%
+-commutative67.9%
Simplified67.9%
Taylor expanded in b around 0 39.2%
associate-*r*39.2%
sub-neg39.2%
*-commutative39.2%
sub-neg39.2%
associate-*r/39.2%
metadata-eval39.2%
Simplified39.2%
Taylor expanded in x around inf 61.9%
if 7.0000000000000004e-307 < x < 8.6e-19 or 3.6999999999999999e216 < x Initial program 88.9%
Taylor expanded in a around 0 63.3%
*-commutative63.3%
*-commutative63.3%
associate-*r/63.3%
metadata-eval63.3%
Simplified63.3%
Taylor expanded in t around inf 73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in b around 0 70.7%
Final simplification65.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (- x (* y (+ -1.0 (* 1.3333333333333333 (/ (- c b) t))))))))
(if (<= t -1.7e-183)
1.0
(if (<= t 1.9e-265)
t_1
(if (<= t 2.5e-132)
1.0
(if (<= t 8.8e-14)
t_1
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
double tmp;
if (t <= -1.7e-183) {
tmp = 1.0;
} else if (t <= 1.9e-265) {
tmp = t_1;
} else if (t <= 2.5e-132) {
tmp = 1.0;
} else if (t <= 8.8e-14) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x - (y * ((-1.0d0) + (1.3333333333333333d0 * ((c - b) / t)))))
if (t <= (-1.7d-183)) then
tmp = 1.0d0
else if (t <= 1.9d-265) then
tmp = t_1
else if (t <= 2.5d-132) then
tmp = 1.0d0
else if (t <= 8.8d-14) then
tmp = t_1
else
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
double tmp;
if (t <= -1.7e-183) {
tmp = 1.0;
} else if (t <= 1.9e-265) {
tmp = t_1;
} else if (t <= 2.5e-132) {
tmp = 1.0;
} else if (t <= 8.8e-14) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t))))) tmp = 0 if t <= -1.7e-183: tmp = 1.0 elif t <= 1.9e-265: tmp = t_1 elif t <= 2.5e-132: tmp = 1.0 elif t <= 8.8e-14: tmp = t_1 else: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(1.3333333333333333 * Float64(Float64(c - b) / t)))))) tmp = 0.0 if (t <= -1.7e-183) tmp = 1.0; elseif (t <= 1.9e-265) tmp = t_1; elseif (t <= 2.5e-132) tmp = 1.0; elseif (t <= 8.8e-14) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t))))); tmp = 0.0; if (t <= -1.7e-183) tmp = 1.0; elseif (t <= 1.9e-265) tmp = t_1; elseif (t <= 2.5e-132) tmp = 1.0; elseif (t <= 8.8e-14) tmp = t_1; else tmp = x / (x + (y * exp((b * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x - N[(y * N[(-1.0 + N[(1.3333333333333333 * N[(N[(c - b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.7e-183], 1.0, If[LessEqual[t, 1.9e-265], t$95$1, If[LessEqual[t, 2.5e-132], 1.0, If[LessEqual[t, 8.8e-14], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x - y \cdot \left(-1 + 1.3333333333333333 \cdot \frac{c - b}{t}\right)}\\
\mathbf{if}\;t \leq -1.7 \cdot 10^{-183}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{-265}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-132}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 8.8 \cdot 10^{-14}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -1.70000000000000007e-183 or 1.8999999999999999e-265 < t < 2.5e-132Initial program 88.2%
Taylor expanded in b around inf 63.0%
associate-*r/63.0%
metadata-eval63.0%
+-commutative63.0%
Simplified63.0%
Taylor expanded in b around 0 38.7%
associate-*r*38.7%
sub-neg38.7%
*-commutative38.7%
sub-neg38.7%
associate-*r/38.7%
metadata-eval38.7%
Simplified38.7%
Taylor expanded in x around inf 65.8%
if -1.70000000000000007e-183 < t < 1.8999999999999999e-265 or 2.5e-132 < t < 8.8000000000000004e-14Initial program 90.5%
Taylor expanded in t around 0 78.0%
Taylor expanded in a around 0 83.1%
Taylor expanded in t around inf 67.5%
if 8.8000000000000004e-14 < t Initial program 91.4%
Taylor expanded in a around 0 86.5%
*-commutative86.5%
*-commutative86.5%
associate-*r/86.5%
metadata-eval86.5%
Simplified86.5%
Taylor expanded in t around inf 79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in c around 0 65.0%
Final simplification65.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 1.15e-62)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (or (<= t 4e+139) (not (<= t 3.2e+226)))
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(/ x (+ x (* y (exp (* b -1.6666666666666667))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.15e-62) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if ((t <= 4e+139) || !(t <= 3.2e+226)) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 1.15d-62) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if ((t <= 4d+139) .or. (.not. (t <= 3.2d+226))) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.15e-62) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if ((t <= 4e+139) || !(t <= 3.2e+226)) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1.15e-62: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif (t <= 4e+139) or not (t <= 3.2e+226): tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) else: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1.15e-62) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif ((t <= 4e+139) || !(t <= 3.2e+226)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 1.15e-62) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif ((t <= 4e+139) || ~((t <= 3.2e+226))) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); else tmp = x / (x + (y * exp((b * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 1.15e-62], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 4e+139], N[Not[LessEqual[t, 3.2e+226]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.15 \cdot 10^{-62}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 4 \cdot 10^{+139} \lor \neg \left(t \leq 3.2 \cdot 10^{+226}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < 1.15e-62Initial program 87.7%
Taylor expanded in t around 0 89.6%
Taylor expanded in a around 0 82.2%
if 1.15e-62 < t < 4.00000000000000013e139 or 3.19999999999999977e226 < t Initial program 90.6%
Taylor expanded in a around inf 70.3%
if 4.00000000000000013e139 < t < 3.19999999999999977e226Initial program 97.3%
Taylor expanded in a around 0 86.3%
*-commutative86.3%
*-commutative86.3%
associate-*r/86.3%
metadata-eval86.3%
Simplified86.3%
Taylor expanded in t around inf 81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in c around 0 76.3%
Final simplification76.5%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= b -35000.0) (not (<= b 0.225)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* (+ a (- 0.8333333333333334 (/ 0.6666666666666666 t))) c))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -35000.0) || !(b <= 0.225)) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b <= (-35000.0d0)) .or. (.not. (b <= 0.225d0))) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((a + (0.8333333333333334d0 - (0.6666666666666666d0 / t))) * c)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -35000.0) || !(b <= 0.225)) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -35000.0) or not (b <= 0.225): tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -35000.0) || !(b <= 0.225)) 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(a + Float64(0.8333333333333334 - Float64(0.6666666666666666 / t))) * c)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -35000.0) || ~((b <= 0.225))) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * ((a + (0.8333333333333334 - (0.6666666666666666 / t))) * c))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -35000.0], N[Not[LessEqual[b, 0.225]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -35000 \lor \neg \left(b \leq 0.225\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + \left(0.8333333333333334 - \frac{0.6666666666666666}{t}\right)\right) \cdot c\right)}}\\
\end{array}
\end{array}
if b < -35000 or 0.225000000000000006 < b Initial program 87.7%
Taylor expanded in b around inf 85.0%
associate-*r/85.0%
metadata-eval85.0%
+-commutative85.0%
Simplified85.0%
if -35000 < b < 0.225000000000000006Initial program 93.0%
Taylor expanded in c around inf 85.2%
+-commutative85.2%
associate-*r/85.2%
metadata-eval85.2%
associate-+r-85.2%
Simplified85.2%
Final simplification85.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 0.1)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 2.85e+200)
(/ x (+ x (* y (exp (* 2.0 (* (- b c) -0.8333333333333334))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 0.1) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 2.85e+200) {
tmp = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334)))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 0.1d0) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 2.85d+200) then
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * (-0.8333333333333334d0))))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 0.1) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 2.85e+200) {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * -0.8333333333333334)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 0.1: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 2.85e+200: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * -0.8333333333333334))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 0.1) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 2.85e+200) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * -0.8333333333333334)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 0.1) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 2.85e+200) tmp = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334))))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 0.1], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.85e+200], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * -0.8333333333333334), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 0.1:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 2.85 \cdot 10^{+200}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot -0.8333333333333334\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if t < 0.10000000000000001Initial program 89.6%
Taylor expanded in t around 0 81.6%
Taylor expanded in a around 0 81.2%
if 0.10000000000000001 < t < 2.85000000000000003e200Initial program 95.7%
Taylor expanded in a around 0 94.4%
*-commutative94.4%
*-commutative94.4%
associate-*r/94.4%
metadata-eval94.4%
Simplified94.4%
Taylor expanded in t around inf 88.8%
*-commutative88.8%
Simplified88.8%
if 2.85000000000000003e200 < t Initial program 85.2%
Taylor expanded in b around inf 83.6%
associate-*r/83.6%
metadata-eval83.6%
+-commutative83.6%
Simplified83.6%
Final simplification83.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -5e+194)
(/ x (+ x (- y (* 2.0 (* a (* y (- b c)))))))
(if (<= (- b c) -2e+77)
(/ x (* y (exp (* b -1.6666666666666667))))
(if (<= (- b c) -2e+18)
1.0
(if (<= (- b c) 5e-69)
(/
x
(+
x
(+
y
(*
2.0
(*
b
(* y (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(if (<= (- b c) 1e+169)
1.0
(if (<= (- b c) 4e+227)
(/ x (- x (* y (+ -1.0 (* 1.3333333333333333 (/ (- c b) 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+194) {
tmp = x / (x + (y - (2.0 * (a * (y * (b - c))))));
} else if ((b - c) <= -2e+77) {
tmp = x / (y * exp((b * -1.6666666666666667)));
} else if ((b - c) <= -2e+18) {
tmp = 1.0;
} else if ((b - c) <= 5e-69) {
tmp = x / (x + (y + (2.0 * (b * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if ((b - c) <= 1e+169) {
tmp = 1.0;
} else if ((b - c) <= 4e+227) {
tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= (-5d+194)) then
tmp = x / (x + (y - (2.0d0 * (a * (y * (b - c))))))
else if ((b - c) <= (-2d+77)) then
tmp = x / (y * exp((b * (-1.6666666666666667d0))))
else if ((b - c) <= (-2d+18)) then
tmp = 1.0d0
else if ((b - c) <= 5d-69) then
tmp = x / (x + (y + (2.0d0 * (b * (y * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else if ((b - c) <= 1d+169) then
tmp = 1.0d0
else if ((b - c) <= 4d+227) then
tmp = x / (x - (y * ((-1.0d0) + (1.3333333333333333d0 * ((c - b) / t)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -5e+194) {
tmp = x / (x + (y - (2.0 * (a * (y * (b - c))))));
} else if ((b - c) <= -2e+77) {
tmp = x / (y * Math.exp((b * -1.6666666666666667)));
} else if ((b - c) <= -2e+18) {
tmp = 1.0;
} else if ((b - c) <= 5e-69) {
tmp = x / (x + (y + (2.0 * (b * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if ((b - c) <= 1e+169) {
tmp = 1.0;
} else if ((b - c) <= 4e+227) {
tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -5e+194: tmp = x / (x + (y - (2.0 * (a * (y * (b - c)))))) elif (b - c) <= -2e+77: tmp = x / (y * math.exp((b * -1.6666666666666667))) elif (b - c) <= -2e+18: tmp = 1.0 elif (b - c) <= 5e-69: tmp = x / (x + (y + (2.0 * (b * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) elif (b - c) <= 1e+169: tmp = 1.0 elif (b - c) <= 4e+227: tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -5e+194) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(a * Float64(y * Float64(b - c))))))); elseif (Float64(b - c) <= -2e+77) tmp = Float64(x / Float64(y * exp(Float64(b * -1.6666666666666667)))); elseif (Float64(b - c) <= -2e+18) tmp = 1.0; elseif (Float64(b - c) <= 5e-69) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(b * Float64(y * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); elseif (Float64(b - c) <= 1e+169) tmp = 1.0; elseif (Float64(b - c) <= 4e+227) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(1.3333333333333333 * Float64(Float64(c - b) / t)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= -5e+194) tmp = x / (x + (y - (2.0 * (a * (y * (b - c)))))); elseif ((b - c) <= -2e+77) tmp = x / (y * exp((b * -1.6666666666666667))); elseif ((b - c) <= -2e+18) tmp = 1.0; elseif ((b - c) <= 5e-69) tmp = x / (x + (y + (2.0 * (b * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); elseif ((b - c) <= 1e+169) tmp = 1.0; elseif ((b - c) <= 4e+227) tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / 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+194], N[(x / N[(x + N[(y - N[(2.0 * N[(a * N[(y * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], -2e+77], N[(x / N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], -2e+18], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 5e-69], N[(x / N[(x + N[(y + N[(2.0 * N[(b * N[(y * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 1e+169], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 4e+227], N[(x / N[(x - N[(y * N[(-1.0 + N[(1.3333333333333333 * N[(N[(c - b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -5 \cdot 10^{+194}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(a \cdot \left(y \cdot \left(b - c\right)\right)\right)\right)}\\
\mathbf{elif}\;b - c \leq -2 \cdot 10^{+77}:\\
\;\;\;\;\frac{x}{y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b - c \leq -2 \cdot 10^{+18}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 5 \cdot 10^{-69}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(b \cdot \left(y \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)\right)\right)}\\
\mathbf{elif}\;b - c \leq 10^{+169}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 4 \cdot 10^{+227}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 1.3333333333333333 \cdot \frac{c - b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -4.99999999999999989e194Initial program 85.4%
Taylor expanded in a around inf 63.8%
Taylor expanded in a around 0 53.9%
if -4.99999999999999989e194 < (-.f64 b c) < -1.99999999999999997e77Initial program 100.0%
Taylor expanded in a around 0 67.0%
*-commutative67.0%
*-commutative67.0%
associate-*r/67.0%
metadata-eval67.0%
Simplified67.0%
Taylor expanded in t around inf 79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in c around 0 70.8%
Taylor expanded in x around 0 67.9%
if -1.99999999999999997e77 < (-.f64 b c) < -2e18 or 5.00000000000000033e-69 < (-.f64 b c) < 9.99999999999999934e168 or 4.0000000000000004e227 < (-.f64 b c) Initial program 87.3%
Taylor expanded in b around inf 65.4%
associate-*r/65.4%
metadata-eval65.4%
+-commutative65.4%
Simplified65.4%
Taylor expanded in b around 0 33.4%
associate-*r*33.4%
sub-neg33.4%
*-commutative33.4%
sub-neg33.4%
associate-*r/33.4%
metadata-eval33.4%
Simplified33.4%
Taylor expanded in x around inf 68.0%
if -2e18 < (-.f64 b c) < 5.00000000000000033e-69Initial program 98.0%
Taylor expanded in b around inf 76.4%
associate-*r/76.4%
metadata-eval76.4%
+-commutative76.4%
Simplified76.4%
Taylor expanded in b around 0 66.5%
associate-*r/66.5%
metadata-eval66.5%
Simplified66.5%
if 9.99999999999999934e168 < (-.f64 b c) < 4.0000000000000004e227Initial program 82.5%
Taylor expanded in t around 0 64.9%
Taylor expanded in a around 0 71.5%
Taylor expanded in t around inf 71.5%
Final simplification65.3%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 0.018) (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t)))))) (/ x (+ x (* y (exp (* b -1.6666666666666667)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 0.018) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 0.018d0) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 0.018) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 0.018: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) else: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 0.018) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 0.018) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); else tmp = x / (x + (y * exp((b * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 0.018], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 0.018:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < 0.0179999999999999986Initial program 89.6%
Taylor expanded in t around 0 81.6%
Taylor expanded in a around 0 81.2%
if 0.0179999999999999986 < t Initial program 91.2%
Taylor expanded in a around 0 86.2%
*-commutative86.2%
*-commutative86.2%
associate-*r/86.2%
metadata-eval86.2%
Simplified86.2%
Taylor expanded in t around inf 81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in c around 0 65.7%
Final simplification73.8%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 0.42) (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t)))))) (/ 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.42) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} 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.42d0) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
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.42) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} 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.42: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) 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.42) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(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.42) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); 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.42], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * -0.8333333333333334), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 0.42:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot -0.8333333333333334\right)}}\\
\end{array}
\end{array}
if t < 0.419999999999999984Initial program 89.6%
Taylor expanded in t around 0 81.6%
Taylor expanded in a around 0 81.2%
if 0.419999999999999984 < t Initial program 91.2%
Taylor expanded in a around 0 86.2%
*-commutative86.2%
*-commutative86.2%
associate-*r/86.2%
metadata-eval86.2%
Simplified86.2%
Taylor expanded in t around inf 81.5%
*-commutative81.5%
Simplified81.5%
Final simplification81.3%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 0.8) (/ x (+ x (* y (exp (* -1.3333333333333333 (/ c t)))))) (/ x (+ x (* y (exp (* b -1.6666666666666667)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 0.8) {
tmp = x / (x + (y * exp((-1.3333333333333333 * (c / t)))));
} else {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 0.8d0) then
tmp = x / (x + (y * exp(((-1.3333333333333333d0) * (c / t)))))
else
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 0.8) {
tmp = x / (x + (y * Math.exp((-1.3333333333333333 * (c / t)))));
} else {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 0.8: tmp = x / (x + (y * math.exp((-1.3333333333333333 * (c / t))))) else: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 0.8) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-1.3333333333333333 * Float64(c / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 0.8) tmp = x / (x + (y * exp((-1.3333333333333333 * (c / t))))); else tmp = x / (x + (y * exp((b * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 0.8], N[(x / N[(x + N[(y * N[Exp[N[(-1.3333333333333333 * N[(c / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 0.8:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-1.3333333333333333 \cdot \frac{c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < 0.80000000000000004Initial program 89.6%
Taylor expanded in t around 0 81.6%
Taylor expanded in a around 0 81.2%
Taylor expanded in b around 0 68.2%
if 0.80000000000000004 < t Initial program 91.2%
Taylor expanded in a around 0 86.2%
*-commutative86.2%
*-commutative86.2%
associate-*r/86.2%
metadata-eval86.2%
Simplified86.2%
Taylor expanded in t around inf 81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in c around 0 65.7%
Final simplification67.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/ x (+ x (* y (+ (* -2.0 (* b (+ a 0.8333333333333334))) 1.0))))))
(if (<= (- b c) -5e+77)
t_1
(if (<= (- b c) -100000.0)
1.0
(if (<= (- b c) 5e-69)
t_1
(if (<= (- b c) 1e+169)
1.0
(if (<= (- b c) 4e+227)
(/ x (- x (* y (+ -1.0 (* 1.3333333333333333 (/ (- c b) t))))))
1.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
double tmp;
if ((b - c) <= -5e+77) {
tmp = t_1;
} else if ((b - c) <= -100000.0) {
tmp = 1.0;
} else if ((b - c) <= 5e-69) {
tmp = t_1;
} else if ((b - c) <= 1e+169) {
tmp = 1.0;
} else if ((b - c) <= 4e+227) {
tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * (((-2.0d0) * (b * (a + 0.8333333333333334d0))) + 1.0d0)))
if ((b - c) <= (-5d+77)) then
tmp = t_1
else if ((b - c) <= (-100000.0d0)) then
tmp = 1.0d0
else if ((b - c) <= 5d-69) then
tmp = t_1
else if ((b - c) <= 1d+169) then
tmp = 1.0d0
else if ((b - c) <= 4d+227) then
tmp = x / (x - (y * ((-1.0d0) + (1.3333333333333333d0 * ((c - b) / t)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
double tmp;
if ((b - c) <= -5e+77) {
tmp = t_1;
} else if ((b - c) <= -100000.0) {
tmp = 1.0;
} else if ((b - c) <= 5e-69) {
tmp = t_1;
} else if ((b - c) <= 1e+169) {
tmp = 1.0;
} else if ((b - c) <= 4e+227) {
tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))) tmp = 0 if (b - c) <= -5e+77: tmp = t_1 elif (b - c) <= -100000.0: tmp = 1.0 elif (b - c) <= 5e-69: tmp = t_1 elif (b - c) <= 1e+169: tmp = 1.0 elif (b - c) <= 4e+227: tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))) + 1.0)))) tmp = 0.0 if (Float64(b - c) <= -5e+77) tmp = t_1; elseif (Float64(b - c) <= -100000.0) tmp = 1.0; elseif (Float64(b - c) <= 5e-69) tmp = t_1; elseif (Float64(b - c) <= 1e+169) tmp = 1.0; elseif (Float64(b - c) <= 4e+227) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(1.3333333333333333 * Float64(Float64(c - b) / t)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))); tmp = 0.0; if ((b - c) <= -5e+77) tmp = t_1; elseif ((b - c) <= -100000.0) tmp = 1.0; elseif ((b - c) <= 5e-69) tmp = t_1; elseif ((b - c) <= 1e+169) tmp = 1.0; elseif ((b - c) <= 4e+227) tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(b - c), $MachinePrecision], -5e+77], t$95$1, If[LessEqual[N[(b - c), $MachinePrecision], -100000.0], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 5e-69], t$95$1, If[LessEqual[N[(b - c), $MachinePrecision], 1e+169], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 4e+227], N[(x / N[(x - N[(y * N[(-1.0 + N[(1.3333333333333333 * N[(N[(c - b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{if}\;b - c \leq -5 \cdot 10^{+77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b - c \leq -100000:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 5 \cdot 10^{-69}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b - c \leq 10^{+169}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 4 \cdot 10^{+227}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 1.3333333333333333 \cdot \frac{c - b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -5.00000000000000004e77 or -1e5 < (-.f64 b c) < 5.00000000000000033e-69Initial program 93.5%
Taylor expanded in b around inf 75.6%
associate-*r/75.6%
metadata-eval75.6%
+-commutative75.6%
Simplified75.6%
Taylor expanded in b around 0 56.1%
associate-*r*56.1%
sub-neg56.1%
*-commutative56.1%
sub-neg56.1%
associate-*r/56.1%
metadata-eval56.1%
Simplified56.1%
Taylor expanded in t around inf 56.9%
if -5.00000000000000004e77 < (-.f64 b c) < -1e5 or 5.00000000000000033e-69 < (-.f64 b c) < 9.99999999999999934e168 or 4.0000000000000004e227 < (-.f64 b c) Initial program 88.1%
Taylor expanded in b around inf 65.0%
associate-*r/65.0%
metadata-eval65.0%
+-commutative65.0%
Simplified65.0%
Taylor expanded in b around 0 33.3%
associate-*r*33.3%
sub-neg33.3%
*-commutative33.3%
sub-neg33.3%
associate-*r/33.3%
metadata-eval33.3%
Simplified33.3%
Taylor expanded in x around inf 66.6%
if 9.99999999999999934e168 < (-.f64 b c) < 4.0000000000000004e227Initial program 82.5%
Taylor expanded in t around 0 64.9%
Taylor expanded in a around 0 71.5%
Taylor expanded in t around inf 71.5%
Final simplification62.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -5e+77)
(/ x (+ x (* y (+ (* -2.0 (* b (+ a 0.8333333333333334))) 1.0))))
(if (<= (- b c) -100000.0)
1.0
(if (<= (- b c) 5e-69)
(/
x
(+
x
(*
y
(+
(* (* 2.0 b) (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))
1.0))))
(if (<= (- b c) 1e+169)
1.0
(if (<= (- b c) 4e+227)
(/ x (- x (* y (+ -1.0 (* 1.3333333333333333 (/ (- c b) 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+77) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if ((b - c) <= -100000.0) {
tmp = 1.0;
} else if ((b - c) <= 5e-69) {
tmp = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))) + 1.0)));
} else if ((b - c) <= 1e+169) {
tmp = 1.0;
} else if ((b - c) <= 4e+227) {
tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= (-5d+77)) then
tmp = x / (x + (y * (((-2.0d0) * (b * (a + 0.8333333333333334d0))) + 1.0d0)))
else if ((b - c) <= (-100000.0d0)) then
tmp = 1.0d0
else if ((b - c) <= 5d-69) then
tmp = x / (x + (y * (((2.0d0 * b) * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0))) + 1.0d0)))
else if ((b - c) <= 1d+169) then
tmp = 1.0d0
else if ((b - c) <= 4d+227) then
tmp = x / (x - (y * ((-1.0d0) + (1.3333333333333333d0 * ((c - b) / t)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -5e+77) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if ((b - c) <= -100000.0) {
tmp = 1.0;
} else if ((b - c) <= 5e-69) {
tmp = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))) + 1.0)));
} else if ((b - c) <= 1e+169) {
tmp = 1.0;
} else if ((b - c) <= 4e+227) {
tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -5e+77: tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))) elif (b - c) <= -100000.0: tmp = 1.0 elif (b - c) <= 5e-69: tmp = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))) + 1.0))) elif (b - c) <= 1e+169: tmp = 1.0 elif (b - c) <= 4e+227: tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -5e+77) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))) + 1.0)))); elseif (Float64(b - c) <= -100000.0) tmp = 1.0; elseif (Float64(b - c) <= 5e-69) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(2.0 * b) * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334))) + 1.0)))); elseif (Float64(b - c) <= 1e+169) tmp = 1.0; elseif (Float64(b - c) <= 4e+227) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(1.3333333333333333 * Float64(Float64(c - b) / t)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= -5e+77) tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))); elseif ((b - c) <= -100000.0) tmp = 1.0; elseif ((b - c) <= 5e-69) tmp = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))) + 1.0))); elseif ((b - c) <= 1e+169) tmp = 1.0; elseif ((b - c) <= 4e+227) tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / 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+77], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], -100000.0], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 5e-69], N[(x / N[(x + N[(y * N[(N[(N[(2.0 * b), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 1e+169], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 4e+227], N[(x / N[(x - N[(y * N[(-1.0 + N[(1.3333333333333333 * N[(N[(c - b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -5 \cdot 10^{+77}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{elif}\;b - c \leq -100000:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 5 \cdot 10^{-69}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(2 \cdot b\right) \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{elif}\;b - c \leq 10^{+169}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 4 \cdot 10^{+227}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 1.3333333333333333 \cdot \frac{c - b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -5.00000000000000004e77Initial program 91.3%
Taylor expanded in b around inf 73.4%
associate-*r/73.4%
metadata-eval73.4%
+-commutative73.4%
Simplified73.4%
Taylor expanded in b around 0 49.4%
associate-*r*49.4%
sub-neg49.4%
*-commutative49.4%
sub-neg49.4%
associate-*r/49.4%
metadata-eval49.4%
Simplified49.4%
Taylor expanded in t around inf 50.7%
if -5.00000000000000004e77 < (-.f64 b c) < -1e5 or 5.00000000000000033e-69 < (-.f64 b c) < 9.99999999999999934e168 or 4.0000000000000004e227 < (-.f64 b c) Initial program 88.1%
Taylor expanded in b around inf 65.0%
associate-*r/65.0%
metadata-eval65.0%
+-commutative65.0%
Simplified65.0%
Taylor expanded in b around 0 33.3%
associate-*r*33.3%
sub-neg33.3%
*-commutative33.3%
sub-neg33.3%
associate-*r/33.3%
metadata-eval33.3%
Simplified33.3%
Taylor expanded in x around inf 66.6%
if -1e5 < (-.f64 b c) < 5.00000000000000033e-69Initial program 97.7%
Taylor expanded in b around inf 79.8%
associate-*r/79.8%
metadata-eval79.8%
+-commutative79.8%
Simplified79.8%
Taylor expanded in b around 0 68.5%
associate-*r*68.5%
sub-neg68.5%
*-commutative68.5%
sub-neg68.5%
associate-*r/68.5%
metadata-eval68.5%
Simplified68.5%
if 9.99999999999999934e168 < (-.f64 b c) < 4.0000000000000004e227Initial program 82.5%
Taylor expanded in t around 0 64.9%
Taylor expanded in a around 0 71.5%
Taylor expanded in t around inf 71.5%
Final simplification62.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -5e+77)
(/ x (+ x (* y (+ (* -2.0 (* b (+ a 0.8333333333333334))) 1.0))))
(if (<= (- b c) -100000.0)
1.0
(if (<= (- b c) 5e-69)
(/
x
(+
x
(+
y
(*
2.0
(*
b
(* y (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(if (<= (- b c) 1e+169)
1.0
(if (<= (- b c) 4e+227)
(/ x (- x (* y (+ -1.0 (* 1.3333333333333333 (/ (- c b) 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+77) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if ((b - c) <= -100000.0) {
tmp = 1.0;
} else if ((b - c) <= 5e-69) {
tmp = x / (x + (y + (2.0 * (b * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if ((b - c) <= 1e+169) {
tmp = 1.0;
} else if ((b - c) <= 4e+227) {
tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= (-5d+77)) then
tmp = x / (x + (y * (((-2.0d0) * (b * (a + 0.8333333333333334d0))) + 1.0d0)))
else if ((b - c) <= (-100000.0d0)) then
tmp = 1.0d0
else if ((b - c) <= 5d-69) then
tmp = x / (x + (y + (2.0d0 * (b * (y * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else if ((b - c) <= 1d+169) then
tmp = 1.0d0
else if ((b - c) <= 4d+227) then
tmp = x / (x - (y * ((-1.0d0) + (1.3333333333333333d0 * ((c - b) / t)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -5e+77) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if ((b - c) <= -100000.0) {
tmp = 1.0;
} else if ((b - c) <= 5e-69) {
tmp = x / (x + (y + (2.0 * (b * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if ((b - c) <= 1e+169) {
tmp = 1.0;
} else if ((b - c) <= 4e+227) {
tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -5e+77: tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))) elif (b - c) <= -100000.0: tmp = 1.0 elif (b - c) <= 5e-69: tmp = x / (x + (y + (2.0 * (b * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) elif (b - c) <= 1e+169: tmp = 1.0 elif (b - c) <= 4e+227: tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -5e+77) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))) + 1.0)))); elseif (Float64(b - c) <= -100000.0) tmp = 1.0; elseif (Float64(b - c) <= 5e-69) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(b * Float64(y * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); elseif (Float64(b - c) <= 1e+169) tmp = 1.0; elseif (Float64(b - c) <= 4e+227) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(1.3333333333333333 * Float64(Float64(c - b) / t)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= -5e+77) tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))); elseif ((b - c) <= -100000.0) tmp = 1.0; elseif ((b - c) <= 5e-69) tmp = x / (x + (y + (2.0 * (b * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); elseif ((b - c) <= 1e+169) tmp = 1.0; elseif ((b - c) <= 4e+227) tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / 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+77], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], -100000.0], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 5e-69], N[(x / N[(x + N[(y + N[(2.0 * N[(b * N[(y * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 1e+169], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 4e+227], N[(x / N[(x - N[(y * N[(-1.0 + N[(1.3333333333333333 * N[(N[(c - b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -5 \cdot 10^{+77}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{elif}\;b - c \leq -100000:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 5 \cdot 10^{-69}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(b \cdot \left(y \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)\right)\right)}\\
\mathbf{elif}\;b - c \leq 10^{+169}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 4 \cdot 10^{+227}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 1.3333333333333333 \cdot \frac{c - b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -5.00000000000000004e77Initial program 91.3%
Taylor expanded in b around inf 73.4%
associate-*r/73.4%
metadata-eval73.4%
+-commutative73.4%
Simplified73.4%
Taylor expanded in b around 0 49.4%
associate-*r*49.4%
sub-neg49.4%
*-commutative49.4%
sub-neg49.4%
associate-*r/49.4%
metadata-eval49.4%
Simplified49.4%
Taylor expanded in t around inf 50.7%
if -5.00000000000000004e77 < (-.f64 b c) < -1e5 or 5.00000000000000033e-69 < (-.f64 b c) < 9.99999999999999934e168 or 4.0000000000000004e227 < (-.f64 b c) Initial program 88.1%
Taylor expanded in b around inf 65.0%
associate-*r/65.0%
metadata-eval65.0%
+-commutative65.0%
Simplified65.0%
Taylor expanded in b around 0 33.3%
associate-*r*33.3%
sub-neg33.3%
*-commutative33.3%
sub-neg33.3%
associate-*r/33.3%
metadata-eval33.3%
Simplified33.3%
Taylor expanded in x around inf 66.6%
if -1e5 < (-.f64 b c) < 5.00000000000000033e-69Initial program 97.7%
Taylor expanded in b around inf 79.8%
associate-*r/79.8%
metadata-eval79.8%
+-commutative79.8%
Simplified79.8%
Taylor expanded in b around 0 68.6%
associate-*r/68.6%
metadata-eval68.6%
Simplified68.6%
if 9.99999999999999934e168 < (-.f64 b c) < 4.0000000000000004e227Initial program 82.5%
Taylor expanded in t around 0 64.9%
Taylor expanded in a around 0 71.5%
Taylor expanded in t around inf 71.5%
Final simplification62.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= x 4.3e-303)
1.0
(if (<= x 3.2e-160)
(/ x (+ x (* y (+ (* -2.0 (* b (+ a 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 (x <= 4.3e-303) {
tmp = 1.0;
} else if (x <= 3.2e-160) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 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 (x <= 4.3d-303) then
tmp = 1.0d0
else if (x <= 3.2d-160) then
tmp = x / (x + (y * (((-2.0d0) * (b * (a + 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 (x <= 4.3e-303) {
tmp = 1.0;
} else if (x <= 3.2e-160) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= 4.3e-303: tmp = 1.0 elif x <= 3.2e-160: tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= 4.3e-303) tmp = 1.0; elseif (x <= 3.2e-160) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 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 (x <= 4.3e-303) tmp = 1.0; elseif (x <= 3.2e-160) tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, 4.3e-303], 1.0, If[LessEqual[x, 3.2e-160], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 4.3 \cdot 10^{-303}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{-160}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < 4.29999999999999981e-303 or 3.20000000000000009e-160 < x Initial program 90.8%
Taylor expanded in b around inf 72.3%
associate-*r/72.3%
metadata-eval72.3%
+-commutative72.3%
Simplified72.3%
Taylor expanded in b around 0 40.1%
associate-*r*40.1%
sub-neg40.1%
*-commutative40.1%
sub-neg40.1%
associate-*r/40.1%
metadata-eval40.1%
Simplified40.1%
Taylor expanded in x around inf 55.4%
if 4.29999999999999981e-303 < x < 3.20000000000000009e-160Initial program 87.5%
Taylor expanded in b around inf 66.1%
associate-*r/66.1%
metadata-eval66.1%
+-commutative66.1%
Simplified66.1%
Taylor expanded in b around 0 70.6%
associate-*r*70.6%
sub-neg70.6%
*-commutative70.6%
sub-neg70.6%
associate-*r/70.6%
metadata-eval70.6%
Simplified70.6%
Taylor expanded in t around inf 68.2%
Final simplification57.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= x 1.02e-305)
1.0
(if (<= x 2.9e-160)
(/ x (+ x (* y (+ (* 1.3333333333333333 (/ b t)) 1.0))))
1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 1.02e-305) {
tmp = 1.0;
} else if (x <= 2.9e-160) {
tmp = x / (x + (y * ((1.3333333333333333 * (b / 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 (x <= 1.02d-305) then
tmp = 1.0d0
else if (x <= 2.9d-160) then
tmp = x / (x + (y * ((1.3333333333333333d0 * (b / 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 (x <= 1.02e-305) {
tmp = 1.0;
} else if (x <= 2.9e-160) {
tmp = x / (x + (y * ((1.3333333333333333 * (b / t)) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= 1.02e-305: tmp = 1.0 elif x <= 2.9e-160: tmp = x / (x + (y * ((1.3333333333333333 * (b / t)) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= 1.02e-305) tmp = 1.0; elseif (x <= 2.9e-160) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(1.3333333333333333 * Float64(b / 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 (x <= 1.02e-305) tmp = 1.0; elseif (x <= 2.9e-160) tmp = x / (x + (y * ((1.3333333333333333 * (b / t)) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, 1.02e-305], 1.0, If[LessEqual[x, 2.9e-160], N[(x / N[(x + N[(y * N[(N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.02 \cdot 10^{-305}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{-160}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1.3333333333333333 \cdot \frac{b}{t} + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < 1.01999999999999994e-305 or 2.8999999999999999e-160 < x Initial program 90.8%
Taylor expanded in b around inf 72.3%
associate-*r/72.3%
metadata-eval72.3%
+-commutative72.3%
Simplified72.3%
Taylor expanded in b around 0 40.1%
associate-*r*40.1%
sub-neg40.1%
*-commutative40.1%
sub-neg40.1%
associate-*r/40.1%
metadata-eval40.1%
Simplified40.1%
Taylor expanded in x around inf 55.4%
if 1.01999999999999994e-305 < x < 2.8999999999999999e-160Initial program 87.5%
Taylor expanded in b around inf 66.1%
associate-*r/66.1%
metadata-eval66.1%
+-commutative66.1%
Simplified66.1%
Taylor expanded in b around 0 70.6%
associate-*r*70.6%
sub-neg70.6%
*-commutative70.6%
sub-neg70.6%
associate-*r/70.6%
metadata-eval70.6%
Simplified70.6%
Taylor expanded in t around 0 65.5%
Final simplification57.0%
(FPCore (x y z t a b c) :precision binary64 (if (<= x 2.3e-306) 1.0 (if (<= x 3e-160) (/ x (+ x (+ y (* -2.0 (* y (* a b)))))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 2.3e-306) {
tmp = 1.0;
} else if (x <= 3e-160) {
tmp = x / (x + (y + (-2.0 * (y * (a * b)))));
} 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 <= 2.3d-306) then
tmp = 1.0d0
else if (x <= 3d-160) then
tmp = x / (x + (y + ((-2.0d0) * (y * (a * b)))))
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 <= 2.3e-306) {
tmp = 1.0;
} else if (x <= 3e-160) {
tmp = x / (x + (y + (-2.0 * (y * (a * b)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= 2.3e-306: tmp = 1.0 elif x <= 3e-160: tmp = x / (x + (y + (-2.0 * (y * (a * b))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= 2.3e-306) tmp = 1.0; elseif (x <= 3e-160) tmp = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(y * Float64(a * b)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= 2.3e-306) tmp = 1.0; elseif (x <= 3e-160) tmp = x / (x + (y + (-2.0 * (y * (a * b))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, 2.3e-306], 1.0, If[LessEqual[x, 3e-160], N[(x / N[(x + N[(y + N[(-2.0 * N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.3 \cdot 10^{-306}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 3 \cdot 10^{-160}:\\
\;\;\;\;\frac{x}{x + \left(y + -2 \cdot \left(y \cdot \left(a \cdot b\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < 2.29999999999999989e-306 or 2.99999999999999997e-160 < x Initial program 90.8%
Taylor expanded in b around inf 72.3%
associate-*r/72.3%
metadata-eval72.3%
+-commutative72.3%
Simplified72.3%
Taylor expanded in b around 0 40.1%
associate-*r*40.1%
sub-neg40.1%
*-commutative40.1%
sub-neg40.1%
associate-*r/40.1%
metadata-eval40.1%
Simplified40.1%
Taylor expanded in x around inf 55.4%
if 2.29999999999999989e-306 < x < 2.99999999999999997e-160Initial program 87.5%
Taylor expanded in a around inf 71.0%
Taylor expanded in c around 0 59.0%
Taylor expanded in a around 0 66.0%
associate-*r*66.0%
*-commutative66.0%
Simplified66.0%
Final simplification57.1%
(FPCore (x y z t a b c) :precision binary64 (if (<= x 6.8e-306) 1.0 (if (<= x 7.8e-160) (/ x (+ x (+ y (* -1.6666666666666667 (* y b))))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 6.8e-306) {
tmp = 1.0;
} else if (x <= 7.8e-160) {
tmp = x / (x + (y + (-1.6666666666666667 * (y * b))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (x <= 6.8d-306) then
tmp = 1.0d0
else if (x <= 7.8d-160) then
tmp = x / (x + (y + ((-1.6666666666666667d0) * (y * b))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (x <= 6.8e-306) {
tmp = 1.0;
} else if (x <= 7.8e-160) {
tmp = x / (x + (y + (-1.6666666666666667 * (y * b))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= 6.8e-306: tmp = 1.0 elif x <= 7.8e-160: tmp = x / (x + (y + (-1.6666666666666667 * (y * b)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= 6.8e-306) tmp = 1.0; elseif (x <= 7.8e-160) tmp = Float64(x / Float64(x + Float64(y + Float64(-1.6666666666666667 * Float64(y * b))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (x <= 6.8e-306) tmp = 1.0; elseif (x <= 7.8e-160) tmp = x / (x + (y + (-1.6666666666666667 * (y * b)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, 6.8e-306], 1.0, If[LessEqual[x, 7.8e-160], N[(x / N[(x + N[(y + N[(-1.6666666666666667 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 6.8 \cdot 10^{-306}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-160}:\\
\;\;\;\;\frac{x}{x + \left(y + -1.6666666666666667 \cdot \left(y \cdot b\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < 6.7999999999999996e-306 or 7.79999999999999979e-160 < x Initial program 90.8%
Taylor expanded in b around inf 72.3%
associate-*r/72.3%
metadata-eval72.3%
+-commutative72.3%
Simplified72.3%
Taylor expanded in b around 0 40.1%
associate-*r*40.1%
sub-neg40.1%
*-commutative40.1%
sub-neg40.1%
associate-*r/40.1%
metadata-eval40.1%
Simplified40.1%
Taylor expanded in x around inf 55.4%
if 6.7999999999999996e-306 < x < 7.79999999999999979e-160Initial program 87.5%
Taylor expanded in a around 0 57.1%
*-commutative57.1%
*-commutative57.1%
associate-*r/57.1%
metadata-eval57.1%
Simplified57.1%
Taylor expanded in t around inf 79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in c around 0 60.6%
Taylor expanded in b around 0 63.1%
Final simplification56.6%
(FPCore (x y z t a b c) :precision binary64 (if (<= x 2e-305) 1.0 (if (<= x 5.4e-106) (/ 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 <= 2e-305) {
tmp = 1.0;
} else if (x <= 5.4e-106) {
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 <= 2d-305) then
tmp = 1.0d0
else if (x <= 5.4d-106) 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 <= 2e-305) {
tmp = 1.0;
} else if (x <= 5.4e-106) {
tmp = x / (x + y);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if x <= 2e-305: tmp = 1.0 elif x <= 5.4e-106: tmp = x / (x + y) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (x <= 2e-305) tmp = 1.0; elseif (x <= 5.4e-106) 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 <= 2e-305) tmp = 1.0; elseif (x <= 5.4e-106) tmp = x / (x + y); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[x, 2e-305], 1.0, If[LessEqual[x, 5.4e-106], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2 \cdot 10^{-305}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 5.4 \cdot 10^{-106}:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < 1.99999999999999999e-305 or 5.40000000000000043e-106 < x Initial program 90.5%
Taylor expanded in b around inf 71.4%
associate-*r/71.4%
metadata-eval71.4%
+-commutative71.4%
Simplified71.4%
Taylor expanded in b around 0 40.9%
associate-*r*40.9%
sub-neg40.9%
*-commutative40.9%
sub-neg40.9%
associate-*r/40.9%
metadata-eval40.9%
Simplified40.9%
Taylor expanded in x around inf 55.3%
if 1.99999999999999999e-305 < x < 5.40000000000000043e-106Initial program 89.4%
Taylor expanded in t around 0 51.9%
Taylor expanded in t around inf 58.5%
+-commutative58.5%
Simplified58.5%
Final simplification55.9%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 90.3%
Taylor expanded in b around inf 71.3%
associate-*r/71.3%
metadata-eval71.3%
+-commutative71.3%
Simplified71.3%
Taylor expanded in b around 0 44.9%
associate-*r*44.9%
sub-neg44.9%
*-commutative44.9%
sub-neg44.9%
associate-*r/44.9%
metadata-eval44.9%
Simplified44.9%
Taylor expanded in x around inf 51.0%
Final simplification51.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 2024053
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:alt
(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)))))))))))