
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/ x (+ x (* y (exp (* 2.0 (* (/ 0.6666666666666666 t) b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((2.0 * ((0.6666666666666666 / t) * b)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((0.6666666666666666 / t) * b)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp((2.0 * ((0.6666666666666666 / t) * b))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(0.6666666666666666 / t) * b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp((2.0 * ((0.6666666666666666 / t) * b))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(0.6666666666666666 / t), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t\_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{0.6666666666666666}{t} \cdot b\right)}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 98.8%
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 80.6%
associate-*r/80.6%
metadata-eval80.6%
+-commutative80.6%
Simplified80.6%
Taylor expanded in t around 0 80.6%
Final simplification98.1%
(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.6666666666666666 t) 0.8333333333333334)) (- 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.6666666666666666 / t) - 0.8333333333333334)) * (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(Float64(0.6666666666666666 / t) - 0.8333333333333334)) * 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[(N[(0.6666666666666666 / t), $MachinePrecision] - 0.8333333333333334), $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(\frac{0.6666666666666666}{t} - 0.8333333333333334\right)\right) \cdot \left(c - b\right)\right)\right)}, x\right)}
\end{array}
Initial program 94.9%
Simplified96.9%
Final simplification96.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 2e-276)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 3e+172)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (- b c) (- (/ 0.6666666666666666 t) 0.8333333333333334))))))))
(if (<= t 3e+294)
(/
x
(+
x
(*
y
(exp
(*
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 tmp;
if (t <= 2e-276) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 3e+172) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334)))))));
} else if (t <= 3e+294) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 2d-276) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 3d+172) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((b - c) * ((0.6666666666666666d0 / t) - 0.8333333333333334d0)))))))
else if (t <= 3d+294) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2e-276) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 3e+172) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334)))))));
} else if (t <= 3e+294) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 2e-276: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 3e+172: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334))))))) elif t <= 3e+294: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 2e-276) 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 <= 3e+172) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(b - c) * Float64(Float64(0.6666666666666666 / t) - 0.8333333333333334)))))))); elseif (t <= 3e+294) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 2e-276) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 3e+172) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334))))))); elseif (t <= 3e+294) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 2e-276], 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, 3e+172], 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[(b - c), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e+294], 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], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2 \cdot 10^{-276}:\\
\;\;\;\;\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 3 \cdot 10^{+172}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(b - c\right) \cdot \left(\frac{0.6666666666666666}{t} - 0.8333333333333334\right)\right)}}\\
\mathbf{elif}\;t \leq 3 \cdot 10^{+294}:\\
\;\;\;\;\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}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if t < 2e-276Initial program 93.3%
Taylor expanded in t around 0 93.5%
if 2e-276 < t < 2.9999999999999999e172Initial program 96.5%
Taylor expanded in a around 0 91.3%
*-commutative91.3%
*-commutative91.3%
associate-*r/91.3%
metadata-eval91.3%
Simplified91.3%
if 2.9999999999999999e172 < t < 3.00000000000000006e294Initial program 91.2%
Taylor expanded in b around inf 81.0%
associate-*r/81.0%
metadata-eval81.0%
+-commutative81.0%
Simplified81.0%
if 3.00000000000000006e294 < t Initial program 100.0%
Taylor expanded in b around inf 67.7%
associate-*r/67.7%
metadata-eval67.7%
+-commutative67.7%
Simplified67.7%
Taylor expanded in b around 0 4.2%
associate-*r*4.2%
+-commutative4.2%
associate-*r/4.2%
metadata-eval4.2%
associate--r+4.2%
sub-neg4.2%
mul-1-neg4.2%
+-commutative4.2%
metadata-eval4.2%
associate-*r/4.2%
sub-neg4.2%
metadata-eval4.2%
associate-*r/4.2%
metadata-eval4.2%
+-commutative4.2%
mul-1-neg4.2%
sub-neg4.2%
Simplified4.2%
Taylor expanded in a around inf 4.1%
associate-*r*4.1%
mul-1-neg4.1%
Simplified4.1%
Taylor expanded in x around inf 100.0%
Final simplification90.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -2.3e-280)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 1.6e-8)
(/ x (+ x (* y (pow E (/ (* c -1.3333333333333333) t)))))
(if (<= t 6.4e+233)
(/ x (+ x (* y (pow E (* (* 2.0 (- b c)) -0.8333333333333334)))))
(if (<= t 3e+294)
(/
x
(+
x
(*
y
(exp
(*
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 tmp;
if (t <= -2.3e-280) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 1.6e-8) {
tmp = x / (x + (y * pow(((double) M_E), ((c * -1.3333333333333333) / t))));
} else if (t <= 6.4e+233) {
tmp = x / (x + (y * pow(((double) M_E), ((2.0 * (b - c)) * -0.8333333333333334))));
} else if (t <= 3e+294) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = 1.0;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -2.3e-280) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 1.6e-8) {
tmp = x / (x + (y * Math.pow(Math.E, ((c * -1.3333333333333333) / t))));
} else if (t <= 6.4e+233) {
tmp = x / (x + (y * Math.pow(Math.E, ((2.0 * (b - c)) * -0.8333333333333334))));
} else if (t <= 3e+294) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -2.3e-280: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 1.6e-8: tmp = x / (x + (y * math.pow(math.e, ((c * -1.3333333333333333) / t)))) elif t <= 6.4e+233: tmp = x / (x + (y * math.pow(math.e, ((2.0 * (b - c)) * -0.8333333333333334)))) elif t <= 3e+294: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -2.3e-280) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 1.6e-8) tmp = Float64(x / Float64(x + Float64(y * (exp(1) ^ Float64(Float64(c * -1.3333333333333333) / t))))); elseif (t <= 6.4e+233) tmp = Float64(x / Float64(x + Float64(y * (exp(1) ^ Float64(Float64(2.0 * Float64(b - c)) * -0.8333333333333334))))); elseif (t <= 3e+294) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -2.3e-280) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 1.6e-8) tmp = x / (x + (y * (2.71828182845904523536 ^ ((c * -1.3333333333333333) / t)))); elseif (t <= 6.4e+233) tmp = x / (x + (y * (2.71828182845904523536 ^ ((2.0 * (b - c)) * -0.8333333333333334)))); elseif (t <= 3e+294) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -2.3e-280], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.6e-8], N[(x / N[(x + N[(y * N[Power[E, N[(N[(c * -1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.4e+233], N[(x / N[(x + N[(y * N[Power[E, N[(N[(2.0 * N[(b - c), $MachinePrecision]), $MachinePrecision] * -0.8333333333333334), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e+294], 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], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.3 \cdot 10^{-280}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{-8}:\\
\;\;\;\;\frac{x}{x + y \cdot {e}^{\left(\frac{c \cdot -1.3333333333333333}{t}\right)}}\\
\mathbf{elif}\;t \leq 6.4 \cdot 10^{+233}:\\
\;\;\;\;\frac{x}{x + y \cdot {e}^{\left(\left(2 \cdot \left(b - c\right)\right) \cdot -0.8333333333333334\right)}}\\
\mathbf{elif}\;t \leq 3 \cdot 10^{+294}:\\
\;\;\;\;\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}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if t < -2.3e-280Initial program 90.9%
Taylor expanded in a around inf 91.2%
if -2.3e-280 < t < 1.6000000000000001e-8Initial program 95.6%
Taylor expanded in c around inf 72.9%
+-commutative72.9%
associate-*r/72.9%
metadata-eval72.9%
associate-+r-72.9%
Simplified72.9%
*-un-lft-identity72.9%
exp-prod72.9%
associate-*r*72.9%
associate-+r-72.9%
Applied egg-rr72.9%
exp-1-e72.9%
*-commutative72.9%
associate--l+72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in t around 0 71.8%
associate-*r/71.8%
Simplified71.8%
if 1.6000000000000001e-8 < t < 6.40000000000000036e233Initial program 96.6%
Taylor expanded in a around 0 90.0%
*-commutative90.0%
*-commutative90.0%
associate-*r/90.0%
metadata-eval90.0%
Simplified90.0%
Taylor expanded in t around inf 82.3%
*-commutative82.3%
Simplified82.3%
*-un-lft-identity82.3%
exp-prod82.4%
e-exp-182.4%
associate-*r*82.4%
Applied egg-rr82.4%
if 6.40000000000000036e233 < t < 3.00000000000000006e294Initial program 95.2%
Taylor expanded in b around inf 83.1%
associate-*r/83.1%
metadata-eval83.1%
+-commutative83.1%
Simplified83.1%
if 3.00000000000000006e294 < t Initial program 100.0%
Taylor expanded in b around inf 67.7%
associate-*r/67.7%
metadata-eval67.7%
+-commutative67.7%
Simplified67.7%
Taylor expanded in b around 0 4.2%
associate-*r*4.2%
+-commutative4.2%
associate-*r/4.2%
metadata-eval4.2%
associate--r+4.2%
sub-neg4.2%
mul-1-neg4.2%
+-commutative4.2%
metadata-eval4.2%
associate-*r/4.2%
sub-neg4.2%
metadata-eval4.2%
associate-*r/4.2%
metadata-eval4.2%
+-commutative4.2%
mul-1-neg4.2%
sub-neg4.2%
Simplified4.2%
Taylor expanded in a around inf 4.1%
associate-*r*4.1%
mul-1-neg4.1%
Simplified4.1%
Taylor expanded in x around inf 100.0%
Final simplification80.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= t -2.4e-280)
t_1
(if (<= t 1.42e-12)
(/ x (+ x (* y (pow E (/ (* c -1.3333333333333333) t)))))
(if (or (<= t 2.9e+72) (not (<= t 7.8e+164)))
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 * exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= -2.4e-280) {
tmp = t_1;
} else if (t <= 1.42e-12) {
tmp = x / (x + (y * pow(((double) M_E), ((c * -1.3333333333333333) / t))));
} else if ((t <= 2.9e+72) || !(t <= 7.8e+164)) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= -2.4e-280) {
tmp = t_1;
} else if (t <= 1.42e-12) {
tmp = x / (x + (y * Math.pow(Math.E, ((c * -1.3333333333333333) / t))));
} else if ((t <= 2.9e+72) || !(t <= 7.8e+164)) {
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 * math.exp((2.0 * (a * (c - b)))))) tmp = 0 if t <= -2.4e-280: tmp = t_1 elif t <= 1.42e-12: tmp = x / (x + (y * math.pow(math.e, ((c * -1.3333333333333333) / t)))) elif (t <= 2.9e+72) or not (t <= 7.8e+164): 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 * exp(Float64(2.0 * Float64(a * Float64(c - b))))))) tmp = 0.0 if (t <= -2.4e-280) tmp = t_1; elseif (t <= 1.42e-12) tmp = Float64(x / Float64(x + Float64(y * (exp(1) ^ Float64(Float64(c * -1.3333333333333333) / t))))); elseif ((t <= 2.9e+72) || !(t <= 7.8e+164)) 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 * exp((2.0 * (a * (c - b)))))); tmp = 0.0; if (t <= -2.4e-280) tmp = t_1; elseif (t <= 1.42e-12) tmp = x / (x + (y * (2.71828182845904523536 ^ ((c * -1.3333333333333333) / t)))); elseif ((t <= 2.9e+72) || ~((t <= 7.8e+164))) 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[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.4e-280], t$95$1, If[LessEqual[t, 1.42e-12], N[(x / N[(x + N[(y * N[Power[E, N[(N[(c * -1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 2.9e+72], N[Not[LessEqual[t, 7.8e+164]], $MachinePrecision]], 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 e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq -2.4 \cdot 10^{-280}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.42 \cdot 10^{-12}:\\
\;\;\;\;\frac{x}{x + y \cdot {e}^{\left(\frac{c \cdot -1.3333333333333333}{t}\right)}}\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{+72} \lor \neg \left(t \leq 7.8 \cdot 10^{+164}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -2.3999999999999998e-280 or 1.42e-12 < t < 2.90000000000000017e72 or 7.79999999999999971e164 < t Initial program 92.9%
Taylor expanded in a around inf 83.6%
if -2.3999999999999998e-280 < t < 1.42e-12Initial program 95.6%
Taylor expanded in c around inf 72.9%
+-commutative72.9%
associate-*r/72.9%
metadata-eval72.9%
associate-+r-72.9%
Simplified72.9%
*-un-lft-identity72.9%
exp-prod72.9%
associate-*r*72.9%
associate-+r-72.9%
Applied egg-rr72.9%
exp-1-e72.9%
*-commutative72.9%
associate--l+72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in t around 0 71.8%
associate-*r/71.8%
Simplified71.8%
if 2.90000000000000017e72 < t < 7.79999999999999971e164Initial program 100.0%
Taylor expanded in a around 0 92.7%
*-commutative92.7%
*-commutative92.7%
associate-*r/92.7%
metadata-eval92.7%
Simplified92.7%
Taylor expanded in t around inf 87.9%
*-commutative87.9%
Simplified87.9%
Taylor expanded in c around 0 68.6%
Final simplification77.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= t -3.7e-280)
t_1
(if (<= t 7.2e-10)
(/ x (+ x (* y (pow E (/ (* c -1.3333333333333333) t)))))
(if (<= t 6.2e+239)
(/ x (+ x (* y (exp (* 2.0 (* (- b c) -0.8333333333333334))))))
(if (<= t 3e+294) t_1 1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= -3.7e-280) {
tmp = t_1;
} else if (t <= 7.2e-10) {
tmp = x / (x + (y * pow(((double) M_E), ((c * -1.3333333333333333) / t))));
} else if (t <= 6.2e+239) {
tmp = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334)))));
} else if (t <= 3e+294) {
tmp = t_1;
} else {
tmp = 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 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= -3.7e-280) {
tmp = t_1;
} else if (t <= 7.2e-10) {
tmp = x / (x + (y * Math.pow(Math.E, ((c * -1.3333333333333333) / t))));
} else if (t <= 6.2e+239) {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * -0.8333333333333334)))));
} else if (t <= 3e+294) {
tmp = t_1;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) tmp = 0 if t <= -3.7e-280: tmp = t_1 elif t <= 7.2e-10: tmp = x / (x + (y * math.pow(math.e, ((c * -1.3333333333333333) / t)))) elif t <= 6.2e+239: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * -0.8333333333333334))))) elif t <= 3e+294: tmp = t_1 else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))) tmp = 0.0 if (t <= -3.7e-280) tmp = t_1; elseif (t <= 7.2e-10) tmp = Float64(x / Float64(x + Float64(y * (exp(1) ^ Float64(Float64(c * -1.3333333333333333) / t))))); elseif (t <= 6.2e+239) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * -0.8333333333333334)))))); elseif (t <= 3e+294) tmp = t_1; else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (a * (c - b)))))); tmp = 0.0; if (t <= -3.7e-280) tmp = t_1; elseif (t <= 7.2e-10) tmp = x / (x + (y * (2.71828182845904523536 ^ ((c * -1.3333333333333333) / t)))); elseif (t <= 6.2e+239) tmp = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334))))); elseif (t <= 3e+294) tmp = t_1; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.7e-280], t$95$1, If[LessEqual[t, 7.2e-10], N[(x / N[(x + N[(y * N[Power[E, N[(N[(c * -1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.2e+239], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * -0.8333333333333334), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e+294], t$95$1, 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq -3.7 \cdot 10^{-280}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 7.2 \cdot 10^{-10}:\\
\;\;\;\;\frac{x}{x + y \cdot {e}^{\left(\frac{c \cdot -1.3333333333333333}{t}\right)}}\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{+239}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot -0.8333333333333334\right)}}\\
\mathbf{elif}\;t \leq 3 \cdot 10^{+294}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if t < -3.6999999999999998e-280 or 6.20000000000000001e239 < t < 3.00000000000000006e294Initial program 91.6%
Taylor expanded in a around inf 89.8%
if -3.6999999999999998e-280 < t < 7.2e-10Initial program 95.6%
Taylor expanded in c around inf 72.9%
+-commutative72.9%
associate-*r/72.9%
metadata-eval72.9%
associate-+r-72.9%
Simplified72.9%
*-un-lft-identity72.9%
exp-prod72.9%
associate-*r*72.9%
associate-+r-72.9%
Applied egg-rr72.9%
exp-1-e72.9%
*-commutative72.9%
associate--l+72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in t around 0 71.8%
associate-*r/71.8%
Simplified71.8%
if 7.2e-10 < t < 6.20000000000000001e239Initial program 96.7%
Taylor expanded in a around 0 89.4%
*-commutative89.4%
*-commutative89.4%
associate-*r/89.4%
metadata-eval89.4%
Simplified89.4%
Taylor expanded in t around inf 82.1%
*-commutative82.1%
Simplified82.1%
if 3.00000000000000006e294 < t Initial program 100.0%
Taylor expanded in b around inf 67.7%
associate-*r/67.7%
metadata-eval67.7%
+-commutative67.7%
Simplified67.7%
Taylor expanded in b around 0 4.2%
associate-*r*4.2%
+-commutative4.2%
associate-*r/4.2%
metadata-eval4.2%
associate--r+4.2%
sub-neg4.2%
mul-1-neg4.2%
+-commutative4.2%
metadata-eval4.2%
associate-*r/4.2%
sub-neg4.2%
metadata-eval4.2%
associate-*r/4.2%
metadata-eval4.2%
+-commutative4.2%
mul-1-neg4.2%
sub-neg4.2%
Simplified4.2%
Taylor expanded in a around inf 4.1%
associate-*r*4.1%
mul-1-neg4.1%
Simplified4.1%
Taylor expanded in x around inf 100.0%
Final simplification80.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= t -2.3e-280)
t_1
(if (<= t 9e-9)
(/ x (+ x (* y (pow E (/ (* c -1.3333333333333333) t)))))
(if (<= t 6.3e+240)
(/ x (+ x (* y (pow E (* (* 2.0 (- b c)) -0.8333333333333334)))))
(if (<= t 3e+294) t_1 1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= -2.3e-280) {
tmp = t_1;
} else if (t <= 9e-9) {
tmp = x / (x + (y * pow(((double) M_E), ((c * -1.3333333333333333) / t))));
} else if (t <= 6.3e+240) {
tmp = x / (x + (y * pow(((double) M_E), ((2.0 * (b - c)) * -0.8333333333333334))));
} else if (t <= 3e+294) {
tmp = t_1;
} else {
tmp = 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 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= -2.3e-280) {
tmp = t_1;
} else if (t <= 9e-9) {
tmp = x / (x + (y * Math.pow(Math.E, ((c * -1.3333333333333333) / t))));
} else if (t <= 6.3e+240) {
tmp = x / (x + (y * Math.pow(Math.E, ((2.0 * (b - c)) * -0.8333333333333334))));
} else if (t <= 3e+294) {
tmp = t_1;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) tmp = 0 if t <= -2.3e-280: tmp = t_1 elif t <= 9e-9: tmp = x / (x + (y * math.pow(math.e, ((c * -1.3333333333333333) / t)))) elif t <= 6.3e+240: tmp = x / (x + (y * math.pow(math.e, ((2.0 * (b - c)) * -0.8333333333333334)))) elif t <= 3e+294: tmp = t_1 else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))) tmp = 0.0 if (t <= -2.3e-280) tmp = t_1; elseif (t <= 9e-9) tmp = Float64(x / Float64(x + Float64(y * (exp(1) ^ Float64(Float64(c * -1.3333333333333333) / t))))); elseif (t <= 6.3e+240) tmp = Float64(x / Float64(x + Float64(y * (exp(1) ^ Float64(Float64(2.0 * Float64(b - c)) * -0.8333333333333334))))); elseif (t <= 3e+294) tmp = t_1; else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (a * (c - b)))))); tmp = 0.0; if (t <= -2.3e-280) tmp = t_1; elseif (t <= 9e-9) tmp = x / (x + (y * (2.71828182845904523536 ^ ((c * -1.3333333333333333) / t)))); elseif (t <= 6.3e+240) tmp = x / (x + (y * (2.71828182845904523536 ^ ((2.0 * (b - c)) * -0.8333333333333334)))); elseif (t <= 3e+294) tmp = t_1; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.3e-280], t$95$1, If[LessEqual[t, 9e-9], N[(x / N[(x + N[(y * N[Power[E, N[(N[(c * -1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.3e+240], N[(x / N[(x + N[(y * N[Power[E, N[(N[(2.0 * N[(b - c), $MachinePrecision]), $MachinePrecision] * -0.8333333333333334), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e+294], t$95$1, 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq -2.3 \cdot 10^{-280}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 9 \cdot 10^{-9}:\\
\;\;\;\;\frac{x}{x + y \cdot {e}^{\left(\frac{c \cdot -1.3333333333333333}{t}\right)}}\\
\mathbf{elif}\;t \leq 6.3 \cdot 10^{+240}:\\
\;\;\;\;\frac{x}{x + y \cdot {e}^{\left(\left(2 \cdot \left(b - c\right)\right) \cdot -0.8333333333333334\right)}}\\
\mathbf{elif}\;t \leq 3 \cdot 10^{+294}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if t < -2.3e-280 or 6.2999999999999997e240 < t < 3.00000000000000006e294Initial program 91.6%
Taylor expanded in a around inf 89.8%
if -2.3e-280 < t < 8.99999999999999953e-9Initial program 95.6%
Taylor expanded in c around inf 72.9%
+-commutative72.9%
associate-*r/72.9%
metadata-eval72.9%
associate-+r-72.9%
Simplified72.9%
*-un-lft-identity72.9%
exp-prod72.9%
associate-*r*72.9%
associate-+r-72.9%
Applied egg-rr72.9%
exp-1-e72.9%
*-commutative72.9%
associate--l+72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in t around 0 71.8%
associate-*r/71.8%
Simplified71.8%
if 8.99999999999999953e-9 < t < 6.2999999999999997e240Initial program 96.7%
Taylor expanded in a around 0 89.4%
*-commutative89.4%
*-commutative89.4%
associate-*r/89.4%
metadata-eval89.4%
Simplified89.4%
Taylor expanded in t around inf 82.1%
*-commutative82.1%
Simplified82.1%
*-un-lft-identity82.1%
exp-prod82.1%
e-exp-182.1%
associate-*r*82.1%
Applied egg-rr82.1%
if 3.00000000000000006e294 < t Initial program 100.0%
Taylor expanded in b around inf 67.7%
associate-*r/67.7%
metadata-eval67.7%
+-commutative67.7%
Simplified67.7%
Taylor expanded in b around 0 4.2%
associate-*r*4.2%
+-commutative4.2%
associate-*r/4.2%
metadata-eval4.2%
associate--r+4.2%
sub-neg4.2%
mul-1-neg4.2%
+-commutative4.2%
metadata-eval4.2%
associate-*r/4.2%
sub-neg4.2%
metadata-eval4.2%
associate-*r/4.2%
metadata-eval4.2%
+-commutative4.2%
mul-1-neg4.2%
sub-neg4.2%
Simplified4.2%
Taylor expanded in a around inf 4.1%
associate-*r*4.1%
mul-1-neg4.1%
Simplified4.1%
Taylor expanded in x around inf 100.0%
Final simplification80.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -5.8e+232)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= c -3.7e+185)
(/ x (+ x (+ y (* -1.3333333333333333 (* c (/ y t))))))
(if (<= c -2.9e+96)
1.0
(if (<= c 3e-18)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(/ x (+ x (* y (exp (* c 1.6666666666666667))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -5.8e+232) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (c <= -3.7e+185) {
tmp = x / (x + (y + (-1.3333333333333333 * (c * (y / t)))));
} else if (c <= -2.9e+96) {
tmp = 1.0;
} else if (c <= 3e-18) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else {
tmp = x / (x + (y * exp((c * 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 (c <= (-5.8d+232)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (c <= (-3.7d+185)) then
tmp = x / (x + (y + ((-1.3333333333333333d0) * (c * (y / t)))))
else if (c <= (-2.9d+96)) then
tmp = 1.0d0
else if (c <= 3d-18) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else
tmp = x / (x + (y * exp((c * 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 (c <= -5.8e+232) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (c <= -3.7e+185) {
tmp = x / (x + (y + (-1.3333333333333333 * (c * (y / t)))));
} else if (c <= -2.9e+96) {
tmp = 1.0;
} else if (c <= 3e-18) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -5.8e+232: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif c <= -3.7e+185: tmp = x / (x + (y + (-1.3333333333333333 * (c * (y / t))))) elif c <= -2.9e+96: tmp = 1.0 elif c <= 3e-18: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) else: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -5.8e+232) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (c <= -3.7e+185) tmp = Float64(x / Float64(x + Float64(y + Float64(-1.3333333333333333 * Float64(c * Float64(y / t)))))); elseif (c <= -2.9e+96) tmp = 1.0; elseif (c <= 3e-18) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -5.8e+232) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (c <= -3.7e+185) tmp = x / (x + (y + (-1.3333333333333333 * (c * (y / t))))); elseif (c <= -2.9e+96) tmp = 1.0; elseif (c <= 3e-18) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); else tmp = x / (x + (y * exp((c * 1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -5.8e+232], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.7e+185], N[(x / N[(x + N[(y + N[(-1.3333333333333333 * N[(c * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.9e+96], 1.0, If[LessEqual[c, 3e-18], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -5.8 \cdot 10^{+232}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;c \leq -3.7 \cdot 10^{+185}:\\
\;\;\;\;\frac{x}{x + \left(y + -1.3333333333333333 \cdot \left(c \cdot \frac{y}{t}\right)\right)}\\
\mathbf{elif}\;c \leq -2.9 \cdot 10^{+96}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 3 \cdot 10^{-18}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if c < -5.80000000000000047e232Initial program 78.8%
Taylor expanded in a around inf 79.3%
Taylor expanded in c around inf 86.2%
*-commutative86.2%
*-commutative86.2%
Simplified86.2%
if -5.80000000000000047e232 < c < -3.6999999999999997e185Initial program 88.9%
Taylor expanded in c around inf 89.2%
+-commutative89.2%
associate-*r/89.2%
metadata-eval89.2%
associate-+r-89.2%
Simplified89.2%
*-un-lft-identity89.2%
exp-prod89.2%
associate-*r*89.2%
associate-+r-89.2%
Applied egg-rr89.2%
exp-1-e89.2%
*-commutative89.2%
associate--l+89.2%
*-commutative89.2%
Simplified89.2%
Taylor expanded in t around 0 67.7%
associate-*r/67.7%
Simplified67.7%
Taylor expanded in c around 0 62.9%
associate-/l*62.9%
log-E62.9%
*-rgt-identity62.9%
Simplified62.9%
if -3.6999999999999997e185 < c < -2.89999999999999978e96Initial program 100.0%
Taylor expanded in b around inf 34.9%
associate-*r/34.9%
metadata-eval34.9%
+-commutative34.9%
Simplified34.9%
Taylor expanded in b around 0 13.1%
associate-*r*13.1%
+-commutative13.1%
associate-*r/13.1%
metadata-eval13.1%
associate--r+13.1%
sub-neg13.1%
mul-1-neg13.1%
+-commutative13.1%
metadata-eval13.1%
associate-*r/13.1%
sub-neg13.1%
metadata-eval13.1%
associate-*r/13.1%
metadata-eval13.1%
+-commutative13.1%
mul-1-neg13.1%
sub-neg13.1%
Simplified13.1%
Taylor expanded in a around inf 7.2%
associate-*r*7.2%
mul-1-neg7.2%
Simplified7.2%
Taylor expanded in x around inf 54.4%
if -2.89999999999999978e96 < c < 2.99999999999999983e-18Initial program 96.4%
Taylor expanded in a around 0 66.1%
*-commutative66.1%
*-commutative66.1%
associate-*r/66.1%
metadata-eval66.1%
Simplified66.1%
Taylor expanded in t around inf 66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in c around 0 66.5%
if 2.99999999999999983e-18 < c Initial program 95.7%
Taylor expanded in a around 0 58.8%
*-commutative58.8%
*-commutative58.8%
associate-*r/58.8%
metadata-eval58.8%
Simplified58.8%
Taylor expanded in t around inf 70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in b around 0 66.7%
Final simplification66.6%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= b -5.6e+45) (not (<= b 5.7e+53)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/
x
(+
x
(*
y
(pow
E
(*
(- a (- (/ 0.6666666666666666 t) 0.8333333333333334))
(* 2.0 c))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -5.6e+45) || !(b <= 5.7e+53)) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * pow(((double) M_E), ((a - ((0.6666666666666666 / t) - 0.8333333333333334)) * (2.0 * c)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -5.6e+45) || !(b <= 5.7e+53)) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.pow(Math.E, ((a - ((0.6666666666666666 / t) - 0.8333333333333334)) * (2.0 * c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -5.6e+45) or not (b <= 5.7e+53): tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = x / (x + (y * math.pow(math.e, ((a - ((0.6666666666666666 / t) - 0.8333333333333334)) * (2.0 * c))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -5.6e+45) || !(b <= 5.7e+53)) 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(1) ^ Float64(Float64(a - Float64(Float64(0.6666666666666666 / t) - 0.8333333333333334)) * Float64(2.0 * c)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -5.6e+45) || ~((b <= 5.7e+53))) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (x + (y * (2.71828182845904523536 ^ ((a - ((0.6666666666666666 / t) - 0.8333333333333334)) * (2.0 * c))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -5.6e+45], N[Not[LessEqual[b, 5.7e+53]], $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[Power[E, N[(N[(a - N[(N[(0.6666666666666666 / t), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision] * N[(2.0 * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.6 \cdot 10^{+45} \lor \neg \left(b \leq 5.7 \cdot 10^{+53}\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}^{\left(\left(a - \left(\frac{0.6666666666666666}{t} - 0.8333333333333334\right)\right) \cdot \left(2 \cdot c\right)\right)}}\\
\end{array}
\end{array}
if b < -5.5999999999999999e45 or 5.70000000000000017e53 < b Initial program 92.2%
Taylor expanded in b around inf 85.7%
associate-*r/85.7%
metadata-eval85.7%
+-commutative85.7%
Simplified85.7%
if -5.5999999999999999e45 < b < 5.70000000000000017e53Initial program 97.1%
Taylor expanded in c around inf 84.6%
+-commutative84.6%
associate-*r/84.6%
metadata-eval84.6%
associate-+r-84.6%
Simplified84.6%
*-un-lft-identity84.6%
exp-prod84.6%
associate-*r*84.6%
associate-+r-84.6%
Applied egg-rr84.6%
exp-1-e84.6%
*-commutative84.6%
associate--l+84.6%
*-commutative84.6%
Simplified84.6%
Final simplification85.1%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= b -1e+45) (not (<= b 9.2e+55)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* (- a (- (/ 0.6666666666666666 t) 0.8333333333333334)) c))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -1e+45) || !(b <= 9.2e+55)) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((a - ((0.6666666666666666 / t) - 0.8333333333333334)) * 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 <= (-1d+45)) .or. (.not. (b <= 9.2d+55))) 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.6666666666666666d0 / t) - 0.8333333333333334d0)) * 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 <= -1e+45) || !(b <= 9.2e+55)) {
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.6666666666666666 / t) - 0.8333333333333334)) * c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -1e+45) or not (b <= 9.2e+55): 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.6666666666666666 / t) - 0.8333333333333334)) * c))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -1e+45) || !(b <= 9.2e+55)) 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(Float64(0.6666666666666666 / t) - 0.8333333333333334)) * c)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -1e+45) || ~((b <= 9.2e+55))) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * ((a - ((0.6666666666666666 / t) - 0.8333333333333334)) * c))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -1e+45], N[Not[LessEqual[b, 9.2e+55]], $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[(N[(0.6666666666666666 / t), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1 \cdot 10^{+45} \lor \neg \left(b \leq 9.2 \cdot 10^{+55}\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(\frac{0.6666666666666666}{t} - 0.8333333333333334\right)\right) \cdot c\right)}}\\
\end{array}
\end{array}
if b < -9.9999999999999993e44 or 9.1999999999999995e55 < b Initial program 92.2%
Taylor expanded in b around inf 85.7%
associate-*r/85.7%
metadata-eval85.7%
+-commutative85.7%
Simplified85.7%
if -9.9999999999999993e44 < b < 9.1999999999999995e55Initial program 97.1%
Taylor expanded in c around inf 84.6%
+-commutative84.6%
associate-*r/84.6%
metadata-eval84.6%
associate-+r-84.6%
Simplified84.6%
Final simplification85.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -3.6e+127)
1.0
(if (<= c 7.8e+79)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(/
x
(+
x
(*
y
(+
(* (+ a (- 0.8333333333333334 (/ 0.6666666666666666 t))) (* 2.0 c))
1.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -3.6e+127) {
tmp = 1.0;
} else if (c <= 7.8e+79) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else {
tmp = x / (x + (y * (((a + (0.8333333333333334 - (0.6666666666666666 / t))) * (2.0 * c)) + 1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-3.6d+127)) then
tmp = 1.0d0
else if (c <= 7.8d+79) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else
tmp = x / (x + (y * (((a + (0.8333333333333334d0 - (0.6666666666666666d0 / t))) * (2.0d0 * c)) + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -3.6e+127) {
tmp = 1.0;
} else if (c <= 7.8e+79) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else {
tmp = x / (x + (y * (((a + (0.8333333333333334 - (0.6666666666666666 / t))) * (2.0 * c)) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -3.6e+127: tmp = 1.0 elif c <= 7.8e+79: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) else: tmp = x / (x + (y * (((a + (0.8333333333333334 - (0.6666666666666666 / t))) * (2.0 * c)) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -3.6e+127) tmp = 1.0; elseif (c <= 7.8e+79) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); else tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(a + Float64(0.8333333333333334 - Float64(0.6666666666666666 / t))) * Float64(2.0 * c)) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -3.6e+127) tmp = 1.0; elseif (c <= 7.8e+79) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); else tmp = x / (x + (y * (((a + (0.8333333333333334 - (0.6666666666666666 / t))) * (2.0 * c)) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -3.6e+127], 1.0, If[LessEqual[c, 7.8e+79], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[(N[(N[(a + N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(2.0 * c), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.6 \cdot 10^{+127}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 7.8 \cdot 10^{+79}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(a + \left(0.8333333333333334 - \frac{0.6666666666666666}{t}\right)\right) \cdot \left(2 \cdot c\right) + 1\right)}\\
\end{array}
\end{array}
if c < -3.59999999999999979e127Initial program 87.9%
Taylor expanded in b around inf 49.4%
associate-*r/49.4%
metadata-eval49.4%
+-commutative49.4%
Simplified49.4%
Taylor expanded in b around 0 28.2%
associate-*r*28.2%
+-commutative28.2%
associate-*r/28.2%
metadata-eval28.2%
associate--r+28.2%
sub-neg28.2%
mul-1-neg28.2%
+-commutative28.2%
metadata-eval28.2%
associate-*r/28.2%
sub-neg28.2%
metadata-eval28.2%
associate-*r/28.2%
metadata-eval28.2%
+-commutative28.2%
mul-1-neg28.2%
sub-neg28.2%
Simplified28.2%
Taylor expanded in a around inf 28.4%
associate-*r*28.4%
mul-1-neg28.4%
Simplified28.4%
Taylor expanded in x around inf 52.7%
if -3.59999999999999979e127 < c < 7.7999999999999994e79Initial program 96.4%
Taylor expanded in a around 0 67.8%
*-commutative67.8%
*-commutative67.8%
associate-*r/67.8%
metadata-eval67.8%
Simplified67.8%
Taylor expanded in t around inf 64.8%
*-commutative64.8%
Simplified64.8%
Taylor expanded in c around 0 59.7%
if 7.7999999999999994e79 < c Initial program 95.7%
Taylor expanded in c around inf 89.5%
+-commutative89.5%
associate-*r/89.5%
metadata-eval89.5%
associate-+r-89.5%
Simplified89.5%
Taylor expanded in c around 0 58.0%
associate-*r*58.0%
+-commutative58.0%
associate-*r/58.0%
metadata-eval58.0%
*-commutative58.0%
associate--l+58.0%
*-commutative58.0%
Simplified58.0%
Final simplification58.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -1.7e+127)
1.0
(if (<= c 1.35e-18)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(/ x (+ x (* y (exp (* c 1.6666666666666667))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1.7e+127) {
tmp = 1.0;
} else if (c <= 1.35e-18) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else {
tmp = x / (x + (y * exp((c * 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 (c <= (-1.7d+127)) then
tmp = 1.0d0
else if (c <= 1.35d-18) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else
tmp = x / (x + (y * exp((c * 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 (c <= -1.7e+127) {
tmp = 1.0;
} else if (c <= 1.35e-18) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -1.7e+127: tmp = 1.0 elif c <= 1.35e-18: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) else: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -1.7e+127) tmp = 1.0; elseif (c <= 1.35e-18) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -1.7e+127) tmp = 1.0; elseif (c <= 1.35e-18) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); else tmp = x / (x + (y * exp((c * 1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -1.7e+127], 1.0, If[LessEqual[c, 1.35e-18], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.7 \cdot 10^{+127}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.35 \cdot 10^{-18}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if c < -1.69999999999999989e127Initial program 87.9%
Taylor expanded in b around inf 49.4%
associate-*r/49.4%
metadata-eval49.4%
+-commutative49.4%
Simplified49.4%
Taylor expanded in b around 0 28.2%
associate-*r*28.2%
+-commutative28.2%
associate-*r/28.2%
metadata-eval28.2%
associate--r+28.2%
sub-neg28.2%
mul-1-neg28.2%
+-commutative28.2%
metadata-eval28.2%
associate-*r/28.2%
sub-neg28.2%
metadata-eval28.2%
associate-*r/28.2%
metadata-eval28.2%
+-commutative28.2%
mul-1-neg28.2%
sub-neg28.2%
Simplified28.2%
Taylor expanded in a around inf 28.4%
associate-*r*28.4%
mul-1-neg28.4%
Simplified28.4%
Taylor expanded in x around inf 52.7%
if -1.69999999999999989e127 < c < 1.34999999999999994e-18Initial program 96.6%
Taylor expanded in a around 0 67.3%
*-commutative67.3%
*-commutative67.3%
associate-*r/67.3%
metadata-eval67.3%
Simplified67.3%
Taylor expanded in t around inf 65.0%
*-commutative65.0%
Simplified65.0%
Taylor expanded in c around 0 64.4%
if 1.34999999999999994e-18 < c Initial program 95.7%
Taylor expanded in a around 0 58.8%
*-commutative58.8%
*-commutative58.8%
associate-*r/58.8%
metadata-eval58.8%
Simplified58.8%
Taylor expanded in t around inf 70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in b around 0 66.7%
Final simplification63.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -850000000000.0)
(/ x (+ x (* y (pow E (/ (* c -1.3333333333333333) t)))))
(if (<= c 3e-18)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(/ x (+ x (* y (exp (* c 1.6666666666666667))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -850000000000.0) {
tmp = x / (x + (y * pow(((double) M_E), ((c * -1.3333333333333333) / t))));
} else if (c <= 3e-18) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -850000000000.0) {
tmp = x / (x + (y * Math.pow(Math.E, ((c * -1.3333333333333333) / t))));
} else if (c <= 3e-18) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -850000000000.0: tmp = x / (x + (y * math.pow(math.e, ((c * -1.3333333333333333) / t)))) elif c <= 3e-18: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) else: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -850000000000.0) tmp = Float64(x / Float64(x + Float64(y * (exp(1) ^ Float64(Float64(c * -1.3333333333333333) / t))))); elseif (c <= 3e-18) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -850000000000.0) tmp = x / (x + (y * (2.71828182845904523536 ^ ((c * -1.3333333333333333) / t)))); elseif (c <= 3e-18) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); else tmp = x / (x + (y * exp((c * 1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -850000000000.0], N[(x / N[(x + N[(y * N[Power[E, N[(N[(c * -1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3e-18], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -850000000000:\\
\;\;\;\;\frac{x}{x + y \cdot {e}^{\left(\frac{c \cdot -1.3333333333333333}{t}\right)}}\\
\mathbf{elif}\;c \leq 3 \cdot 10^{-18}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if c < -8.5e11Initial program 90.5%
Taylor expanded in c around inf 80.0%
+-commutative80.0%
associate-*r/80.0%
metadata-eval80.0%
associate-+r-80.0%
Simplified80.0%
*-un-lft-identity80.0%
exp-prod80.0%
associate-*r*80.0%
associate-+r-80.0%
Applied egg-rr80.0%
exp-1-e80.0%
*-commutative80.0%
associate--l+80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in t around 0 62.5%
associate-*r/62.5%
Simplified62.5%
if -8.5e11 < c < 2.99999999999999983e-18Initial program 96.8%
Taylor expanded in a around 0 64.7%
*-commutative64.7%
*-commutative64.7%
associate-*r/64.7%
metadata-eval64.7%
Simplified64.7%
Taylor expanded in t around inf 67.4%
*-commutative67.4%
Simplified67.4%
Taylor expanded in c around 0 67.4%
if 2.99999999999999983e-18 < c Initial program 95.7%
Taylor expanded in a around 0 58.8%
*-commutative58.8%
*-commutative58.8%
associate-*r/58.8%
metadata-eval58.8%
Simplified58.8%
Taylor expanded in t around inf 70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in b around 0 66.7%
Final simplification66.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(*
y
(+
(*
2.0
(*
b
(- (* 0.6666666666666666 (/ 1.0 t)) (+ a 0.8333333333333334))))
1.0)))))
(if (<= b -3.6e+225)
t_1
(if (<= b -1.8e+204)
1.0
(if (<= b -2.9e+138)
t_1
(if (<= b -7000000000000.0)
1.0
(if (or (<= b -8.8e-145)
(and (not (<= b -1.46e-183)) (<= b 1.18e+54)))
(/
x
(+
x
(*
y
(+
(*
(+ a (- 0.8333333333333334 (/ 0.6666666666666666 t)))
(* 2.0 c))
1.0))))
1.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (y * ((2.0 * (b * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))) + 1.0));
double tmp;
if (b <= -3.6e+225) {
tmp = t_1;
} else if (b <= -1.8e+204) {
tmp = 1.0;
} else if (b <= -2.9e+138) {
tmp = t_1;
} else if (b <= -7000000000000.0) {
tmp = 1.0;
} else if ((b <= -8.8e-145) || (!(b <= -1.46e-183) && (b <= 1.18e+54))) {
tmp = x / (x + (y * (((a + (0.8333333333333334 - (0.6666666666666666 / t))) * (2.0 * c)) + 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) :: t_1
real(8) :: tmp
t_1 = x / (y * ((2.0d0 * (b * ((0.6666666666666666d0 * (1.0d0 / t)) - (a + 0.8333333333333334d0)))) + 1.0d0))
if (b <= (-3.6d+225)) then
tmp = t_1
else if (b <= (-1.8d+204)) then
tmp = 1.0d0
else if (b <= (-2.9d+138)) then
tmp = t_1
else if (b <= (-7000000000000.0d0)) then
tmp = 1.0d0
else if ((b <= (-8.8d-145)) .or. (.not. (b <= (-1.46d-183))) .and. (b <= 1.18d+54)) then
tmp = x / (x + (y * (((a + (0.8333333333333334d0 - (0.6666666666666666d0 / t))) * (2.0d0 * c)) + 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 t_1 = x / (y * ((2.0 * (b * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))) + 1.0));
double tmp;
if (b <= -3.6e+225) {
tmp = t_1;
} else if (b <= -1.8e+204) {
tmp = 1.0;
} else if (b <= -2.9e+138) {
tmp = t_1;
} else if (b <= -7000000000000.0) {
tmp = 1.0;
} else if ((b <= -8.8e-145) || (!(b <= -1.46e-183) && (b <= 1.18e+54))) {
tmp = x / (x + (y * (((a + (0.8333333333333334 - (0.6666666666666666 / t))) * (2.0 * c)) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (y * ((2.0 * (b * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))) + 1.0)) tmp = 0 if b <= -3.6e+225: tmp = t_1 elif b <= -1.8e+204: tmp = 1.0 elif b <= -2.9e+138: tmp = t_1 elif b <= -7000000000000.0: tmp = 1.0 elif (b <= -8.8e-145) or (not (b <= -1.46e-183) and (b <= 1.18e+54)): tmp = x / (x + (y * (((a + (0.8333333333333334 - (0.6666666666666666 / t))) * (2.0 * c)) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(y * Float64(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 * Float64(1.0 / t)) - Float64(a + 0.8333333333333334)))) + 1.0))) tmp = 0.0 if (b <= -3.6e+225) tmp = t_1; elseif (b <= -1.8e+204) tmp = 1.0; elseif (b <= -2.9e+138) tmp = t_1; elseif (b <= -7000000000000.0) tmp = 1.0; elseif ((b <= -8.8e-145) || (!(b <= -1.46e-183) && (b <= 1.18e+54))) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(a + Float64(0.8333333333333334 - Float64(0.6666666666666666 / t))) * Float64(2.0 * c)) + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (y * ((2.0 * (b * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))) + 1.0)); tmp = 0.0; if (b <= -3.6e+225) tmp = t_1; elseif (b <= -1.8e+204) tmp = 1.0; elseif (b <= -2.9e+138) tmp = t_1; elseif (b <= -7000000000000.0) tmp = 1.0; elseif ((b <= -8.8e-145) || (~((b <= -1.46e-183)) && (b <= 1.18e+54))) tmp = x / (x + (y * (((a + (0.8333333333333334 - (0.6666666666666666 / t))) * (2.0 * c)) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(y * N[(N[(2.0 * N[(b * N[(N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.6e+225], t$95$1, If[LessEqual[b, -1.8e+204], 1.0, If[LessEqual[b, -2.9e+138], t$95$1, If[LessEqual[b, -7000000000000.0], 1.0, If[Or[LessEqual[b, -8.8e-145], And[N[Not[LessEqual[b, -1.46e-183]], $MachinePrecision], LessEqual[b, 1.18e+54]]], N[(x / N[(x + N[(y * N[(N[(N[(a + N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(2.0 * c), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot \left(2 \cdot \left(b \cdot \left(0.6666666666666666 \cdot \frac{1}{t} - \left(a + 0.8333333333333334\right)\right)\right) + 1\right)}\\
\mathbf{if}\;b \leq -3.6 \cdot 10^{+225}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.8 \cdot 10^{+204}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -2.9 \cdot 10^{+138}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -7000000000000:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -8.8 \cdot 10^{-145} \lor \neg \left(b \leq -1.46 \cdot 10^{-183}\right) \land b \leq 1.18 \cdot 10^{+54}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(a + \left(0.8333333333333334 - \frac{0.6666666666666666}{t}\right)\right) \cdot \left(2 \cdot c\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.5999999999999998e225 or -1.8000000000000001e204 < b < -2.9000000000000001e138Initial program 92.4%
Taylor expanded in b around inf 92.5%
associate-*r/92.5%
metadata-eval92.5%
+-commutative92.5%
Simplified92.5%
Taylor expanded in b around 0 60.8%
associate-*r*60.8%
+-commutative60.8%
associate-*r/60.8%
metadata-eval60.8%
associate--r+60.8%
sub-neg60.8%
mul-1-neg60.8%
+-commutative60.8%
metadata-eval60.8%
associate-*r/60.8%
sub-neg60.8%
metadata-eval60.8%
associate-*r/60.8%
metadata-eval60.8%
+-commutative60.8%
mul-1-neg60.8%
sub-neg60.8%
Simplified60.8%
Taylor expanded in y around inf 68.1%
if -3.5999999999999998e225 < b < -1.8000000000000001e204 or -2.9000000000000001e138 < b < -7e12 or -8.79999999999999996e-145 < b < -1.46e-183 or 1.1799999999999999e54 < b Initial program 93.3%
Taylor expanded in b around inf 75.0%
associate-*r/75.0%
metadata-eval75.0%
+-commutative75.0%
Simplified75.0%
Taylor expanded in b around 0 19.9%
associate-*r*19.9%
+-commutative19.9%
associate-*r/19.9%
metadata-eval19.9%
associate--r+19.9%
sub-neg19.9%
mul-1-neg19.9%
+-commutative19.9%
metadata-eval19.9%
associate-*r/19.9%
sub-neg19.9%
metadata-eval19.9%
associate-*r/19.9%
metadata-eval19.9%
+-commutative19.9%
mul-1-neg19.9%
sub-neg19.9%
Simplified19.9%
Taylor expanded in a around inf 23.5%
associate-*r*23.5%
mul-1-neg23.5%
Simplified23.5%
Taylor expanded in x around inf 63.0%
if -7e12 < b < -8.79999999999999996e-145 or -1.46e-183 < b < 1.1799999999999999e54Initial program 96.9%
Taylor expanded in c around inf 85.3%
+-commutative85.3%
associate-*r/85.3%
metadata-eval85.3%
associate-+r-85.3%
Simplified85.3%
Taylor expanded in c around 0 56.8%
associate-*r*56.8%
+-commutative56.8%
associate-*r/56.8%
metadata-eval56.8%
*-commutative56.8%
associate--l+56.8%
*-commutative56.8%
Simplified56.8%
Final simplification60.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -3.7e+224)
(/ x (* y (+ (* -2.0 (* b (+ a 0.8333333333333334))) 1.0)))
(if (<= b -9.2e+195)
1.0
(if (<= b -5.5e+115)
(/ x (+ x (+ y (* -2.0 (* a (* y b))))))
(if (<= b -310000000.0)
1.0
(if (or (<= b -1.35e-142) (and (not (<= b 3.3e-289)) (<= b 16.0)))
(/ x (+ x (+ y (* -1.3333333333333333 (* c (/ y t))))))
1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.7e+224) {
tmp = x / (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0));
} else if (b <= -9.2e+195) {
tmp = 1.0;
} else if (b <= -5.5e+115) {
tmp = x / (x + (y + (-2.0 * (a * (y * b)))));
} else if (b <= -310000000.0) {
tmp = 1.0;
} else if ((b <= -1.35e-142) || (!(b <= 3.3e-289) && (b <= 16.0))) {
tmp = x / (x + (y + (-1.3333333333333333 * (c * (y / 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 <= (-3.7d+224)) then
tmp = x / (y * (((-2.0d0) * (b * (a + 0.8333333333333334d0))) + 1.0d0))
else if (b <= (-9.2d+195)) then
tmp = 1.0d0
else if (b <= (-5.5d+115)) then
tmp = x / (x + (y + ((-2.0d0) * (a * (y * b)))))
else if (b <= (-310000000.0d0)) then
tmp = 1.0d0
else if ((b <= (-1.35d-142)) .or. (.not. (b <= 3.3d-289)) .and. (b <= 16.0d0)) then
tmp = x / (x + (y + ((-1.3333333333333333d0) * (c * (y / 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 <= -3.7e+224) {
tmp = x / (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0));
} else if (b <= -9.2e+195) {
tmp = 1.0;
} else if (b <= -5.5e+115) {
tmp = x / (x + (y + (-2.0 * (a * (y * b)))));
} else if (b <= -310000000.0) {
tmp = 1.0;
} else if ((b <= -1.35e-142) || (!(b <= 3.3e-289) && (b <= 16.0))) {
tmp = x / (x + (y + (-1.3333333333333333 * (c * (y / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -3.7e+224: tmp = x / (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)) elif b <= -9.2e+195: tmp = 1.0 elif b <= -5.5e+115: tmp = x / (x + (y + (-2.0 * (a * (y * b))))) elif b <= -310000000.0: tmp = 1.0 elif (b <= -1.35e-142) or (not (b <= 3.3e-289) and (b <= 16.0)): tmp = x / (x + (y + (-1.3333333333333333 * (c * (y / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -3.7e+224) tmp = Float64(x / Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))) + 1.0))); elseif (b <= -9.2e+195) tmp = 1.0; elseif (b <= -5.5e+115) tmp = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(a * Float64(y * b)))))); elseif (b <= -310000000.0) tmp = 1.0; elseif ((b <= -1.35e-142) || (!(b <= 3.3e-289) && (b <= 16.0))) tmp = Float64(x / Float64(x + Float64(y + Float64(-1.3333333333333333 * Float64(c * Float64(y / 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 <= -3.7e+224) tmp = x / (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)); elseif (b <= -9.2e+195) tmp = 1.0; elseif (b <= -5.5e+115) tmp = x / (x + (y + (-2.0 * (a * (y * b))))); elseif (b <= -310000000.0) tmp = 1.0; elseif ((b <= -1.35e-142) || (~((b <= 3.3e-289)) && (b <= 16.0))) tmp = x / (x + (y + (-1.3333333333333333 * (c * (y / t))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -3.7e+224], N[(x / N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9.2e+195], 1.0, If[LessEqual[b, -5.5e+115], N[(x / N[(x + N[(y + N[(-2.0 * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -310000000.0], 1.0, If[Or[LessEqual[b, -1.35e-142], And[N[Not[LessEqual[b, 3.3e-289]], $MachinePrecision], LessEqual[b, 16.0]]], N[(x / N[(x + N[(y + N[(-1.3333333333333333 * N[(c * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.7 \cdot 10^{+224}:\\
\;\;\;\;\frac{x}{y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{elif}\;b \leq -9.2 \cdot 10^{+195}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -5.5 \cdot 10^{+115}:\\
\;\;\;\;\frac{x}{x + \left(y + -2 \cdot \left(a \cdot \left(y \cdot b\right)\right)\right)}\\
\mathbf{elif}\;b \leq -310000000:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -1.35 \cdot 10^{-142} \lor \neg \left(b \leq 3.3 \cdot 10^{-289}\right) \land b \leq 16:\\
\;\;\;\;\frac{x}{x + \left(y + -1.3333333333333333 \cdot \left(c \cdot \frac{y}{t}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.70000000000000003e224Initial program 85.2%
Taylor expanded in b around inf 100.0%
associate-*r/100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in b around 0 71.3%
associate-*r*71.3%
+-commutative71.3%
associate-*r/71.3%
metadata-eval71.3%
associate--r+71.3%
sub-neg71.3%
mul-1-neg71.3%
+-commutative71.3%
metadata-eval71.3%
associate-*r/71.3%
sub-neg71.3%
metadata-eval71.3%
associate-*r/71.3%
metadata-eval71.3%
+-commutative71.3%
mul-1-neg71.3%
sub-neg71.3%
Simplified71.3%
Taylor expanded in y around inf 80.9%
associate-/r*61.3%
associate-*r*61.3%
associate-*r/61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in t around inf 76.2%
if -3.70000000000000003e224 < b < -9.2000000000000005e195 or -5.5e115 < b < -3.1e8 or -1.3499999999999999e-142 < b < 3.29999999999999997e-289 or 16 < b Initial program 94.9%
Taylor expanded in b around inf 62.0%
associate-*r/62.0%
metadata-eval62.0%
+-commutative62.0%
Simplified62.0%
Taylor expanded in b around 0 23.9%
associate-*r*23.9%
+-commutative23.9%
associate-*r/23.9%
metadata-eval23.9%
associate--r+23.9%
sub-neg23.9%
mul-1-neg23.9%
+-commutative23.9%
metadata-eval23.9%
associate-*r/23.9%
sub-neg23.9%
metadata-eval23.9%
associate-*r/23.9%
metadata-eval23.9%
+-commutative23.9%
mul-1-neg23.9%
sub-neg23.9%
Simplified23.9%
Taylor expanded in a around inf 22.8%
associate-*r*22.8%
mul-1-neg22.8%
Simplified22.8%
Taylor expanded in x around inf 53.7%
if -9.2000000000000005e195 < b < -5.5e115Initial program 100.0%
Taylor expanded in b around inf 84.7%
associate-*r/84.7%
metadata-eval84.7%
+-commutative84.7%
Simplified84.7%
Taylor expanded in b around 0 49.5%
associate-*r*49.5%
+-commutative49.5%
associate-*r/49.5%
metadata-eval49.5%
associate--r+49.5%
sub-neg49.5%
mul-1-neg49.5%
+-commutative49.5%
metadata-eval49.5%
associate-*r/49.5%
sub-neg49.5%
metadata-eval49.5%
associate-*r/49.5%
metadata-eval49.5%
+-commutative49.5%
mul-1-neg49.5%
sub-neg49.5%
Simplified49.5%
Taylor expanded in a around inf 59.4%
*-commutative59.4%
Simplified59.4%
if -3.1e8 < b < -1.3499999999999999e-142 or 3.29999999999999997e-289 < b < 16Initial program 96.3%
Taylor expanded in c around inf 86.2%
+-commutative86.2%
associate-*r/86.2%
metadata-eval86.2%
associate-+r-86.2%
Simplified86.2%
*-un-lft-identity86.2%
exp-prod86.2%
associate-*r*86.2%
associate-+r-86.2%
Applied egg-rr86.2%
exp-1-e86.2%
*-commutative86.2%
associate--l+86.2%
*-commutative86.2%
Simplified86.2%
Taylor expanded in t around 0 74.4%
associate-*r/74.4%
Simplified74.4%
Taylor expanded in c around 0 63.9%
associate-/l*61.6%
log-E61.6%
*-rgt-identity61.6%
Simplified61.6%
Final simplification58.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -1.25e+224)
(/ x (* y (+ (* -2.0 (* b (+ a 0.8333333333333334))) 1.0)))
(if (<= b -6.2e+195)
1.0
(if (<= b -2e+116)
(/ x (+ x (+ y (* 2.0 (* a (* y (- c b)))))))
(if (<= b -330000000.0)
1.0
(if (or (<= b -2.1e-142) (and (not (<= b 3.75e-289)) (<= b 0.0009)))
(/ x (+ x (+ y (* -1.3333333333333333 (* c (/ y t))))))
1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.25e+224) {
tmp = x / (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0));
} else if (b <= -6.2e+195) {
tmp = 1.0;
} else if (b <= -2e+116) {
tmp = x / (x + (y + (2.0 * (a * (y * (c - b))))));
} else if (b <= -330000000.0) {
tmp = 1.0;
} else if ((b <= -2.1e-142) || (!(b <= 3.75e-289) && (b <= 0.0009))) {
tmp = x / (x + (y + (-1.3333333333333333 * (c * (y / 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 <= (-1.25d+224)) then
tmp = x / (y * (((-2.0d0) * (b * (a + 0.8333333333333334d0))) + 1.0d0))
else if (b <= (-6.2d+195)) then
tmp = 1.0d0
else if (b <= (-2d+116)) then
tmp = x / (x + (y + (2.0d0 * (a * (y * (c - b))))))
else if (b <= (-330000000.0d0)) then
tmp = 1.0d0
else if ((b <= (-2.1d-142)) .or. (.not. (b <= 3.75d-289)) .and. (b <= 0.0009d0)) then
tmp = x / (x + (y + ((-1.3333333333333333d0) * (c * (y / 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 <= -1.25e+224) {
tmp = x / (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0));
} else if (b <= -6.2e+195) {
tmp = 1.0;
} else if (b <= -2e+116) {
tmp = x / (x + (y + (2.0 * (a * (y * (c - b))))));
} else if (b <= -330000000.0) {
tmp = 1.0;
} else if ((b <= -2.1e-142) || (!(b <= 3.75e-289) && (b <= 0.0009))) {
tmp = x / (x + (y + (-1.3333333333333333 * (c * (y / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -1.25e+224: tmp = x / (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)) elif b <= -6.2e+195: tmp = 1.0 elif b <= -2e+116: tmp = x / (x + (y + (2.0 * (a * (y * (c - b)))))) elif b <= -330000000.0: tmp = 1.0 elif (b <= -2.1e-142) or (not (b <= 3.75e-289) and (b <= 0.0009)): tmp = x / (x + (y + (-1.3333333333333333 * (c * (y / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -1.25e+224) tmp = Float64(x / Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))) + 1.0))); elseif (b <= -6.2e+195) tmp = 1.0; elseif (b <= -2e+116) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(a * Float64(y * Float64(c - b))))))); elseif (b <= -330000000.0) tmp = 1.0; elseif ((b <= -2.1e-142) || (!(b <= 3.75e-289) && (b <= 0.0009))) tmp = Float64(x / Float64(x + Float64(y + Float64(-1.3333333333333333 * Float64(c * Float64(y / 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 <= -1.25e+224) tmp = x / (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)); elseif (b <= -6.2e+195) tmp = 1.0; elseif (b <= -2e+116) tmp = x / (x + (y + (2.0 * (a * (y * (c - b)))))); elseif (b <= -330000000.0) tmp = 1.0; elseif ((b <= -2.1e-142) || (~((b <= 3.75e-289)) && (b <= 0.0009))) tmp = x / (x + (y + (-1.3333333333333333 * (c * (y / t))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -1.25e+224], N[(x / N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.2e+195], 1.0, If[LessEqual[b, -2e+116], N[(x / N[(x + N[(y + N[(2.0 * N[(a * N[(y * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -330000000.0], 1.0, If[Or[LessEqual[b, -2.1e-142], And[N[Not[LessEqual[b, 3.75e-289]], $MachinePrecision], LessEqual[b, 0.0009]]], N[(x / N[(x + N[(y + N[(-1.3333333333333333 * N[(c * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.25 \cdot 10^{+224}:\\
\;\;\;\;\frac{x}{y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{elif}\;b \leq -6.2 \cdot 10^{+195}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -2 \cdot 10^{+116}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(a \cdot \left(y \cdot \left(c - b\right)\right)\right)\right)}\\
\mathbf{elif}\;b \leq -330000000:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -2.1 \cdot 10^{-142} \lor \neg \left(b \leq 3.75 \cdot 10^{-289}\right) \land b \leq 0.0009:\\
\;\;\;\;\frac{x}{x + \left(y + -1.3333333333333333 \cdot \left(c \cdot \frac{y}{t}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.24999999999999991e224Initial program 85.2%
Taylor expanded in b around inf 100.0%
associate-*r/100.0%
metadata-eval100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in b around 0 71.3%
associate-*r*71.3%
+-commutative71.3%
associate-*r/71.3%
metadata-eval71.3%
associate--r+71.3%
sub-neg71.3%
mul-1-neg71.3%
+-commutative71.3%
metadata-eval71.3%
associate-*r/71.3%
sub-neg71.3%
metadata-eval71.3%
associate-*r/71.3%
metadata-eval71.3%
+-commutative71.3%
mul-1-neg71.3%
sub-neg71.3%
Simplified71.3%
Taylor expanded in y around inf 80.9%
associate-/r*61.3%
associate-*r*61.3%
associate-*r/61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in t around inf 76.2%
if -1.24999999999999991e224 < b < -6.2000000000000004e195 or -2.00000000000000003e116 < b < -3.3e8 or -2.0999999999999999e-142 < b < 3.74999999999999999e-289 or 8.9999999999999998e-4 < b Initial program 94.9%
Taylor expanded in b around inf 62.0%
associate-*r/62.0%
metadata-eval62.0%
+-commutative62.0%
Simplified62.0%
Taylor expanded in b around 0 23.9%
associate-*r*23.9%
+-commutative23.9%
associate-*r/23.9%
metadata-eval23.9%
associate--r+23.9%
sub-neg23.9%
mul-1-neg23.9%
+-commutative23.9%
metadata-eval23.9%
associate-*r/23.9%
sub-neg23.9%
metadata-eval23.9%
associate-*r/23.9%
metadata-eval23.9%
+-commutative23.9%
mul-1-neg23.9%
sub-neg23.9%
Simplified23.9%
Taylor expanded in a around inf 22.8%
associate-*r*22.8%
mul-1-neg22.8%
Simplified22.8%
Taylor expanded in x around inf 53.7%
if -6.2000000000000004e195 < b < -2.00000000000000003e116Initial program 100.0%
Taylor expanded in a around inf 69.4%
Taylor expanded in a around 0 59.5%
if -3.3e8 < b < -2.0999999999999999e-142 or 3.74999999999999999e-289 < b < 8.9999999999999998e-4Initial program 96.3%
Taylor expanded in c around inf 86.2%
+-commutative86.2%
associate-*r/86.2%
metadata-eval86.2%
associate-+r-86.2%
Simplified86.2%
*-un-lft-identity86.2%
exp-prod86.2%
associate-*r*86.2%
associate-+r-86.2%
Applied egg-rr86.2%
exp-1-e86.2%
*-commutative86.2%
associate--l+86.2%
*-commutative86.2%
Simplified86.2%
Taylor expanded in t around 0 74.4%
associate-*r/74.4%
Simplified74.4%
Taylor expanded in c around 0 63.9%
associate-/l*61.6%
log-E61.6%
*-rgt-identity61.6%
Simplified61.6%
Final simplification58.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(*
y
(+
(*
2.0
(*
b
(- (* 0.6666666666666666 (/ 1.0 t)) (+ a 0.8333333333333334))))
1.0)))))
(if (<= b -1.25e+224)
t_1
(if (<= b -4.1e+204)
1.0
(if (<= b -1.18e+138)
t_1
(if (<= b -310000000.0)
1.0
(if (or (<= b -5e-137) (and (not (<= b 2.05e-289)) (<= b 23.0)))
(/ x (+ x (+ y (* -1.3333333333333333 (* c (/ y t))))))
1.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (y * ((2.0 * (b * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))) + 1.0));
double tmp;
if (b <= -1.25e+224) {
tmp = t_1;
} else if (b <= -4.1e+204) {
tmp = 1.0;
} else if (b <= -1.18e+138) {
tmp = t_1;
} else if (b <= -310000000.0) {
tmp = 1.0;
} else if ((b <= -5e-137) || (!(b <= 2.05e-289) && (b <= 23.0))) {
tmp = x / (x + (y + (-1.3333333333333333 * (c * (y / 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 / (y * ((2.0d0 * (b * ((0.6666666666666666d0 * (1.0d0 / t)) - (a + 0.8333333333333334d0)))) + 1.0d0))
if (b <= (-1.25d+224)) then
tmp = t_1
else if (b <= (-4.1d+204)) then
tmp = 1.0d0
else if (b <= (-1.18d+138)) then
tmp = t_1
else if (b <= (-310000000.0d0)) then
tmp = 1.0d0
else if ((b <= (-5d-137)) .or. (.not. (b <= 2.05d-289)) .and. (b <= 23.0d0)) then
tmp = x / (x + (y + ((-1.3333333333333333d0) * (c * (y / 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 / (y * ((2.0 * (b * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))) + 1.0));
double tmp;
if (b <= -1.25e+224) {
tmp = t_1;
} else if (b <= -4.1e+204) {
tmp = 1.0;
} else if (b <= -1.18e+138) {
tmp = t_1;
} else if (b <= -310000000.0) {
tmp = 1.0;
} else if ((b <= -5e-137) || (!(b <= 2.05e-289) && (b <= 23.0))) {
tmp = x / (x + (y + (-1.3333333333333333 * (c * (y / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (y * ((2.0 * (b * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))) + 1.0)) tmp = 0 if b <= -1.25e+224: tmp = t_1 elif b <= -4.1e+204: tmp = 1.0 elif b <= -1.18e+138: tmp = t_1 elif b <= -310000000.0: tmp = 1.0 elif (b <= -5e-137) or (not (b <= 2.05e-289) and (b <= 23.0)): tmp = x / (x + (y + (-1.3333333333333333 * (c * (y / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(y * Float64(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 * Float64(1.0 / t)) - Float64(a + 0.8333333333333334)))) + 1.0))) tmp = 0.0 if (b <= -1.25e+224) tmp = t_1; elseif (b <= -4.1e+204) tmp = 1.0; elseif (b <= -1.18e+138) tmp = t_1; elseif (b <= -310000000.0) tmp = 1.0; elseif ((b <= -5e-137) || (!(b <= 2.05e-289) && (b <= 23.0))) tmp = Float64(x / Float64(x + Float64(y + Float64(-1.3333333333333333 * Float64(c * Float64(y / t)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (y * ((2.0 * (b * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))) + 1.0)); tmp = 0.0; if (b <= -1.25e+224) tmp = t_1; elseif (b <= -4.1e+204) tmp = 1.0; elseif (b <= -1.18e+138) tmp = t_1; elseif (b <= -310000000.0) tmp = 1.0; elseif ((b <= -5e-137) || (~((b <= 2.05e-289)) && (b <= 23.0))) tmp = x / (x + (y + (-1.3333333333333333 * (c * (y / 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[(y * N[(N[(2.0 * N[(b * N[(N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.25e+224], t$95$1, If[LessEqual[b, -4.1e+204], 1.0, If[LessEqual[b, -1.18e+138], t$95$1, If[LessEqual[b, -310000000.0], 1.0, If[Or[LessEqual[b, -5e-137], And[N[Not[LessEqual[b, 2.05e-289]], $MachinePrecision], LessEqual[b, 23.0]]], N[(x / N[(x + N[(y + N[(-1.3333333333333333 * N[(c * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot \left(2 \cdot \left(b \cdot \left(0.6666666666666666 \cdot \frac{1}{t} - \left(a + 0.8333333333333334\right)\right)\right) + 1\right)}\\
\mathbf{if}\;b \leq -1.25 \cdot 10^{+224}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -4.1 \cdot 10^{+204}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -1.18 \cdot 10^{+138}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -310000000:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -5 \cdot 10^{-137} \lor \neg \left(b \leq 2.05 \cdot 10^{-289}\right) \land b \leq 23:\\
\;\;\;\;\frac{x}{x + \left(y + -1.3333333333333333 \cdot \left(c \cdot \frac{y}{t}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.24999999999999991e224 or -4.09999999999999975e204 < b < -1.18000000000000007e138Initial program 92.4%
Taylor expanded in b around inf 92.5%
associate-*r/92.5%
metadata-eval92.5%
+-commutative92.5%
Simplified92.5%
Taylor expanded in b around 0 60.8%
associate-*r*60.8%
+-commutative60.8%
associate-*r/60.8%
metadata-eval60.8%
associate--r+60.8%
sub-neg60.8%
mul-1-neg60.8%
+-commutative60.8%
metadata-eval60.8%
associate-*r/60.8%
sub-neg60.8%
metadata-eval60.8%
associate-*r/60.8%
metadata-eval60.8%
+-commutative60.8%
mul-1-neg60.8%
sub-neg60.8%
Simplified60.8%
Taylor expanded in y around inf 68.1%
if -1.24999999999999991e224 < b < -4.09999999999999975e204 or -1.18000000000000007e138 < b < -3.1e8 or -5.00000000000000001e-137 < b < 2.0499999999999999e-289 or 23 < b Initial program 94.9%
Taylor expanded in b around inf 62.0%
associate-*r/62.0%
metadata-eval62.0%
+-commutative62.0%
Simplified62.0%
Taylor expanded in b around 0 23.8%
associate-*r*23.8%
+-commutative23.8%
associate-*r/23.8%
metadata-eval23.8%
associate--r+23.8%
sub-neg23.8%
mul-1-neg23.8%
+-commutative23.8%
metadata-eval23.8%
associate-*r/23.8%
sub-neg23.8%
metadata-eval23.8%
associate-*r/23.8%
metadata-eval23.8%
+-commutative23.8%
mul-1-neg23.8%
sub-neg23.8%
Simplified23.8%
Taylor expanded in a around inf 24.8%
associate-*r*24.8%
mul-1-neg24.8%
Simplified24.8%
Taylor expanded in x around inf 54.5%
if -3.1e8 < b < -5.00000000000000001e-137 or 2.0499999999999999e-289 < b < 23Initial program 96.3%
Taylor expanded in c around inf 86.2%
+-commutative86.2%
associate-*r/86.2%
metadata-eval86.2%
associate-+r-86.2%
Simplified86.2%
*-un-lft-identity86.2%
exp-prod86.2%
associate-*r*86.2%
associate-+r-86.2%
Applied egg-rr86.2%
exp-1-e86.2%
*-commutative86.2%
associate--l+86.2%
*-commutative86.2%
Simplified86.2%
Taylor expanded in t around 0 74.4%
associate-*r/74.4%
Simplified74.4%
Taylor expanded in c around 0 63.9%
associate-/l*61.6%
log-E61.6%
*-rgt-identity61.6%
Simplified61.6%
Final simplification58.8%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= y -1.25e+196)
(not
(or (<= y 6.4e+110) (and (not (<= y 4.2e+203)) (<= y 2.2e+224)))))
(/ 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 ((y <= -1.25e+196) || !((y <= 6.4e+110) || (!(y <= 4.2e+203) && (y <= 2.2e+224)))) {
tmp = 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 ((y <= (-1.25d+196)) .or. (.not. (y <= 6.4d+110) .or. (.not. (y <= 4.2d+203)) .and. (y <= 2.2d+224))) then
tmp = 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 ((y <= -1.25e+196) || !((y <= 6.4e+110) || (!(y <= 4.2e+203) && (y <= 2.2e+224)))) {
tmp = 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 (y <= -1.25e+196) or not ((y <= 6.4e+110) or (not (y <= 4.2e+203) and (y <= 2.2e+224))): tmp = 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 ((y <= -1.25e+196) || !((y <= 6.4e+110) || (!(y <= 4.2e+203) && (y <= 2.2e+224)))) tmp = 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 ((y <= -1.25e+196) || ~(((y <= 6.4e+110) || (~((y <= 4.2e+203)) && (y <= 2.2e+224))))) tmp = 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[Or[LessEqual[y, -1.25e+196], N[Not[Or[LessEqual[y, 6.4e+110], And[N[Not[LessEqual[y, 4.2e+203]], $MachinePrecision], LessEqual[y, 2.2e+224]]]], $MachinePrecision]], N[(x / N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.25 \cdot 10^{+196} \lor \neg \left(y \leq 6.4 \cdot 10^{+110} \lor \neg \left(y \leq 4.2 \cdot 10^{+203}\right) \land y \leq 2.2 \cdot 10^{+224}\right):\\
\;\;\;\;\frac{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 y < -1.2499999999999999e196 or 6.39999999999999988e110 < y < 4.19999999999999967e203 or 2.2e224 < y Initial program 91.0%
Taylor expanded in b around inf 73.6%
associate-*r/73.6%
metadata-eval73.6%
+-commutative73.6%
Simplified73.6%
Taylor expanded in b around 0 71.8%
associate-*r*71.8%
+-commutative71.8%
associate-*r/71.8%
metadata-eval71.8%
associate--r+71.8%
sub-neg71.8%
mul-1-neg71.8%
+-commutative71.8%
metadata-eval71.8%
associate-*r/71.8%
sub-neg71.8%
metadata-eval71.8%
associate-*r/71.8%
metadata-eval71.8%
+-commutative71.8%
mul-1-neg71.8%
sub-neg71.8%
Simplified71.8%
Taylor expanded in y around inf 70.1%
associate-/r*60.9%
associate-*r*60.9%
associate-*r/60.9%
metadata-eval60.9%
Simplified60.9%
Taylor expanded in t around inf 68.5%
if -1.2499999999999999e196 < y < 6.39999999999999988e110 or 4.19999999999999967e203 < y < 2.2e224Initial program 96.0%
Taylor expanded in b around inf 65.7%
associate-*r/65.7%
metadata-eval65.7%
+-commutative65.7%
Simplified65.7%
Taylor expanded in b around 0 27.8%
associate-*r*27.8%
+-commutative27.8%
associate-*r/27.8%
metadata-eval27.8%
associate--r+27.8%
sub-neg27.8%
mul-1-neg27.8%
+-commutative27.8%
metadata-eval27.8%
associate-*r/27.8%
sub-neg27.8%
metadata-eval27.8%
associate-*r/27.8%
metadata-eval27.8%
+-commutative27.8%
mul-1-neg27.8%
sub-neg27.8%
Simplified27.8%
Taylor expanded in a around inf 30.1%
associate-*r*30.1%
mul-1-neg30.1%
Simplified30.1%
Taylor expanded in x around inf 47.5%
Final simplification52.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y -4.2e+195)
(/ x (* y (+ (* -2.0 (* b (+ a 0.8333333333333334))) 1.0)))
(if (<= y 5.4e+96)
1.0
(if (or (<= y 7.5e+204) (not (<= y 3.6e+220)))
(/ x (+ x (+ y (* -2.0 (* a (* y b))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -4.2e+195) {
tmp = x / (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0));
} else if (y <= 5.4e+96) {
tmp = 1.0;
} else if ((y <= 7.5e+204) || !(y <= 3.6e+220)) {
tmp = x / (x + (y + (-2.0 * (a * (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 (y <= (-4.2d+195)) then
tmp = x / (y * (((-2.0d0) * (b * (a + 0.8333333333333334d0))) + 1.0d0))
else if (y <= 5.4d+96) then
tmp = 1.0d0
else if ((y <= 7.5d+204) .or. (.not. (y <= 3.6d+220))) then
tmp = x / (x + (y + ((-2.0d0) * (a * (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 (y <= -4.2e+195) {
tmp = x / (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0));
} else if (y <= 5.4e+96) {
tmp = 1.0;
} else if ((y <= 7.5e+204) || !(y <= 3.6e+220)) {
tmp = x / (x + (y + (-2.0 * (a * (y * b)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -4.2e+195: tmp = x / (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)) elif y <= 5.4e+96: tmp = 1.0 elif (y <= 7.5e+204) or not (y <= 3.6e+220): tmp = x / (x + (y + (-2.0 * (a * (y * b))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -4.2e+195) tmp = Float64(x / Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))) + 1.0))); elseif (y <= 5.4e+96) tmp = 1.0; elseif ((y <= 7.5e+204) || !(y <= 3.6e+220)) tmp = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(a * 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 (y <= -4.2e+195) tmp = x / (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)); elseif (y <= 5.4e+96) tmp = 1.0; elseif ((y <= 7.5e+204) || ~((y <= 3.6e+220))) tmp = x / (x + (y + (-2.0 * (a * (y * b))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -4.2e+195], N[(x / N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.4e+96], 1.0, If[Or[LessEqual[y, 7.5e+204], N[Not[LessEqual[y, 3.6e+220]], $MachinePrecision]], N[(x / N[(x + N[(y + N[(-2.0 * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.2 \cdot 10^{+195}:\\
\;\;\;\;\frac{x}{y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{elif}\;y \leq 5.4 \cdot 10^{+96}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{+204} \lor \neg \left(y \leq 3.6 \cdot 10^{+220}\right):\\
\;\;\;\;\frac{x}{x + \left(y + -2 \cdot \left(a \cdot \left(y \cdot b\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -4.20000000000000019e195Initial program 88.2%
Taylor expanded in b around inf 60.2%
associate-*r/60.2%
metadata-eval60.2%
+-commutative60.2%
Simplified60.2%
Taylor expanded in b around 0 71.6%
associate-*r*71.6%
+-commutative71.6%
associate-*r/71.6%
metadata-eval71.6%
associate--r+71.6%
sub-neg71.6%
mul-1-neg71.6%
+-commutative71.6%
metadata-eval71.6%
associate-*r/71.6%
sub-neg71.6%
metadata-eval71.6%
associate-*r/71.6%
metadata-eval71.6%
+-commutative71.6%
mul-1-neg71.6%
sub-neg71.6%
Simplified71.6%
Taylor expanded in y around inf 71.6%
associate-/r*58.2%
associate-*r*58.2%
associate-*r/58.2%
metadata-eval58.2%
Simplified58.2%
Taylor expanded in t around inf 66.3%
if -4.20000000000000019e195 < y < 5.40000000000000044e96 or 7.4999999999999998e204 < y < 3.60000000000000019e220Initial program 96.0%
Taylor expanded in b around inf 65.8%
associate-*r/65.8%
metadata-eval65.8%
+-commutative65.8%
Simplified65.8%
Taylor expanded in b around 0 28.0%
associate-*r*28.0%
+-commutative28.0%
associate-*r/28.0%
metadata-eval28.0%
associate--r+28.0%
sub-neg28.0%
mul-1-neg28.0%
+-commutative28.0%
metadata-eval28.0%
associate-*r/28.0%
sub-neg28.0%
metadata-eval28.0%
associate-*r/28.0%
metadata-eval28.0%
+-commutative28.0%
mul-1-neg28.0%
sub-neg28.0%
Simplified28.0%
Taylor expanded in a around inf 29.9%
associate-*r*29.9%
mul-1-neg29.9%
Simplified29.9%
Taylor expanded in x around inf 47.4%
if 5.40000000000000044e96 < y < 7.4999999999999998e204 or 3.60000000000000019e220 < y Initial program 92.7%
Taylor expanded in b around inf 78.2%
associate-*r/78.2%
metadata-eval78.2%
+-commutative78.2%
Simplified78.2%
Taylor expanded in b around 0 68.5%
associate-*r*68.5%
+-commutative68.5%
associate-*r/68.5%
metadata-eval68.5%
associate--r+68.5%
sub-neg68.5%
mul-1-neg68.5%
+-commutative68.5%
metadata-eval68.5%
associate-*r/68.5%
sub-neg68.5%
metadata-eval68.5%
associate-*r/68.5%
metadata-eval68.5%
+-commutative68.5%
mul-1-neg68.5%
sub-neg68.5%
Simplified68.5%
Taylor expanded in a around inf 68.7%
*-commutative68.7%
Simplified68.7%
Final simplification52.0%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= y -1.8e+195)
(and (not (<= y 1.25e+148))
(or (<= y 1.28e+203) (not (<= y 1.4e+246)))))
(* -0.5 (/ x (* a (* y b))))
1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((y <= -1.8e+195) || (!(y <= 1.25e+148) && ((y <= 1.28e+203) || !(y <= 1.4e+246)))) {
tmp = -0.5 * (x / (a * (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 ((y <= (-1.8d+195)) .or. (.not. (y <= 1.25d+148)) .and. (y <= 1.28d+203) .or. (.not. (y <= 1.4d+246))) then
tmp = (-0.5d0) * (x / (a * (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 ((y <= -1.8e+195) || (!(y <= 1.25e+148) && ((y <= 1.28e+203) || !(y <= 1.4e+246)))) {
tmp = -0.5 * (x / (a * (y * b)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (y <= -1.8e+195) or (not (y <= 1.25e+148) and ((y <= 1.28e+203) or not (y <= 1.4e+246))): tmp = -0.5 * (x / (a * (y * b))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((y <= -1.8e+195) || (!(y <= 1.25e+148) && ((y <= 1.28e+203) || !(y <= 1.4e+246)))) tmp = Float64(-0.5 * Float64(x / Float64(a * 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 ((y <= -1.8e+195) || (~((y <= 1.25e+148)) && ((y <= 1.28e+203) || ~((y <= 1.4e+246))))) tmp = -0.5 * (x / (a * (y * b))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[y, -1.8e+195], And[N[Not[LessEqual[y, 1.25e+148]], $MachinePrecision], Or[LessEqual[y, 1.28e+203], N[Not[LessEqual[y, 1.4e+246]], $MachinePrecision]]]], N[(-0.5 * N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.8 \cdot 10^{+195} \lor \neg \left(y \leq 1.25 \cdot 10^{+148}\right) \land \left(y \leq 1.28 \cdot 10^{+203} \lor \neg \left(y \leq 1.4 \cdot 10^{+246}\right)\right):\\
\;\;\;\;-0.5 \cdot \frac{x}{a \cdot \left(y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -1.7999999999999999e195 or 1.25000000000000006e148 < y < 1.28000000000000005e203 or 1.39999999999999994e246 < y Initial program 88.8%
Taylor expanded in b around inf 73.6%
associate-*r/73.6%
metadata-eval73.6%
+-commutative73.6%
Simplified73.6%
Taylor expanded in b around 0 75.8%
associate-*r*75.8%
+-commutative75.8%
associate-*r/75.8%
metadata-eval75.8%
associate--r+75.8%
sub-neg75.8%
mul-1-neg75.8%
+-commutative75.8%
metadata-eval75.8%
associate-*r/75.8%
sub-neg75.8%
metadata-eval75.8%
associate-*r/75.8%
metadata-eval75.8%
+-commutative75.8%
mul-1-neg75.8%
sub-neg75.8%
Simplified75.8%
Taylor expanded in a around inf 64.2%
*-commutative64.2%
Simplified64.2%
if -1.7999999999999999e195 < y < 1.25000000000000006e148 or 1.28000000000000005e203 < y < 1.39999999999999994e246Initial program 96.2%
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 29.2%
associate-*r*29.2%
+-commutative29.2%
associate-*r/29.2%
metadata-eval29.2%
associate--r+29.2%
sub-neg29.2%
mul-1-neg29.2%
+-commutative29.2%
metadata-eval29.2%
associate-*r/29.2%
sub-neg29.2%
metadata-eval29.2%
associate-*r/29.2%
metadata-eval29.2%
+-commutative29.2%
mul-1-neg29.2%
sub-neg29.2%
Simplified29.2%
Taylor expanded in a around inf 31.5%
associate-*r*31.5%
mul-1-neg31.5%
Simplified31.5%
Taylor expanded in x around inf 47.5%
Final simplification50.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y -1.8e+195)
(* -0.5 (/ x (* b (* y a))))
(if (<= y 4.6e+149)
1.0
(if (or (<= y 6.5e+203) (not (<= y 2.3e+247)))
(* -0.5 (/ x (* a (* y b))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -1.8e+195) {
tmp = -0.5 * (x / (b * (y * a)));
} else if (y <= 4.6e+149) {
tmp = 1.0;
} else if ((y <= 6.5e+203) || !(y <= 2.3e+247)) {
tmp = -0.5 * (x / (a * (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 (y <= (-1.8d+195)) then
tmp = (-0.5d0) * (x / (b * (y * a)))
else if (y <= 4.6d+149) then
tmp = 1.0d0
else if ((y <= 6.5d+203) .or. (.not. (y <= 2.3d+247))) then
tmp = (-0.5d0) * (x / (a * (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 (y <= -1.8e+195) {
tmp = -0.5 * (x / (b * (y * a)));
} else if (y <= 4.6e+149) {
tmp = 1.0;
} else if ((y <= 6.5e+203) || !(y <= 2.3e+247)) {
tmp = -0.5 * (x / (a * (y * b)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -1.8e+195: tmp = -0.5 * (x / (b * (y * a))) elif y <= 4.6e+149: tmp = 1.0 elif (y <= 6.5e+203) or not (y <= 2.3e+247): tmp = -0.5 * (x / (a * (y * b))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -1.8e+195) tmp = Float64(-0.5 * Float64(x / Float64(b * Float64(y * a)))); elseif (y <= 4.6e+149) tmp = 1.0; elseif ((y <= 6.5e+203) || !(y <= 2.3e+247)) tmp = Float64(-0.5 * Float64(x / Float64(a * 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 (y <= -1.8e+195) tmp = -0.5 * (x / (b * (y * a))); elseif (y <= 4.6e+149) tmp = 1.0; elseif ((y <= 6.5e+203) || ~((y <= 2.3e+247))) tmp = -0.5 * (x / (a * (y * b))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -1.8e+195], N[(-0.5 * N[(x / N[(b * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.6e+149], 1.0, If[Or[LessEqual[y, 6.5e+203], N[Not[LessEqual[y, 2.3e+247]], $MachinePrecision]], N[(-0.5 * N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.8 \cdot 10^{+195}:\\
\;\;\;\;-0.5 \cdot \frac{x}{b \cdot \left(y \cdot a\right)}\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{+149}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{+203} \lor \neg \left(y \leq 2.3 \cdot 10^{+247}\right):\\
\;\;\;\;-0.5 \cdot \frac{x}{a \cdot \left(y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -1.7999999999999999e195Initial program 88.2%
Taylor expanded in b around inf 60.2%
associate-*r/60.2%
metadata-eval60.2%
+-commutative60.2%
Simplified60.2%
Taylor expanded in b around 0 71.6%
associate-*r*71.6%
+-commutative71.6%
associate-*r/71.6%
metadata-eval71.6%
associate--r+71.6%
sub-neg71.6%
mul-1-neg71.6%
+-commutative71.6%
metadata-eval71.6%
associate-*r/71.6%
sub-neg71.6%
metadata-eval71.6%
associate-*r/71.6%
metadata-eval71.6%
+-commutative71.6%
mul-1-neg71.6%
sub-neg71.6%
Simplified71.6%
Taylor expanded in a around inf 60.1%
*-commutative60.1%
Simplified60.1%
add060.1%
associate-*r*60.2%
fma-define60.2%
Applied egg-rr60.2%
fma-undefine60.2%
+-rgt-identity60.2%
*-commutative60.2%
Simplified60.2%
if -1.7999999999999999e195 < y < 4.5999999999999997e149 or 6.5000000000000003e203 < y < 2.29999999999999991e247Initial program 96.2%
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 29.2%
associate-*r*29.2%
+-commutative29.2%
associate-*r/29.2%
metadata-eval29.2%
associate--r+29.2%
sub-neg29.2%
mul-1-neg29.2%
+-commutative29.2%
metadata-eval29.2%
associate-*r/29.2%
sub-neg29.2%
metadata-eval29.2%
associate-*r/29.2%
metadata-eval29.2%
+-commutative29.2%
mul-1-neg29.2%
sub-neg29.2%
Simplified29.2%
Taylor expanded in a around inf 31.5%
associate-*r*31.5%
mul-1-neg31.5%
Simplified31.5%
Taylor expanded in x around inf 47.5%
if 4.5999999999999997e149 < y < 6.5000000000000003e203 or 2.29999999999999991e247 < y Initial program 89.1%
Taylor expanded in b around inf 82.1%
associate-*r/82.1%
metadata-eval82.1%
+-commutative82.1%
Simplified82.1%
Taylor expanded in b around 0 78.5%
associate-*r*78.5%
+-commutative78.5%
associate-*r/78.5%
metadata-eval78.5%
associate--r+78.5%
sub-neg78.5%
mul-1-neg78.5%
+-commutative78.5%
metadata-eval78.5%
associate-*r/78.5%
sub-neg78.5%
metadata-eval78.5%
associate-*r/78.5%
metadata-eval78.5%
+-commutative78.5%
mul-1-neg78.5%
sub-neg78.5%
Simplified78.5%
Taylor expanded in a around inf 66.8%
*-commutative66.8%
Simplified66.8%
Final simplification50.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y -7.6e+195)
(* -0.5 (/ x (* b (* y a))))
(if (<= y 7e+150)
1.0
(if (<= y 8.6e+188)
(* 0.75 (* (/ t b) (/ x y)))
(if (<= y 6.2e+246) 1.0 (* -0.5 (/ x (* a (* y b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -7.6e+195) {
tmp = -0.5 * (x / (b * (y * a)));
} else if (y <= 7e+150) {
tmp = 1.0;
} else if (y <= 8.6e+188) {
tmp = 0.75 * ((t / b) * (x / y));
} else if (y <= 6.2e+246) {
tmp = 1.0;
} else {
tmp = -0.5 * (x / (a * (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= (-7.6d+195)) then
tmp = (-0.5d0) * (x / (b * (y * a)))
else if (y <= 7d+150) then
tmp = 1.0d0
else if (y <= 8.6d+188) then
tmp = 0.75d0 * ((t / b) * (x / y))
else if (y <= 6.2d+246) then
tmp = 1.0d0
else
tmp = (-0.5d0) * (x / (a * (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -7.6e+195) {
tmp = -0.5 * (x / (b * (y * a)));
} else if (y <= 7e+150) {
tmp = 1.0;
} else if (y <= 8.6e+188) {
tmp = 0.75 * ((t / b) * (x / y));
} else if (y <= 6.2e+246) {
tmp = 1.0;
} else {
tmp = -0.5 * (x / (a * (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -7.6e+195: tmp = -0.5 * (x / (b * (y * a))) elif y <= 7e+150: tmp = 1.0 elif y <= 8.6e+188: tmp = 0.75 * ((t / b) * (x / y)) elif y <= 6.2e+246: tmp = 1.0 else: tmp = -0.5 * (x / (a * (y * b))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -7.6e+195) tmp = Float64(-0.5 * Float64(x / Float64(b * Float64(y * a)))); elseif (y <= 7e+150) tmp = 1.0; elseif (y <= 8.6e+188) tmp = Float64(0.75 * Float64(Float64(t / b) * Float64(x / y))); elseif (y <= 6.2e+246) tmp = 1.0; else tmp = Float64(-0.5 * Float64(x / Float64(a * Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= -7.6e+195) tmp = -0.5 * (x / (b * (y * a))); elseif (y <= 7e+150) tmp = 1.0; elseif (y <= 8.6e+188) tmp = 0.75 * ((t / b) * (x / y)); elseif (y <= 6.2e+246) tmp = 1.0; else tmp = -0.5 * (x / (a * (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -7.6e+195], N[(-0.5 * N[(x / N[(b * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e+150], 1.0, If[LessEqual[y, 8.6e+188], N[(0.75 * N[(N[(t / b), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.2e+246], 1.0, N[(-0.5 * N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.6 \cdot 10^{+195}:\\
\;\;\;\;-0.5 \cdot \frac{x}{b \cdot \left(y \cdot a\right)}\\
\mathbf{elif}\;y \leq 7 \cdot 10^{+150}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 8.6 \cdot 10^{+188}:\\
\;\;\;\;0.75 \cdot \left(\frac{t}{b} \cdot \frac{x}{y}\right)\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{+246}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;-0.5 \cdot \frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if y < -7.6e195Initial program 88.2%
Taylor expanded in b around inf 60.2%
associate-*r/60.2%
metadata-eval60.2%
+-commutative60.2%
Simplified60.2%
Taylor expanded in b around 0 71.6%
associate-*r*71.6%
+-commutative71.6%
associate-*r/71.6%
metadata-eval71.6%
associate--r+71.6%
sub-neg71.6%
mul-1-neg71.6%
+-commutative71.6%
metadata-eval71.6%
associate-*r/71.6%
sub-neg71.6%
metadata-eval71.6%
associate-*r/71.6%
metadata-eval71.6%
+-commutative71.6%
mul-1-neg71.6%
sub-neg71.6%
Simplified71.6%
Taylor expanded in a around inf 60.1%
*-commutative60.1%
Simplified60.1%
add060.1%
associate-*r*60.2%
fma-define60.2%
Applied egg-rr60.2%
fma-undefine60.2%
+-rgt-identity60.2%
*-commutative60.2%
Simplified60.2%
if -7.6e195 < y < 6.99999999999999968e150 or 8.5999999999999997e188 < y < 6.19999999999999977e246Initial program 96.3%
Taylor expanded in b around inf 66.7%
associate-*r/66.7%
metadata-eval66.7%
+-commutative66.7%
Simplified66.7%
Taylor expanded in b around 0 29.7%
associate-*r*29.7%
+-commutative29.7%
associate-*r/29.7%
metadata-eval29.7%
associate--r+29.7%
sub-neg29.7%
mul-1-neg29.7%
+-commutative29.7%
metadata-eval29.7%
associate-*r/29.7%
sub-neg29.7%
metadata-eval29.7%
associate-*r/29.7%
metadata-eval29.7%
+-commutative29.7%
mul-1-neg29.7%
sub-neg29.7%
Simplified29.7%
Taylor expanded in a around inf 31.9%
associate-*r*31.9%
mul-1-neg31.9%
Simplified31.9%
Taylor expanded in x around inf 47.6%
if 6.99999999999999968e150 < y < 8.5999999999999997e188Initial program 88.9%
Taylor expanded in b around inf 78.5%
associate-*r/78.5%
metadata-eval78.5%
+-commutative78.5%
Simplified78.5%
Taylor expanded in b around 0 89.2%
associate-*r*89.2%
+-commutative89.2%
associate-*r/89.2%
metadata-eval89.2%
associate--r+89.2%
sub-neg89.2%
mul-1-neg89.2%
+-commutative89.2%
metadata-eval89.2%
associate-*r/89.2%
sub-neg89.2%
metadata-eval89.2%
associate-*r/89.2%
metadata-eval89.2%
+-commutative89.2%
mul-1-neg89.2%
sub-neg89.2%
Simplified89.2%
Taylor expanded in t around 0 68.6%
times-frac89.1%
Simplified89.1%
if 6.19999999999999977e246 < y Initial program 86.2%
Taylor expanded in b around inf 79.3%
associate-*r/79.3%
metadata-eval79.3%
+-commutative79.3%
Simplified79.3%
Taylor expanded in b around 0 79.2%
associate-*r*79.2%
+-commutative79.2%
associate-*r/79.2%
metadata-eval79.2%
associate--r+79.2%
sub-neg79.2%
mul-1-neg79.2%
+-commutative79.2%
metadata-eval79.2%
associate-*r/79.2%
sub-neg79.2%
metadata-eval79.2%
associate-*r/79.2%
metadata-eval79.2%
+-commutative79.2%
mul-1-neg79.2%
sub-neg79.2%
Simplified79.2%
Taylor expanded in a around inf 65.5%
*-commutative65.5%
Simplified65.5%
Final simplification50.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y -3e+194)
(/ x (* y (+ (* -2.0 (* a b)) 1.0)))
(if (<= y 2.8e+146)
1.0
(if (<= y 4.2e+188)
(* 0.75 (* (/ t b) (/ x y)))
(if (<= y 6e+245) 1.0 (* -0.5 (/ x (* a (* y b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -3e+194) {
tmp = x / (y * ((-2.0 * (a * b)) + 1.0));
} else if (y <= 2.8e+146) {
tmp = 1.0;
} else if (y <= 4.2e+188) {
tmp = 0.75 * ((t / b) * (x / y));
} else if (y <= 6e+245) {
tmp = 1.0;
} else {
tmp = -0.5 * (x / (a * (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= (-3d+194)) then
tmp = x / (y * (((-2.0d0) * (a * b)) + 1.0d0))
else if (y <= 2.8d+146) then
tmp = 1.0d0
else if (y <= 4.2d+188) then
tmp = 0.75d0 * ((t / b) * (x / y))
else if (y <= 6d+245) then
tmp = 1.0d0
else
tmp = (-0.5d0) * (x / (a * (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -3e+194) {
tmp = x / (y * ((-2.0 * (a * b)) + 1.0));
} else if (y <= 2.8e+146) {
tmp = 1.0;
} else if (y <= 4.2e+188) {
tmp = 0.75 * ((t / b) * (x / y));
} else if (y <= 6e+245) {
tmp = 1.0;
} else {
tmp = -0.5 * (x / (a * (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -3e+194: tmp = x / (y * ((-2.0 * (a * b)) + 1.0)) elif y <= 2.8e+146: tmp = 1.0 elif y <= 4.2e+188: tmp = 0.75 * ((t / b) * (x / y)) elif y <= 6e+245: tmp = 1.0 else: tmp = -0.5 * (x / (a * (y * b))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -3e+194) tmp = Float64(x / Float64(y * Float64(Float64(-2.0 * Float64(a * b)) + 1.0))); elseif (y <= 2.8e+146) tmp = 1.0; elseif (y <= 4.2e+188) tmp = Float64(0.75 * Float64(Float64(t / b) * Float64(x / y))); elseif (y <= 6e+245) tmp = 1.0; else tmp = Float64(-0.5 * Float64(x / Float64(a * Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= -3e+194) tmp = x / (y * ((-2.0 * (a * b)) + 1.0)); elseif (y <= 2.8e+146) tmp = 1.0; elseif (y <= 4.2e+188) tmp = 0.75 * ((t / b) * (x / y)); elseif (y <= 6e+245) tmp = 1.0; else tmp = -0.5 * (x / (a * (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -3e+194], N[(x / N[(y * N[(N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.8e+146], 1.0, If[LessEqual[y, 4.2e+188], N[(0.75 * N[(N[(t / b), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6e+245], 1.0, N[(-0.5 * N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3 \cdot 10^{+194}:\\
\;\;\;\;\frac{x}{y \cdot \left(-2 \cdot \left(a \cdot b\right) + 1\right)}\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{+146}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{+188}:\\
\;\;\;\;0.75 \cdot \left(\frac{t}{b} \cdot \frac{x}{y}\right)\\
\mathbf{elif}\;y \leq 6 \cdot 10^{+245}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;-0.5 \cdot \frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if y < -3.0000000000000003e194Initial program 88.2%
Taylor expanded in b around inf 60.2%
associate-*r/60.2%
metadata-eval60.2%
+-commutative60.2%
Simplified60.2%
Taylor expanded in b around 0 71.6%
associate-*r*71.6%
+-commutative71.6%
associate-*r/71.6%
metadata-eval71.6%
associate--r+71.6%
sub-neg71.6%
mul-1-neg71.6%
+-commutative71.6%
metadata-eval71.6%
associate-*r/71.6%
sub-neg71.6%
metadata-eval71.6%
associate-*r/71.6%
metadata-eval71.6%
+-commutative71.6%
mul-1-neg71.6%
sub-neg71.6%
Simplified71.6%
Taylor expanded in a around inf 66.3%
associate-*r*66.3%
mul-1-neg66.3%
Simplified66.3%
Taylor expanded in y around inf 66.3%
if -3.0000000000000003e194 < y < 2.8000000000000001e146 or 4.19999999999999973e188 < y < 6e245Initial program 96.3%
Taylor expanded in b around inf 66.7%
associate-*r/66.7%
metadata-eval66.7%
+-commutative66.7%
Simplified66.7%
Taylor expanded in b around 0 29.7%
associate-*r*29.7%
+-commutative29.7%
associate-*r/29.7%
metadata-eval29.7%
associate--r+29.7%
sub-neg29.7%
mul-1-neg29.7%
+-commutative29.7%
metadata-eval29.7%
associate-*r/29.7%
sub-neg29.7%
metadata-eval29.7%
associate-*r/29.7%
metadata-eval29.7%
+-commutative29.7%
mul-1-neg29.7%
sub-neg29.7%
Simplified29.7%
Taylor expanded in a around inf 31.9%
associate-*r*31.9%
mul-1-neg31.9%
Simplified31.9%
Taylor expanded in x around inf 47.6%
if 2.8000000000000001e146 < y < 4.19999999999999973e188Initial program 88.9%
Taylor expanded in b around inf 78.5%
associate-*r/78.5%
metadata-eval78.5%
+-commutative78.5%
Simplified78.5%
Taylor expanded in b around 0 89.2%
associate-*r*89.2%
+-commutative89.2%
associate-*r/89.2%
metadata-eval89.2%
associate--r+89.2%
sub-neg89.2%
mul-1-neg89.2%
+-commutative89.2%
metadata-eval89.2%
associate-*r/89.2%
sub-neg89.2%
metadata-eval89.2%
associate-*r/89.2%
metadata-eval89.2%
+-commutative89.2%
mul-1-neg89.2%
sub-neg89.2%
Simplified89.2%
Taylor expanded in t around 0 68.6%
times-frac89.1%
Simplified89.1%
if 6e245 < y Initial program 86.2%
Taylor expanded in b around inf 79.3%
associate-*r/79.3%
metadata-eval79.3%
+-commutative79.3%
Simplified79.3%
Taylor expanded in b around 0 79.2%
associate-*r*79.2%
+-commutative79.2%
associate-*r/79.2%
metadata-eval79.2%
associate--r+79.2%
sub-neg79.2%
mul-1-neg79.2%
+-commutative79.2%
metadata-eval79.2%
associate-*r/79.2%
sub-neg79.2%
metadata-eval79.2%
associate-*r/79.2%
metadata-eval79.2%
+-commutative79.2%
mul-1-neg79.2%
sub-neg79.2%
Simplified79.2%
Taylor expanded in a around inf 65.5%
*-commutative65.5%
Simplified65.5%
Final simplification51.2%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 94.9%
Taylor expanded in b around inf 67.4%
associate-*r/67.4%
metadata-eval67.4%
+-commutative67.4%
Simplified67.4%
Taylor expanded in b around 0 37.2%
associate-*r*37.2%
+-commutative37.2%
associate-*r/37.2%
metadata-eval37.2%
associate--r+37.2%
sub-neg37.2%
mul-1-neg37.2%
+-commutative37.2%
metadata-eval37.2%
associate-*r/37.2%
sub-neg37.2%
metadata-eval37.2%
associate-*r/37.2%
metadata-eval37.2%
+-commutative37.2%
mul-1-neg37.2%
sub-neg37.2%
Simplified37.2%
Taylor expanded in a around inf 37.6%
associate-*r*37.6%
mul-1-neg37.6%
Simplified37.6%
Taylor expanded in x around inf 43.6%
Final simplification43.6%
(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 2024046
(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)))))))))))