
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* (- c b) (- (+ 0.8333333333333334 a) (/ 2.0 (* t 3.0)))))
(t_2 (sqrt (+ a t))))
(if (<= (+ (/ (* t_2 z) t) t_1) INFINITY)
(/ x (+ x (* y (pow (exp 2.0) (+ (/ z (/ t t_2)) t_1)))))
(/
x
(+
x
(-
y
(*
y
(*
2.0
(* b (- (+ 0.8333333333333334 a) (/ 0.6666666666666666 t)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (c - b) * ((0.8333333333333334 + a) - (2.0 / (t * 3.0)));
double t_2 = sqrt((a + t));
double tmp;
if ((((t_2 * z) / t) + t_1) <= ((double) INFINITY)) {
tmp = x / (x + (y * pow(exp(2.0), ((z / (t / t_2)) + t_1))));
} else {
tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t)))))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (c - b) * ((0.8333333333333334 + a) - (2.0 / (t * 3.0)));
double t_2 = Math.sqrt((a + t));
double tmp;
if ((((t_2 * z) / t) + t_1) <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), ((z / (t / t_2)) + t_1))));
} else {
tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (c - b) * ((0.8333333333333334 + a) - (2.0 / (t * 3.0))) t_2 = math.sqrt((a + t)) tmp = 0 if (((t_2 * z) / t) + t_1) <= math.inf: tmp = x / (x + (y * math.pow(math.exp(2.0), ((z / (t / t_2)) + t_1)))) else: tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(c - b) * Float64(Float64(0.8333333333333334 + a) - Float64(2.0 / Float64(t * 3.0)))) t_2 = sqrt(Float64(a + t)) tmp = 0.0 if (Float64(Float64(Float64(t_2 * z) / t) + t_1) <= Inf) tmp = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(Float64(z / Float64(t / t_2)) + t_1))))); else tmp = Float64(x / Float64(x + Float64(y - Float64(y * Float64(2.0 * Float64(b * Float64(Float64(0.8333333333333334 + a) - Float64(0.6666666666666666 / t)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (c - b) * ((0.8333333333333334 + a) - (2.0 / (t * 3.0))); t_2 = sqrt((a + t)); tmp = 0.0; if ((((t_2 * z) / t) + t_1) <= Inf) tmp = x / (x + (y * (exp(2.0) ^ ((z / (t / t_2)) + t_1)))); else tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(c - b), $MachinePrecision] * N[(N[(0.8333333333333334 + a), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(N[(N[(t$95$2 * z), $MachinePrecision] / t), $MachinePrecision] + t$95$1), $MachinePrecision], Infinity], N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(z / N[(t / t$95$2), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y - N[(y * N[(2.0 * N[(b * N[(N[(0.8333333333333334 + a), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c - b\right) \cdot \left(\left(0.8333333333333334 + a\right) - \frac{2}{t \cdot 3}\right)\\
t_2 := \sqrt{a + t}\\
\mathbf{if}\;\frac{t_2 \cdot z}{t} + t_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(\frac{z}{\frac{t}{t_2}} + t_1\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y - y \cdot \left(2 \cdot \left(b \cdot \left(\left(0.8333333333333334 + a\right) - \frac{0.6666666666666666}{t}\right)\right)\right)\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 98.8%
exp-prod98.8%
associate-/l*99.2%
metadata-eval99.2%
Simplified99.2%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) Initial program 0.0%
Taylor expanded in b around inf 77.7%
*-commutative77.7%
associate-*r/77.7%
metadata-eval77.7%
+-commutative77.7%
Simplified77.7%
Taylor expanded in b around 0 77.7%
distribute-rgt-in77.7%
*-commutative77.7%
div-inv77.7%
+-commutative77.7%
*-un-lft-identity77.7%
Applied egg-rr77.7%
Final simplification98.1%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
(- 0.8333333333333334 (- (/ 0.6666666666666666 t) a))
(- c b)
(* (sqrt (+ a t)) (/ z t))))
x)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / fma(y, pow(exp(2.0), fma((0.8333333333333334 - ((0.6666666666666666 / t) - a)), (c - b), (sqrt((a + t)) * (z / t)))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(Float64(0.8333333333333334 - Float64(Float64(0.6666666666666666 / t) - a)), Float64(c - b), Float64(sqrt(Float64(a + t)) * Float64(z / t)))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(0.8333333333333334 - N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision] + N[(N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(0.8333333333333334 - \left(\frac{0.6666666666666666}{t} - a\right), c - b, \sqrt{a + t} \cdot \frac{z}{t}\right)\right)}, x\right)}
\end{array}
Initial program 93.8%
+-commutative93.8%
fma-def93.8%
Simplified97.3%
Final simplification97.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* (sqrt (+ a t)) z) t)
(* (- c b) (- (+ 0.8333333333333334 a) (/ 2.0 (* t 3.0)))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/
x
(+
x
(-
y
(*
y
(*
2.0
(* b (- (+ 0.8333333333333334 a) (/ 0.6666666666666666 t)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((sqrt((a + t)) * z) / t) + ((c - b) * ((0.8333333333333334 + a) - (2.0 / (t * 3.0))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t)))))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((Math.sqrt((a + t)) * z) / t) + ((c - b) * ((0.8333333333333334 + a) - (2.0 / (t * 3.0))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((math.sqrt((a + t)) * z) / t) + ((c - b) * ((0.8333333333333334 + a) - (2.0 / (t * 3.0)))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(sqrt(Float64(a + t)) * z) / t) + Float64(Float64(c - b) * Float64(Float64(0.8333333333333334 + a) - Float64(2.0 / Float64(t * 3.0))))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y - Float64(y * Float64(2.0 * Float64(b * Float64(Float64(0.8333333333333334 + a) - Float64(0.6666666666666666 / t)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((sqrt((a + t)) * z) / t) + ((c - b) * ((0.8333333333333334 + a) - (2.0 / (t * 3.0)))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision] + N[(N[(c - b), $MachinePrecision] * N[(N[(0.8333333333333334 + a), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $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[(y * N[(2.0 * N[(b * N[(N[(0.8333333333333334 + a), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\sqrt{a + t} \cdot z}{t} + \left(c - b\right) \cdot \left(\left(0.8333333333333334 + a\right) - \frac{2}{t \cdot 3}\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y - y \cdot \left(2 \cdot \left(b \cdot \left(\left(0.8333333333333334 + a\right) - \frac{0.6666666666666666}{t}\right)\right)\right)\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 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 77.7%
*-commutative77.7%
associate-*r/77.7%
metadata-eval77.7%
+-commutative77.7%
Simplified77.7%
Taylor expanded in b around 0 77.7%
distribute-rgt-in77.7%
*-commutative77.7%
div-inv77.7%
+-commutative77.7%
*-un-lft-identity77.7%
Applied egg-rr77.7%
Final simplification97.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 1.26e-186)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* (- c b) -0.6666666666666666)) t))))))
(if (<= t 2.7e-163)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
(if (<= t 1e-68)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (- c b) (- 0.8333333333333334 (/ 0.6666666666666666 t)))))))))
(if (<= t 3.3e-10)
1.0
(/
x
(+ x (* y (exp (* 2.0 (* (- c b) (+ 0.8333333333333334 a))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.26e-186) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + ((c - b) * -0.6666666666666666)) / t)))));
} else if (t <= 2.7e-163) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else if (t <= 1e-68) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((c - b) * (0.8333333333333334 - (0.6666666666666666 / t))))))));
} else if (t <= 3.3e-10) {
tmp = 1.0;
} else {
tmp = x / (x + (y * exp((2.0 * ((c - b) * (0.8333333333333334 + a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 1.26d-186) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((c - b) * (-0.6666666666666666d0))) / t)))))
else if (t <= 2.7d-163) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else if (t <= 1d-68) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((c - b) * (0.8333333333333334d0 - (0.6666666666666666d0 / t))))))))
else if (t <= 3.3d-10) then
tmp = 1.0d0
else
tmp = x / (x + (y * exp((2.0d0 * ((c - b) * (0.8333333333333334d0 + a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.26e-186) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + ((c - b) * -0.6666666666666666)) / t)))));
} else if (t <= 2.7e-163) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else if (t <= 1e-68) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((c - b) * (0.8333333333333334 - (0.6666666666666666 / t))))))));
} else if (t <= 3.3e-10) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((c - b) * (0.8333333333333334 + a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1.26e-186: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + ((c - b) * -0.6666666666666666)) / t))))) elif t <= 2.7e-163: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) elif t <= 1e-68: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((c - b) * (0.8333333333333334 - (0.6666666666666666 / t)))))))) elif t <= 3.3e-10: tmp = 1.0 else: tmp = x / (x + (y * math.exp((2.0 * ((c - b) * (0.8333333333333334 + a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1.26e-186) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(Float64(c - b) * -0.6666666666666666)) / t)))))); elseif (t <= 2.7e-163) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); elseif (t <= 1e-68) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(c - b) * Float64(0.8333333333333334 - Float64(0.6666666666666666 / t))))))))); elseif (t <= 3.3e-10) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c - b) * Float64(0.8333333333333334 + a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 1.26e-186) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + ((c - b) * -0.6666666666666666)) / t))))); elseif (t <= 2.7e-163) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); elseif (t <= 1e-68) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((c - b) * (0.8333333333333334 - (0.6666666666666666 / t)))))))); elseif (t <= 3.3e-10) tmp = 1.0; else tmp = x / (x + (y * exp((2.0 * ((c - b) * (0.8333333333333334 + a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 1.26e-186], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(N[(c - b), $MachinePrecision] * -0.6666666666666666), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.7e-163], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e-68], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(c - b), $MachinePrecision] * N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.3e-10], 1.0, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c - b), $MachinePrecision] * N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.26 \cdot 10^{-186}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + \left(c - b\right) \cdot -0.6666666666666666}{t}}}\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-163}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{elif}\;t \leq 10^{-68}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(c - b\right) \cdot \left(0.8333333333333334 - \frac{0.6666666666666666}{t}\right)\right)}}\\
\mathbf{elif}\;t \leq 3.3 \cdot 10^{-10}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(c - b\right) \cdot \left(0.8333333333333334 + a\right)\right)}}\\
\end{array}
\end{array}
if t < 1.2599999999999999e-186Initial program 94.5%
Taylor expanded in t around 0 90.4%
if 1.2599999999999999e-186 < t < 2.70000000000000015e-163Initial program 75.0%
Taylor expanded in t around inf 75.8%
mul-1-neg75.8%
*-commutative75.8%
distribute-rgt-neg-in75.8%
+-commutative75.8%
neg-sub075.8%
associate--r-75.8%
neg-sub075.8%
+-commutative75.8%
sub-neg75.8%
Simplified75.8%
Taylor expanded in a around 0 75.8%
Taylor expanded in b around 0 100.0%
if 2.70000000000000015e-163 < t < 1.00000000000000007e-68Initial program 96.8%
Taylor expanded in a around 0 84.8%
*-commutative84.8%
associate-*r/84.8%
metadata-eval84.8%
Simplified84.8%
if 1.00000000000000007e-68 < t < 3.3e-10Initial program 84.2%
Taylor expanded in b around inf 74.4%
*-commutative74.4%
associate-*r/74.4%
metadata-eval74.4%
+-commutative74.4%
Simplified74.4%
div-inv74.3%
exp-prod74.3%
Applied egg-rr74.3%
Taylor expanded in x around inf 79.6%
if 3.3e-10 < t Initial program 95.4%
Taylor expanded in t around inf 95.4%
mul-1-neg95.4%
*-commutative95.4%
distribute-rgt-neg-in95.4%
+-commutative95.4%
neg-sub095.4%
associate--r-95.4%
neg-sub095.4%
+-commutative95.4%
sub-neg95.4%
Simplified95.4%
Final simplification91.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (+ (* z (sqrt a)) (* (- c b) -0.6666666666666666)) t))))))))
(if (<= t 1.26e-186)
t_1
(if (<= t 1.45e-163)
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))
(if (<= t 2e-134)
t_1
(if (<= t 4.55e-23)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
b
(- (/ 0.6666666666666666 t) (+ 0.8333333333333334 a))))))))
(/
x
(+
x
(* y (exp (* 2.0 (* (- c b) (+ 0.8333333333333334 a)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + ((c - b) * -0.6666666666666666)) / t)))));
double tmp;
if (t <= 1.26e-186) {
tmp = t_1;
} else if (t <= 1.45e-163) {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
} else if (t <= 2e-134) {
tmp = t_1;
} else if (t <= 4.55e-23) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (0.8333333333333334 + a)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((c - b) * (0.8333333333333334 + a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((c - b) * (-0.6666666666666666d0))) / t)))))
if (t <= 1.26d-186) then
tmp = t_1
else if (t <= 1.45d-163) then
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
else if (t <= 2d-134) then
tmp = t_1
else if (t <= 4.55d-23) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (0.8333333333333334d0 + a)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((c - b) * (0.8333333333333334d0 + a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + ((c - b) * -0.6666666666666666)) / t)))));
double tmp;
if (t <= 1.26e-186) {
tmp = t_1;
} else if (t <= 1.45e-163) {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
} else if (t <= 2e-134) {
tmp = t_1;
} else if (t <= 4.55e-23) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (0.8333333333333334 + a)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((c - b) * (0.8333333333333334 + a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + ((c - b) * -0.6666666666666666)) / t))))) tmp = 0 if t <= 1.26e-186: tmp = t_1 elif t <= 1.45e-163: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) elif t <= 2e-134: tmp = t_1 elif t <= 4.55e-23: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (0.8333333333333334 + a))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((c - b) * (0.8333333333333334 + a)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(Float64(c - b) * -0.6666666666666666)) / t)))))) tmp = 0.0 if (t <= 1.26e-186) tmp = t_1; elseif (t <= 1.45e-163) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); elseif (t <= 2e-134) tmp = t_1; elseif (t <= 4.55e-23) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(0.8333333333333334 + a)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c - b) * Float64(0.8333333333333334 + a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + ((c - b) * -0.6666666666666666)) / t))))); tmp = 0.0; if (t <= 1.26e-186) tmp = t_1; elseif (t <= 1.45e-163) tmp = x / (x + (y * exp((c * 1.6666666666666667)))); elseif (t <= 2e-134) tmp = t_1; elseif (t <= 4.55e-23) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (0.8333333333333334 + a))))))); else tmp = x / (x + (y * exp((2.0 * ((c - b) * (0.8333333333333334 + a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(N[(c - b), $MachinePrecision] * -0.6666666666666666), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 1.26e-186], t$95$1, If[LessEqual[t, 1.45e-163], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e-134], t$95$1, If[LessEqual[t, 4.55e-23], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c - b), $MachinePrecision] * N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + \left(c - b\right) \cdot -0.6666666666666666}{t}}}\\
\mathbf{if}\;t \leq 1.26 \cdot 10^{-186}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{-163}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-134}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4.55 \cdot 10^{-23}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(0.8333333333333334 + a\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(c - b\right) \cdot \left(0.8333333333333334 + a\right)\right)}}\\
\end{array}
\end{array}
if t < 1.2599999999999999e-186 or 1.4500000000000001e-163 < t < 2.00000000000000008e-134Initial program 94.9%
Taylor expanded in t around 0 91.1%
if 1.2599999999999999e-186 < t < 1.4500000000000001e-163Initial program 75.0%
Taylor expanded in t around inf 75.8%
mul-1-neg75.8%
*-commutative75.8%
distribute-rgt-neg-in75.8%
+-commutative75.8%
neg-sub075.8%
associate--r-75.8%
neg-sub075.8%
+-commutative75.8%
sub-neg75.8%
Simplified75.8%
Taylor expanded in a around 0 75.8%
Taylor expanded in b around 0 100.0%
if 2.00000000000000008e-134 < t < 4.55e-23Initial program 92.6%
Taylor expanded in b around inf 79.1%
*-commutative79.1%
associate-*r/79.1%
metadata-eval79.1%
+-commutative79.1%
Simplified79.1%
if 4.55e-23 < t Initial program 94.5%
Taylor expanded in t around inf 94.6%
mul-1-neg94.6%
*-commutative94.6%
distribute-rgt-neg-in94.6%
+-commutative94.6%
neg-sub094.6%
associate--r-94.6%
neg-sub094.6%
+-commutative94.6%
sub-neg94.6%
Simplified94.6%
Final simplification90.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (- c b) 1.6666666666666667)))))))
(if (<= t 2.45e-250)
t_1
(if (<= t 3.5e-108)
(/ x (+ x (* y (exp (* 2.0 (* 0.6666666666666666 (/ b t)))))))
(if (<= t 1.3e-59)
(/ x (+ x (* y (exp (* -2.0 (* a b))))))
(if (<= t 1e-8)
1.0
(if (<= t 4.2e+235)
t_1
(/ x (+ x (* y (exp (* 2.0 (* a (- c b))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp(((c - b) * 1.6666666666666667))));
double tmp;
if (t <= 2.45e-250) {
tmp = t_1;
} else if (t <= 3.5e-108) {
tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t))))));
} else if (t <= 1.3e-59) {
tmp = x / (x + (y * exp((-2.0 * (a * b)))));
} else if (t <= 1e-8) {
tmp = 1.0;
} else if (t <= 4.2e+235) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp(((c - b) * 1.6666666666666667d0))))
if (t <= 2.45d-250) then
tmp = t_1
else if (t <= 3.5d-108) then
tmp = x / (x + (y * exp((2.0d0 * (0.6666666666666666d0 * (b / t))))))
else if (t <= 1.3d-59) then
tmp = x / (x + (y * exp(((-2.0d0) * (a * b)))))
else if (t <= 1d-8) then
tmp = 1.0d0
else if (t <= 4.2d+235) then
tmp = t_1
else
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp(((c - b) * 1.6666666666666667))));
double tmp;
if (t <= 2.45e-250) {
tmp = t_1;
} else if (t <= 3.5e-108) {
tmp = x / (x + (y * Math.exp((2.0 * (0.6666666666666666 * (b / t))))));
} else if (t <= 1.3e-59) {
tmp = x / (x + (y * Math.exp((-2.0 * (a * b)))));
} else if (t <= 1e-8) {
tmp = 1.0;
} else if (t <= 4.2e+235) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp(((c - b) * 1.6666666666666667)))) tmp = 0 if t <= 2.45e-250: tmp = t_1 elif t <= 3.5e-108: tmp = x / (x + (y * math.exp((2.0 * (0.6666666666666666 * (b / t)))))) elif t <= 1.3e-59: tmp = x / (x + (y * math.exp((-2.0 * (a * b))))) elif t <= 1e-8: tmp = 1.0 elif t <= 4.2e+235: tmp = t_1 else: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c - b) * 1.6666666666666667))))) tmp = 0.0 if (t <= 2.45e-250) tmp = t_1; elseif (t <= 3.5e-108) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(0.6666666666666666 * Float64(b / t))))))); elseif (t <= 1.3e-59) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))); elseif (t <= 1e-8) tmp = 1.0; elseif (t <= 4.2e+235) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp(((c - b) * 1.6666666666666667)))); tmp = 0.0; if (t <= 2.45e-250) tmp = t_1; elseif (t <= 3.5e-108) tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t)))))); elseif (t <= 1.3e-59) tmp = x / (x + (y * exp((-2.0 * (a * b))))); elseif (t <= 1e-8) tmp = 1.0; elseif (t <= 4.2e+235) tmp = t_1; else tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); 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[(N[(c - b), $MachinePrecision] * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 2.45e-250], t$95$1, If[LessEqual[t, 3.5e-108], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(0.6666666666666666 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.3e-59], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e-8], 1.0, If[LessEqual[t, 4.2e+235], 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]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\mathbf{if}\;t \leq 2.45 \cdot 10^{-250}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-108}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(0.6666666666666666 \cdot \frac{b}{t}\right)}}\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{-59}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;t \leq 10^{-8}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{+235}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 2.44999999999999985e-250 or 1e-8 < t < 4.2000000000000001e235Initial program 95.5%
Taylor expanded in t around inf 91.2%
mul-1-neg91.2%
*-commutative91.2%
distribute-rgt-neg-in91.2%
+-commutative91.2%
neg-sub091.2%
associate--r-91.2%
neg-sub091.2%
+-commutative91.2%
sub-neg91.2%
Simplified91.2%
Taylor expanded in a around 0 85.6%
if 2.44999999999999985e-250 < t < 3.4999999999999999e-108Initial program 92.3%
Taylor expanded in b around inf 72.7%
*-commutative72.7%
associate-*r/72.7%
metadata-eval72.7%
+-commutative72.7%
Simplified72.7%
Taylor expanded in t around 0 62.8%
if 3.4999999999999999e-108 < t < 1.29999999999999999e-59Initial program 93.7%
Taylor expanded in a around inf 76.8%
Taylor expanded in c around 0 76.8%
if 1.29999999999999999e-59 < t < 1e-8Initial program 88.2%
Taylor expanded in b around inf 71.4%
*-commutative71.4%
associate-*r/71.4%
metadata-eval71.4%
+-commutative71.4%
Simplified71.4%
div-inv71.3%
exp-prod71.3%
Applied egg-rr71.3%
Taylor expanded in x around inf 82.9%
if 4.2000000000000001e235 < t Initial program 90.1%
Taylor expanded in a around inf 77.4%
Final simplification80.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/ x (+ x (* y (exp (* 2.0 (* (- c b) (+ 0.8333333333333334 a)))))))))
(if (<= t 2.45e-250)
t_1
(if (<= t 3.3e-109)
(/ x (+ x (* y (exp (* 2.0 (* 0.6666666666666666 (/ b t)))))))
(if (<= t 1.16e-59)
(/ x (+ x (* y (exp (* -2.0 (* a b))))))
(if (<= t 1e-12) 1.0 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((c - b) * (0.8333333333333334 + a))))));
double tmp;
if (t <= 2.45e-250) {
tmp = t_1;
} else if (t <= 3.3e-109) {
tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t))))));
} else if (t <= 1.16e-59) {
tmp = x / (x + (y * exp((-2.0 * (a * b)))));
} else if (t <= 1e-12) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((c - b) * (0.8333333333333334d0 + a))))))
if (t <= 2.45d-250) then
tmp = t_1
else if (t <= 3.3d-109) then
tmp = x / (x + (y * exp((2.0d0 * (0.6666666666666666d0 * (b / t))))))
else if (t <= 1.16d-59) then
tmp = x / (x + (y * exp(((-2.0d0) * (a * b)))))
else if (t <= 1d-12) then
tmp = 1.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((c - b) * (0.8333333333333334 + a))))));
double tmp;
if (t <= 2.45e-250) {
tmp = t_1;
} else if (t <= 3.3e-109) {
tmp = x / (x + (y * Math.exp((2.0 * (0.6666666666666666 * (b / t))))));
} else if (t <= 1.16e-59) {
tmp = x / (x + (y * Math.exp((-2.0 * (a * b)))));
} else if (t <= 1e-12) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((c - b) * (0.8333333333333334 + a)))))) tmp = 0 if t <= 2.45e-250: tmp = t_1 elif t <= 3.3e-109: tmp = x / (x + (y * math.exp((2.0 * (0.6666666666666666 * (b / t)))))) elif t <= 1.16e-59: tmp = x / (x + (y * math.exp((-2.0 * (a * b))))) elif t <= 1e-12: tmp = 1.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c - b) * Float64(0.8333333333333334 + a))))))) tmp = 0.0 if (t <= 2.45e-250) tmp = t_1; elseif (t <= 3.3e-109) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(0.6666666666666666 * Float64(b / t))))))); elseif (t <= 1.16e-59) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))); elseif (t <= 1e-12) tmp = 1.0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((c - b) * (0.8333333333333334 + a)))))); tmp = 0.0; if (t <= 2.45e-250) tmp = t_1; elseif (t <= 3.3e-109) tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t)))))); elseif (t <= 1.16e-59) tmp = x / (x + (y * exp((-2.0 * (a * b))))); elseif (t <= 1e-12) tmp = 1.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c - b), $MachinePrecision] * N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 2.45e-250], t$95$1, If[LessEqual[t, 3.3e-109], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(0.6666666666666666 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.16e-59], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e-12], 1.0, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(\left(c - b\right) \cdot \left(0.8333333333333334 + a\right)\right)}}\\
\mathbf{if}\;t \leq 2.45 \cdot 10^{-250}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.3 \cdot 10^{-109}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(0.6666666666666666 \cdot \frac{b}{t}\right)}}\\
\mathbf{elif}\;t \leq 1.16 \cdot 10^{-59}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;t \leq 10^{-12}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < 2.44999999999999985e-250 or 9.9999999999999998e-13 < t Initial program 94.6%
Taylor expanded in t around inf 91.6%
mul-1-neg91.6%
*-commutative91.6%
distribute-rgt-neg-in91.6%
+-commutative91.6%
neg-sub091.6%
associate--r-91.6%
neg-sub091.6%
+-commutative91.6%
sub-neg91.6%
Simplified91.6%
if 2.44999999999999985e-250 < t < 3.2999999999999999e-109Initial program 92.3%
Taylor expanded in b around inf 72.7%
*-commutative72.7%
associate-*r/72.7%
metadata-eval72.7%
+-commutative72.7%
Simplified72.7%
Taylor expanded in t around 0 62.8%
if 3.2999999999999999e-109 < t < 1.16e-59Initial program 93.7%
Taylor expanded in a around inf 76.8%
Taylor expanded in c around 0 76.8%
if 1.16e-59 < t < 9.9999999999999998e-13Initial program 88.2%
Taylor expanded in b around inf 71.4%
*-commutative71.4%
associate-*r/71.4%
metadata-eval71.4%
+-commutative71.4%
Simplified71.4%
div-inv71.3%
exp-prod71.3%
Applied egg-rr71.3%
Taylor expanded in x around inf 82.9%
Final simplification85.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (- c b) 1.6666666666666667)))))))
(if (<= t 2.45e-250)
t_1
(if (<= t 1.15e-108)
(/ x (+ x (* y (exp (* 2.0 (* 0.6666666666666666 (/ b t)))))))
(if (<= t 2.5e-59)
(/ x (+ x (* y (exp (* -2.0 (* a b))))))
(if (<= t 1.1e-9)
1.0
(if (<= t 9e+233) t_1 (/ x (+ x (* y (exp (* 2.0 (* a c)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp(((c - b) * 1.6666666666666667))));
double tmp;
if (t <= 2.45e-250) {
tmp = t_1;
} else if (t <= 1.15e-108) {
tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t))))));
} else if (t <= 2.5e-59) {
tmp = x / (x + (y * exp((-2.0 * (a * b)))));
} else if (t <= 1.1e-9) {
tmp = 1.0;
} else if (t <= 9e+233) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp(((c - b) * 1.6666666666666667d0))))
if (t <= 2.45d-250) then
tmp = t_1
else if (t <= 1.15d-108) then
tmp = x / (x + (y * exp((2.0d0 * (0.6666666666666666d0 * (b / t))))))
else if (t <= 2.5d-59) then
tmp = x / (x + (y * exp(((-2.0d0) * (a * b)))))
else if (t <= 1.1d-9) then
tmp = 1.0d0
else if (t <= 9d+233) then
tmp = t_1
else
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp(((c - b) * 1.6666666666666667))));
double tmp;
if (t <= 2.45e-250) {
tmp = t_1;
} else if (t <= 1.15e-108) {
tmp = x / (x + (y * Math.exp((2.0 * (0.6666666666666666 * (b / t))))));
} else if (t <= 2.5e-59) {
tmp = x / (x + (y * Math.exp((-2.0 * (a * b)))));
} else if (t <= 1.1e-9) {
tmp = 1.0;
} else if (t <= 9e+233) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp(((c - b) * 1.6666666666666667)))) tmp = 0 if t <= 2.45e-250: tmp = t_1 elif t <= 1.15e-108: tmp = x / (x + (y * math.exp((2.0 * (0.6666666666666666 * (b / t)))))) elif t <= 2.5e-59: tmp = x / (x + (y * math.exp((-2.0 * (a * b))))) elif t <= 1.1e-9: tmp = 1.0 elif t <= 9e+233: tmp = t_1 else: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c - b) * 1.6666666666666667))))) tmp = 0.0 if (t <= 2.45e-250) tmp = t_1; elseif (t <= 1.15e-108) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(0.6666666666666666 * Float64(b / t))))))); elseif (t <= 2.5e-59) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))); elseif (t <= 1.1e-9) tmp = 1.0; elseif (t <= 9e+233) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp(((c - b) * 1.6666666666666667)))); tmp = 0.0; if (t <= 2.45e-250) tmp = t_1; elseif (t <= 1.15e-108) tmp = x / (x + (y * exp((2.0 * (0.6666666666666666 * (b / t)))))); elseif (t <= 2.5e-59) tmp = x / (x + (y * exp((-2.0 * (a * b))))); elseif (t <= 1.1e-9) tmp = 1.0; elseif (t <= 9e+233) tmp = t_1; else tmp = x / (x + (y * exp((2.0 * (a * c))))); 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[(N[(c - b), $MachinePrecision] * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 2.45e-250], t$95$1, If[LessEqual[t, 1.15e-108], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(0.6666666666666666 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.5e-59], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.1e-9], 1.0, If[LessEqual[t, 9e+233], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\mathbf{if}\;t \leq 2.45 \cdot 10^{-250}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-108}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(0.6666666666666666 \cdot \frac{b}{t}\right)}}\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-59}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{-9}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 9 \cdot 10^{+233}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\end{array}
\end{array}
if t < 2.44999999999999985e-250 or 1.0999999999999999e-9 < t < 8.99999999999999998e233Initial program 95.5%
Taylor expanded in t around inf 91.1%
mul-1-neg91.1%
*-commutative91.1%
distribute-rgt-neg-in91.1%
+-commutative91.1%
neg-sub091.1%
associate--r-91.1%
neg-sub091.1%
+-commutative91.1%
sub-neg91.1%
Simplified91.1%
Taylor expanded in a around 0 85.6%
if 2.44999999999999985e-250 < t < 1.14999999999999998e-108Initial program 92.3%
Taylor expanded in b around inf 72.7%
*-commutative72.7%
associate-*r/72.7%
metadata-eval72.7%
+-commutative72.7%
Simplified72.7%
Taylor expanded in t around 0 62.8%
if 1.14999999999999998e-108 < t < 2.5000000000000001e-59Initial program 93.7%
Taylor expanded in a around inf 76.8%
Taylor expanded in c around 0 76.8%
if 2.5000000000000001e-59 < t < 1.0999999999999999e-9Initial program 88.2%
Taylor expanded in b around inf 71.4%
*-commutative71.4%
associate-*r/71.4%
metadata-eval71.4%
+-commutative71.4%
Simplified71.4%
div-inv71.3%
exp-prod71.3%
Applied egg-rr71.3%
Taylor expanded in x around inf 82.9%
if 8.99999999999999998e233 < t Initial program 90.4%
Taylor expanded in a around inf 75.0%
Taylor expanded in b around 0 72.0%
Final simplification79.7%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= t -3.5e-294) (not (<= t 4.5e-24)))
(/ x (+ x (* y (exp (* 2.0 (* (- c b) (+ 0.8333333333333334 a)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ 0.8333333333333334 a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -3.5e-294) || !(t <= 4.5e-24)) {
tmp = x / (x + (y * exp((2.0 * ((c - b) * (0.8333333333333334 + a))))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (0.8333333333333334 + a)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((t <= (-3.5d-294)) .or. (.not. (t <= 4.5d-24))) then
tmp = x / (x + (y * exp((2.0d0 * ((c - b) * (0.8333333333333334d0 + a))))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (0.8333333333333334d0 + a)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -3.5e-294) || !(t <= 4.5e-24)) {
tmp = x / (x + (y * Math.exp((2.0 * ((c - b) * (0.8333333333333334 + a))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (0.8333333333333334 + a)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -3.5e-294) or not (t <= 4.5e-24): tmp = x / (x + (y * math.exp((2.0 * ((c - b) * (0.8333333333333334 + a)))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (0.8333333333333334 + a))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -3.5e-294) || !(t <= 4.5e-24)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c - b) * Float64(0.8333333333333334 + a))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(0.8333333333333334 + a)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((t <= -3.5e-294) || ~((t <= 4.5e-24))) tmp = x / (x + (y * exp((2.0 * ((c - b) * (0.8333333333333334 + a)))))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (0.8333333333333334 + a))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -3.5e-294], N[Not[LessEqual[t, 4.5e-24]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c - b), $MachinePrecision] * N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.5 \cdot 10^{-294} \lor \neg \left(t \leq 4.5 \cdot 10^{-24}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(c - b\right) \cdot \left(0.8333333333333334 + a\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(0.8333333333333334 + a\right)\right)\right)}}\\
\end{array}
\end{array}
if t < -3.50000000000000032e-294 or 4.4999999999999997e-24 < t Initial program 93.8%
Taylor expanded in t around inf 92.8%
mul-1-neg92.8%
*-commutative92.8%
distribute-rgt-neg-in92.8%
+-commutative92.8%
neg-sub092.8%
associate--r-92.8%
neg-sub092.8%
+-commutative92.8%
sub-neg92.8%
Simplified92.8%
if -3.50000000000000032e-294 < t < 4.4999999999999997e-24Initial program 93.8%
Taylor expanded in b around inf 72.7%
*-commutative72.7%
associate-*r/72.7%
metadata-eval72.7%
+-commutative72.7%
Simplified72.7%
Final simplification86.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -5.6e+26)
1.0
(if (<= c -9.5e-93)
(/ x (+ x (* y (+ (* -2.0 (* b (+ 0.8333333333333334 a))) 1.0))))
(if (<= c 1.8e-132)
1.0
(if (<= c 1.5e+54)
(/
x
(+
x
(-
y
(*
y
(*
2.0
(* b (- (+ 0.8333333333333334 a) (/ 0.6666666666666666 t))))))))
(/ x (* y (exp (* (- c b) 1.6666666666666667)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -5.6e+26) {
tmp = 1.0;
} else if (c <= -9.5e-93) {
tmp = x / (x + (y * ((-2.0 * (b * (0.8333333333333334 + a))) + 1.0)));
} else if (c <= 1.8e-132) {
tmp = 1.0;
} else if (c <= 1.5e+54) {
tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t)))))));
} else {
tmp = x / (y * exp(((c - b) * 1.6666666666666667)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-5.6d+26)) then
tmp = 1.0d0
else if (c <= (-9.5d-93)) then
tmp = x / (x + (y * (((-2.0d0) * (b * (0.8333333333333334d0 + a))) + 1.0d0)))
else if (c <= 1.8d-132) then
tmp = 1.0d0
else if (c <= 1.5d+54) then
tmp = x / (x + (y - (y * (2.0d0 * (b * ((0.8333333333333334d0 + a) - (0.6666666666666666d0 / t)))))))
else
tmp = x / (y * exp(((c - b) * 1.6666666666666667d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -5.6e+26) {
tmp = 1.0;
} else if (c <= -9.5e-93) {
tmp = x / (x + (y * ((-2.0 * (b * (0.8333333333333334 + a))) + 1.0)));
} else if (c <= 1.8e-132) {
tmp = 1.0;
} else if (c <= 1.5e+54) {
tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t)))))));
} else {
tmp = x / (y * Math.exp(((c - b) * 1.6666666666666667)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -5.6e+26: tmp = 1.0 elif c <= -9.5e-93: tmp = x / (x + (y * ((-2.0 * (b * (0.8333333333333334 + a))) + 1.0))) elif c <= 1.8e-132: tmp = 1.0 elif c <= 1.5e+54: tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t))))))) else: tmp = x / (y * math.exp(((c - b) * 1.6666666666666667))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -5.6e+26) tmp = 1.0; elseif (c <= -9.5e-93) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(0.8333333333333334 + a))) + 1.0)))); elseif (c <= 1.8e-132) tmp = 1.0; elseif (c <= 1.5e+54) tmp = Float64(x / Float64(x + Float64(y - Float64(y * Float64(2.0 * Float64(b * Float64(Float64(0.8333333333333334 + a) - Float64(0.6666666666666666 / t)))))))); else tmp = Float64(x / Float64(y * exp(Float64(Float64(c - b) * 1.6666666666666667)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -5.6e+26) tmp = 1.0; elseif (c <= -9.5e-93) tmp = x / (x + (y * ((-2.0 * (b * (0.8333333333333334 + a))) + 1.0))); elseif (c <= 1.8e-132) tmp = 1.0; elseif (c <= 1.5e+54) tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t))))))); else tmp = x / (y * exp(((c - b) * 1.6666666666666667))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -5.6e+26], 1.0, If[LessEqual[c, -9.5e-93], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.8e-132], 1.0, If[LessEqual[c, 1.5e+54], N[(x / N[(x + N[(y - N[(y * N[(2.0 * N[(b * N[(N[(0.8333333333333334 + a), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[Exp[N[(N[(c - b), $MachinePrecision] * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -5.6 \cdot 10^{+26}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -9.5 \cdot 10^{-93}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(0.8333333333333334 + a\right)\right) + 1\right)}\\
\mathbf{elif}\;c \leq 1.8 \cdot 10^{-132}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.5 \cdot 10^{+54}:\\
\;\;\;\;\frac{x}{x + \left(y - y \cdot \left(2 \cdot \left(b \cdot \left(\left(0.8333333333333334 + a\right) - \frac{0.6666666666666666}{t}\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if c < -5.59999999999999999e26 or -9.5000000000000001e-93 < c < 1.80000000000000004e-132Initial program 93.9%
Taylor expanded in b around inf 71.1%
*-commutative71.1%
associate-*r/71.1%
metadata-eval71.1%
+-commutative71.1%
Simplified71.1%
div-inv71.0%
exp-prod71.0%
Applied egg-rr71.0%
Taylor expanded in x around inf 68.7%
if -5.59999999999999999e26 < c < -9.5000000000000001e-93Initial program 96.2%
Taylor expanded in b around inf 78.8%
*-commutative78.8%
associate-*r/78.8%
metadata-eval78.8%
+-commutative78.8%
Simplified78.8%
Taylor expanded in b around 0 53.3%
Taylor expanded in t around inf 56.8%
if 1.80000000000000004e-132 < c < 1.4999999999999999e54Initial program 94.7%
Taylor expanded in b around inf 69.9%
*-commutative69.9%
associate-*r/69.9%
metadata-eval69.9%
+-commutative69.9%
Simplified69.9%
Taylor expanded in b around 0 52.1%
distribute-rgt-in52.1%
*-commutative52.1%
div-inv52.1%
+-commutative52.1%
*-un-lft-identity52.1%
Applied egg-rr52.1%
if 1.4999999999999999e54 < c Initial program 91.9%
Taylor expanded in t around inf 81.3%
mul-1-neg81.3%
*-commutative81.3%
distribute-rgt-neg-in81.3%
+-commutative81.3%
neg-sub081.3%
associate--r-81.3%
neg-sub081.3%
+-commutative81.3%
sub-neg81.3%
Simplified81.3%
Taylor expanded in a around 0 78.1%
Taylor expanded in x around 0 66.9%
Final simplification64.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (- c b) 1.6666666666666667)))))))
(if (<= t -2e-310)
t_1
(if (<= t 2.9e-12)
1.0
(if (<= t 1.15e+234) t_1 (/ x (+ x (* y (exp (* 2.0 (* a c)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp(((c - b) * 1.6666666666666667))));
double tmp;
if (t <= -2e-310) {
tmp = t_1;
} else if (t <= 2.9e-12) {
tmp = 1.0;
} else if (t <= 1.15e+234) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp(((c - b) * 1.6666666666666667d0))))
if (t <= (-2d-310)) then
tmp = t_1
else if (t <= 2.9d-12) then
tmp = 1.0d0
else if (t <= 1.15d+234) then
tmp = t_1
else
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp(((c - b) * 1.6666666666666667))));
double tmp;
if (t <= -2e-310) {
tmp = t_1;
} else if (t <= 2.9e-12) {
tmp = 1.0;
} else if (t <= 1.15e+234) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp(((c - b) * 1.6666666666666667)))) tmp = 0 if t <= -2e-310: tmp = t_1 elif t <= 2.9e-12: tmp = 1.0 elif t <= 1.15e+234: tmp = t_1 else: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c - b) * 1.6666666666666667))))) tmp = 0.0 if (t <= -2e-310) tmp = t_1; elseif (t <= 2.9e-12) tmp = 1.0; elseif (t <= 1.15e+234) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp(((c - b) * 1.6666666666666667)))); tmp = 0.0; if (t <= -2e-310) tmp = t_1; elseif (t <= 2.9e-12) tmp = 1.0; elseif (t <= 1.15e+234) tmp = t_1; else tmp = x / (x + (y * exp((2.0 * (a * c))))); 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[(N[(c - b), $MachinePrecision] * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2e-310], t$95$1, If[LessEqual[t, 2.9e-12], 1.0, If[LessEqual[t, 1.15e+234], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\mathbf{if}\;t \leq -2 \cdot 10^{-310}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{-12}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{+234}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\end{array}
\end{array}
if t < -1.999999999999994e-310 or 2.9000000000000002e-12 < t < 1.15e234Initial program 95.2%
Taylor expanded in t around inf 93.4%
mul-1-neg93.4%
*-commutative93.4%
distribute-rgt-neg-in93.4%
+-commutative93.4%
neg-sub093.4%
associate--r-93.4%
neg-sub093.4%
+-commutative93.4%
sub-neg93.4%
Simplified93.4%
Taylor expanded in a around 0 87.5%
if -1.999999999999994e-310 < t < 2.9000000000000002e-12Initial program 92.4%
Taylor expanded in b around inf 70.8%
*-commutative70.8%
associate-*r/70.8%
metadata-eval70.8%
+-commutative70.8%
Simplified70.8%
div-inv70.6%
exp-prod70.6%
Applied egg-rr70.6%
Taylor expanded in x around inf 63.2%
if 1.15e234 < t Initial program 90.4%
Taylor expanded in a around inf 75.0%
Taylor expanded in b around 0 72.0%
Final simplification78.1%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= t -1e-309) (not (<= t 1.8e-9))) (/ x (+ x (* y (exp (* (- c b) 1.6666666666666667))))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -1e-309) || !(t <= 1.8e-9)) {
tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((t <= (-1d-309)) .or. (.not. (t <= 1.8d-9))) then
tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667d0))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -1e-309) || !(t <= 1.8e-9)) {
tmp = x / (x + (y * Math.exp(((c - b) * 1.6666666666666667))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -1e-309) or not (t <= 1.8e-9): tmp = x / (x + (y * math.exp(((c - b) * 1.6666666666666667)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -1e-309) || !(t <= 1.8e-9)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c - b) * 1.6666666666666667))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((t <= -1e-309) || ~((t <= 1.8e-9))) tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -1e-309], N[Not[LessEqual[t, 1.8e-9]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(N[(c - b), $MachinePrecision] * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{-309} \lor \neg \left(t \leq 1.8 \cdot 10^{-9}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if t < -1.000000000000002e-309 or 1.8e-9 < t Initial program 94.4%
Taylor expanded in t around inf 93.4%
mul-1-neg93.4%
*-commutative93.4%
distribute-rgt-neg-in93.4%
+-commutative93.4%
neg-sub093.4%
associate--r-93.4%
neg-sub093.4%
+-commutative93.4%
sub-neg93.4%
Simplified93.4%
Taylor expanded in a around 0 82.1%
if -1.000000000000002e-309 < t < 1.8e-9Initial program 92.4%
Taylor expanded in b around inf 70.8%
*-commutative70.8%
associate-*r/70.8%
metadata-eval70.8%
+-commutative70.8%
Simplified70.8%
div-inv70.6%
exp-prod70.6%
Applied egg-rr70.6%
Taylor expanded in x around inf 63.2%
Final simplification76.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c 1.2e-129)
1.0
(if (<= c 4e+15)
(/
x
(+
x
(-
y
(*
y
(*
2.0
(* b (- (+ 0.8333333333333334 a) (/ 0.6666666666666666 t))))))))
(/ 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.2e-129) {
tmp = 1.0;
} else if (c <= 4e+15) {
tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t)))))));
} 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.2d-129) then
tmp = 1.0d0
else if (c <= 4d+15) then
tmp = x / (x + (y - (y * (2.0d0 * (b * ((0.8333333333333334d0 + a) - (0.6666666666666666d0 / t)))))))
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.2e-129) {
tmp = 1.0;
} else if (c <= 4e+15) {
tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t)))))));
} 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.2e-129: tmp = 1.0 elif c <= 4e+15: tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t))))))) 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.2e-129) tmp = 1.0; elseif (c <= 4e+15) tmp = Float64(x / Float64(x + Float64(y - Float64(y * Float64(2.0 * Float64(b * Float64(Float64(0.8333333333333334 + a) - Float64(0.6666666666666666 / t)))))))); 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.2e-129) tmp = 1.0; elseif (c <= 4e+15) tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t))))))); 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.2e-129], 1.0, If[LessEqual[c, 4e+15], N[(x / N[(x + N[(y - N[(y * N[(2.0 * N[(b * N[(N[(0.8333333333333334 + a), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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.2 \cdot 10^{-129}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 4 \cdot 10^{+15}:\\
\;\;\;\;\frac{x}{x + \left(y - y \cdot \left(2 \cdot \left(b \cdot \left(\left(0.8333333333333334 + a\right) - \frac{0.6666666666666666}{t}\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if c < 1.19999999999999994e-129Initial program 94.3%
Taylor expanded in b around inf 72.4%
*-commutative72.4%
associate-*r/72.4%
metadata-eval72.4%
+-commutative72.4%
Simplified72.4%
div-inv72.3%
exp-prod72.3%
Applied egg-rr72.3%
Taylor expanded in x around inf 64.0%
if 1.19999999999999994e-129 < c < 4e15Initial program 96.3%
Taylor expanded in b around inf 76.4%
*-commutative76.4%
associate-*r/76.4%
metadata-eval76.4%
+-commutative76.4%
Simplified76.4%
Taylor expanded in b around 0 55.7%
distribute-rgt-in55.7%
*-commutative55.7%
div-inv55.7%
+-commutative55.7%
*-un-lft-identity55.7%
Applied egg-rr55.7%
if 4e15 < c Initial program 91.7%
Taylor expanded in t around inf 78.5%
mul-1-neg78.5%
*-commutative78.5%
distribute-rgt-neg-in78.5%
+-commutative78.5%
neg-sub078.5%
associate--r-78.5%
neg-sub078.5%
+-commutative78.5%
sub-neg78.5%
Simplified78.5%
Taylor expanded in a around 0 74.4%
Taylor expanded in b around 0 70.4%
Final simplification64.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -4.2e+27)
1.0
(if (<= c -1.35e-93)
(/ x (+ x (* y (+ (* -2.0 (* b (+ 0.8333333333333334 a))) 1.0))))
(if (<= c 3.6e-138)
1.0
(if (<= c 480000.0)
(/ x (+ x (+ y (* 2.0 (* a (* y (- c b)))))))
(if (<= c 3.4e+118)
1.0
(/
x
(-
x
(-
(*
2.0
(*
(* y c)
(- (- (/ 0.6666666666666666 t) a) 0.8333333333333334)))
y)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -4.2e+27) {
tmp = 1.0;
} else if (c <= -1.35e-93) {
tmp = x / (x + (y * ((-2.0 * (b * (0.8333333333333334 + a))) + 1.0)));
} else if (c <= 3.6e-138) {
tmp = 1.0;
} else if (c <= 480000.0) {
tmp = x / (x + (y + (2.0 * (a * (y * (c - b))))));
} else if (c <= 3.4e+118) {
tmp = 1.0;
} else {
tmp = x / (x - ((2.0 * ((y * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))) - y));
}
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 <= (-4.2d+27)) then
tmp = 1.0d0
else if (c <= (-1.35d-93)) then
tmp = x / (x + (y * (((-2.0d0) * (b * (0.8333333333333334d0 + a))) + 1.0d0)))
else if (c <= 3.6d-138) then
tmp = 1.0d0
else if (c <= 480000.0d0) then
tmp = x / (x + (y + (2.0d0 * (a * (y * (c - b))))))
else if (c <= 3.4d+118) then
tmp = 1.0d0
else
tmp = x / (x - ((2.0d0 * ((y * c) * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0))) - y))
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 <= -4.2e+27) {
tmp = 1.0;
} else if (c <= -1.35e-93) {
tmp = x / (x + (y * ((-2.0 * (b * (0.8333333333333334 + a))) + 1.0)));
} else if (c <= 3.6e-138) {
tmp = 1.0;
} else if (c <= 480000.0) {
tmp = x / (x + (y + (2.0 * (a * (y * (c - b))))));
} else if (c <= 3.4e+118) {
tmp = 1.0;
} else {
tmp = x / (x - ((2.0 * ((y * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))) - y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -4.2e+27: tmp = 1.0 elif c <= -1.35e-93: tmp = x / (x + (y * ((-2.0 * (b * (0.8333333333333334 + a))) + 1.0))) elif c <= 3.6e-138: tmp = 1.0 elif c <= 480000.0: tmp = x / (x + (y + (2.0 * (a * (y * (c - b)))))) elif c <= 3.4e+118: tmp = 1.0 else: tmp = x / (x - ((2.0 * ((y * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))) - y)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -4.2e+27) tmp = 1.0; elseif (c <= -1.35e-93) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(0.8333333333333334 + a))) + 1.0)))); elseif (c <= 3.6e-138) tmp = 1.0; elseif (c <= 480000.0) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(a * Float64(y * Float64(c - b))))))); elseif (c <= 3.4e+118) tmp = 1.0; else tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(Float64(y * c) * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334))) - y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -4.2e+27) tmp = 1.0; elseif (c <= -1.35e-93) tmp = x / (x + (y * ((-2.0 * (b * (0.8333333333333334 + a))) + 1.0))); elseif (c <= 3.6e-138) tmp = 1.0; elseif (c <= 480000.0) tmp = x / (x + (y + (2.0 * (a * (y * (c - b)))))); elseif (c <= 3.4e+118) tmp = 1.0; else tmp = x / (x - ((2.0 * ((y * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))) - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -4.2e+27], 1.0, If[LessEqual[c, -1.35e-93], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.6e-138], 1.0, If[LessEqual[c, 480000.0], 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[c, 3.4e+118], 1.0, N[(x / N[(x - N[(N[(2.0 * N[(N[(y * c), $MachinePrecision] * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4.2 \cdot 10^{+27}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.35 \cdot 10^{-93}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(0.8333333333333334 + a\right)\right) + 1\right)}\\
\mathbf{elif}\;c \leq 3.6 \cdot 10^{-138}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 480000:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(a \cdot \left(y \cdot \left(c - b\right)\right)\right)\right)}\\
\mathbf{elif}\;c \leq 3.4 \cdot 10^{+118}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \left(\left(y \cdot c\right) \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right) - y\right)}\\
\end{array}
\end{array}
if c < -4.19999999999999989e27 or -1.3500000000000001e-93 < c < 3.60000000000000018e-138 or 4.8e5 < c < 3.39999999999999986e118Initial program 93.8%
Taylor expanded in b around inf 69.9%
*-commutative69.9%
associate-*r/69.9%
metadata-eval69.9%
+-commutative69.9%
Simplified69.9%
div-inv69.7%
exp-prod69.7%
Applied egg-rr69.7%
Taylor expanded in x around inf 66.1%
if -4.19999999999999989e27 < c < -1.3500000000000001e-93Initial program 96.2%
Taylor expanded in b around inf 78.8%
*-commutative78.8%
associate-*r/78.8%
metadata-eval78.8%
+-commutative78.8%
Simplified78.8%
Taylor expanded in b around 0 53.3%
Taylor expanded in t around inf 56.8%
if 3.60000000000000018e-138 < c < 4.8e5Initial program 95.7%
Taylor expanded in a around inf 74.9%
Taylor expanded in a around 0 59.1%
*-commutative59.1%
Simplified59.1%
if 3.39999999999999986e118 < c Initial program 91.3%
Taylor expanded in c around inf 85.3%
associate-*r/85.3%
metadata-eval85.3%
+-commutative85.3%
associate--l+85.3%
Simplified85.3%
Taylor expanded in c around 0 61.8%
associate-*r*61.8%
associate-*r/61.8%
metadata-eval61.8%
associate-+r-61.8%
Simplified61.8%
Final simplification63.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -5.8e+26)
1.0
(if (<= c -5.5e-93)
(/ x (+ x (* y (+ (* -2.0 (* b (+ 0.8333333333333334 a))) 1.0))))
(if (<= c 3.1e-141)
1.0
(if (<= c 420000.0)
(/
x
(+
x
(-
y
(*
y
(*
2.0
(* b (- (+ 0.8333333333333334 a) (/ 0.6666666666666666 t))))))))
(if (<= c 7.5e+115)
1.0
(/
x
(-
x
(-
(*
2.0
(*
(* y c)
(- (- (/ 0.6666666666666666 t) a) 0.8333333333333334)))
y)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -5.8e+26) {
tmp = 1.0;
} else if (c <= -5.5e-93) {
tmp = x / (x + (y * ((-2.0 * (b * (0.8333333333333334 + a))) + 1.0)));
} else if (c <= 3.1e-141) {
tmp = 1.0;
} else if (c <= 420000.0) {
tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t)))))));
} else if (c <= 7.5e+115) {
tmp = 1.0;
} else {
tmp = x / (x - ((2.0 * ((y * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))) - y));
}
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+26)) then
tmp = 1.0d0
else if (c <= (-5.5d-93)) then
tmp = x / (x + (y * (((-2.0d0) * (b * (0.8333333333333334d0 + a))) + 1.0d0)))
else if (c <= 3.1d-141) then
tmp = 1.0d0
else if (c <= 420000.0d0) then
tmp = x / (x + (y - (y * (2.0d0 * (b * ((0.8333333333333334d0 + a) - (0.6666666666666666d0 / t)))))))
else if (c <= 7.5d+115) then
tmp = 1.0d0
else
tmp = x / (x - ((2.0d0 * ((y * c) * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0))) - y))
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+26) {
tmp = 1.0;
} else if (c <= -5.5e-93) {
tmp = x / (x + (y * ((-2.0 * (b * (0.8333333333333334 + a))) + 1.0)));
} else if (c <= 3.1e-141) {
tmp = 1.0;
} else if (c <= 420000.0) {
tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t)))))));
} else if (c <= 7.5e+115) {
tmp = 1.0;
} else {
tmp = x / (x - ((2.0 * ((y * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))) - y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -5.8e+26: tmp = 1.0 elif c <= -5.5e-93: tmp = x / (x + (y * ((-2.0 * (b * (0.8333333333333334 + a))) + 1.0))) elif c <= 3.1e-141: tmp = 1.0 elif c <= 420000.0: tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t))))))) elif c <= 7.5e+115: tmp = 1.0 else: tmp = x / (x - ((2.0 * ((y * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))) - y)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -5.8e+26) tmp = 1.0; elseif (c <= -5.5e-93) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(0.8333333333333334 + a))) + 1.0)))); elseif (c <= 3.1e-141) tmp = 1.0; elseif (c <= 420000.0) tmp = Float64(x / Float64(x + Float64(y - Float64(y * Float64(2.0 * Float64(b * Float64(Float64(0.8333333333333334 + a) - Float64(0.6666666666666666 / t)))))))); elseif (c <= 7.5e+115) tmp = 1.0; else tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(Float64(y * c) * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334))) - y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -5.8e+26) tmp = 1.0; elseif (c <= -5.5e-93) tmp = x / (x + (y * ((-2.0 * (b * (0.8333333333333334 + a))) + 1.0))); elseif (c <= 3.1e-141) tmp = 1.0; elseif (c <= 420000.0) tmp = x / (x + (y - (y * (2.0 * (b * ((0.8333333333333334 + a) - (0.6666666666666666 / t))))))); elseif (c <= 7.5e+115) tmp = 1.0; else tmp = x / (x - ((2.0 * ((y * c) * (((0.6666666666666666 / t) - a) - 0.8333333333333334))) - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -5.8e+26], 1.0, If[LessEqual[c, -5.5e-93], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.1e-141], 1.0, If[LessEqual[c, 420000.0], N[(x / N[(x + N[(y - N[(y * N[(2.0 * N[(b * N[(N[(0.8333333333333334 + a), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.5e+115], 1.0, N[(x / N[(x - N[(N[(2.0 * N[(N[(y * c), $MachinePrecision] * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -5.8 \cdot 10^{+26}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -5.5 \cdot 10^{-93}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(0.8333333333333334 + a\right)\right) + 1\right)}\\
\mathbf{elif}\;c \leq 3.1 \cdot 10^{-141}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 420000:\\
\;\;\;\;\frac{x}{x + \left(y - y \cdot \left(2 \cdot \left(b \cdot \left(\left(0.8333333333333334 + a\right) - \frac{0.6666666666666666}{t}\right)\right)\right)\right)}\\
\mathbf{elif}\;c \leq 7.5 \cdot 10^{+115}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \left(\left(y \cdot c\right) \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right) - y\right)}\\
\end{array}
\end{array}
if c < -5.8e26 or -5.49999999999999968e-93 < c < 3.10000000000000027e-141 or 4.2e5 < c < 7.4999999999999997e115Initial program 93.8%
Taylor expanded in b around inf 69.9%
*-commutative69.9%
associate-*r/69.9%
metadata-eval69.9%
+-commutative69.9%
Simplified69.9%
div-inv69.7%
exp-prod69.7%
Applied egg-rr69.7%
Taylor expanded in x around inf 66.1%
if -5.8e26 < c < -5.49999999999999968e-93Initial program 96.2%
Taylor expanded in b around inf 78.8%
*-commutative78.8%
associate-*r/78.8%
metadata-eval78.8%
+-commutative78.8%
Simplified78.8%
Taylor expanded in b around 0 53.3%
Taylor expanded in t around inf 56.8%
if 3.10000000000000027e-141 < c < 4.2e5Initial program 95.7%
Taylor expanded in b around inf 72.4%
*-commutative72.4%
associate-*r/72.4%
metadata-eval72.4%
+-commutative72.4%
Simplified72.4%
Taylor expanded in b around 0 60.4%
distribute-rgt-in60.4%
*-commutative60.4%
div-inv60.4%
+-commutative60.4%
*-un-lft-identity60.4%
Applied egg-rr60.4%
if 7.4999999999999997e115 < c Initial program 91.3%
Taylor expanded in c around inf 85.3%
associate-*r/85.3%
metadata-eval85.3%
+-commutative85.3%
associate--l+85.3%
Simplified85.3%
Taylor expanded in c around 0 61.8%
associate-*r*61.8%
associate-*r/61.8%
metadata-eval61.8%
associate-+r-61.8%
Simplified61.8%
Final simplification63.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -0.48)
(/ x (+ x (* y (+ (* (- c b) (* 2.0 a)) 1.0))))
(if (<= t 1.46e+51)
1.0
(if (<= t 1.75e+126)
(/ x (+ x (* y (+ (* -2.0 (* b (+ 0.8333333333333334 a))) 1.0))))
(if (<= t 3.9e+183)
1.0
(/ x (+ x (+ y (* 2.0 (* a (* y (- c b))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -0.48) {
tmp = x / (x + (y * (((c - b) * (2.0 * a)) + 1.0)));
} else if (t <= 1.46e+51) {
tmp = 1.0;
} else if (t <= 1.75e+126) {
tmp = x / (x + (y * ((-2.0 * (b * (0.8333333333333334 + a))) + 1.0)));
} else if (t <= 3.9e+183) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (2.0 * (a * (y * (c - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-0.48d0)) then
tmp = x / (x + (y * (((c - b) * (2.0d0 * a)) + 1.0d0)))
else if (t <= 1.46d+51) then
tmp = 1.0d0
else if (t <= 1.75d+126) then
tmp = x / (x + (y * (((-2.0d0) * (b * (0.8333333333333334d0 + a))) + 1.0d0)))
else if (t <= 3.9d+183) then
tmp = 1.0d0
else
tmp = x / (x + (y + (2.0d0 * (a * (y * (c - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -0.48) {
tmp = x / (x + (y * (((c - b) * (2.0 * a)) + 1.0)));
} else if (t <= 1.46e+51) {
tmp = 1.0;
} else if (t <= 1.75e+126) {
tmp = x / (x + (y * ((-2.0 * (b * (0.8333333333333334 + a))) + 1.0)));
} else if (t <= 3.9e+183) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (2.0 * (a * (y * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -0.48: tmp = x / (x + (y * (((c - b) * (2.0 * a)) + 1.0))) elif t <= 1.46e+51: tmp = 1.0 elif t <= 1.75e+126: tmp = x / (x + (y * ((-2.0 * (b * (0.8333333333333334 + a))) + 1.0))) elif t <= 3.9e+183: tmp = 1.0 else: tmp = x / (x + (y + (2.0 * (a * (y * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -0.48) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(c - b) * Float64(2.0 * a)) + 1.0)))); elseif (t <= 1.46e+51) tmp = 1.0; elseif (t <= 1.75e+126) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(0.8333333333333334 + a))) + 1.0)))); elseif (t <= 3.9e+183) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(a * Float64(y * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -0.48) tmp = x / (x + (y * (((c - b) * (2.0 * a)) + 1.0))); elseif (t <= 1.46e+51) tmp = 1.0; elseif (t <= 1.75e+126) tmp = x / (x + (y * ((-2.0 * (b * (0.8333333333333334 + a))) + 1.0))); elseif (t <= 3.9e+183) tmp = 1.0; else tmp = x / (x + (y + (2.0 * (a * (y * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -0.48], N[(x / N[(x + N[(y * N[(N[(N[(c - b), $MachinePrecision] * N[(2.0 * a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.46e+51], 1.0, If[LessEqual[t, 1.75e+126], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.9e+183], 1.0, N[(x / N[(x + N[(y + N[(2.0 * N[(a * N[(y * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -0.48:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(c - b\right) \cdot \left(2 \cdot a\right) + 1\right)}\\
\mathbf{elif}\;t \leq 1.46 \cdot 10^{+51}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{+126}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(0.8333333333333334 + a\right)\right) + 1\right)}\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{+183}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(a \cdot \left(y \cdot \left(c - b\right)\right)\right)\right)}\\
\end{array}
\end{array}
if t < -0.47999999999999998Initial program 94.4%
Taylor expanded in a around inf 89.3%
Taylor expanded in a around 0 78.7%
associate-*r*78.7%
Simplified78.7%
if -0.47999999999999998 < t < 1.4600000000000001e51 or 1.7500000000000001e126 < t < 3.8999999999999999e183Initial program 93.3%
Taylor expanded in b around inf 67.0%
*-commutative67.0%
associate-*r/67.0%
metadata-eval67.0%
+-commutative67.0%
Simplified67.0%
div-inv66.8%
exp-prod66.8%
Applied egg-rr66.8%
Taylor expanded in x around inf 60.8%
if 1.4600000000000001e51 < t < 1.7500000000000001e126Initial program 99.9%
Taylor expanded in b around inf 79.7%
*-commutative79.7%
associate-*r/79.7%
metadata-eval79.7%
+-commutative79.7%
Simplified79.7%
Taylor expanded in b around 0 67.6%
Taylor expanded in t around inf 67.6%
if 3.8999999999999999e183 < t Initial program 92.3%
Taylor expanded in a around inf 70.6%
Taylor expanded in a around 0 55.1%
*-commutative55.1%
Simplified55.1%
Final simplification61.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c 1.2e-140)
1.0
(if (or (<= c 400000.0) (not (<= c 1.55e+140)))
(/ x (+ x (* y (+ (* (- c b) (* 2.0 a)) 1.0))))
1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.2e-140) {
tmp = 1.0;
} else if ((c <= 400000.0) || !(c <= 1.55e+140)) {
tmp = x / (x + (y * (((c - b) * (2.0 * a)) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 1.2d-140) then
tmp = 1.0d0
else if ((c <= 400000.0d0) .or. (.not. (c <= 1.55d+140))) then
tmp = x / (x + (y * (((c - b) * (2.0d0 * a)) + 1.0d0)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.2e-140) {
tmp = 1.0;
} else if ((c <= 400000.0) || !(c <= 1.55e+140)) {
tmp = x / (x + (y * (((c - b) * (2.0 * a)) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 1.2e-140: tmp = 1.0 elif (c <= 400000.0) or not (c <= 1.55e+140): tmp = x / (x + (y * (((c - b) * (2.0 * a)) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 1.2e-140) tmp = 1.0; elseif ((c <= 400000.0) || !(c <= 1.55e+140)) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(c - b) * Float64(2.0 * a)) + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 1.2e-140) tmp = 1.0; elseif ((c <= 400000.0) || ~((c <= 1.55e+140))) tmp = x / (x + (y * (((c - b) * (2.0 * a)) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 1.2e-140], 1.0, If[Or[LessEqual[c, 400000.0], N[Not[LessEqual[c, 1.55e+140]], $MachinePrecision]], N[(x / N[(x + N[(y * N[(N[(N[(c - b), $MachinePrecision] * N[(2.0 * a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 1.2 \cdot 10^{-140}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 400000 \lor \neg \left(c \leq 1.55 \cdot 10^{+140}\right):\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(c - b\right) \cdot \left(2 \cdot a\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if c < 1.19999999999999993e-140 or 4e5 < c < 1.55e140Initial program 94.3%
Taylor expanded in b around inf 70.9%
*-commutative70.9%
associate-*r/70.9%
metadata-eval70.9%
+-commutative70.9%
Simplified70.9%
div-inv70.7%
exp-prod70.7%
Applied egg-rr70.7%
Taylor expanded in x around inf 61.5%
if 1.19999999999999993e-140 < c < 4e5 or 1.55e140 < c Initial program 92.3%
Taylor expanded in a around inf 71.7%
Taylor expanded in a around 0 58.5%
associate-*r*58.5%
Simplified58.5%
Final simplification60.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c 5.6e-123)
1.0
(if (<= c 480000.0)
(/ x (+ x (+ y (* 2.0 (* a (* y (- c b)))))))
(if (<= c 6.4e+140)
1.0
(/ x (+ x (* y (+ (* (- c b) (* 2.0 a)) 1.0))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 5.6e-123) {
tmp = 1.0;
} else if (c <= 480000.0) {
tmp = x / (x + (y + (2.0 * (a * (y * (c - b))))));
} else if (c <= 6.4e+140) {
tmp = 1.0;
} else {
tmp = x / (x + (y * (((c - b) * (2.0 * a)) + 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 <= 5.6d-123) then
tmp = 1.0d0
else if (c <= 480000.0d0) then
tmp = x / (x + (y + (2.0d0 * (a * (y * (c - b))))))
else if (c <= 6.4d+140) then
tmp = 1.0d0
else
tmp = x / (x + (y * (((c - b) * (2.0d0 * a)) + 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 <= 5.6e-123) {
tmp = 1.0;
} else if (c <= 480000.0) {
tmp = x / (x + (y + (2.0 * (a * (y * (c - b))))));
} else if (c <= 6.4e+140) {
tmp = 1.0;
} else {
tmp = x / (x + (y * (((c - b) * (2.0 * a)) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 5.6e-123: tmp = 1.0 elif c <= 480000.0: tmp = x / (x + (y + (2.0 * (a * (y * (c - b)))))) elif c <= 6.4e+140: tmp = 1.0 else: tmp = x / (x + (y * (((c - b) * (2.0 * a)) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 5.6e-123) tmp = 1.0; elseif (c <= 480000.0) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(a * Float64(y * Float64(c - b))))))); elseif (c <= 6.4e+140) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(c - b) * Float64(2.0 * a)) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 5.6e-123) tmp = 1.0; elseif (c <= 480000.0) tmp = x / (x + (y + (2.0 * (a * (y * (c - b)))))); elseif (c <= 6.4e+140) tmp = 1.0; else tmp = x / (x + (y * (((c - b) * (2.0 * a)) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 5.6e-123], 1.0, If[LessEqual[c, 480000.0], 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[c, 6.4e+140], 1.0, N[(x / N[(x + N[(y * N[(N[(N[(c - b), $MachinePrecision] * N[(2.0 * a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 5.6 \cdot 10^{-123}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 480000:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(a \cdot \left(y \cdot \left(c - b\right)\right)\right)\right)}\\
\mathbf{elif}\;c \leq 6.4 \cdot 10^{+140}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(c - b\right) \cdot \left(2 \cdot a\right) + 1\right)}\\
\end{array}
\end{array}
if c < 5.5999999999999998e-123 or 4.8e5 < c < 6.40000000000000021e140Initial program 94.3%
Taylor expanded in b around inf 70.9%
*-commutative70.9%
associate-*r/70.9%
metadata-eval70.9%
+-commutative70.9%
Simplified70.9%
div-inv70.7%
exp-prod70.7%
Applied egg-rr70.7%
Taylor expanded in x around inf 61.5%
if 5.5999999999999998e-123 < c < 4.8e5Initial program 95.7%
Taylor expanded in a around inf 74.9%
Taylor expanded in a around 0 59.1%
*-commutative59.1%
Simplified59.1%
if 6.40000000000000021e140 < c Initial program 90.2%
Taylor expanded in a around inf 69.8%
Taylor expanded in a around 0 60.5%
associate-*r*60.5%
Simplified60.5%
Final simplification61.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c 7e-95)
1.0
(if (<= c 370000.0)
(/ x (+ y (+ x (* 2.0 (* c (* y a))))))
(if (<= c 4.6e+141) 1.0 (* 0.5 (/ x (* y (* a (- c b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 7e-95) {
tmp = 1.0;
} else if (c <= 370000.0) {
tmp = x / (y + (x + (2.0 * (c * (y * a)))));
} else if (c <= 4.6e+141) {
tmp = 1.0;
} else {
tmp = 0.5 * (x / (y * (a * (c - b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 7d-95) then
tmp = 1.0d0
else if (c <= 370000.0d0) then
tmp = x / (y + (x + (2.0d0 * (c * (y * a)))))
else if (c <= 4.6d+141) then
tmp = 1.0d0
else
tmp = 0.5d0 * (x / (y * (a * (c - b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 7e-95) {
tmp = 1.0;
} else if (c <= 370000.0) {
tmp = x / (y + (x + (2.0 * (c * (y * a)))));
} else if (c <= 4.6e+141) {
tmp = 1.0;
} else {
tmp = 0.5 * (x / (y * (a * (c - b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 7e-95: tmp = 1.0 elif c <= 370000.0: tmp = x / (y + (x + (2.0 * (c * (y * a))))) elif c <= 4.6e+141: tmp = 1.0 else: tmp = 0.5 * (x / (y * (a * (c - b)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 7e-95) tmp = 1.0; elseif (c <= 370000.0) tmp = Float64(x / Float64(y + Float64(x + Float64(2.0 * Float64(c * Float64(y * a)))))); elseif (c <= 4.6e+141) tmp = 1.0; else tmp = Float64(0.5 * Float64(x / Float64(y * Float64(a * Float64(c - b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 7e-95) tmp = 1.0; elseif (c <= 370000.0) tmp = x / (y + (x + (2.0 * (c * (y * a))))); elseif (c <= 4.6e+141) tmp = 1.0; else tmp = 0.5 * (x / (y * (a * (c - b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 7e-95], 1.0, If[LessEqual[c, 370000.0], N[(x / N[(y + N[(x + N[(2.0 * N[(c * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.6e+141], 1.0, N[(0.5 * N[(x / N[(y * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 7 \cdot 10^{-95}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 370000:\\
\;\;\;\;\frac{x}{y + \left(x + 2 \cdot \left(c \cdot \left(y \cdot a\right)\right)\right)}\\
\mathbf{elif}\;c \leq 4.6 \cdot 10^{+141}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{x}{y \cdot \left(a \cdot \left(c - b\right)\right)}\\
\end{array}
\end{array}
if c < 6.9999999999999994e-95 or 3.7e5 < c < 4.6000000000000003e141Initial program 93.9%
Taylor expanded in b around inf 71.1%
*-commutative71.1%
associate-*r/71.1%
metadata-eval71.1%
+-commutative71.1%
Simplified71.1%
div-inv71.0%
exp-prod71.0%
Applied egg-rr71.0%
Taylor expanded in x around inf 61.5%
if 6.9999999999999994e-95 < c < 3.7e5Initial program 99.8%
Taylor expanded in a around inf 73.3%
Taylor expanded in a around 0 53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in b around 0 43.3%
if 4.6000000000000003e141 < c Initial program 90.2%
Taylor expanded in a around inf 69.8%
Taylor expanded in a around 0 57.9%
*-commutative57.9%
Simplified57.9%
Taylor expanded in a around inf 53.0%
Final simplification58.8%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 9e+140) 1.0 (* 0.5 (/ x (* y (* a (- c b)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 9e+140) {
tmp = 1.0;
} else {
tmp = 0.5 * (x / (y * (a * (c - b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 9d+140) then
tmp = 1.0d0
else
tmp = 0.5d0 * (x / (y * (a * (c - b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 9e+140) {
tmp = 1.0;
} else {
tmp = 0.5 * (x / (y * (a * (c - b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 9e+140: tmp = 1.0 else: tmp = 0.5 * (x / (y * (a * (c - b)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 9e+140) tmp = 1.0; else tmp = Float64(0.5 * Float64(x / Float64(y * Float64(a * Float64(c - b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 9e+140) tmp = 1.0; else tmp = 0.5 * (x / (y * (a * (c - b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 9e+140], 1.0, N[(0.5 * N[(x / N[(y * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 9 \cdot 10^{+140}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{x}{y \cdot \left(a \cdot \left(c - b\right)\right)}\\
\end{array}
\end{array}
if c < 9.0000000000000003e140Initial program 94.4%
Taylor expanded in b around inf 71.0%
*-commutative71.0%
associate-*r/71.0%
metadata-eval71.0%
+-commutative71.0%
Simplified71.0%
div-inv70.9%
exp-prod70.9%
Applied egg-rr70.9%
Taylor expanded in x around inf 57.7%
if 9.0000000000000003e140 < c Initial program 90.2%
Taylor expanded in a around inf 69.8%
Taylor expanded in a around 0 57.9%
*-commutative57.9%
Simplified57.9%
Taylor expanded in a around inf 53.0%
Final simplification56.9%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -2.8e+166) (* -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 (b <= -2.8e+166) {
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 (b <= (-2.8d+166)) 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 (b <= -2.8e+166) {
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 b <= -2.8e+166: 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 (b <= -2.8e+166) 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 (b <= -2.8e+166) 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[b, -2.8e+166], N[(-0.5 * N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.8 \cdot 10^{+166}:\\
\;\;\;\;-0.5 \cdot \frac{x}{a \cdot \left(y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -2.79999999999999996e166Initial program 87.9%
Taylor expanded in a around inf 58.9%
Taylor expanded in a around 0 62.2%
*-commutative62.2%
Simplified62.2%
Taylor expanded in b around -inf 53.4%
if -2.79999999999999996e166 < b Initial program 94.6%
Taylor expanded in b around inf 65.2%
*-commutative65.2%
associate-*r/65.2%
metadata-eval65.2%
+-commutative65.2%
Simplified65.2%
div-inv65.1%
exp-prod65.1%
Applied egg-rr65.1%
Taylor expanded in x around inf 56.6%
Final simplification56.2%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -1.15e+168) (* -0.5 (/ x (* y (* a b)))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.15e+168) {
tmp = -0.5 * (x / (y * (a * b)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-1.15d+168)) then
tmp = (-0.5d0) * (x / (y * (a * b)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.15e+168) {
tmp = -0.5 * (x / (y * (a * b)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -1.15e+168: tmp = -0.5 * (x / (y * (a * b))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -1.15e+168) tmp = Float64(-0.5 * Float64(x / Float64(y * Float64(a * b)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -1.15e+168) tmp = -0.5 * (x / (y * (a * b))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -1.15e+168], N[(-0.5 * N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.15 \cdot 10^{+168}:\\
\;\;\;\;-0.5 \cdot \frac{x}{y \cdot \left(a \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.15e168Initial program 87.9%
Taylor expanded in b around inf 94.1%
*-commutative94.1%
associate-*r/94.1%
metadata-eval94.1%
+-commutative94.1%
Simplified94.1%
Taylor expanded in b around 0 68.6%
Taylor expanded in a around inf 53.5%
if -1.15e168 < b Initial program 94.6%
Taylor expanded in b around inf 65.2%
*-commutative65.2%
associate-*r/65.2%
metadata-eval65.2%
+-commutative65.2%
Simplified65.2%
div-inv65.1%
exp-prod65.1%
Applied egg-rr65.1%
Taylor expanded in x around inf 56.6%
Final simplification56.2%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 3e+139) 1.0 (* 0.5 (/ x (* c (* y a))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 3e+139) {
tmp = 1.0;
} else {
tmp = 0.5 * (x / (c * (y * a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 3d+139) then
tmp = 1.0d0
else
tmp = 0.5d0 * (x / (c * (y * a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 3e+139) {
tmp = 1.0;
} else {
tmp = 0.5 * (x / (c * (y * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 3e+139: tmp = 1.0 else: tmp = 0.5 * (x / (c * (y * a))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 3e+139) tmp = 1.0; else tmp = Float64(0.5 * Float64(x / Float64(c * Float64(y * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 3e+139) tmp = 1.0; else tmp = 0.5 * (x / (c * (y * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 3e+139], 1.0, N[(0.5 * N[(x / N[(c * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 3 \cdot 10^{+139}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{x}{c \cdot \left(y \cdot a\right)}\\
\end{array}
\end{array}
if c < 3e139Initial program 94.4%
Taylor expanded in b around inf 71.0%
*-commutative71.0%
associate-*r/71.0%
metadata-eval71.0%
+-commutative71.0%
Simplified71.0%
div-inv70.9%
exp-prod70.9%
Applied egg-rr70.9%
Taylor expanded in x around inf 57.7%
if 3e139 < c Initial program 90.2%
Taylor expanded in a around inf 69.8%
Taylor expanded in a around 0 57.9%
*-commutative57.9%
Simplified57.9%
Taylor expanded in c around inf 41.2%
Final simplification55.0%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 4.5e+119) 1.0 (* 0.5 (/ x (* a (* y c))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 4.5e+119) {
tmp = 1.0;
} else {
tmp = 0.5 * (x / (a * (y * 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 (c <= 4.5d+119) then
tmp = 1.0d0
else
tmp = 0.5d0 * (x / (a * (y * 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 (c <= 4.5e+119) {
tmp = 1.0;
} else {
tmp = 0.5 * (x / (a * (y * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 4.5e+119: tmp = 1.0 else: tmp = 0.5 * (x / (a * (y * c))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 4.5e+119) tmp = 1.0; else tmp = Float64(0.5 * Float64(x / Float64(a * Float64(y * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 4.5e+119) tmp = 1.0; else tmp = 0.5 * (x / (a * (y * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 4.5e+119], 1.0, N[(0.5 * N[(x / N[(a * N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 4.5 \cdot 10^{+119}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{x}{a \cdot \left(y \cdot c\right)}\\
\end{array}
\end{array}
if c < 4.5000000000000002e119Initial program 94.3%
Taylor expanded in b around inf 71.4%
*-commutative71.4%
associate-*r/71.4%
metadata-eval71.4%
+-commutative71.4%
Simplified71.4%
div-inv71.3%
exp-prod71.3%
Applied egg-rr71.3%
Taylor expanded in x around inf 58.2%
if 4.5000000000000002e119 < c Initial program 91.1%
Taylor expanded in a around inf 66.1%
Taylor expanded in a around 0 57.4%
*-commutative57.4%
Simplified57.4%
Taylor expanded in c around inf 37.9%
associate-*r*47.2%
Simplified47.2%
Final simplification56.3%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 93.8%
Taylor expanded in b around inf 68.9%
*-commutative68.9%
associate-*r/68.9%
metadata-eval68.9%
+-commutative68.9%
Simplified68.9%
div-inv68.8%
exp-prod68.8%
Applied egg-rr68.8%
Taylor expanded in x around inf 52.3%
Final simplification52.3%
(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 2023268
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:herbie-target
(if (< t -2.118326644891581e-50) (/ x (+ x (* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b))))))) (if (< t 5.196588770651547e-123) (/ x (+ x (* y (exp (* 2.0 (/ (- (* (* z (sqrt (+ t a))) (* (* 3.0 t) (- a (/ 5.0 6.0)))) (* (- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0) (* (- a (/ 5.0 6.0)) (* (- b c) t)))) (* (* (* t t) 3.0) (- a (/ 5.0 6.0))))))))) (/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))