
(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 22 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) (- (+ a 0.8333333333333334) (/ 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 (exp (* -2.0 (* a b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (c - b) * ((a + 0.8333333333333334) - (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 * exp((-2.0 * (a * b)))));
}
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) * ((a + 0.8333333333333334) - (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 * Math.exp((-2.0 * (a * b)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (c - b) * ((a + 0.8333333333333334) - (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 * math.exp((-2.0 * (a * b))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(c - b) * Float64(Float64(a + 0.8333333333333334) - 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 * exp(Float64(-2.0 * Float64(a * b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (c - b) * ((a + 0.8333333333333334) - (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 * exp((-2.0 * (a * b))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(c - b), $MachinePrecision] * N[(N[(a + 0.8333333333333334), $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[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c - b\right) \cdot \left(\left(a + 0.8333333333333334\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 + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 98.4%
exp-prod98.4%
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 a around inf 70.8%
Taylor expanded in c around 0 80.5%
Final simplification98.5%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
(+ a (+ (/ -0.6666666666666666 t) 0.8333333333333334))
(- 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((a + ((-0.6666666666666666 / t) + 0.8333333333333334)), (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(a + Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334)), 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[(a + N[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $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(a + \left(\frac{-0.6666666666666666}{t} + 0.8333333333333334\right), c - b, \sqrt{a + t} \cdot \frac{z}{t}\right)\right)}, x\right)}
\end{array}
Initial program 94.6%
Simplified97.4%
Final simplification97.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* (sqrt (+ a t)) z) t)
(* (- c b) (- (+ a 0.8333333333333334) (/ 2.0 (* t 3.0)))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/ x (+ x (* y (exp (* -2.0 (* a b)))))))))
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) * ((a + 0.8333333333333334) - (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 * exp((-2.0 * (a * b)))));
}
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) * ((a + 0.8333333333333334) - (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 * Math.exp((-2.0 * (a * b)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((math.sqrt((a + t)) * z) / t) + ((c - b) * ((a + 0.8333333333333334) - (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 * math.exp((-2.0 * (a * b))))) 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(a + 0.8333333333333334) - 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 * exp(Float64(-2.0 * Float64(a * b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((sqrt((a + t)) * z) / t) + ((c - b) * ((a + 0.8333333333333334) - (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 * exp((-2.0 * (a * b))))); 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[(a + 0.8333333333333334), $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[Exp[N[(-2.0 * N[(a * b), $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(a + 0.8333333333333334\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 + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 98.4%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) Initial program 0.0%
Taylor expanded in a around inf 70.8%
Taylor expanded in c around 0 80.5%
Final simplification97.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (+ (/ -0.6666666666666666 t) 0.8333333333333334)))
(if (<= t 4.7e-177)
(/
x
(+
x
(*
y
(exp
(* 2.0 (/ (- (* z (sqrt a)) (* -0.6666666666666666 (- b c))) t))))))
(if (<= t 4e+77)
(/
x
(+ x (* y (exp (* 2.0 (+ (* z (sqrt (/ 1.0 t))) (* t_1 (- c b))))))))
(/ x (+ x (* y (exp (* 2.0 (* (+ a t_1) (- c b)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (-0.6666666666666666 / t) + 0.8333333333333334;
double tmp;
if (t <= 4.7e-177) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
} else if (t <= 4e+77) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + (t_1 * (c - b)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((a + t_1) * (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 = ((-0.6666666666666666d0) / t) + 0.8333333333333334d0
if (t <= 4.7d-177) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) - ((-0.6666666666666666d0) * (b - c))) / t)))))
else if (t <= 4d+77) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + (t_1 * (c - b)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((a + t_1) * (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 = (-0.6666666666666666 / t) + 0.8333333333333334;
double tmp;
if (t <= 4.7e-177) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
} else if (t <= 4e+77) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + (t_1 * (c - b)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((a + t_1) * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (-0.6666666666666666 / t) + 0.8333333333333334 tmp = 0 if t <= 4.7e-177: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))) elif t <= 4e+77: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + (t_1 * (c - b))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((a + t_1) * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334) tmp = 0.0 if (t <= 4.7e-177) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) - Float64(-0.6666666666666666 * Float64(b - c))) / t)))))); elseif (t <= 4e+77) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(t_1 * Float64(c - b)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + t_1) * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (-0.6666666666666666 / t) + 0.8333333333333334; tmp = 0.0; if (t <= 4.7e-177) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))); elseif (t <= 4e+77) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + (t_1 * (c - b))))))); else tmp = x / (x + (y * exp((2.0 * ((a + t_1) * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]}, If[LessEqual[t, 4.7e-177], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] - N[(-0.6666666666666666 * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4e+77], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + t$95$1), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{-0.6666666666666666}{t} + 0.8333333333333334\\
\mathbf{if}\;t \leq 4.7 \cdot 10^{-177}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} - -0.6666666666666666 \cdot \left(b - c\right)}{t}}}\\
\mathbf{elif}\;t \leq 4 \cdot 10^{+77}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + t_1 \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + t_1\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 4.69999999999999967e-177Initial program 90.9%
Taylor expanded in t around 0 91.1%
if 4.69999999999999967e-177 < t < 3.99999999999999993e77Initial program 100.0%
Taylor expanded in a around 0 90.9%
*-commutative90.9%
*-commutative90.9%
cancel-sign-sub-inv90.9%
metadata-eval90.9%
associate-*r/90.9%
metadata-eval90.9%
Simplified90.9%
if 3.99999999999999993e77 < t Initial program 93.2%
Taylor expanded in z around 0 97.3%
mul-1-neg97.3%
*-commutative97.3%
distribute-rgt-neg-in97.3%
cancel-sign-sub-inv97.3%
+-commutative97.3%
metadata-eval97.3%
associate-*r/97.3%
metadata-eval97.3%
associate-+r+97.3%
neg-sub097.3%
associate--r-97.3%
neg-sub097.3%
Simplified97.3%
Final simplification92.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 2e-165)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (- (* z (sqrt a)) (* -0.6666666666666666 (- b c))) t))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
(+ a (+ (/ -0.6666666666666666 t) 0.8333333333333334))
(- c b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2e-165) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * ((a + ((-0.6666666666666666 / t) + 0.8333333333333334)) * (c - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 2d-165) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) - ((-0.6666666666666666d0) * (b - c))) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * ((a + (((-0.6666666666666666d0) / t) + 0.8333333333333334d0)) * (c - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2e-165) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((a + ((-0.6666666666666666 / t) + 0.8333333333333334)) * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 2e-165: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * ((a + ((-0.6666666666666666 / t) + 0.8333333333333334)) * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 2e-165) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) - Float64(-0.6666666666666666 * Float64(b - c))) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334)) * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 2e-165) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))); else tmp = x / (x + (y * exp((2.0 * ((a + ((-0.6666666666666666 / t) + 0.8333333333333334)) * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 2e-165], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] - N[(-0.6666666666666666 * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + N[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2 \cdot 10^{-165}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} - -0.6666666666666666 \cdot \left(b - c\right)}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + \left(\frac{-0.6666666666666666}{t} + 0.8333333333333334\right)\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 2e-165Initial program 91.3%
Taylor expanded in t around 0 90.5%
if 2e-165 < t Initial program 96.8%
Taylor expanded in z around 0 90.5%
mul-1-neg90.5%
*-commutative90.5%
distribute-rgt-neg-in90.5%
cancel-sign-sub-inv90.5%
+-commutative90.5%
metadata-eval90.5%
associate-*r/90.5%
metadata-eval90.5%
associate-+r+90.5%
neg-sub090.5%
associate--r-90.5%
neg-sub090.5%
Simplified90.5%
Final simplification90.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+ x (* y (exp (* 2.0 (* -0.6666666666666666 (/ (- c b) t)))))))))
(if (<= t 2e-82)
t_1
(if (<= t 1.45e-28)
1.0
(if (<= t 3.25e-12)
t_1
(/ x (+ x (* y (exp (* (- b c) -1.6666666666666667))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (-0.6666666666666666 * ((c - b) / t))))));
double tmp;
if (t <= 2e-82) {
tmp = t_1;
} else if (t <= 1.45e-28) {
tmp = 1.0;
} else if (t <= 3.25e-12) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp(((b - 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) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((-0.6666666666666666d0) * ((c - b) / t))))))
if (t <= 2d-82) then
tmp = t_1
else if (t <= 1.45d-28) then
tmp = 1.0d0
else if (t <= 3.25d-12) then
tmp = t_1
else
tmp = x / (x + (y * exp(((b - 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 t_1 = x / (x + (y * Math.exp((2.0 * (-0.6666666666666666 * ((c - b) / t))))));
double tmp;
if (t <= 2e-82) {
tmp = t_1;
} else if (t <= 1.45e-28) {
tmp = 1.0;
} else if (t <= 3.25e-12) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (-0.6666666666666666 * ((c - b) / t)))))) tmp = 0 if t <= 2e-82: tmp = t_1 elif t <= 1.45e-28: tmp = 1.0 elif t <= 3.25e-12: tmp = t_1 else: tmp = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(-0.6666666666666666 * Float64(Float64(c - b) / t))))))) tmp = 0.0 if (t <= 2e-82) tmp = t_1; elseif (t <= 1.45e-28) tmp = 1.0; elseif (t <= 3.25e-12) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (-0.6666666666666666 * ((c - b) / t)))))); tmp = 0.0; if (t <= 2e-82) tmp = t_1; elseif (t <= 1.45e-28) tmp = 1.0; elseif (t <= 3.25e-12) tmp = t_1; else tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(-0.6666666666666666 * N[(N[(c - b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 2e-82], t$95$1, If[LessEqual[t, 1.45e-28], 1.0, If[LessEqual[t, 3.25e-12], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(-0.6666666666666666 \cdot \frac{c - b}{t}\right)}}\\
\mathbf{if}\;t \leq 2 \cdot 10^{-82}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{-28}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 3.25 \cdot 10^{-12}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < 2e-82 or 1.45000000000000006e-28 < t < 3.2500000000000001e-12Initial program 93.1%
Taylor expanded in z around 0 84.4%
mul-1-neg84.4%
*-commutative84.4%
distribute-rgt-neg-in84.4%
cancel-sign-sub-inv84.4%
+-commutative84.4%
metadata-eval84.4%
associate-*r/84.4%
metadata-eval84.4%
associate-+r+84.4%
neg-sub084.4%
associate--r-84.4%
neg-sub084.4%
Simplified84.4%
Taylor expanded in t around 0 79.9%
if 2e-82 < t < 1.45000000000000006e-28Initial program 100.0%
Taylor expanded in a around inf 45.8%
Taylor expanded in a around 0 45.7%
Taylor expanded in x around inf 81.8%
if 3.2500000000000001e-12 < t Initial program 95.6%
Taylor expanded in t around inf 94.7%
mul-1-neg94.7%
*-commutative94.7%
distribute-rgt-neg-in94.7%
distribute-neg-in94.7%
metadata-eval94.7%
Simplified94.7%
Taylor expanded in a around 0 84.4%
Final simplification82.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+ x (* y (exp (* 2.0 (* -0.6666666666666666 (/ (- c b) t)))))))))
(if (<= t 7.8e-82)
t_1
(if (<= t 1.4e-28)
1.0
(if (<= t 3e-12)
t_1
(/
x
(+ x (* y (exp (* 2.0 (* (- c b) (- a -0.8333333333333334))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (-0.6666666666666666 * ((c - b) / t))))));
double tmp;
if (t <= 7.8e-82) {
tmp = t_1;
} else if (t <= 1.4e-28) {
tmp = 1.0;
} else if (t <= 3e-12) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((2.0 * ((c - b) * (a - -0.8333333333333334))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((-0.6666666666666666d0) * ((c - b) / t))))))
if (t <= 7.8d-82) then
tmp = t_1
else if (t <= 1.4d-28) then
tmp = 1.0d0
else if (t <= 3d-12) then
tmp = t_1
else
tmp = x / (x + (y * exp((2.0d0 * ((c - b) * (a - (-0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (-0.6666666666666666 * ((c - b) / t))))));
double tmp;
if (t <= 7.8e-82) {
tmp = t_1;
} else if (t <= 1.4e-28) {
tmp = 1.0;
} else if (t <= 3e-12) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((c - b) * (a - -0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (-0.6666666666666666 * ((c - b) / t)))))) tmp = 0 if t <= 7.8e-82: tmp = t_1 elif t <= 1.4e-28: tmp = 1.0 elif t <= 3e-12: tmp = t_1 else: tmp = x / (x + (y * math.exp((2.0 * ((c - b) * (a - -0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(-0.6666666666666666 * Float64(Float64(c - b) / t))))))) tmp = 0.0 if (t <= 7.8e-82) tmp = t_1; elseif (t <= 1.4e-28) tmp = 1.0; elseif (t <= 3e-12) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c - b) * Float64(a - -0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (-0.6666666666666666 * ((c - b) / t)))))); tmp = 0.0; if (t <= 7.8e-82) tmp = t_1; elseif (t <= 1.4e-28) tmp = 1.0; elseif (t <= 3e-12) tmp = t_1; else tmp = x / (x + (y * exp((2.0 * ((c - b) * (a - -0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(-0.6666666666666666 * N[(N[(c - b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 7.8e-82], t$95$1, If[LessEqual[t, 1.4e-28], 1.0, If[LessEqual[t, 3e-12], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c - b), $MachinePrecision] * N[(a - -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(-0.6666666666666666 \cdot \frac{c - b}{t}\right)}}\\
\mathbf{if}\;t \leq 7.8 \cdot 10^{-82}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{-28}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 3 \cdot 10^{-12}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(c - b\right) \cdot \left(a - -0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if t < 7.79999999999999947e-82 or 1.3999999999999999e-28 < t < 3.0000000000000001e-12Initial program 93.1%
Taylor expanded in z around 0 84.4%
mul-1-neg84.4%
*-commutative84.4%
distribute-rgt-neg-in84.4%
cancel-sign-sub-inv84.4%
+-commutative84.4%
metadata-eval84.4%
associate-*r/84.4%
metadata-eval84.4%
associate-+r+84.4%
neg-sub084.4%
associate--r-84.4%
neg-sub084.4%
Simplified84.4%
Taylor expanded in t around 0 79.9%
if 7.79999999999999947e-82 < t < 1.3999999999999999e-28Initial program 100.0%
Taylor expanded in a around inf 45.8%
Taylor expanded in a around 0 45.7%
Taylor expanded in x around inf 81.8%
if 3.0000000000000001e-12 < t Initial program 95.6%
Taylor expanded in t around inf 94.7%
mul-1-neg94.7%
*-commutative94.7%
distribute-rgt-neg-in94.7%
distribute-neg-in94.7%
metadata-eval94.7%
Simplified94.7%
Final simplification86.4%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(* (+ a (+ (/ -0.6666666666666666 t) 0.8333333333333334)) (- c b))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * ((a + ((-0.6666666666666666 / t) + 0.8333333333333334)) * (c - b))))));
}
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 * ((a + (((-0.6666666666666666d0) / t) + 0.8333333333333334d0)) * (c - b))))))
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 * ((a + ((-0.6666666666666666 / t) + 0.8333333333333334)) * (c - b))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * ((a + ((-0.6666666666666666 / t) + 0.8333333333333334)) * (c - b))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334)) * Float64(c - b))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * ((a + ((-0.6666666666666666 / t) + 0.8333333333333334)) * (c - b)))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + N[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + \left(\frac{-0.6666666666666666}{t} + 0.8333333333333334\right)\right) \cdot \left(c - b\right)\right)}}
\end{array}
Initial program 94.6%
Taylor expanded in z around 0 87.9%
mul-1-neg87.9%
*-commutative87.9%
distribute-rgt-neg-in87.9%
cancel-sign-sub-inv87.9%
+-commutative87.9%
metadata-eval87.9%
associate-*r/87.9%
metadata-eval87.9%
associate-+r+87.9%
neg-sub087.9%
associate--r-87.9%
neg-sub087.9%
Simplified87.9%
Final simplification87.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* -2.0 (* a b))))))))
(if (<= b -1.4e+55)
t_1
(if (<= b -2.5e+19)
1.0
(if (<= b -3.6e-65)
t_1
(if (<= b 7.2e-195)
1.0
(if (<= b 3.1e-162)
(/ x (+ x (- y (* 2.0 (* (- b c) (* y a))))))
1.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((-2.0 * (a * b)))));
double tmp;
if (b <= -1.4e+55) {
tmp = t_1;
} else if (b <= -2.5e+19) {
tmp = 1.0;
} else if (b <= -3.6e-65) {
tmp = t_1;
} else if (b <= 7.2e-195) {
tmp = 1.0;
} else if (b <= 3.1e-162) {
tmp = x / (x + (y - (2.0 * ((b - c) * (y * a)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp(((-2.0d0) * (a * b)))))
if (b <= (-1.4d+55)) then
tmp = t_1
else if (b <= (-2.5d+19)) then
tmp = 1.0d0
else if (b <= (-3.6d-65)) then
tmp = t_1
else if (b <= 7.2d-195) then
tmp = 1.0d0
else if (b <= 3.1d-162) then
tmp = x / (x + (y - (2.0d0 * ((b - c) * (y * a)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((-2.0 * (a * b)))));
double tmp;
if (b <= -1.4e+55) {
tmp = t_1;
} else if (b <= -2.5e+19) {
tmp = 1.0;
} else if (b <= -3.6e-65) {
tmp = t_1;
} else if (b <= 7.2e-195) {
tmp = 1.0;
} else if (b <= 3.1e-162) {
tmp = x / (x + (y - (2.0 * ((b - c) * (y * a)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((-2.0 * (a * b))))) tmp = 0 if b <= -1.4e+55: tmp = t_1 elif b <= -2.5e+19: tmp = 1.0 elif b <= -3.6e-65: tmp = t_1 elif b <= 7.2e-195: tmp = 1.0 elif b <= 3.1e-162: tmp = x / (x + (y - (2.0 * ((b - c) * (y * a))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))) tmp = 0.0 if (b <= -1.4e+55) tmp = t_1; elseif (b <= -2.5e+19) tmp = 1.0; elseif (b <= -3.6e-65) tmp = t_1; elseif (b <= 7.2e-195) tmp = 1.0; elseif (b <= 3.1e-162) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(Float64(b - c) * Float64(y * a)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((-2.0 * (a * b))))); tmp = 0.0; if (b <= -1.4e+55) tmp = t_1; elseif (b <= -2.5e+19) tmp = 1.0; elseif (b <= -3.6e-65) tmp = t_1; elseif (b <= 7.2e-195) tmp = 1.0; elseif (b <= 3.1e-162) tmp = x / (x + (y - (2.0 * ((b - c) * (y * a))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.4e+55], t$95$1, If[LessEqual[b, -2.5e+19], 1.0, If[LessEqual[b, -3.6e-65], t$95$1, If[LessEqual[b, 7.2e-195], 1.0, If[LessEqual[b, 3.1e-162], N[(x / N[(x + N[(y - N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{if}\;b \leq -1.4 \cdot 10^{+55}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{+19}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{-65}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{-195}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{-162}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(\left(b - c\right) \cdot \left(y \cdot a\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.4e55 or -2.5e19 < b < -3.5999999999999998e-65Initial program 92.5%
Taylor expanded in a around inf 81.0%
Taylor expanded in c around 0 82.5%
if -1.4e55 < b < -2.5e19 or -3.5999999999999998e-65 < b < 7.2e-195 or 3.0999999999999999e-162 < b Initial program 95.0%
Taylor expanded in a around inf 52.3%
Taylor expanded in a around 0 35.4%
Taylor expanded in x around inf 65.2%
if 7.2e-195 < b < 3.0999999999999999e-162Initial program 100.0%
Taylor expanded in a around inf 51.6%
Taylor expanded in a around 0 60.3%
associate-*r*68.4%
Simplified68.4%
Final simplification69.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (- b c) -1.6666666666666667)))))))
(if (<= t -5.6e-239)
t_1
(if (<= t 1.25e-242)
(/ x (+ x (* y (- 1.0 (* 2.0 (* a (- b c)))))))
(if (<= t 170.0) 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(((b - c) * -1.6666666666666667))));
double tmp;
if (t <= -5.6e-239) {
tmp = t_1;
} else if (t <= 1.25e-242) {
tmp = x / (x + (y * (1.0 - (2.0 * (a * (b - c))))));
} else if (t <= 170.0) {
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(((b - c) * (-1.6666666666666667d0)))))
if (t <= (-5.6d-239)) then
tmp = t_1
else if (t <= 1.25d-242) then
tmp = x / (x + (y * (1.0d0 - (2.0d0 * (a * (b - c))))))
else if (t <= 170.0d0) 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(((b - c) * -1.6666666666666667))));
double tmp;
if (t <= -5.6e-239) {
tmp = t_1;
} else if (t <= 1.25e-242) {
tmp = x / (x + (y * (1.0 - (2.0 * (a * (b - c))))));
} else if (t <= 170.0) {
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(((b - c) * -1.6666666666666667)))) tmp = 0 if t <= -5.6e-239: tmp = t_1 elif t <= 1.25e-242: tmp = x / (x + (y * (1.0 - (2.0 * (a * (b - c)))))) elif t <= 170.0: 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(Float64(b - c) * -1.6666666666666667))))) tmp = 0.0 if (t <= -5.6e-239) tmp = t_1; elseif (t <= 1.25e-242) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(2.0 * Float64(a * Float64(b - c))))))); elseif (t <= 170.0) 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(((b - c) * -1.6666666666666667)))); tmp = 0.0; if (t <= -5.6e-239) tmp = t_1; elseif (t <= 1.25e-242) tmp = x / (x + (y * (1.0 - (2.0 * (a * (b - c)))))); elseif (t <= 170.0) 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[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.6e-239], t$95$1, If[LessEqual[t, 1.25e-242], N[(x / N[(x + N[(y * N[(1.0 - N[(2.0 * N[(a * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 170.0], 1.0, t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{if}\;t \leq -5.6 \cdot 10^{-239}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-242}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - 2 \cdot \left(a \cdot \left(b - c\right)\right)\right)}\\
\mathbf{elif}\;t \leq 170:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -5.60000000000000025e-239 or 170 < t Initial program 94.9%
Taylor expanded in t around inf 93.1%
mul-1-neg93.1%
*-commutative93.1%
distribute-rgt-neg-in93.1%
distribute-neg-in93.1%
metadata-eval93.1%
Simplified93.1%
Taylor expanded in a around 0 85.3%
if -5.60000000000000025e-239 < t < 1.25e-242Initial program 92.6%
Taylor expanded in a around inf 42.7%
Taylor expanded in a around 0 64.5%
*-commutative64.5%
*-commutative64.5%
Simplified64.5%
if 1.25e-242 < t < 170Initial program 94.6%
Taylor expanded in a around inf 29.6%
Taylor expanded in a around 0 32.2%
Taylor expanded in x around inf 62.0%
Final simplification76.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -5.6e-239)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 2.8e-243)
(/ x (+ x (* y (- 1.0 (* 2.0 (* a (- b c)))))))
(if (<= t 170.0)
1.0
(/ x (+ x (* y (exp (* (- b c) -1.6666666666666667)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -5.6e-239) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 2.8e-243) {
tmp = x / (x + (y * (1.0 - (2.0 * (a * (b - c))))));
} else if (t <= 170.0) {
tmp = 1.0;
} else {
tmp = x / (x + (y * exp(((b - 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 (t <= (-5.6d-239)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 2.8d-243) then
tmp = x / (x + (y * (1.0d0 - (2.0d0 * (a * (b - c))))))
else if (t <= 170.0d0) then
tmp = 1.0d0
else
tmp = x / (x + (y * exp(((b - 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 (t <= -5.6e-239) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 2.8e-243) {
tmp = x / (x + (y * (1.0 - (2.0 * (a * (b - c))))));
} else if (t <= 170.0) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -5.6e-239: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 2.8e-243: tmp = x / (x + (y * (1.0 - (2.0 * (a * (b - c)))))) elif t <= 170.0: tmp = 1.0 else: tmp = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -5.6e-239) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 2.8e-243) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(2.0 * Float64(a * Float64(b - c))))))); elseif (t <= 170.0) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -5.6e-239) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 2.8e-243) tmp = x / (x + (y * (1.0 - (2.0 * (a * (b - c)))))); elseif (t <= 170.0) tmp = 1.0; else tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -5.6e-239], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.8e-243], N[(x / N[(x + N[(y * N[(1.0 - N[(2.0 * N[(a * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 170.0], 1.0, N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.6 \cdot 10^{-239}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-243}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - 2 \cdot \left(a \cdot \left(b - c\right)\right)\right)}\\
\mathbf{elif}\;t \leq 170:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -5.60000000000000025e-239Initial program 93.8%
Taylor expanded in a around inf 87.9%
if -5.60000000000000025e-239 < t < 2.79999999999999994e-243Initial program 92.6%
Taylor expanded in a around inf 42.7%
Taylor expanded in a around 0 64.5%
*-commutative64.5%
*-commutative64.5%
Simplified64.5%
if 2.79999999999999994e-243 < t < 170Initial program 94.6%
Taylor expanded in a around inf 29.6%
Taylor expanded in a around 0 32.2%
Taylor expanded in x around inf 62.0%
if 170 < t Initial program 95.4%
Taylor expanded in t around inf 95.5%
mul-1-neg95.5%
*-commutative95.5%
distribute-rgt-neg-in95.5%
distribute-neg-in95.5%
metadata-eval95.5%
Simplified95.5%
Taylor expanded in a around 0 85.8%
Final simplification77.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -4.3e-259)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 2e-169)
(/ x (+ x (* y (exp (* 2.0 (* b (/ 0.6666666666666666 t)))))))
(if (<= t 170.0)
1.0
(/ x (+ x (* y (exp (* (- b c) -1.6666666666666667)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -4.3e-259) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 2e-169) {
tmp = x / (x + (y * exp((2.0 * (b * (0.6666666666666666 / t))))));
} else if (t <= 170.0) {
tmp = 1.0;
} else {
tmp = x / (x + (y * exp(((b - 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 (t <= (-4.3d-259)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 2d-169) then
tmp = x / (x + (y * exp((2.0d0 * (b * (0.6666666666666666d0 / t))))))
else if (t <= 170.0d0) then
tmp = 1.0d0
else
tmp = x / (x + (y * exp(((b - 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 (t <= -4.3e-259) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 2e-169) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (0.6666666666666666 / t))))));
} else if (t <= 170.0) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -4.3e-259: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 2e-169: tmp = x / (x + (y * math.exp((2.0 * (b * (0.6666666666666666 / t)))))) elif t <= 170.0: tmp = 1.0 else: tmp = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -4.3e-259) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 2e-169) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(0.6666666666666666 / t))))))); elseif (t <= 170.0) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -4.3e-259) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 2e-169) tmp = x / (x + (y * exp((2.0 * (b * (0.6666666666666666 / t)))))); elseif (t <= 170.0) tmp = 1.0; else tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -4.3e-259], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e-169], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 170.0], 1.0, N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.3 \cdot 10^{-259}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-169}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \frac{0.6666666666666666}{t}\right)}}\\
\mathbf{elif}\;t \leq 170:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -4.3000000000000001e-259Initial program 92.9%
Taylor expanded in a around inf 84.4%
if -4.3000000000000001e-259 < t < 2.00000000000000004e-169Initial program 89.4%
Taylor expanded in b around inf 69.1%
associate-*r/69.1%
metadata-eval69.1%
+-commutative69.1%
Simplified69.1%
Taylor expanded in t around 0 69.2%
if 2.00000000000000004e-169 < t < 170Initial program 100.0%
Taylor expanded in a around inf 33.1%
Taylor expanded in a around 0 39.4%
Taylor expanded in x around inf 66.3%
if 170 < t Initial program 95.4%
Taylor expanded in t around inf 95.5%
mul-1-neg95.5%
*-commutative95.5%
distribute-rgt-neg-in95.5%
distribute-neg-in95.5%
metadata-eval95.5%
Simplified95.5%
Taylor expanded in a around 0 85.8%
Final simplification78.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -1.7e-234)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 6.2e-96)
(/ x (+ x (* y (exp (* 2.0 (/ (* -0.6666666666666666 c) t))))))
(if (<= t 170.0)
1.0
(/ x (+ x (* y (exp (* (- b c) -1.6666666666666667)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1.7e-234) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 6.2e-96) {
tmp = x / (x + (y * exp((2.0 * ((-0.6666666666666666 * c) / t)))));
} else if (t <= 170.0) {
tmp = 1.0;
} else {
tmp = x / (x + (y * exp(((b - 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 (t <= (-1.7d-234)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 6.2d-96) then
tmp = x / (x + (y * exp((2.0d0 * (((-0.6666666666666666d0) * c) / t)))))
else if (t <= 170.0d0) then
tmp = 1.0d0
else
tmp = x / (x + (y * exp(((b - 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 (t <= -1.7e-234) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 6.2e-96) {
tmp = x / (x + (y * Math.exp((2.0 * ((-0.6666666666666666 * c) / t)))));
} else if (t <= 170.0) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -1.7e-234: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 6.2e-96: tmp = x / (x + (y * math.exp((2.0 * ((-0.6666666666666666 * c) / t))))) elif t <= 170.0: tmp = 1.0 else: tmp = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -1.7e-234) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 6.2e-96) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(-0.6666666666666666 * c) / t)))))); elseif (t <= 170.0) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -1.7e-234) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 6.2e-96) tmp = x / (x + (y * exp((2.0 * ((-0.6666666666666666 * c) / t))))); elseif (t <= 170.0) tmp = 1.0; else tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -1.7e-234], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.2e-96], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(-0.6666666666666666 * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 170.0], 1.0, N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{-234}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-96}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{-0.6666666666666666 \cdot c}{t}}}\\
\mathbf{elif}\;t \leq 170:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -1.69999999999999993e-234Initial program 93.6%
Taylor expanded in a around inf 87.6%
if -1.69999999999999993e-234 < t < 6.1999999999999998e-96Initial program 92.0%
Taylor expanded in c around inf 69.7%
cancel-sign-sub-inv69.7%
+-commutative69.7%
metadata-eval69.7%
associate-*r/69.7%
metadata-eval69.7%
associate-+r+69.7%
Simplified69.7%
Taylor expanded in t around 0 71.0%
associate-*r/71.0%
Simplified71.0%
if 6.1999999999999998e-96 < t < 170Initial program 100.0%
Taylor expanded in a around inf 39.2%
Taylor expanded in a around 0 31.9%
Taylor expanded in x around inf 67.7%
if 170 < t Initial program 95.4%
Taylor expanded in t around inf 95.5%
mul-1-neg95.5%
*-commutative95.5%
distribute-rgt-neg-in95.5%
distribute-neg-in95.5%
metadata-eval95.5%
Simplified95.5%
Taylor expanded in a around 0 85.8%
Final simplification79.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -2.8e+33)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= b 7.2e-195)
1.0
(if (<= b 4.5e-163) (/ x (+ x (- y (* 2.0 (* (- b c) (* y a)))))) 1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.8e+33) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (b <= 7.2e-195) {
tmp = 1.0;
} else if (b <= 4.5e-163) {
tmp = x / (x + (y - (2.0 * ((b - c) * (y * a)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-2.8d+33)) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (b <= 7.2d-195) then
tmp = 1.0d0
else if (b <= 4.5d-163) then
tmp = x / (x + (y - (2.0d0 * ((b - c) * (y * a)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.8e+33) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (b <= 7.2e-195) {
tmp = 1.0;
} else if (b <= 4.5e-163) {
tmp = x / (x + (y - (2.0 * ((b - c) * (y * a)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -2.8e+33: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif b <= 7.2e-195: tmp = 1.0 elif b <= 4.5e-163: tmp = x / (x + (y - (2.0 * ((b - c) * (y * a))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -2.8e+33) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (b <= 7.2e-195) tmp = 1.0; elseif (b <= 4.5e-163) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(Float64(b - c) * Float64(y * a)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -2.8e+33) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (b <= 7.2e-195) tmp = 1.0; elseif (b <= 4.5e-163) tmp = x / (x + (y - (2.0 * ((b - c) * (y * a))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -2.8e+33], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.2e-195], 1.0, If[LessEqual[b, 4.5e-163], N[(x / N[(x + N[(y - N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.8 \cdot 10^{+33}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{-195}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{-163}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(\left(b - c\right) \cdot \left(y \cdot a\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -2.8000000000000001e33Initial program 90.4%
Taylor expanded in t around inf 70.3%
mul-1-neg70.3%
*-commutative70.3%
distribute-rgt-neg-in70.3%
distribute-neg-in70.3%
metadata-eval70.3%
Simplified70.3%
Taylor expanded in a around 0 65.6%
Taylor expanded in b around inf 70.3%
if -2.8000000000000001e33 < b < 7.2e-195 or 4.4999999999999997e-163 < b Initial program 95.7%
Taylor expanded in a around inf 56.0%
Taylor expanded in a around 0 36.9%
Taylor expanded in x around inf 64.7%
if 7.2e-195 < b < 4.4999999999999997e-163Initial program 100.0%
Taylor expanded in a around inf 51.6%
Taylor expanded in a around 0 60.3%
associate-*r*68.4%
Simplified68.4%
Final simplification66.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -4.8e-35)
(/ x (+ x (* y (* 2.0 (* a c)))))
(if (<= b 7.2e-195)
1.0
(if (<= b 1.5e-158)
(/ x (+ x (* y (+ (* 2.0 (* c (+ a 0.8333333333333334))) 1.0))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -4.8e-35) {
tmp = x / (x + (y * (2.0 * (a * c))));
} else if (b <= 7.2e-195) {
tmp = 1.0;
} else if (b <= 1.5e-158) {
tmp = x / (x + (y * ((2.0 * (c * (a + 0.8333333333333334))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-4.8d-35)) then
tmp = x / (x + (y * (2.0d0 * (a * c))))
else if (b <= 7.2d-195) then
tmp = 1.0d0
else if (b <= 1.5d-158) then
tmp = x / (x + (y * ((2.0d0 * (c * (a + 0.8333333333333334d0))) + 1.0d0)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -4.8e-35) {
tmp = x / (x + (y * (2.0 * (a * c))));
} else if (b <= 7.2e-195) {
tmp = 1.0;
} else if (b <= 1.5e-158) {
tmp = x / (x + (y * ((2.0 * (c * (a + 0.8333333333333334))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -4.8e-35: tmp = x / (x + (y * (2.0 * (a * c)))) elif b <= 7.2e-195: tmp = 1.0 elif b <= 1.5e-158: tmp = x / (x + (y * ((2.0 * (c * (a + 0.8333333333333334))) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -4.8e-35) tmp = Float64(x / Float64(x + Float64(y * Float64(2.0 * Float64(a * c))))); elseif (b <= 7.2e-195) tmp = 1.0; elseif (b <= 1.5e-158) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))) + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -4.8e-35) tmp = x / (x + (y * (2.0 * (a * c)))); elseif (b <= 7.2e-195) tmp = 1.0; elseif (b <= 1.5e-158) tmp = x / (x + (y * ((2.0 * (c * (a + 0.8333333333333334))) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -4.8e-35], N[(x / N[(x + N[(y * N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.2e-195], 1.0, If[LessEqual[b, 1.5e-158], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.8 \cdot 10^{-35}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(a \cdot c\right)\right)}\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{-195}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{-158}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -4.8000000000000003e-35Initial program 91.9%
Taylor expanded in c around inf 54.4%
cancel-sign-sub-inv54.4%
+-commutative54.4%
metadata-eval54.4%
associate-*r/54.4%
metadata-eval54.4%
associate-+r+54.4%
Simplified54.4%
Taylor expanded in c around 0 41.7%
Taylor expanded in t around inf 45.8%
Taylor expanded in a around inf 48.0%
*-commutative48.0%
Simplified48.0%
if -4.8000000000000003e-35 < b < 7.2e-195 or 1.5e-158 < b Initial program 95.3%
Taylor expanded in a around inf 55.1%
Taylor expanded in a around 0 36.9%
Taylor expanded in x around inf 65.1%
if 7.2e-195 < b < 1.5e-158Initial program 100.0%
Taylor expanded in c around inf 75.8%
cancel-sign-sub-inv75.8%
+-commutative75.8%
metadata-eval75.8%
associate-*r/75.8%
metadata-eval75.8%
associate-+r+75.8%
Simplified75.8%
Taylor expanded in c around 0 67.8%
Taylor expanded in t around inf 67.8%
Final simplification60.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -7.8e-65)
(/ x (+ x (* y (- 1.0 (* 2.0 (* a (- b c)))))))
(if (<= b 7e-195)
1.0
(if (<= b 1.3e-148)
(/ x (+ x (* y (+ (* 2.0 (* c (+ a 0.8333333333333334))) 1.0))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -7.8e-65) {
tmp = x / (x + (y * (1.0 - (2.0 * (a * (b - c))))));
} else if (b <= 7e-195) {
tmp = 1.0;
} else if (b <= 1.3e-148) {
tmp = x / (x + (y * ((2.0 * (c * (a + 0.8333333333333334))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-7.8d-65)) then
tmp = x / (x + (y * (1.0d0 - (2.0d0 * (a * (b - c))))))
else if (b <= 7d-195) then
tmp = 1.0d0
else if (b <= 1.3d-148) then
tmp = x / (x + (y * ((2.0d0 * (c * (a + 0.8333333333333334d0))) + 1.0d0)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -7.8e-65) {
tmp = x / (x + (y * (1.0 - (2.0 * (a * (b - c))))));
} else if (b <= 7e-195) {
tmp = 1.0;
} else if (b <= 1.3e-148) {
tmp = x / (x + (y * ((2.0 * (c * (a + 0.8333333333333334))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -7.8e-65: tmp = x / (x + (y * (1.0 - (2.0 * (a * (b - c)))))) elif b <= 7e-195: tmp = 1.0 elif b <= 1.3e-148: tmp = x / (x + (y * ((2.0 * (c * (a + 0.8333333333333334))) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -7.8e-65) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(2.0 * Float64(a * Float64(b - c))))))); elseif (b <= 7e-195) tmp = 1.0; elseif (b <= 1.3e-148) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))) + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -7.8e-65) tmp = x / (x + (y * (1.0 - (2.0 * (a * (b - c)))))); elseif (b <= 7e-195) tmp = 1.0; elseif (b <= 1.3e-148) tmp = x / (x + (y * ((2.0 * (c * (a + 0.8333333333333334))) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -7.8e-65], N[(x / N[(x + N[(y * N[(1.0 - N[(2.0 * N[(a * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7e-195], 1.0, If[LessEqual[b, 1.3e-148], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.8 \cdot 10^{-65}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - 2 \cdot \left(a \cdot \left(b - c\right)\right)\right)}\\
\mathbf{elif}\;b \leq 7 \cdot 10^{-195}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{-148}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -7.8000000000000007e-65Initial program 92.4%
Taylor expanded in a around inf 73.1%
Taylor expanded in a around 0 54.1%
*-commutative54.1%
*-commutative54.1%
Simplified54.1%
if -7.8000000000000007e-65 < b < 7.00000000000000028e-195 or 1.30000000000000004e-148 < b Initial program 95.2%
Taylor expanded in a around inf 53.5%
Taylor expanded in a around 0 35.8%
Taylor expanded in x around inf 65.7%
if 7.00000000000000028e-195 < b < 1.30000000000000004e-148Initial program 100.0%
Taylor expanded in c around inf 77.7%
cancel-sign-sub-inv77.7%
+-commutative77.7%
metadata-eval77.7%
associate-*r/77.7%
metadata-eval77.7%
associate-+r+77.7%
Simplified77.7%
Taylor expanded in c around 0 62.8%
Taylor expanded in t around inf 62.8%
Final simplification62.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -4.6e-65)
(/ x (+ x (- y (* 2.0 (* a (* y (- b c)))))))
(if (<= b 7e-195)
1.0
(if (<= b 2.2e-158)
(/ x (+ x (* y (+ (* 2.0 (* c (+ a 0.8333333333333334))) 1.0))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -4.6e-65) {
tmp = x / (x + (y - (2.0 * (a * (y * (b - c))))));
} else if (b <= 7e-195) {
tmp = 1.0;
} else if (b <= 2.2e-158) {
tmp = x / (x + (y * ((2.0 * (c * (a + 0.8333333333333334))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-4.6d-65)) then
tmp = x / (x + (y - (2.0d0 * (a * (y * (b - c))))))
else if (b <= 7d-195) then
tmp = 1.0d0
else if (b <= 2.2d-158) then
tmp = x / (x + (y * ((2.0d0 * (c * (a + 0.8333333333333334d0))) + 1.0d0)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -4.6e-65) {
tmp = x / (x + (y - (2.0 * (a * (y * (b - c))))));
} else if (b <= 7e-195) {
tmp = 1.0;
} else if (b <= 2.2e-158) {
tmp = x / (x + (y * ((2.0 * (c * (a + 0.8333333333333334))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -4.6e-65: tmp = x / (x + (y - (2.0 * (a * (y * (b - c)))))) elif b <= 7e-195: tmp = 1.0 elif b <= 2.2e-158: tmp = x / (x + (y * ((2.0 * (c * (a + 0.8333333333333334))) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -4.6e-65) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(a * Float64(y * Float64(b - c))))))); elseif (b <= 7e-195) tmp = 1.0; elseif (b <= 2.2e-158) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))) + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -4.6e-65) tmp = x / (x + (y - (2.0 * (a * (y * (b - c)))))); elseif (b <= 7e-195) tmp = 1.0; elseif (b <= 2.2e-158) tmp = x / (x + (y * ((2.0 * (c * (a + 0.8333333333333334))) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -4.6e-65], N[(x / N[(x + N[(y - N[(2.0 * N[(a * N[(y * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7e-195], 1.0, If[LessEqual[b, 2.2e-158], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.6 \cdot 10^{-65}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(a \cdot \left(y \cdot \left(b - c\right)\right)\right)\right)}\\
\mathbf{elif}\;b \leq 7 \cdot 10^{-195}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{-158}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -4.5999999999999999e-65Initial program 92.4%
Taylor expanded in a around inf 73.1%
Taylor expanded in a around 0 56.3%
if -4.5999999999999999e-65 < b < 7.00000000000000028e-195 or 2.2000000000000001e-158 < b Initial program 95.2%
Taylor expanded in a around inf 53.8%
Taylor expanded in a around 0 35.6%
Taylor expanded in x around inf 65.4%
if 7.00000000000000028e-195 < b < 2.2000000000000001e-158Initial program 100.0%
Taylor expanded in c around inf 75.8%
cancel-sign-sub-inv75.8%
+-commutative75.8%
metadata-eval75.8%
associate-*r/75.8%
metadata-eval75.8%
associate-+r+75.8%
Simplified75.8%
Taylor expanded in c around 0 67.8%
Taylor expanded in t around inf 67.8%
Final simplification62.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -1.6e-65)
(/ x (+ x (- y (* 2.0 (* a (* y (- b c)))))))
(if (<= b 7.2e-195)
1.0
(if (<= b 2.5e-151) (/ x (+ x (- y (* 2.0 (* (- b c) (* y a)))))) 1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.6e-65) {
tmp = x / (x + (y - (2.0 * (a * (y * (b - c))))));
} else if (b <= 7.2e-195) {
tmp = 1.0;
} else if (b <= 2.5e-151) {
tmp = x / (x + (y - (2.0 * ((b - c) * (y * a)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-1.6d-65)) then
tmp = x / (x + (y - (2.0d0 * (a * (y * (b - c))))))
else if (b <= 7.2d-195) then
tmp = 1.0d0
else if (b <= 2.5d-151) then
tmp = x / (x + (y - (2.0d0 * ((b - c) * (y * a)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.6e-65) {
tmp = x / (x + (y - (2.0 * (a * (y * (b - c))))));
} else if (b <= 7.2e-195) {
tmp = 1.0;
} else if (b <= 2.5e-151) {
tmp = x / (x + (y - (2.0 * ((b - c) * (y * a)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -1.6e-65: tmp = x / (x + (y - (2.0 * (a * (y * (b - c)))))) elif b <= 7.2e-195: tmp = 1.0 elif b <= 2.5e-151: tmp = x / (x + (y - (2.0 * ((b - c) * (y * a))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -1.6e-65) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(a * Float64(y * Float64(b - c))))))); elseif (b <= 7.2e-195) tmp = 1.0; elseif (b <= 2.5e-151) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(Float64(b - c) * Float64(y * a)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -1.6e-65) tmp = x / (x + (y - (2.0 * (a * (y * (b - c)))))); elseif (b <= 7.2e-195) tmp = 1.0; elseif (b <= 2.5e-151) tmp = x / (x + (y - (2.0 * ((b - c) * (y * a))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -1.6e-65], N[(x / N[(x + N[(y - N[(2.0 * N[(a * N[(y * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.2e-195], 1.0, If[LessEqual[b, 2.5e-151], N[(x / N[(x + N[(y - N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.6 \cdot 10^{-65}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(a \cdot \left(y \cdot \left(b - c\right)\right)\right)\right)}\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{-195}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{-151}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(\left(b - c\right) \cdot \left(y \cdot a\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.6e-65Initial program 92.4%
Taylor expanded in a around inf 73.1%
Taylor expanded in a around 0 56.3%
if -1.6e-65 < b < 7.2e-195 or 2.50000000000000002e-151 < b Initial program 95.2%
Taylor expanded in a around inf 53.5%
Taylor expanded in a around 0 35.8%
Taylor expanded in x around inf 65.7%
if 7.2e-195 < b < 2.50000000000000002e-151Initial program 100.0%
Taylor expanded in a around inf 55.3%
Taylor expanded in a around 0 55.9%
associate-*r*63.4%
Simplified63.4%
Final simplification62.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -4.6e-222)
1.0
(if (<= t -8.5e-254)
(* (/ -0.75 c) (/ (* x t) y))
(if (<= t 1.2e-253)
(/ x (+ x (* -1.3333333333333333 (/ c (/ t y)))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -4.6e-222) {
tmp = 1.0;
} else if (t <= -8.5e-254) {
tmp = (-0.75 / c) * ((x * t) / y);
} else if (t <= 1.2e-253) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-4.6d-222)) then
tmp = 1.0d0
else if (t <= (-8.5d-254)) then
tmp = ((-0.75d0) / c) * ((x * t) / y)
else if (t <= 1.2d-253) then
tmp = x / (x + ((-1.3333333333333333d0) * (c / (t / y))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -4.6e-222) {
tmp = 1.0;
} else if (t <= -8.5e-254) {
tmp = (-0.75 / c) * ((x * t) / y);
} else if (t <= 1.2e-253) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -4.6e-222: tmp = 1.0 elif t <= -8.5e-254: tmp = (-0.75 / c) * ((x * t) / y) elif t <= 1.2e-253: tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -4.6e-222) tmp = 1.0; elseif (t <= -8.5e-254) tmp = Float64(Float64(-0.75 / c) * Float64(Float64(x * t) / y)); elseif (t <= 1.2e-253) tmp = Float64(x / Float64(x + Float64(-1.3333333333333333 * Float64(c / Float64(t / y))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -4.6e-222) tmp = 1.0; elseif (t <= -8.5e-254) tmp = (-0.75 / c) * ((x * t) / y); elseif (t <= 1.2e-253) tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -4.6e-222], 1.0, If[LessEqual[t, -8.5e-254], N[(N[(-0.75 / c), $MachinePrecision] * N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.2e-253], N[(x / N[(x + N[(-1.3333333333333333 * N[(c / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.6 \cdot 10^{-222}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq -8.5 \cdot 10^{-254}:\\
\;\;\;\;\frac{-0.75}{c} \cdot \frac{x \cdot t}{y}\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-253}:\\
\;\;\;\;\frac{x}{x + -1.3333333333333333 \cdot \frac{c}{\frac{t}{y}}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if t < -4.6000000000000003e-222 or 1.20000000000000005e-253 < t Initial program 94.8%
Taylor expanded in a around inf 61.0%
Taylor expanded in a around 0 34.5%
Taylor expanded in x around inf 58.1%
if -4.6000000000000003e-222 < t < -8.49999999999999963e-254Initial program 100.0%
Taylor expanded in c around inf 68.0%
cancel-sign-sub-inv68.0%
+-commutative68.0%
metadata-eval68.0%
associate-*r/68.0%
metadata-eval68.0%
associate-+r+68.0%
Simplified68.0%
Taylor expanded in c around 0 56.9%
Taylor expanded in t around 0 46.4%
associate-*r/46.4%
times-frac79.1%
Simplified79.1%
if -8.49999999999999963e-254 < t < 1.20000000000000005e-253Initial program 88.2%
Taylor expanded in c around inf 77.2%
cancel-sign-sub-inv77.2%
+-commutative77.2%
metadata-eval77.2%
associate-*r/77.2%
metadata-eval77.2%
associate-+r+77.2%
Simplified77.2%
Taylor expanded in c around 0 61.9%
Taylor expanded in t around 0 62.0%
associate-/l*67.5%
Simplified67.5%
Final simplification59.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -5e-35)
(/ x (+ x (* y (* 2.0 (* a c)))))
(if (<= b 3.7e-292)
1.0
(if (<= b 5e-126)
(/ x (+ x (* -1.3333333333333333 (/ c (/ t y)))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -5e-35) {
tmp = x / (x + (y * (2.0 * (a * c))));
} else if (b <= 3.7e-292) {
tmp = 1.0;
} else if (b <= 5e-126) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-5d-35)) then
tmp = x / (x + (y * (2.0d0 * (a * c))))
else if (b <= 3.7d-292) then
tmp = 1.0d0
else if (b <= 5d-126) then
tmp = x / (x + ((-1.3333333333333333d0) * (c / (t / y))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -5e-35) {
tmp = x / (x + (y * (2.0 * (a * c))));
} else if (b <= 3.7e-292) {
tmp = 1.0;
} else if (b <= 5e-126) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -5e-35: tmp = x / (x + (y * (2.0 * (a * c)))) elif b <= 3.7e-292: tmp = 1.0 elif b <= 5e-126: tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -5e-35) tmp = Float64(x / Float64(x + Float64(y * Float64(2.0 * Float64(a * c))))); elseif (b <= 3.7e-292) tmp = 1.0; elseif (b <= 5e-126) tmp = Float64(x / Float64(x + Float64(-1.3333333333333333 * Float64(c / Float64(t / y))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -5e-35) tmp = x / (x + (y * (2.0 * (a * c)))); elseif (b <= 3.7e-292) tmp = 1.0; elseif (b <= 5e-126) tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -5e-35], N[(x / N[(x + N[(y * N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.7e-292], 1.0, If[LessEqual[b, 5e-126], N[(x / N[(x + N[(-1.3333333333333333 * N[(c / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{-35}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(a \cdot c\right)\right)}\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{-292}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 5 \cdot 10^{-126}:\\
\;\;\;\;\frac{x}{x + -1.3333333333333333 \cdot \frac{c}{\frac{t}{y}}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -4.99999999999999964e-35Initial program 91.9%
Taylor expanded in c around inf 54.4%
cancel-sign-sub-inv54.4%
+-commutative54.4%
metadata-eval54.4%
associate-*r/54.4%
metadata-eval54.4%
associate-+r+54.4%
Simplified54.4%
Taylor expanded in c around 0 41.7%
Taylor expanded in t around inf 45.8%
Taylor expanded in a around inf 48.0%
*-commutative48.0%
Simplified48.0%
if -4.99999999999999964e-35 < b < 3.69999999999999997e-292 or 5.00000000000000006e-126 < b Initial program 94.7%
Taylor expanded in a around inf 58.2%
Taylor expanded in a around 0 38.8%
Taylor expanded in x around inf 68.2%
if 3.69999999999999997e-292 < b < 5.00000000000000006e-126Initial program 100.0%
Taylor expanded in c around inf 66.7%
cancel-sign-sub-inv66.7%
+-commutative66.7%
metadata-eval66.7%
associate-*r/66.7%
metadata-eval66.7%
associate-+r+66.7%
Simplified66.7%
Taylor expanded in c around 0 46.8%
Taylor expanded in t around 0 48.2%
associate-/l*51.1%
Simplified51.1%
Final simplification60.2%
(FPCore (x y z t a b c) :precision binary64 (if (<= t -7.7e-233) 1.0 (if (<= t 2.3e-300) (* (/ -0.75 c) (/ (* x t) y)) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -7.7e-233) {
tmp = 1.0;
} else if (t <= 2.3e-300) {
tmp = (-0.75 / c) * ((x * t) / y);
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-7.7d-233)) then
tmp = 1.0d0
else if (t <= 2.3d-300) then
tmp = ((-0.75d0) / c) * ((x * t) / y)
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -7.7e-233) {
tmp = 1.0;
} else if (t <= 2.3e-300) {
tmp = (-0.75 / c) * ((x * t) / y);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -7.7e-233: tmp = 1.0 elif t <= 2.3e-300: tmp = (-0.75 / c) * ((x * t) / y) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -7.7e-233) tmp = 1.0; elseif (t <= 2.3e-300) tmp = Float64(Float64(-0.75 / c) * Float64(Float64(x * t) / y)); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -7.7e-233) tmp = 1.0; elseif (t <= 2.3e-300) tmp = (-0.75 / c) * ((x * t) / y); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -7.7e-233], 1.0, If[LessEqual[t, 2.3e-300], N[(N[(-0.75 / c), $MachinePrecision] * N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.7 \cdot 10^{-233}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{-300}:\\
\;\;\;\;\frac{-0.75}{c} \cdot \frac{x \cdot t}{y}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if t < -7.70000000000000007e-233 or 2.30000000000000001e-300 < t Initial program 95.0%
Taylor expanded in a around inf 60.1%
Taylor expanded in a around 0 34.8%
Taylor expanded in x around inf 57.7%
if -7.70000000000000007e-233 < t < 2.30000000000000001e-300Initial program 89.5%
Taylor expanded in c around inf 64.4%
cancel-sign-sub-inv64.4%
+-commutative64.4%
metadata-eval64.4%
associate-*r/64.4%
metadata-eval64.4%
associate-+r+64.4%
Simplified64.4%
Taylor expanded in c around 0 59.3%
Taylor expanded in t around 0 49.5%
associate-*r/49.5%
times-frac70.0%
Simplified70.0%
Final simplification58.6%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 94.6%
Taylor expanded in a around inf 59.6%
Taylor expanded in a around 0 34.9%
Taylor expanded in x around inf 55.2%
Final simplification55.2%
(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 2023318
(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)))))))))))