
(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 18 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
(/
x
(fma
y
(pow
(exp 2.0)
(fma
(- b c)
(+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a))
(* (sqrt (+ t a)) (/ 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((b - c), ((0.6666666666666666 / t) + (-0.8333333333333334 - a)), (sqrt((t + a)) * (z / t)))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(Float64(b - c), Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a)), Float64(sqrt(Float64(t + a)) * 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[(b - c), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision] + N[(N[Sqrt[N[(t + a), $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(b - c, \frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right), \sqrt{t + a} \cdot \frac{z}{t}\right)\right)}, x\right)}
\end{array}
Initial program 92.2%
+-commutative92.2%
fma-def92.2%
Simplified97.7%
Final simplification97.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))
(t_2 (sqrt (+ t a))))
(if (<= (+ (/ (* t_2 z) t) t_1) INFINITY)
(/ x (+ x (* y (exp (* 2.0 (log (exp (+ (* t_2 (/ z t)) t_1))))))))
1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334));
double t_2 = sqrt((t + a));
double tmp;
if ((((t_2 * z) / t) + t_1) <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * log(exp(((t_2 * (z / t)) + t_1)))))));
} else {
tmp = 1.0;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334));
double t_2 = Math.sqrt((t + a));
double tmp;
if ((((t_2 * z) / t) + t_1) <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * Math.log(Math.exp(((t_2 * (z / t)) + t_1)))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)) t_2 = math.sqrt((t + a)) tmp = 0 if (((t_2 * z) / t) + t_1) <= math.inf: tmp = x / (x + (y * math.exp((2.0 * math.log(math.exp(((t_2 * (z / t)) + t_1))))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334))) t_2 = sqrt(Float64(t + a)) tmp = 0.0 if (Float64(Float64(Float64(t_2 * z) / t) + t_1) <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * log(exp(Float64(Float64(t_2 * Float64(z / t)) + t_1)))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)); t_2 = sqrt((t + a)); tmp = 0.0; if ((((t_2 * z) / t) + t_1) <= Inf) tmp = x / (x + (y * exp((2.0 * log(exp(((t_2 * (z / t)) + t_1))))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(t + a), $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[Exp[N[(2.0 * N[Log[N[Exp[N[(N[(t$95$2 * N[(z / t), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
t_2 := \sqrt{t + a}\\
\mathbf{if}\;\frac{t_2 \cdot z}{t} + t_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \log \left(e^{t_2 \cdot \frac{z}{t} + t_1}\right)}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\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.0%
associate-/l*99.2%
metadata-eval99.2%
add-log-exp99.2%
associate-/r/99.2%
*-commutative99.2%
Applied egg-rr99.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 54.7%
Taylor expanded in x around inf 67.7%
Final simplification97.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))
(t_2 (sqrt (+ t a))))
(if (<= (+ (/ (* t_2 z) t) t_1) INFINITY)
(/ x (+ x (* y (pow (exp 2.0) (+ (/ z (/ t t_2)) t_1)))))
1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334));
double t_2 = sqrt((t + a));
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 = 1.0;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334));
double t_2 = Math.sqrt((t + a));
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 = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)) t_2 = math.sqrt((t + a)) 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 = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334))) t_2 = sqrt(Float64(t + a)) 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 = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)); t_2 = sqrt((t + a)); 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 = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(t + a), $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], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
t_2 := \sqrt{t + a}\\
\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}:\\
\;\;\;\;1\\
\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.0%
exp-prod98.0%
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 54.7%
Taylor expanded in x around inf 67.7%
Final simplification97.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* (sqrt (+ t a)) z) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY) (/ x (+ x (* y (exp (* 2.0 t_1))))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((sqrt((t + a)) * z) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = 1.0;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((Math.sqrt((t + a)) * z) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((math.sqrt((t + a)) * z) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(sqrt(Float64(t + a)) * z) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((sqrt((t + a)) * z) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\sqrt{t + a} \cdot z}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t_1}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\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.0%
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 54.7%
Taylor expanded in x around inf 67.7%
Final simplification96.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -2e+35)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 1.2e-262)
(/
x
(+
x
(*
y
(exp
(* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 3.5e+39)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (- b c) (- (/ 0.6666666666666666 t) 0.8333333333333334))))))))
(/
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 tmp;
if (t <= -2e+35) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 1.2e-262) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 3.5e+39) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334)))))));
} 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) :: tmp
if (t <= (-2d+35)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 1.2d-262) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 3.5d+39) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((b - c) * ((0.6666666666666666d0 / t) - 0.8333333333333334d0)))))))
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 tmp;
if (t <= -2e+35) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 1.2e-262) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 3.5e+39) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334)))))));
} 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): tmp = 0 if t <= -2e+35: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 1.2e-262: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 3.5e+39: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334))))))) 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) tmp = 0.0 if (t <= -2e+35) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 1.2e-262) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); elseif (t <= 3.5e+39) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(b - c) * Float64(Float64(0.6666666666666666 / t) - 0.8333333333333334)))))))); 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) tmp = 0.0; if (t <= -2e+35) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 1.2e-262) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 3.5e+39) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334))))))); 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_] := If[LessEqual[t, -2e+35], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.2e-262], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e+39], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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}
\mathbf{if}\;t \leq -2 \cdot 10^{+35}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-262}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{+39}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(b - c\right) \cdot \left(\frac{0.6666666666666666}{t} - 0.8333333333333334\right)\right)}}\\
\mathbf{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 < -1.9999999999999999e35Initial program 100.0%
Taylor expanded in a around inf 100.0%
if -1.9999999999999999e35 < t < 1.2e-262Initial program 87.9%
Taylor expanded in t around 0 98.3%
if 1.2e-262 < t < 3.5000000000000002e39Initial program 94.4%
Taylor expanded in a around 0 86.5%
*-commutative86.5%
associate-*r/86.5%
metadata-eval86.5%
Simplified86.5%
if 3.5000000000000002e39 < t Initial program 92.0%
Taylor expanded in t around inf 93.9%
mul-1-neg93.9%
distribute-rgt-neg-in93.9%
distribute-neg-in93.9%
metadata-eval93.9%
sub-neg93.9%
Simplified93.9%
Final simplification93.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t)))))))
(t_2
(* (* y b) (- a (+ (/ 0.6666666666666666 t) -0.8333333333333334)))))
(if (<= t -2e+32)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 1.7e-222)
t_1
(if (<= t 5.5e-182)
(/
x
(+
x
(-
y
(* 2.0 (- t_2 (* 0.4444444444444444 (/ y (/ (* t t) (* b b)))))))))
(if (<= t 4.7e-133)
t_1
(if (<= t 1e-98)
1.0
(if (<= t 3.1e-83)
(/ x (+ x (- y (* 2.0 t_2))))
(if (<= t 0.185)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
c
(+
a
(+ 0.8333333333333334 (/ -0.6666666666666666 t)))))))))
(/
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 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
double t_2 = (y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334));
double tmp;
if (t <= -2e+32) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 1.7e-222) {
tmp = t_1;
} else if (t <= 5.5e-182) {
tmp = x / (x + (y - (2.0 * (t_2 - (0.4444444444444444 * (y / ((t * t) / (b * b))))))));
} else if (t <= 4.7e-133) {
tmp = t_1;
} else if (t <= 1e-98) {
tmp = 1.0;
} else if (t <= 3.1e-83) {
tmp = x / (x + (y - (2.0 * t_2)));
} else if (t <= 0.185) {
tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} 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) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
t_2 = (y * b) * (a - ((0.6666666666666666d0 / t) + (-0.8333333333333334d0)))
if (t <= (-2d+32)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 1.7d-222) then
tmp = t_1
else if (t <= 5.5d-182) then
tmp = x / (x + (y - (2.0d0 * (t_2 - (0.4444444444444444d0 * (y / ((t * t) / (b * b))))))))
else if (t <= 4.7d-133) then
tmp = t_1
else if (t <= 1d-98) then
tmp = 1.0d0
else if (t <= 3.1d-83) then
tmp = x / (x + (y - (2.0d0 * t_2)))
else if (t <= 0.185d0) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + (0.8333333333333334d0 + ((-0.6666666666666666d0) / t))))))))
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 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
double t_2 = (y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334));
double tmp;
if (t <= -2e+32) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 1.7e-222) {
tmp = t_1;
} else if (t <= 5.5e-182) {
tmp = x / (x + (y - (2.0 * (t_2 - (0.4444444444444444 * (y / ((t * t) / (b * b))))))));
} else if (t <= 4.7e-133) {
tmp = t_1;
} else if (t <= 1e-98) {
tmp = 1.0;
} else if (t <= 3.1e-83) {
tmp = x / (x + (y - (2.0 * t_2)));
} else if (t <= 0.185) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} 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 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) t_2 = (y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334)) tmp = 0 if t <= -2e+32: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 1.7e-222: tmp = t_1 elif t <= 5.5e-182: tmp = x / (x + (y - (2.0 * (t_2 - (0.4444444444444444 * (y / ((t * t) / (b * b)))))))) elif t <= 4.7e-133: tmp = t_1 elif t <= 1e-98: tmp = 1.0 elif t <= 3.1e-83: tmp = x / (x + (y - (2.0 * t_2))) elif t <= 0.185: tmp = x / (x + (y * math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))) 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(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))) t_2 = Float64(Float64(y * b) * Float64(a - Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334))) tmp = 0.0 if (t <= -2e+32) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 1.7e-222) tmp = t_1; elseif (t <= 5.5e-182) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(t_2 - Float64(0.4444444444444444 * Float64(y / Float64(Float64(t * t) / Float64(b * b))))))))); elseif (t <= 4.7e-133) tmp = t_1; elseif (t <= 1e-98) tmp = 1.0; elseif (t <= 3.1e-83) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * t_2)))); elseif (t <= 0.185) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))))))))); 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 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); t_2 = (y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334)); tmp = 0.0; if (t <= -2e+32) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 1.7e-222) tmp = t_1; elseif (t <= 5.5e-182) tmp = x / (x + (y - (2.0 * (t_2 - (0.4444444444444444 * (y / ((t * t) / (b * b)))))))); elseif (t <= 4.7e-133) tmp = t_1; elseif (t <= 1e-98) tmp = 1.0; elseif (t <= 3.1e-83) tmp = x / (x + (y - (2.0 * t_2))); elseif (t <= 0.185) tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))); 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[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * b), $MachinePrecision] * N[(a - N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2e+32], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e-222], t$95$1, If[LessEqual[t, 5.5e-182], N[(x / N[(x + N[(y - N[(2.0 * N[(t$95$2 - N[(0.4444444444444444 * N[(y / N[(N[(t * t), $MachinePrecision] / N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.7e-133], t$95$1, If[LessEqual[t, 1e-98], 1.0, If[LessEqual[t, 3.1e-83], N[(x / N[(x + N[(y - N[(2.0 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.185], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c - b), $MachinePrecision] * N[(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 \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
t_2 := \left(y \cdot b\right) \cdot \left(a - \left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right)\right)\\
\mathbf{if}\;t \leq -2 \cdot 10^{+32}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-222}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-182}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(t_2 - 0.4444444444444444 \cdot \frac{y}{\frac{t \cdot t}{b \cdot b}}\right)\right)}\\
\mathbf{elif}\;t \leq 4.7 \cdot 10^{-133}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 10^{-98}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{-83}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot t_2\right)}\\
\mathbf{elif}\;t \leq 0.185:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right)\right)}}\\
\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 < -2.00000000000000011e32Initial program 100.0%
Taylor expanded in a around inf 100.0%
if -2.00000000000000011e32 < t < 1.7000000000000001e-222 or 5.49999999999999993e-182 < t < 4.70000000000000003e-133Initial program 88.5%
Taylor expanded in t around 0 96.2%
if 1.7000000000000001e-222 < t < 5.49999999999999993e-182Initial program 100.0%
Taylor expanded in b around inf 80.6%
*-commutative80.6%
associate--r+80.6%
sub-neg80.6%
associate-*r/80.6%
metadata-eval80.6%
metadata-eval80.6%
associate-+r-80.6%
Simplified80.6%
Taylor expanded in b around 0 80.3%
distribute-lft-out80.3%
associate--r+80.3%
sub-neg80.3%
associate-*r/80.3%
metadata-eval80.3%
metadata-eval80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in t around 0 80.3%
associate-/l*90.3%
unpow290.3%
unpow290.3%
Simplified90.3%
if 4.70000000000000003e-133 < t < 9.99999999999999939e-99Initial program 88.9%
Taylor expanded in a around inf 56.8%
Taylor expanded in x around inf 78.5%
if 9.99999999999999939e-99 < t < 3.09999999999999992e-83Initial program 83.3%
Taylor expanded in b around inf 67.7%
*-commutative67.7%
associate--r+67.7%
sub-neg67.7%
associate-*r/67.7%
metadata-eval67.7%
metadata-eval67.7%
associate-+r-67.7%
Simplified67.7%
Taylor expanded in b around 0 83.9%
associate--r+83.9%
sub-neg83.9%
associate-*r/83.9%
metadata-eval83.9%
metadata-eval83.9%
*-commutative83.9%
Simplified83.9%
if 3.09999999999999992e-83 < t < 0.185Initial program 100.0%
Taylor expanded in c around inf 71.5%
associate-*r/71.5%
metadata-eval71.5%
+-commutative71.5%
metadata-eval71.5%
associate-/r*71.5%
*-commutative71.5%
associate--l+71.5%
sub-neg71.5%
sub-neg71.5%
*-commutative71.5%
associate-/r*71.5%
metadata-eval71.5%
sub-neg71.5%
distribute-neg-frac71.5%
metadata-eval71.5%
Simplified71.5%
if 0.185 < t Initial program 92.7%
Taylor expanded in t around inf 93.6%
mul-1-neg93.6%
distribute-rgt-neg-in93.6%
distribute-neg-in93.6%
metadata-eval93.6%
sub-neg93.6%
Simplified93.6%
Final simplification92.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= t -6.2e-284)
t_1
(if (<= t 3.9e-259)
(/ x (+ x (* y (+ 1.0 (* 1.3333333333333333 (/ b t))))))
(if (<= t 1.4e-224)
1.0
(if (<= t 6.4e-181)
(/
x
(+
x
(-
y
(*
2.0
(-
(*
(* y b)
(- a (+ (/ 0.6666666666666666 t) -0.8333333333333334)))
(* 0.4444444444444444 (/ y (/ (* t t) (* b b)))))))))
(if (<= t 1.15e-8)
1.0
(if (<= t 7e+142)
(/ x (+ x (* y (exp (* (- b c) -1.6666666666666667)))))
t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= -6.2e-284) {
tmp = t_1;
} else if (t <= 3.9e-259) {
tmp = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t)))));
} else if (t <= 1.4e-224) {
tmp = 1.0;
} else if (t <= 6.4e-181) {
tmp = x / (x + (y - (2.0 * (((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))) - (0.4444444444444444 * (y / ((t * t) / (b * b))))))));
} else if (t <= 1.15e-8) {
tmp = 1.0;
} else if (t <= 7e+142) {
tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
if (t <= (-6.2d-284)) then
tmp = t_1
else if (t <= 3.9d-259) then
tmp = x / (x + (y * (1.0d0 + (1.3333333333333333d0 * (b / t)))))
else if (t <= 1.4d-224) then
tmp = 1.0d0
else if (t <= 6.4d-181) then
tmp = x / (x + (y - (2.0d0 * (((y * b) * (a - ((0.6666666666666666d0 / t) + (-0.8333333333333334d0)))) - (0.4444444444444444d0 * (y / ((t * t) / (b * b))))))))
else if (t <= 1.15d-8) then
tmp = 1.0d0
else if (t <= 7d+142) then
tmp = x / (x + (y * exp(((b - c) * (-1.6666666666666667d0)))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= -6.2e-284) {
tmp = t_1;
} else if (t <= 3.9e-259) {
tmp = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t)))));
} else if (t <= 1.4e-224) {
tmp = 1.0;
} else if (t <= 6.4e-181) {
tmp = x / (x + (y - (2.0 * (((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))) - (0.4444444444444444 * (y / ((t * t) / (b * b))))))));
} else if (t <= 1.15e-8) {
tmp = 1.0;
} else if (t <= 7e+142) {
tmp = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) tmp = 0 if t <= -6.2e-284: tmp = t_1 elif t <= 3.9e-259: tmp = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t))))) elif t <= 1.4e-224: tmp = 1.0 elif t <= 6.4e-181: tmp = x / (x + (y - (2.0 * (((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))) - (0.4444444444444444 * (y / ((t * t) / (b * b)))))))) elif t <= 1.15e-8: tmp = 1.0 elif t <= 7e+142: tmp = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))) tmp = 0.0 if (t <= -6.2e-284) tmp = t_1; elseif (t <= 3.9e-259) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(1.3333333333333333 * Float64(b / t)))))); elseif (t <= 1.4e-224) tmp = 1.0; elseif (t <= 6.4e-181) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(Float64(Float64(y * b) * Float64(a - Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334))) - Float64(0.4444444444444444 * Float64(y / Float64(Float64(t * t) / Float64(b * b))))))))); elseif (t <= 1.15e-8) tmp = 1.0; elseif (t <= 7e+142) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (a * (c - b)))))); tmp = 0.0; if (t <= -6.2e-284) tmp = t_1; elseif (t <= 3.9e-259) tmp = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t))))); elseif (t <= 1.4e-224) tmp = 1.0; elseif (t <= 6.4e-181) tmp = x / (x + (y - (2.0 * (((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))) - (0.4444444444444444 * (y / ((t * t) / (b * b)))))))); elseif (t <= 1.15e-8) tmp = 1.0; elseif (t <= 7e+142) tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.2e-284], t$95$1, If[LessEqual[t, 3.9e-259], N[(x / N[(x + N[(y * N[(1.0 + N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.4e-224], 1.0, If[LessEqual[t, 6.4e-181], N[(x / N[(x + N[(y - N[(2.0 * N[(N[(N[(y * b), $MachinePrecision] * N[(a - N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(0.4444444444444444 * N[(y / N[(N[(t * t), $MachinePrecision] / N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.15e-8], 1.0, If[LessEqual[t, 7e+142], N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq -6.2 \cdot 10^{-284}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{-259}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + 1.3333333333333333 \cdot \frac{b}{t}\right)}\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{-224}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 6.4 \cdot 10^{-181}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(\left(y \cdot b\right) \cdot \left(a - \left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right)\right) - 0.4444444444444444 \cdot \frac{y}{\frac{t \cdot t}{b \cdot b}}\right)\right)}\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-8}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 7 \cdot 10^{+142}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -6.1999999999999996e-284 or 6.99999999999999995e142 < t Initial program 90.2%
Taylor expanded in a around inf 81.6%
if -6.1999999999999996e-284 < t < 3.90000000000000016e-259Initial program 80.0%
Taylor expanded in b around inf 70.9%
*-commutative70.9%
associate--r+70.9%
sub-neg70.9%
associate-*r/70.9%
metadata-eval70.9%
metadata-eval70.9%
associate-+r-70.9%
Simplified70.9%
Taylor expanded in t around 0 70.9%
associate-*r/70.9%
associate-*l/70.9%
metadata-eval70.9%
associate-*r/70.9%
*-commutative70.9%
associate-*r/70.9%
metadata-eval70.9%
Simplified70.9%
Taylor expanded in b around 0 90.7%
if 3.90000000000000016e-259 < t < 1.3999999999999999e-224 or 6.4000000000000003e-181 < t < 1.15e-8Initial program 91.7%
Taylor expanded in a around inf 48.4%
Taylor expanded in x around inf 63.7%
if 1.3999999999999999e-224 < t < 6.4000000000000003e-181Initial program 100.0%
Taylor expanded in b around inf 82.4%
*-commutative82.4%
associate--r+82.4%
sub-neg82.4%
associate-*r/82.4%
metadata-eval82.4%
metadata-eval82.4%
associate-+r-82.4%
Simplified82.4%
Taylor expanded in b around 0 82.1%
distribute-lft-out82.1%
associate--r+82.1%
sub-neg82.1%
associate-*r/82.1%
metadata-eval82.1%
metadata-eval82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in t around 0 82.1%
associate-/l*91.2%
unpow291.2%
unpow291.2%
Simplified91.2%
if 1.15e-8 < t < 6.99999999999999995e142Initial program 98.2%
Taylor expanded in t around inf 93.0%
mul-1-neg93.0%
distribute-rgt-neg-in93.0%
distribute-neg-in93.0%
metadata-eval93.0%
sub-neg93.0%
Simplified93.0%
Taylor expanded in a around 0 80.9%
Final simplification78.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+ x (* y (exp (* 2.0 (* (- c b) (- a -0.8333333333333334)))))))))
(if (<= t -2.8e-224)
t_1
(if (<= t 1.35e-103)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a))))))))
(if (<= t 5.8e-40)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 0.6)
(/ x (+ x (* y (exp (* 2.0 (/ (* c -0.6666666666666666) t))))))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((c - b) * (a - -0.8333333333333334))))));
double tmp;
if (t <= -2.8e-224) {
tmp = t_1;
} else if (t <= 1.35e-103) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) + (-0.8333333333333334 - a)))))));
} else if (t <= 5.8e-40) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 0.6) {
tmp = x / (x + (y * exp((2.0 * ((c * -0.6666666666666666) / t)))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((c - b) * (a - (-0.8333333333333334d0)))))))
if (t <= (-2.8d-224)) then
tmp = t_1
else if (t <= 1.35d-103) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) + ((-0.8333333333333334d0) - a)))))))
else if (t <= 5.8d-40) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 0.6d0) then
tmp = x / (x + (y * exp((2.0d0 * ((c * (-0.6666666666666666d0)) / t)))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((c - b) * (a - -0.8333333333333334))))));
double tmp;
if (t <= -2.8e-224) {
tmp = t_1;
} else if (t <= 1.35e-103) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) + (-0.8333333333333334 - a)))))));
} else if (t <= 5.8e-40) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 0.6) {
tmp = x / (x + (y * Math.exp((2.0 * ((c * -0.6666666666666666) / t)))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((c - b) * (a - -0.8333333333333334)))))) tmp = 0 if t <= -2.8e-224: tmp = t_1 elif t <= 1.35e-103: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))))))) elif t <= 5.8e-40: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 0.6: tmp = x / (x + (y * math.exp((2.0 * ((c * -0.6666666666666666) / t))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c - b) * Float64(a - -0.8333333333333334))))))) tmp = 0.0 if (t <= -2.8e-224) tmp = t_1; elseif (t <= 1.35e-103) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a)))))))); elseif (t <= 5.8e-40) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 0.6) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c * -0.6666666666666666) / t)))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((c - b) * (a - -0.8333333333333334)))))); tmp = 0.0; if (t <= -2.8e-224) tmp = t_1; elseif (t <= 1.35e-103) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))))))); elseif (t <= 5.8e-40) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 0.6) tmp = x / (x + (y * exp((2.0 * ((c * -0.6666666666666666) / t))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c - b), $MachinePrecision] * N[(a - -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.8e-224], t$95$1, If[LessEqual[t, 1.35e-103], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.8e-40], 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, 0.6], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c * -0.6666666666666666), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(\left(c - b\right) \cdot \left(a - -0.8333333333333334\right)\right)}}\\
\mathbf{if}\;t \leq -2.8 \cdot 10^{-224}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{-103}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right)\right)\right)}}\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{-40}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 0.6:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{c \cdot -0.6666666666666666}{t}}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -2.7999999999999998e-224 or 0.599999999999999978 < t Initial program 92.6%
Taylor expanded in t around inf 89.9%
mul-1-neg89.9%
distribute-rgt-neg-in89.9%
distribute-neg-in89.9%
metadata-eval89.9%
sub-neg89.9%
Simplified89.9%
if -2.7999999999999998e-224 < t < 1.35000000000000005e-103Initial program 89.3%
Taylor expanded in b around inf 74.1%
*-commutative74.1%
associate--r+74.1%
sub-neg74.1%
associate-*r/74.1%
metadata-eval74.1%
metadata-eval74.1%
associate-+r-74.1%
Simplified74.1%
if 1.35000000000000005e-103 < t < 5.7999999999999998e-40Initial program 95.0%
Taylor expanded in a around inf 71.1%
if 5.7999999999999998e-40 < t < 0.599999999999999978Initial program 100.0%
Taylor expanded in c around inf 100.0%
associate-*r/100.0%
metadata-eval100.0%
+-commutative100.0%
metadata-eval100.0%
associate-/r*100.0%
*-commutative100.0%
associate--l+100.0%
sub-neg100.0%
sub-neg100.0%
*-commutative100.0%
associate-/r*100.0%
metadata-eval100.0%
sub-neg100.0%
distribute-neg-frac100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in t around 0 86.6%
associate-*r/86.6%
Simplified86.6%
Final simplification84.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
c
(+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t)))))))))))
(if (<= c -5e+236)
t_1
(if (<= c -2.05e+36)
(/ x (+ x (* y (exp (* 2.0 (* (- c b) (- a -0.8333333333333334)))))))
(if (<= c 9200000.0)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a))))))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
double tmp;
if (c <= -5e+236) {
tmp = t_1;
} else if (c <= -2.05e+36) {
tmp = x / (x + (y * exp((2.0 * ((c - b) * (a - -0.8333333333333334))))));
} else if (c <= 9200000.0) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) + (-0.8333333333333334 - a)))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (c * (a + (0.8333333333333334d0 + ((-0.6666666666666666d0) / t))))))))
if (c <= (-5d+236)) then
tmp = t_1
else if (c <= (-2.05d+36)) then
tmp = x / (x + (y * exp((2.0d0 * ((c - b) * (a - (-0.8333333333333334d0)))))))
else if (c <= 9200000.0d0) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) + ((-0.8333333333333334d0) - a)))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
double tmp;
if (c <= -5e+236) {
tmp = t_1;
} else if (c <= -2.05e+36) {
tmp = x / (x + (y * Math.exp((2.0 * ((c - b) * (a - -0.8333333333333334))))));
} else if (c <= 9200000.0) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) + (-0.8333333333333334 - a)))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))) tmp = 0 if c <= -5e+236: tmp = t_1 elif c <= -2.05e+36: tmp = x / (x + (y * math.exp((2.0 * ((c - b) * (a - -0.8333333333333334)))))) elif c <= 9200000.0: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))))))))) tmp = 0.0 if (c <= -5e+236) tmp = t_1; elseif (c <= -2.05e+36) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c - b) * Float64(a - -0.8333333333333334))))))); elseif (c <= 9200000.0) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a)))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t)))))))); tmp = 0.0; if (c <= -5e+236) tmp = t_1; elseif (c <= -2.05e+36) tmp = x / (x + (y * exp((2.0 * ((c - b) * (a - -0.8333333333333334)))))); elseif (c <= 9200000.0) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -5e+236], t$95$1, If[LessEqual[c, -2.05e+36], 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], If[LessEqual[c, 9200000.0], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right)\right)}}\\
\mathbf{if}\;c \leq -5 \cdot 10^{+236}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -2.05 \cdot 10^{+36}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(c - b\right) \cdot \left(a - -0.8333333333333334\right)\right)}}\\
\mathbf{elif}\;c \leq 9200000:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -4.9999999999999997e236 or 9.2e6 < c Initial program 91.8%
Taylor expanded in c around inf 90.7%
associate-*r/90.7%
metadata-eval90.7%
+-commutative90.7%
metadata-eval90.7%
associate-/r*90.7%
*-commutative90.7%
associate--l+90.7%
sub-neg90.7%
sub-neg90.7%
*-commutative90.7%
associate-/r*90.7%
metadata-eval90.7%
sub-neg90.7%
distribute-neg-frac90.7%
metadata-eval90.7%
Simplified90.7%
if -4.9999999999999997e236 < c < -2.05000000000000006e36Initial program 85.2%
Taylor expanded in t around inf 87.6%
mul-1-neg87.6%
distribute-rgt-neg-in87.6%
distribute-neg-in87.6%
metadata-eval87.6%
sub-neg87.6%
Simplified87.6%
if -2.05000000000000006e36 < c < 9.2e6Initial program 94.9%
Taylor expanded in b around inf 80.4%
*-commutative80.4%
associate--r+80.4%
sub-neg80.4%
associate-*r/80.4%
metadata-eval80.4%
metadata-eval80.4%
associate-+r-80.4%
Simplified80.4%
Final simplification84.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= t -1e-222)
t_1
(if (<= t 8e-104)
(/ x (+ x (* y (exp (* 2.0 (* b (/ 0.6666666666666666 t)))))))
(if (or (<= t 0.00062) (not (<= t 2e+144)))
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 * (a * (c - b))))));
double tmp;
if (t <= -1e-222) {
tmp = t_1;
} else if (t <= 8e-104) {
tmp = x / (x + (y * exp((2.0 * (b * (0.6666666666666666 / t))))));
} else if ((t <= 0.00062) || !(t <= 2e+144)) {
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 * (a * (c - b))))))
if (t <= (-1d-222)) then
tmp = t_1
else if (t <= 8d-104) then
tmp = x / (x + (y * exp((2.0d0 * (b * (0.6666666666666666d0 / t))))))
else if ((t <= 0.00062d0) .or. (.not. (t <= 2d+144))) 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 * (a * (c - b))))));
double tmp;
if (t <= -1e-222) {
tmp = t_1;
} else if (t <= 8e-104) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (0.6666666666666666 / t))))));
} else if ((t <= 0.00062) || !(t <= 2e+144)) {
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 * (a * (c - b)))))) tmp = 0 if t <= -1e-222: tmp = t_1 elif t <= 8e-104: tmp = x / (x + (y * math.exp((2.0 * (b * (0.6666666666666666 / t)))))) elif (t <= 0.00062) or not (t <= 2e+144): 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(a * Float64(c - b))))))) tmp = 0.0 if (t <= -1e-222) tmp = t_1; elseif (t <= 8e-104) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(0.6666666666666666 / t))))))); elseif ((t <= 0.00062) || !(t <= 2e+144)) 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 * (a * (c - b)))))); tmp = 0.0; if (t <= -1e-222) tmp = t_1; elseif (t <= 8e-104) tmp = x / (x + (y * exp((2.0 * (b * (0.6666666666666666 / t)))))); elseif ((t <= 0.00062) || ~((t <= 2e+144))) 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[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1e-222], t$95$1, If[LessEqual[t, 8e-104], 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[Or[LessEqual[t, 0.00062], N[Not[LessEqual[t, 2e+144]], $MachinePrecision]], 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(a \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq -1 \cdot 10^{-222}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 8 \cdot 10^{-104}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \frac{0.6666666666666666}{t}\right)}}\\
\mathbf{elif}\;t \leq 0.00062 \lor \neg \left(t \leq 2 \cdot 10^{+144}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -1.00000000000000005e-222 or 7.99999999999999941e-104 < t < 6.2e-4 or 2.00000000000000005e144 < t Initial program 91.1%
Taylor expanded in a around inf 79.2%
if -1.00000000000000005e-222 < t < 7.99999999999999941e-104Initial program 89.3%
Taylor expanded in b around inf 74.1%
*-commutative74.1%
associate--r+74.1%
sub-neg74.1%
associate-*r/74.1%
metadata-eval74.1%
metadata-eval74.1%
associate-+r-74.1%
Simplified74.1%
Taylor expanded in t around 0 72.4%
associate-*r/72.4%
associate-*l/72.4%
metadata-eval72.4%
associate-*r/72.4%
*-commutative72.4%
associate-*r/72.4%
metadata-eval72.4%
Simplified72.4%
if 6.2e-4 < t < 2.00000000000000005e144Initial program 98.2%
Taylor expanded in t around inf 93.0%
mul-1-neg93.0%
distribute-rgt-neg-in93.0%
distribute-neg-in93.0%
metadata-eval93.0%
sub-neg93.0%
Simplified93.0%
Taylor expanded in a around 0 80.9%
Final simplification78.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+ x (* y (exp (* 2.0 (* (- c b) (- a -0.8333333333333334)))))))))
(if (<= t -3.8e-226)
t_1
(if (<= t 1.55e-103)
(/ x (+ x (* y (exp (* 2.0 (* b (/ 0.6666666666666666 t)))))))
(if (<= t 1e-28) (/ x (+ x (* y (exp (* 2.0 (* a (- c b))))))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((c - b) * (a - -0.8333333333333334))))));
double tmp;
if (t <= -3.8e-226) {
tmp = t_1;
} else if (t <= 1.55e-103) {
tmp = x / (x + (y * exp((2.0 * (b * (0.6666666666666666 / t))))));
} else if (t <= 1e-28) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((c - b) * (a - (-0.8333333333333334d0)))))))
if (t <= (-3.8d-226)) then
tmp = t_1
else if (t <= 1.55d-103) then
tmp = x / (x + (y * exp((2.0d0 * (b * (0.6666666666666666d0 / t))))))
else if (t <= 1d-28) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((c - b) * (a - -0.8333333333333334))))));
double tmp;
if (t <= -3.8e-226) {
tmp = t_1;
} else if (t <= 1.55e-103) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (0.6666666666666666 / t))))));
} else if (t <= 1e-28) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((c - b) * (a - -0.8333333333333334)))))) tmp = 0 if t <= -3.8e-226: tmp = t_1 elif t <= 1.55e-103: tmp = x / (x + (y * math.exp((2.0 * (b * (0.6666666666666666 / t)))))) elif t <= 1e-28: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c - b) * Float64(a - -0.8333333333333334))))))) tmp = 0.0 if (t <= -3.8e-226) tmp = t_1; elseif (t <= 1.55e-103) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(0.6666666666666666 / t))))))); elseif (t <= 1e-28) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((c - b) * (a - -0.8333333333333334)))))); tmp = 0.0; if (t <= -3.8e-226) tmp = t_1; elseif (t <= 1.55e-103) tmp = x / (x + (y * exp((2.0 * (b * (0.6666666666666666 / t)))))); elseif (t <= 1e-28) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c - b), $MachinePrecision] * N[(a - -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.8e-226], t$95$1, If[LessEqual[t, 1.55e-103], 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, 1e-28], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(\left(c - b\right) \cdot \left(a - -0.8333333333333334\right)\right)}}\\
\mathbf{if}\;t \leq -3.8 \cdot 10^{-226}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.55 \cdot 10^{-103}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \frac{0.6666666666666666}{t}\right)}}\\
\mathbf{elif}\;t \leq 10^{-28}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -3.79999999999999981e-226 or 9.99999999999999971e-29 < t Initial program 92.8%
Taylor expanded in t around inf 88.6%
mul-1-neg88.6%
distribute-rgt-neg-in88.6%
distribute-neg-in88.6%
metadata-eval88.6%
sub-neg88.6%
Simplified88.6%
if -3.79999999999999981e-226 < t < 1.5500000000000001e-103Initial program 89.3%
Taylor expanded in b around inf 74.1%
*-commutative74.1%
associate--r+74.1%
sub-neg74.1%
associate-*r/74.1%
metadata-eval74.1%
metadata-eval74.1%
associate-+r-74.1%
Simplified74.1%
Taylor expanded in t around 0 72.4%
associate-*r/72.4%
associate-*l/72.4%
metadata-eval72.4%
associate-*r/72.4%
*-commutative72.4%
associate-*r/72.4%
metadata-eval72.4%
Simplified72.4%
if 1.5500000000000001e-103 < t < 9.99999999999999971e-29Initial program 95.5%
Taylor expanded in a around inf 69.3%
Final simplification83.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (- b c) -1.6666666666666667)))))))
(if (<= t 5.8e-300)
t_1
(if (<= t 7e-223)
1.0
(if (<= t 7.8e-181)
(/
x
(+
x
(-
y
(*
2.0
(-
(*
(* y b)
(- a (+ (/ 0.6666666666666666 t) -0.8333333333333334)))
(* 0.4444444444444444 (/ y (/ (* t t) (* b b)))))))))
(if (<= t 0.00044) 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.8e-300) {
tmp = t_1;
} else if (t <= 7e-223) {
tmp = 1.0;
} else if (t <= 7.8e-181) {
tmp = x / (x + (y - (2.0 * (((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))) - (0.4444444444444444 * (y / ((t * t) / (b * b))))))));
} else if (t <= 0.00044) {
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.8d-300) then
tmp = t_1
else if (t <= 7d-223) then
tmp = 1.0d0
else if (t <= 7.8d-181) then
tmp = x / (x + (y - (2.0d0 * (((y * b) * (a - ((0.6666666666666666d0 / t) + (-0.8333333333333334d0)))) - (0.4444444444444444d0 * (y / ((t * t) / (b * b))))))))
else if (t <= 0.00044d0) 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.8e-300) {
tmp = t_1;
} else if (t <= 7e-223) {
tmp = 1.0;
} else if (t <= 7.8e-181) {
tmp = x / (x + (y - (2.0 * (((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))) - (0.4444444444444444 * (y / ((t * t) / (b * b))))))));
} else if (t <= 0.00044) {
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.8e-300: tmp = t_1 elif t <= 7e-223: tmp = 1.0 elif t <= 7.8e-181: tmp = x / (x + (y - (2.0 * (((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))) - (0.4444444444444444 * (y / ((t * t) / (b * b)))))))) elif t <= 0.00044: 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.8e-300) tmp = t_1; elseif (t <= 7e-223) tmp = 1.0; elseif (t <= 7.8e-181) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(Float64(Float64(y * b) * Float64(a - Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334))) - Float64(0.4444444444444444 * Float64(y / Float64(Float64(t * t) / Float64(b * b))))))))); elseif (t <= 0.00044) 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.8e-300) tmp = t_1; elseif (t <= 7e-223) tmp = 1.0; elseif (t <= 7.8e-181) tmp = x / (x + (y - (2.0 * (((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))) - (0.4444444444444444 * (y / ((t * t) / (b * b)))))))); elseif (t <= 0.00044) 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.8e-300], t$95$1, If[LessEqual[t, 7e-223], 1.0, If[LessEqual[t, 7.8e-181], N[(x / N[(x + N[(y - N[(2.0 * N[(N[(N[(y * b), $MachinePrecision] * N[(a - N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(0.4444444444444444 * N[(y / N[(N[(t * t), $MachinePrecision] / N[(b * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.00044], 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.8 \cdot 10^{-300}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-223}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 7.8 \cdot 10^{-181}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(\left(y \cdot b\right) \cdot \left(a - \left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right)\right) - 0.4444444444444444 \cdot \frac{y}{\frac{t \cdot t}{b \cdot b}}\right)\right)}\\
\mathbf{elif}\;t \leq 0.00044:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < 5.79999999999999985e-300 or 4.40000000000000016e-4 < t Initial program 92.2%
Taylor expanded in t around inf 87.9%
mul-1-neg87.9%
distribute-rgt-neg-in87.9%
distribute-neg-in87.9%
metadata-eval87.9%
sub-neg87.9%
Simplified87.9%
Taylor expanded in a around 0 75.8%
if 5.79999999999999985e-300 < t < 7.00000000000000018e-223 or 7.800000000000001e-181 < t < 4.40000000000000016e-4Initial program 90.6%
Taylor expanded in a around inf 47.8%
Taylor expanded in x around inf 61.7%
if 7.00000000000000018e-223 < t < 7.800000000000001e-181Initial program 100.0%
Taylor expanded in b around inf 82.4%
*-commutative82.4%
associate--r+82.4%
sub-neg82.4%
associate-*r/82.4%
metadata-eval82.4%
metadata-eval82.4%
associate-+r-82.4%
Simplified82.4%
Taylor expanded in b around 0 82.1%
distribute-lft-out82.1%
associate--r+82.1%
sub-neg82.1%
associate-*r/82.1%
metadata-eval82.1%
metadata-eval82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in t around 0 82.1%
associate-/l*91.2%
unpow291.2%
unpow291.2%
Simplified91.2%
Final simplification73.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -0.0001)
(/ x (* y (exp (* (- b c) -1.6666666666666667))))
(if (<= (- b c) 2e-153)
(/
x
(-
x
(-
(*
2.0
(*
c
(* y (- (* 0.6666666666666666 (/ 1.0 t)) (+ a 0.8333333333333334)))))
y)))
(if (<= (- b c) 1e+222)
1.0
(if (<= (- b c) 5e+237)
(/
x
(+
x
(-
y
(*
2.0
(*
(* y b)
(- a (+ (/ 0.6666666666666666 t) -0.8333333333333334)))))))
1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -0.0001) {
tmp = x / (y * exp(((b - c) * -1.6666666666666667)));
} else if ((b - c) <= 2e-153) {
tmp = x / (x - ((2.0 * (c * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))))) - y));
} else if ((b - c) <= 1e+222) {
tmp = 1.0;
} else if ((b - c) <= 5e+237) {
tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= (-0.0001d0)) then
tmp = x / (y * exp(((b - c) * (-1.6666666666666667d0))))
else if ((b - c) <= 2d-153) then
tmp = x / (x - ((2.0d0 * (c * (y * ((0.6666666666666666d0 * (1.0d0 / t)) - (a + 0.8333333333333334d0))))) - y))
else if ((b - c) <= 1d+222) then
tmp = 1.0d0
else if ((b - c) <= 5d+237) then
tmp = x / (x + (y - (2.0d0 * ((y * b) * (a - ((0.6666666666666666d0 / t) + (-0.8333333333333334d0)))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -0.0001) {
tmp = x / (y * Math.exp(((b - c) * -1.6666666666666667)));
} else if ((b - c) <= 2e-153) {
tmp = x / (x - ((2.0 * (c * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))))) - y));
} else if ((b - c) <= 1e+222) {
tmp = 1.0;
} else if ((b - c) <= 5e+237) {
tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -0.0001: tmp = x / (y * math.exp(((b - c) * -1.6666666666666667))) elif (b - c) <= 2e-153: tmp = x / (x - ((2.0 * (c * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))))) - y)) elif (b - c) <= 1e+222: tmp = 1.0 elif (b - c) <= 5e+237: tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -0.0001) tmp = Float64(x / Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667)))); elseif (Float64(b - c) <= 2e-153) tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(c * Float64(y * Float64(Float64(0.6666666666666666 * Float64(1.0 / t)) - Float64(a + 0.8333333333333334))))) - y))); elseif (Float64(b - c) <= 1e+222) tmp = 1.0; elseif (Float64(b - c) <= 5e+237) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(Float64(y * b) * Float64(a - Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= -0.0001) tmp = x / (y * exp(((b - c) * -1.6666666666666667))); elseif ((b - c) <= 2e-153) tmp = x / (x - ((2.0 * (c * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))))) - y)); elseif ((b - c) <= 1e+222) tmp = 1.0; elseif ((b - c) <= 5e+237) tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -0.0001], N[(x / N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 2e-153], N[(x / N[(x - N[(N[(2.0 * N[(c * N[(y * N[(N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 1e+222], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 5e+237], N[(x / N[(x + N[(y - N[(2.0 * N[(N[(y * b), $MachinePrecision] * N[(a - N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -0.0001:\\
\;\;\;\;\frac{x}{y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b - c \leq 2 \cdot 10^{-153}:\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \left(c \cdot \left(y \cdot \left(0.6666666666666666 \cdot \frac{1}{t} - \left(a + 0.8333333333333334\right)\right)\right)\right) - y\right)}\\
\mathbf{elif}\;b - c \leq 10^{+222}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 5 \cdot 10^{+237}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(\left(y \cdot b\right) \cdot \left(a - \left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -1.00000000000000005e-4Initial program 91.7%
Taylor expanded in t around inf 75.0%
mul-1-neg75.0%
distribute-rgt-neg-in75.0%
distribute-neg-in75.0%
metadata-eval75.0%
sub-neg75.0%
Simplified75.0%
Taylor expanded in a around 0 69.0%
Taylor expanded in x around 0 69.0%
if -1.00000000000000005e-4 < (-.f64 b c) < 2.00000000000000008e-153Initial program 97.7%
Taylor expanded in c around inf 68.0%
associate-*r/68.0%
metadata-eval68.0%
+-commutative68.0%
metadata-eval68.0%
associate-/r*68.0%
*-commutative68.0%
associate--l+68.0%
sub-neg68.0%
sub-neg68.0%
*-commutative68.0%
associate-/r*68.0%
metadata-eval68.0%
sub-neg68.0%
distribute-neg-frac68.0%
metadata-eval68.0%
Simplified68.0%
Taylor expanded in c around 0 67.9%
if 2.00000000000000008e-153 < (-.f64 b c) < 1e222 or 5.0000000000000002e237 < (-.f64 b c) Initial program 91.8%
Taylor expanded in a around inf 69.8%
Taylor expanded in x around inf 72.4%
if 1e222 < (-.f64 b c) < 5.0000000000000002e237Initial program 75.4%
Taylor expanded in b around inf 63.7%
*-commutative63.7%
associate--r+63.7%
sub-neg63.7%
associate-*r/63.7%
metadata-eval63.7%
metadata-eval63.7%
associate-+r-63.7%
Simplified63.7%
Taylor expanded in b around 0 100.0%
associate--r+100.0%
sub-neg100.0%
associate-*r/100.0%
metadata-eval100.0%
metadata-eval100.0%
*-commutative100.0%
Simplified100.0%
Final simplification71.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y -1.05e+52)
(/
x
(+
x
(-
y
(*
2.0
(* y (* b (- a (+ (/ 0.6666666666666666 t) -0.8333333333333334))))))))
(if (<= y 2e+213)
1.0
(/ x (- x (- (* 2.0 (* (* y b) (- a -0.8333333333333334))) y))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -1.05e+52) {
tmp = x / (x + (y - (2.0 * (y * (b * (a - ((0.6666666666666666 / t) + -0.8333333333333334)))))));
} else if (y <= 2e+213) {
tmp = 1.0;
} else {
tmp = x / (x - ((2.0 * ((y * b) * (a - -0.8333333333333334))) - y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= (-1.05d+52)) then
tmp = x / (x + (y - (2.0d0 * (y * (b * (a - ((0.6666666666666666d0 / t) + (-0.8333333333333334d0))))))))
else if (y <= 2d+213) then
tmp = 1.0d0
else
tmp = x / (x - ((2.0d0 * ((y * b) * (a - (-0.8333333333333334d0)))) - y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -1.05e+52) {
tmp = x / (x + (y - (2.0 * (y * (b * (a - ((0.6666666666666666 / t) + -0.8333333333333334)))))));
} else if (y <= 2e+213) {
tmp = 1.0;
} else {
tmp = x / (x - ((2.0 * ((y * b) * (a - -0.8333333333333334))) - y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -1.05e+52: tmp = x / (x + (y - (2.0 * (y * (b * (a - ((0.6666666666666666 / t) + -0.8333333333333334))))))) elif y <= 2e+213: tmp = 1.0 else: tmp = x / (x - ((2.0 * ((y * b) * (a - -0.8333333333333334))) - y)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -1.05e+52) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(y * Float64(b * Float64(a - Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334)))))))); elseif (y <= 2e+213) tmp = 1.0; else tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(Float64(y * b) * Float64(a - -0.8333333333333334))) - y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= -1.05e+52) tmp = x / (x + (y - (2.0 * (y * (b * (a - ((0.6666666666666666 / t) + -0.8333333333333334))))))); elseif (y <= 2e+213) tmp = 1.0; else tmp = x / (x - ((2.0 * ((y * b) * (a - -0.8333333333333334))) - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -1.05e+52], N[(x / N[(x + N[(y - N[(2.0 * N[(y * N[(b * N[(a - N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e+213], 1.0, N[(x / N[(x - N[(N[(2.0 * N[(N[(y * b), $MachinePrecision] * N[(a - -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.05 \cdot 10^{+52}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(y \cdot \left(b \cdot \left(a - \left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right)\right)\right)\right)\right)}\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+213}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \left(\left(y \cdot b\right) \cdot \left(a - -0.8333333333333334\right)\right) - y\right)}\\
\end{array}
\end{array}
if y < -1.05e52Initial program 94.7%
Taylor expanded in b around inf 66.7%
*-commutative66.7%
associate--r+66.7%
sub-neg66.7%
associate-*r/66.7%
metadata-eval66.7%
metadata-eval66.7%
associate-+r-66.7%
Simplified66.7%
Taylor expanded in b around 0 51.5%
distribute-lft-out51.5%
associate--r+51.5%
sub-neg51.5%
associate-*r/51.5%
metadata-eval51.5%
metadata-eval51.5%
*-commutative51.5%
Simplified51.5%
Taylor expanded in b around 0 60.1%
*-commutative60.1%
associate--r+60.1%
sub-neg60.1%
associate-*r/60.1%
metadata-eval60.1%
metadata-eval60.1%
Simplified60.1%
if -1.05e52 < y < 1.99999999999999997e213Initial program 90.8%
Taylor expanded in a around inf 67.1%
Taylor expanded in x around inf 56.5%
if 1.99999999999999997e213 < y Initial program 100.0%
Taylor expanded in b around inf 87.1%
*-commutative87.1%
associate--r+87.1%
sub-neg87.1%
associate-*r/87.1%
metadata-eval87.1%
metadata-eval87.1%
associate-+r-87.1%
Simplified87.1%
Taylor expanded in b around 0 67.7%
associate--r+67.7%
sub-neg67.7%
associate-*r/67.7%
metadata-eval67.7%
metadata-eval67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in t around inf 67.7%
distribute-lft-in67.7%
metadata-eval67.7%
neg-mul-167.7%
sub-neg67.7%
Simplified67.7%
Final simplification57.9%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= y -1.6e+52) (not (<= y 5.5e+213))) (/ x (- x (- (* 2.0 (* (* y b) (- a -0.8333333333333334))) y))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((y <= -1.6e+52) || !(y <= 5.5e+213)) {
tmp = x / (x - ((2.0 * ((y * b) * (a - -0.8333333333333334))) - 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 ((y <= (-1.6d+52)) .or. (.not. (y <= 5.5d+213))) then
tmp = x / (x - ((2.0d0 * ((y * b) * (a - (-0.8333333333333334d0)))) - 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 ((y <= -1.6e+52) || !(y <= 5.5e+213)) {
tmp = x / (x - ((2.0 * ((y * b) * (a - -0.8333333333333334))) - y));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (y <= -1.6e+52) or not (y <= 5.5e+213): tmp = x / (x - ((2.0 * ((y * b) * (a - -0.8333333333333334))) - y)) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((y <= -1.6e+52) || !(y <= 5.5e+213)) tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(Float64(y * b) * Float64(a - -0.8333333333333334))) - y))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((y <= -1.6e+52) || ~((y <= 5.5e+213))) tmp = x / (x - ((2.0 * ((y * b) * (a - -0.8333333333333334))) - y)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[y, -1.6e+52], N[Not[LessEqual[y, 5.5e+213]], $MachinePrecision]], N[(x / N[(x - N[(N[(2.0 * N[(N[(y * b), $MachinePrecision] * N[(a - -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.6 \cdot 10^{+52} \lor \neg \left(y \leq 5.5 \cdot 10^{+213}\right):\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \left(\left(y \cdot b\right) \cdot \left(a - -0.8333333333333334\right)\right) - y\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -1.6e52 or 5.50000000000000059e213 < y Initial program 95.8%
Taylor expanded in b around inf 71.0%
*-commutative71.0%
associate--r+71.0%
sub-neg71.0%
associate-*r/71.0%
metadata-eval71.0%
metadata-eval71.0%
associate-+r-71.0%
Simplified71.0%
Taylor expanded in b around 0 61.7%
associate--r+61.7%
sub-neg61.7%
associate-*r/61.7%
metadata-eval61.7%
metadata-eval61.7%
*-commutative61.7%
Simplified61.7%
Taylor expanded in t around inf 60.3%
distribute-lft-in60.3%
metadata-eval60.3%
neg-mul-160.3%
sub-neg60.3%
Simplified60.3%
if -1.6e52 < y < 5.50000000000000059e213Initial program 90.8%
Taylor expanded in a around inf 67.1%
Taylor expanded in x around inf 56.5%
Final simplification57.6%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= y -6.6e+86) (not (<= y 3.9e+216))) (/ x (+ x (* y (+ 1.0 (* 1.3333333333333333 (/ b t)))))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((y <= -6.6e+86) || !(y <= 3.9e+216)) {
tmp = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((y <= (-6.6d+86)) .or. (.not. (y <= 3.9d+216))) then
tmp = x / (x + (y * (1.0d0 + (1.3333333333333333d0 * (b / t)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((y <= -6.6e+86) || !(y <= 3.9e+216)) {
tmp = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (y <= -6.6e+86) or not (y <= 3.9e+216): tmp = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((y <= -6.6e+86) || !(y <= 3.9e+216)) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(1.3333333333333333 * Float64(b / t)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((y <= -6.6e+86) || ~((y <= 3.9e+216))) tmp = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[y, -6.6e+86], N[Not[LessEqual[y, 3.9e+216]], $MachinePrecision]], N[(x / N[(x + N[(y * N[(1.0 + N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.6 \cdot 10^{+86} \lor \neg \left(y \leq 3.9 \cdot 10^{+216}\right):\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + 1.3333333333333333 \cdot \frac{b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -6.5999999999999998e86 or 3.89999999999999981e216 < y Initial program 96.8%
Taylor expanded in b around inf 73.1%
*-commutative73.1%
associate--r+73.1%
sub-neg73.1%
associate-*r/73.1%
metadata-eval73.1%
metadata-eval73.1%
associate-+r-73.1%
Simplified73.1%
Taylor expanded in t around 0 54.2%
associate-*r/54.2%
associate-*l/54.2%
metadata-eval54.2%
associate-*r/54.2%
*-commutative54.2%
associate-*r/54.2%
metadata-eval54.2%
Simplified54.2%
Taylor expanded in b around 0 55.8%
if -6.5999999999999998e86 < y < 3.89999999999999981e216Initial program 90.8%
Taylor expanded in a around inf 67.2%
Taylor expanded in x around inf 55.5%
Final simplification55.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y -1.16e+52)
(/ x (+ x (- y (* 2.0 (* b (* y a))))))
(if (<= y 1.45e+216)
1.0
(/ x (+ x (* y (+ 1.0 (* 1.3333333333333333 (/ b t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -1.16e+52) {
tmp = x / (x + (y - (2.0 * (b * (y * a)))));
} else if (y <= 1.45e+216) {
tmp = 1.0;
} else {
tmp = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= (-1.16d+52)) then
tmp = x / (x + (y - (2.0d0 * (b * (y * a)))))
else if (y <= 1.45d+216) then
tmp = 1.0d0
else
tmp = x / (x + (y * (1.0d0 + (1.3333333333333333d0 * (b / t)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -1.16e+52) {
tmp = x / (x + (y - (2.0 * (b * (y * a)))));
} else if (y <= 1.45e+216) {
tmp = 1.0;
} else {
tmp = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -1.16e+52: tmp = x / (x + (y - (2.0 * (b * (y * a))))) elif y <= 1.45e+216: tmp = 1.0 else: tmp = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -1.16e+52) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(b * Float64(y * a)))))); elseif (y <= 1.45e+216) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(1.3333333333333333 * Float64(b / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= -1.16e+52) tmp = x / (x + (y - (2.0 * (b * (y * a))))); elseif (y <= 1.45e+216) tmp = 1.0; else tmp = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -1.16e+52], N[(x / N[(x + N[(y - N[(2.0 * N[(b * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.45e+216], 1.0, N[(x / N[(x + N[(y * N[(1.0 + N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.16 \cdot 10^{+52}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(b \cdot \left(y \cdot a\right)\right)\right)}\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{+216}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + 1.3333333333333333 \cdot \frac{b}{t}\right)}\\
\end{array}
\end{array}
if y < -1.1599999999999999e52Initial program 94.7%
Taylor expanded in b around inf 66.7%
*-commutative66.7%
associate--r+66.7%
sub-neg66.7%
associate-*r/66.7%
metadata-eval66.7%
metadata-eval66.7%
associate-+r-66.7%
Simplified66.7%
Taylor expanded in b around 0 60.1%
associate--r+60.1%
sub-neg60.1%
associate-*r/60.1%
metadata-eval60.1%
metadata-eval60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in a around inf 58.4%
mul-1-neg58.4%
associate-*r*53.2%
distribute-rgt-neg-in53.2%
*-commutative53.2%
Simplified53.2%
if -1.1599999999999999e52 < y < 1.45e216Initial program 90.8%
Taylor expanded in a around inf 67.1%
Taylor expanded in x around inf 56.5%
if 1.45e216 < y Initial program 100.0%
Taylor expanded in b around inf 87.1%
*-commutative87.1%
associate--r+87.1%
sub-neg87.1%
associate-*r/87.1%
metadata-eval87.1%
metadata-eval87.1%
associate-+r-87.1%
Simplified87.1%
Taylor expanded in t around 0 74.1%
associate-*r/74.1%
associate-*l/74.1%
metadata-eval74.1%
associate-*r/74.1%
*-commutative74.1%
associate-*r/74.1%
metadata-eval74.1%
Simplified74.1%
Taylor expanded in b around 0 67.7%
Final simplification56.4%
(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 92.2%
Taylor expanded in a around inf 66.7%
Taylor expanded in x around inf 51.7%
Final simplification51.7%
(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 2023229
(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)))))))))))