
(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 27 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (sqrt (+ a t))))
(if (<=
(+
(/ (* t_1 z) t)
(* (- c b) (- (+ a 0.8333333333333334) (/ 2.0 (* t 3.0)))))
INFINITY)
(/
x
(fma
y
(pow
(exp 2.0)
(+
(* t_1 (/ z t))
(* (- c b) (+ a (- 0.8333333333333334 (/ 0.6666666666666666 t))))))
x))
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (- (* z (sqrt a)) (* -0.6666666666666666 (- b c))) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = sqrt((a + t));
double tmp;
if ((((t_1 * z) / t) + ((c - b) * ((a + 0.8333333333333334) - (2.0 / (t * 3.0))))) <= ((double) INFINITY)) {
tmp = x / fma(y, pow(exp(2.0), ((t_1 * (z / t)) + ((c - b) * (a + (0.8333333333333334 - (0.6666666666666666 / t)))))), x);
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = sqrt(Float64(a + t)) tmp = 0.0 if (Float64(Float64(Float64(t_1 * z) / t) + Float64(Float64(c - b) * Float64(Float64(a + 0.8333333333333334) - Float64(2.0 / Float64(t * 3.0))))) <= Inf) tmp = Float64(x / fma(y, (exp(2.0) ^ Float64(Float64(t_1 * Float64(z / t)) + Float64(Float64(c - b) * Float64(a + Float64(0.8333333333333334 - Float64(0.6666666666666666 / t)))))), x)); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) - Float64(-0.6666666666666666 * Float64(b - c))) / t)))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(N[(N[(t$95$1 * z), $MachinePrecision] / t), $MachinePrecision] + N[(N[(c - b), $MachinePrecision] * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(t$95$1 * N[(z / t), $MachinePrecision]), $MachinePrecision] + N[(N[(c - b), $MachinePrecision] * N[(a + N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] - N[(-0.6666666666666666 * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt{a + t}\\
\mathbf{if}\;\frac{t_1 \cdot z}{t} + \left(c - b\right) \cdot \left(\left(a + 0.8333333333333334\right) - \frac{2}{t \cdot 3}\right) \leq \infty:\\
\;\;\;\;\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(t_1 \cdot \frac{z}{t} + \left(c - b\right) \cdot \left(a + \left(0.8333333333333334 - \frac{0.6666666666666666}{t}\right)\right)\right)}, x\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} - -0.6666666666666666 \cdot \left(b - c\right)}{t}}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 97.6%
+-commutative97.6%
fma-def97.6%
Simplified99.6%
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 t around 0 75.6%
Final simplification98.1%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
(+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t)))
(- c b)
(* (sqrt (+ a t)) (/ z t))))
x)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / fma(y, pow(exp(2.0), fma((a + (0.8333333333333334 + (-0.6666666666666666 / t))), (c - b), (sqrt((a + t)) * (z / t)))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))), Float64(c - b), Float64(sqrt(Float64(a + t)) * Float64(z / t)))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(a + N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision] + N[(N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right), c - b, \sqrt{a + t} \cdot \frac{z}{t}\right)\right)}, x\right)}
\end{array}
Initial program 91.5%
Simplified97.0%
Final simplification97.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ 2.0 (* t 3.0))) (t_2 (sqrt (+ a t))))
(if (<=
(+ (/ (* t_2 z) t) (* (- c b) (- (+ a 0.8333333333333334) t_1)))
INFINITY)
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(+ (/ z (/ t t_2)) (* (- c b) (+ a (- 0.8333333333333334 t_1))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (- (* z (sqrt a)) (* -0.6666666666666666 (- b c))) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 2.0 / (t * 3.0);
double t_2 = sqrt((a + t));
double tmp;
if ((((t_2 * z) / t) + ((c - b) * ((a + 0.8333333333333334) - t_1))) <= ((double) INFINITY)) {
tmp = x / (x + (y * pow(exp(2.0), ((z / (t / t_2)) + ((c - b) * (a + (0.8333333333333334 - t_1)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 2.0 / (t * 3.0);
double t_2 = Math.sqrt((a + t));
double tmp;
if ((((t_2 * z) / t) + ((c - b) * ((a + 0.8333333333333334) - t_1))) <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), ((z / (t / t_2)) + ((c - b) * (a + (0.8333333333333334 - t_1)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = 2.0 / (t * 3.0) t_2 = math.sqrt((a + t)) tmp = 0 if (((t_2 * z) / t) + ((c - b) * ((a + 0.8333333333333334) - t_1))) <= math.inf: tmp = x / (x + (y * math.pow(math.exp(2.0), ((z / (t / t_2)) + ((c - b) * (a + (0.8333333333333334 - t_1))))))) else: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(2.0 / Float64(t * 3.0)) t_2 = sqrt(Float64(a + t)) tmp = 0.0 if (Float64(Float64(Float64(t_2 * z) / t) + Float64(Float64(c - b) * Float64(Float64(a + 0.8333333333333334) - t_1))) <= Inf) tmp = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(Float64(z / Float64(t / t_2)) + Float64(Float64(c - b) * Float64(a + Float64(0.8333333333333334 - t_1)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) - Float64(-0.6666666666666666 * Float64(b - c))) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = 2.0 / (t * 3.0); t_2 = sqrt((a + t)); tmp = 0.0; if ((((t_2 * z) / t) + ((c - b) * ((a + 0.8333333333333334) - t_1))) <= Inf) tmp = x / (x + (y * (exp(2.0) ^ ((z / (t / t_2)) + ((c - b) * (a + (0.8333333333333334 - t_1))))))); else tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(N[(N[(t$95$2 * z), $MachinePrecision] / t), $MachinePrecision] + N[(N[(c - b), $MachinePrecision] * N[(N[(a + 0.8333333333333334), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision]), $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] + N[(N[(c - b), $MachinePrecision] * N[(a + N[(0.8333333333333334 - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] - N[(-0.6666666666666666 * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{2}{t \cdot 3}\\
t_2 := \sqrt{a + t}\\
\mathbf{if}\;\frac{t_2 \cdot z}{t} + \left(c - b\right) \cdot \left(\left(a + 0.8333333333333334\right) - t_1\right) \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(\frac{z}{\frac{t}{t_2}} + \left(c - b\right) \cdot \left(a + \left(0.8333333333333334 - t_1\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} - -0.6666666666666666 \cdot \left(b - c\right)}{t}}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 97.6%
exp-prod97.6%
associate-/l*98.7%
associate--l+98.7%
metadata-eval98.7%
Simplified98.7%
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 t around 0 75.6%
Final simplification97.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* (sqrt (+ a t)) z) t)
(* (- c b) (- (+ a 0.8333333333333334) (/ 2.0 (* t 3.0)))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (- (* z (sqrt a)) (* -0.6666666666666666 (- b c))) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((sqrt((a + t)) * z) / t) + ((c - b) * ((a + 0.8333333333333334) - (2.0 / (t * 3.0))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((Math.sqrt((a + t)) * z) / t) + ((c - b) * ((a + 0.8333333333333334) - (2.0 / (t * 3.0))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((math.sqrt((a + t)) * z) / t) + ((c - b) * ((a + 0.8333333333333334) - (2.0 / (t * 3.0)))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(sqrt(Float64(a + t)) * z) / t) + Float64(Float64(c - b) * Float64(Float64(a + 0.8333333333333334) - Float64(2.0 / Float64(t * 3.0))))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) - Float64(-0.6666666666666666 * Float64(b - c))) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((sqrt((a + t)) * z) / t) + ((c - b) * ((a + 0.8333333333333334) - (2.0 / (t * 3.0)))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision] + N[(N[(c - b), $MachinePrecision] * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] - N[(-0.6666666666666666 * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\sqrt{a + t} \cdot z}{t} + \left(c - b\right) \cdot \left(\left(a + 0.8333333333333334\right) - \frac{2}{t \cdot 3}\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} - -0.6666666666666666 \cdot \left(b - c\right)}{t}}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 97.6%
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 t around 0 75.6%
Final simplification96.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 (- b c))) t))))))))
(if (<= t 2e-149)
t_1
(if (<= t 1.8e-80)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(if (<= t 2.5e-39)
t_1
(if (<= t 6.2e-7)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
(+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t)))
c))))))
(if (<= t 1.3)
(/
x
(+
x
(*
y
(+
(*
2.0
(*
b
(-
(log1p (expm1 (/ 0.6666666666666666 t)))
(+ a 0.8333333333333334))))
1.0))))
(/
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 * (b - c))) / t)))));
double tmp;
if (t <= 2e-149) {
tmp = t_1;
} else if (t <= 1.8e-80) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if (t <= 2.5e-39) {
tmp = t_1;
} else if (t <= 6.2e-7) {
tmp = x / (x + (y * exp((2.0 * ((a + (0.8333333333333334 + (-0.6666666666666666 / t))) * c)))));
} else if (t <= 1.3) {
tmp = x / (x + (y * ((2.0 * (b * (log1p(expm1((0.6666666666666666 / t))) - (a + 0.8333333333333334)))) + 1.0)));
} else {
tmp = x / (x + (y * exp((2.0 * ((c - b) * (a - -0.8333333333333334))))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
double tmp;
if (t <= 2e-149) {
tmp = t_1;
} else if (t <= 1.8e-80) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if (t <= 2.5e-39) {
tmp = t_1;
} else if (t <= 6.2e-7) {
tmp = x / (x + (y * Math.exp((2.0 * ((a + (0.8333333333333334 + (-0.6666666666666666 / t))) * c)))));
} else if (t <= 1.3) {
tmp = x / (x + (y * ((2.0 * (b * (Math.log1p(Math.expm1((0.6666666666666666 / t))) - (a + 0.8333333333333334)))) + 1.0)));
} 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 * (b - c))) / t))))) tmp = 0 if t <= 2e-149: tmp = t_1 elif t <= 1.8e-80: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) elif t <= 2.5e-39: tmp = t_1 elif t <= 6.2e-7: tmp = x / (x + (y * math.exp((2.0 * ((a + (0.8333333333333334 + (-0.6666666666666666 / t))) * c))))) elif t <= 1.3: tmp = x / (x + (y * ((2.0 * (b * (math.log1p(math.expm1((0.6666666666666666 / t))) - (a + 0.8333333333333334)))) + 1.0))) 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(b - c))) / t)))))) tmp = 0.0 if (t <= 2e-149) tmp = t_1; elseif (t <= 1.8e-80) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); elseif (t <= 2.5e-39) tmp = t_1; elseif (t <= 6.2e-7) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))) * c)))))); elseif (t <= 1.3) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(b * Float64(log1p(expm1(Float64(0.6666666666666666 / t))) - Float64(a + 0.8333333333333334)))) + 1.0)))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c - b) * Float64(a - -0.8333333333333334))))))); end return 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[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 2e-149], t$95$1, If[LessEqual[t, 1.8e-80], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.5e-39], t$95$1, If[LessEqual[t, 6.2e-7], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.3], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(b * N[(N[Log[1 + N[(Exp[N[(0.6666666666666666 / t), $MachinePrecision]] - 1), $MachinePrecision]], $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $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(b - c\right)}{t}}}\\
\mathbf{if}\;t \leq 2 \cdot 10^{-149}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{-80}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-7}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right) \cdot c\right)}}\\
\mathbf{elif}\;t \leq 1.3:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(b \cdot \left(\mathsf{log1p}\left(\mathsf{expm1}\left(\frac{0.6666666666666666}{t}\right)\right) - \left(a + 0.8333333333333334\right)\right)\right) + 1\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.99999999999999996e-149 or 1.8e-80 < t < 2.4999999999999999e-39Initial program 87.9%
Taylor expanded in t around 0 90.6%
if 1.99999999999999996e-149 < t < 1.8e-80Initial program 90.9%
Taylor expanded in b around inf 91.2%
associate-*r/91.2%
metadata-eval91.2%
+-commutative91.2%
Simplified91.2%
if 2.4999999999999999e-39 < t < 6.1999999999999999e-7Initial program 100.0%
Taylor expanded in c around inf 84.2%
+-commutative84.2%
associate-*r/84.2%
metadata-eval84.2%
associate-+r-84.2%
sub-neg84.2%
distribute-neg-frac84.2%
metadata-eval84.2%
Simplified84.2%
if 6.1999999999999999e-7 < t < 1.30000000000000004Initial program 100.0%
Taylor expanded in b around inf 67.4%
associate-*r/67.4%
metadata-eval67.4%
+-commutative67.4%
Simplified67.4%
Taylor expanded in b around 0 3.3%
div-inv3.3%
log1p-expm1-u67.4%
Applied egg-rr67.4%
if 1.30000000000000004 < t Initial program 94.0%
Taylor expanded in t around inf 96.6%
mul-1-neg96.6%
*-commutative96.6%
distribute-rgt-neg-in96.6%
distribute-neg-in96.6%
metadata-eval96.6%
Simplified96.6%
Final simplification92.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 1.46e-218)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (- (* z (sqrt a)) (* -0.6666666666666666 (- b c))) t))))))
(if (<= t 3.2e+105)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (+ 0.8333333333333334 (/ -0.6666666666666666 t)) (- c b))))))))
(/ 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 <= 1.46e-218) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
} else if (t <= 3.2e+105) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((0.8333333333333334 + (-0.6666666666666666 / t)) * (c - b)))))));
} 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 <= 1.46d-218) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) - ((-0.6666666666666666d0) * (b - c))) / t)))))
else if (t <= 3.2d+105) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((0.8333333333333334d0 + ((-0.6666666666666666d0) / t)) * (c - b)))))))
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 <= 1.46e-218) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
} else if (t <= 3.2e+105) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((0.8333333333333334 + (-0.6666666666666666 / t)) * (c - b)))))));
} 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 <= 1.46e-218: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))) elif t <= 3.2e+105: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((0.8333333333333334 + (-0.6666666666666666 / t)) * (c - b))))))) 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 <= 1.46e-218) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) - Float64(-0.6666666666666666 * Float64(b - c))) / t)))))); elseif (t <= 3.2e+105) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t)) * Float64(c - b)))))))); 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 <= 1.46e-218) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))); elseif (t <= 3.2e+105) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((0.8333333333333334 + (-0.6666666666666666 / t)) * (c - b))))))); 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, 1.46e-218], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] - N[(-0.6666666666666666 * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.2e+105], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] * N[(c - b), $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 1.46 \cdot 10^{-218}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} - -0.6666666666666666 \cdot \left(b - c\right)}{t}}}\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+105}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right) \cdot \left(c - b\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.4600000000000001e-218Initial program 86.2%
Taylor expanded in t around 0 91.0%
if 1.4600000000000001e-218 < t < 3.2e105Initial program 96.3%
Taylor expanded in a around 0 87.9%
*-commutative87.9%
*-commutative87.9%
cancel-sign-sub-inv87.9%
metadata-eval87.9%
associate-*r/87.9%
metadata-eval87.9%
Simplified87.9%
if 3.2e105 < t Initial program 92.3%
Taylor expanded in t around inf 98.9%
mul-1-neg98.9%
*-commutative98.9%
distribute-rgt-neg-in98.9%
distribute-neg-in98.9%
metadata-eval98.9%
Simplified98.9%
Final simplification92.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (- (* z (sqrt a)) (* -0.6666666666666666 (- b c))) t))))))))
(if (<= t 4.5e-149)
t_1
(if (<= t 1.7e-80)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(if (<= t 2.5e-39)
t_1
(if (<= t 9.5e-7)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
(+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t)))
c))))))
(if (<= t 1.3)
(/ x (+ x (* y (exp (/ b (/ t 1.3333333333333333))))))
(/
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 * (b - c))) / t)))));
double tmp;
if (t <= 4.5e-149) {
tmp = t_1;
} else if (t <= 1.7e-80) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if (t <= 2.5e-39) {
tmp = t_1;
} else if (t <= 9.5e-7) {
tmp = x / (x + (y * exp((2.0 * ((a + (0.8333333333333334 + (-0.6666666666666666 / t))) * c)))));
} else if (t <= 1.3) {
tmp = x / (x + (y * exp((b / (t / 1.3333333333333333)))));
} else {
tmp = x / (x + (y * exp((2.0 * ((c - b) * (a - -0.8333333333333334))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) - ((-0.6666666666666666d0) * (b - c))) / t)))))
if (t <= 4.5d-149) then
tmp = t_1
else if (t <= 1.7d-80) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else if (t <= 2.5d-39) then
tmp = t_1
else if (t <= 9.5d-7) then
tmp = x / (x + (y * exp((2.0d0 * ((a + (0.8333333333333334d0 + ((-0.6666666666666666d0) / t))) * c)))))
else if (t <= 1.3d0) then
tmp = x / (x + (y * exp((b / (t / 1.3333333333333333d0)))))
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 * (b - c))) / t)))));
double tmp;
if (t <= 4.5e-149) {
tmp = t_1;
} else if (t <= 1.7e-80) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if (t <= 2.5e-39) {
tmp = t_1;
} else if (t <= 9.5e-7) {
tmp = x / (x + (y * Math.exp((2.0 * ((a + (0.8333333333333334 + (-0.6666666666666666 / t))) * c)))));
} else if (t <= 1.3) {
tmp = x / (x + (y * Math.exp((b / (t / 1.3333333333333333)))));
} 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 * (b - c))) / t))))) tmp = 0 if t <= 4.5e-149: tmp = t_1 elif t <= 1.7e-80: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) elif t <= 2.5e-39: tmp = t_1 elif t <= 9.5e-7: tmp = x / (x + (y * math.exp((2.0 * ((a + (0.8333333333333334 + (-0.6666666666666666 / t))) * c))))) elif t <= 1.3: tmp = x / (x + (y * math.exp((b / (t / 1.3333333333333333))))) 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(b - c))) / t)))))) tmp = 0.0 if (t <= 4.5e-149) tmp = t_1; elseif (t <= 1.7e-80) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); elseif (t <= 2.5e-39) tmp = t_1; elseif (t <= 9.5e-7) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))) * c)))))); elseif (t <= 1.3) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b / Float64(t / 1.3333333333333333)))))); 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 * (b - c))) / t))))); tmp = 0.0; if (t <= 4.5e-149) tmp = t_1; elseif (t <= 1.7e-80) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); elseif (t <= 2.5e-39) tmp = t_1; elseif (t <= 9.5e-7) tmp = x / (x + (y * exp((2.0 * ((a + (0.8333333333333334 + (-0.6666666666666666 / t))) * c))))); elseif (t <= 1.3) tmp = x / (x + (y * exp((b / (t / 1.3333333333333333))))); 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[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 4.5e-149], t$95$1, If[LessEqual[t, 1.7e-80], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.5e-39], t$95$1, If[LessEqual[t, 9.5e-7], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.3], N[(x / N[(x + N[(y * N[Exp[N[(b / N[(t / 1.3333333333333333), $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(b - c\right)}{t}}}\\
\mathbf{if}\;t \leq 4.5 \cdot 10^{-149}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-80}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{-7}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right) \cdot c\right)}}\\
\mathbf{elif}\;t \leq 1.3:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{b}{\frac{t}{1.3333333333333333}}}}\\
\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 < 4.4999999999999998e-149 or 1.7e-80 < t < 2.4999999999999999e-39Initial program 87.9%
Taylor expanded in t around 0 90.6%
if 4.4999999999999998e-149 < t < 1.7e-80Initial program 90.9%
Taylor expanded in b around inf 91.2%
associate-*r/91.2%
metadata-eval91.2%
+-commutative91.2%
Simplified91.2%
if 2.4999999999999999e-39 < t < 9.5000000000000001e-7Initial program 100.0%
Taylor expanded in c around inf 84.2%
+-commutative84.2%
associate-*r/84.2%
metadata-eval84.2%
associate-+r-84.2%
sub-neg84.2%
distribute-neg-frac84.2%
metadata-eval84.2%
Simplified84.2%
if 9.5000000000000001e-7 < t < 1.30000000000000004Initial program 100.0%
Taylor expanded in b around inf 67.4%
associate-*r/67.4%
metadata-eval67.4%
+-commutative67.4%
Simplified67.4%
Taylor expanded in t around 0 67.4%
associate-*r/67.4%
associate-*l/67.4%
*-commutative67.4%
Simplified67.4%
Taylor expanded in b around 0 67.4%
*-commutative67.4%
associate-*l/67.4%
associate-/l*67.4%
Simplified67.4%
if 1.30000000000000004 < t Initial program 94.0%
Taylor expanded in t around inf 96.6%
mul-1-neg96.6%
*-commutative96.6%
distribute-rgt-neg-in96.6%
distribute-neg-in96.6%
metadata-eval96.6%
Simplified96.6%
Final simplification92.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* b -1.6666666666666667))))))
(t_2
(/
x
(+
x
(*
y
(+
(*
(* 2.0 b)
(+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a)))
1.0))))))
(if (<= c -1.25e+195)
1.0
(if (<= c -9.8e+123)
t_2
(if (<= c -1.42e-11)
1.0
(if (<= c -2.2e-115)
(/
x
(+
x
(+
y
(*
(* 2.0 b)
(* y (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))))))
(if (<= c -4.2e-295)
1.0
(if (<= c 1.6e-201)
t_1
(if (<= c 7.7e-90)
t_2
(if (<= c 1.5e+98)
t_1
(/
x
(+
x
(*
y
(+
(*
2.0
(*
c
(+
0.8333333333333334
(- a (/ 0.6666666666666666 t)))))
1.0))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((b * -1.6666666666666667))));
double t_2 = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))) + 1.0)));
double tmp;
if (c <= -1.25e+195) {
tmp = 1.0;
} else if (c <= -9.8e+123) {
tmp = t_2;
} else if (c <= -1.42e-11) {
tmp = 1.0;
} else if (c <= -2.2e-115) {
tmp = x / (x + (y + ((2.0 * b) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
} else if (c <= -4.2e-295) {
tmp = 1.0;
} else if (c <= 1.6e-201) {
tmp = t_1;
} else if (c <= 7.7e-90) {
tmp = t_2;
} else if (c <= 1.5e+98) {
tmp = t_1;
} else {
tmp = x / (x + (y * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
t_2 = x / (x + (y * (((2.0d0 * b) * ((0.6666666666666666d0 / t) + ((-0.8333333333333334d0) - a))) + 1.0d0)))
if (c <= (-1.25d+195)) then
tmp = 1.0d0
else if (c <= (-9.8d+123)) then
tmp = t_2
else if (c <= (-1.42d-11)) then
tmp = 1.0d0
else if (c <= (-2.2d-115)) then
tmp = x / (x + (y + ((2.0d0 * b) * (y * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0))))))
else if (c <= (-4.2d-295)) then
tmp = 1.0d0
else if (c <= 1.6d-201) then
tmp = t_1
else if (c <= 7.7d-90) then
tmp = t_2
else if (c <= 1.5d+98) then
tmp = t_1
else
tmp = x / (x + (y * ((2.0d0 * (c * (0.8333333333333334d0 + (a - (0.6666666666666666d0 / t))))) + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((b * -1.6666666666666667))));
double t_2 = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))) + 1.0)));
double tmp;
if (c <= -1.25e+195) {
tmp = 1.0;
} else if (c <= -9.8e+123) {
tmp = t_2;
} else if (c <= -1.42e-11) {
tmp = 1.0;
} else if (c <= -2.2e-115) {
tmp = x / (x + (y + ((2.0 * b) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
} else if (c <= -4.2e-295) {
tmp = 1.0;
} else if (c <= 1.6e-201) {
tmp = t_1;
} else if (c <= 7.7e-90) {
tmp = t_2;
} else if (c <= 1.5e+98) {
tmp = t_1;
} else {
tmp = x / (x + (y * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((b * -1.6666666666666667)))) t_2 = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))) + 1.0))) tmp = 0 if c <= -1.25e+195: tmp = 1.0 elif c <= -9.8e+123: tmp = t_2 elif c <= -1.42e-11: tmp = 1.0 elif c <= -2.2e-115: tmp = x / (x + (y + ((2.0 * b) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))) elif c <= -4.2e-295: tmp = 1.0 elif c <= 1.6e-201: tmp = t_1 elif c <= 7.7e-90: tmp = t_2 elif c <= 1.5e+98: tmp = t_1 else: tmp = x / (x + (y * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))) t_2 = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(2.0 * b) * Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a))) + 1.0)))) tmp = 0.0 if (c <= -1.25e+195) tmp = 1.0; elseif (c <= -9.8e+123) tmp = t_2; elseif (c <= -1.42e-11) tmp = 1.0; elseif (c <= -2.2e-115) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(2.0 * b) * Float64(y * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334))))))); elseif (c <= -4.2e-295) tmp = 1.0; elseif (c <= 1.6e-201) tmp = t_1; elseif (c <= 7.7e-90) tmp = t_2; elseif (c <= 1.5e+98) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(c * Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))))) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((b * -1.6666666666666667)))); t_2 = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))) + 1.0))); tmp = 0.0; if (c <= -1.25e+195) tmp = 1.0; elseif (c <= -9.8e+123) tmp = t_2; elseif (c <= -1.42e-11) tmp = 1.0; elseif (c <= -2.2e-115) tmp = x / (x + (y + ((2.0 * b) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))); elseif (c <= -4.2e-295) tmp = 1.0; elseif (c <= 1.6e-201) tmp = t_1; elseif (c <= 7.7e-90) tmp = t_2; elseif (c <= 1.5e+98) tmp = t_1; else tmp = x / (x + (y * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[(N[(N[(2.0 * b), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.25e+195], 1.0, If[LessEqual[c, -9.8e+123], t$95$2, If[LessEqual[c, -1.42e-11], 1.0, If[LessEqual[c, -2.2e-115], N[(x / N[(x + N[(y + N[(N[(2.0 * b), $MachinePrecision] * N[(y * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -4.2e-295], 1.0, If[LessEqual[c, 1.6e-201], t$95$1, If[LessEqual[c, 7.7e-90], t$95$2, If[LessEqual[c, 1.5e+98], t$95$1, N[(x / N[(x + N[(y * N[(N[(2.0 * N[(c * N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
t_2 := \frac{x}{x + y \cdot \left(\left(2 \cdot b\right) \cdot \left(\frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right)\right) + 1\right)}\\
\mathbf{if}\;c \leq -1.25 \cdot 10^{+195}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -9.8 \cdot 10^{+123}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.42 \cdot 10^{-11}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -2.2 \cdot 10^{-115}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(2 \cdot b\right) \cdot \left(y \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{elif}\;c \leq -4.2 \cdot 10^{-295}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.6 \cdot 10^{-201}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 7.7 \cdot 10^{-90}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 1.5 \cdot 10^{+98}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(c \cdot \left(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\right)\right) + 1\right)}\\
\end{array}
\end{array}
if c < -1.2499999999999999e195 or -9.79999999999999952e123 < c < -1.42e-11 or -2.1999999999999999e-115 < c < -4.19999999999999986e-295Initial program 94.3%
Taylor expanded in a around inf 63.6%
Taylor expanded in a around 0 29.6%
associate-*r*29.6%
*-commutative29.6%
*-commutative29.6%
Simplified29.6%
Taylor expanded in x around inf 76.6%
if -1.2499999999999999e195 < c < -9.79999999999999952e123 or 1.6000000000000001e-201 < c < 7.69999999999999972e-90Initial program 91.2%
Taylor expanded in b around inf 74.1%
associate-*r/74.1%
metadata-eval74.1%
+-commutative74.1%
Simplified74.1%
Taylor expanded in b around 0 77.0%
associate-*r/77.0%
metadata-eval77.0%
+-commutative77.0%
sub-neg77.0%
distribute-neg-in77.0%
mul-1-neg77.0%
sub-neg77.0%
associate-+r-77.0%
metadata-eval77.0%
associate-*r/77.0%
+-commutative77.0%
associate-*r*77.0%
sub-neg77.0%
metadata-eval77.0%
+-commutative77.0%
associate-*r/77.0%
metadata-eval77.0%
Simplified77.0%
if -1.42e-11 < c < -2.1999999999999999e-115Initial program 84.7%
Taylor expanded in b around inf 85.1%
associate-*r/85.1%
metadata-eval85.1%
+-commutative85.1%
Simplified85.1%
Taylor expanded in b around 0 62.9%
distribute-rgt-in62.9%
*-un-lft-identity62.9%
+-commutative62.9%
associate-*r*62.9%
div-inv62.9%
associate-*l*66.5%
*-commutative66.5%
+-commutative66.5%
Applied egg-rr66.5%
if -4.19999999999999986e-295 < c < 1.6000000000000001e-201 or 7.69999999999999972e-90 < c < 1.5000000000000001e98Initial program 92.8%
+-commutative92.8%
fma-def92.8%
Simplified97.1%
Taylor expanded in t around inf 70.5%
+-commutative70.5%
Simplified70.5%
Taylor expanded in a around 0 62.8%
Taylor expanded in c around 0 62.8%
if 1.5000000000000001e98 < c Initial program 87.5%
Taylor expanded in c around inf 92.7%
+-commutative92.7%
associate-*r/92.7%
metadata-eval92.7%
associate-+r-92.7%
sub-neg92.7%
distribute-neg-frac92.7%
metadata-eval92.7%
Simplified92.7%
Taylor expanded in c around 0 63.8%
+-commutative63.8%
*-lft-identity63.8%
distribute-lft-in63.8%
metadata-eval63.8%
+-commutative63.8%
metadata-eval63.8%
cancel-sign-sub-inv63.8%
associate--r+63.8%
associate--r+63.8%
cancel-sign-sub-inv63.8%
metadata-eval63.8%
+-commutative63.8%
metadata-eval63.8%
distribute-lft-in63.8%
*-lft-identity63.8%
+-commutative63.8%
associate--l+63.8%
associate-*r/63.8%
metadata-eval63.8%
Simplified63.8%
Final simplification69.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* b -1.6666666666666667))))))
(t_2
(/
x
(+
x
(*
y
(+
(*
(* 2.0 b)
(+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a)))
1.0))))))
(if (<= c -3.8e+193)
1.0
(if (<= c -9.5e+123)
t_2
(if (<= c -1.4e-11)
1.0
(if (<= c -1.1e-116)
(/
x
(+
x
(+
y
(*
(* 2.0 b)
(* y (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))))))
(if (<= c -2.05e-297)
1.0
(if (<= c 1.58e-201)
t_1
(if (<= c 2.25e-90)
t_2
(if (<= c 7.5e+53)
t_1
(/ x (+ x (* y (exp (* 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((b * -1.6666666666666667))));
double t_2 = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))) + 1.0)));
double tmp;
if (c <= -3.8e+193) {
tmp = 1.0;
} else if (c <= -9.5e+123) {
tmp = t_2;
} else if (c <= -1.4e-11) {
tmp = 1.0;
} else if (c <= -1.1e-116) {
tmp = x / (x + (y + ((2.0 * b) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
} else if (c <= -2.05e-297) {
tmp = 1.0;
} else if (c <= 1.58e-201) {
tmp = t_1;
} else if (c <= 2.25e-90) {
tmp = t_2;
} else if (c <= 7.5e+53) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
t_2 = x / (x + (y * (((2.0d0 * b) * ((0.6666666666666666d0 / t) + ((-0.8333333333333334d0) - a))) + 1.0d0)))
if (c <= (-3.8d+193)) then
tmp = 1.0d0
else if (c <= (-9.5d+123)) then
tmp = t_2
else if (c <= (-1.4d-11)) then
tmp = 1.0d0
else if (c <= (-1.1d-116)) then
tmp = x / (x + (y + ((2.0d0 * b) * (y * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0))))))
else if (c <= (-2.05d-297)) then
tmp = 1.0d0
else if (c <= 1.58d-201) then
tmp = t_1
else if (c <= 2.25d-90) then
tmp = t_2
else if (c <= 7.5d+53) then
tmp = t_1
else
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((b * -1.6666666666666667))));
double t_2 = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))) + 1.0)));
double tmp;
if (c <= -3.8e+193) {
tmp = 1.0;
} else if (c <= -9.5e+123) {
tmp = t_2;
} else if (c <= -1.4e-11) {
tmp = 1.0;
} else if (c <= -1.1e-116) {
tmp = x / (x + (y + ((2.0 * b) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
} else if (c <= -2.05e-297) {
tmp = 1.0;
} else if (c <= 1.58e-201) {
tmp = t_1;
} else if (c <= 2.25e-90) {
tmp = t_2;
} else if (c <= 7.5e+53) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((b * -1.6666666666666667)))) t_2 = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))) + 1.0))) tmp = 0 if c <= -3.8e+193: tmp = 1.0 elif c <= -9.5e+123: tmp = t_2 elif c <= -1.4e-11: tmp = 1.0 elif c <= -1.1e-116: tmp = x / (x + (y + ((2.0 * b) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))) elif c <= -2.05e-297: tmp = 1.0 elif c <= 1.58e-201: tmp = t_1 elif c <= 2.25e-90: tmp = t_2 elif c <= 7.5e+53: tmp = t_1 else: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))) t_2 = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(2.0 * b) * Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a))) + 1.0)))) tmp = 0.0 if (c <= -3.8e+193) tmp = 1.0; elseif (c <= -9.5e+123) tmp = t_2; elseif (c <= -1.4e-11) tmp = 1.0; elseif (c <= -1.1e-116) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(2.0 * b) * Float64(y * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334))))))); elseif (c <= -2.05e-297) tmp = 1.0; elseif (c <= 1.58e-201) tmp = t_1; elseif (c <= 2.25e-90) tmp = t_2; elseif (c <= 7.5e+53) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((b * -1.6666666666666667)))); t_2 = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))) + 1.0))); tmp = 0.0; if (c <= -3.8e+193) tmp = 1.0; elseif (c <= -9.5e+123) tmp = t_2; elseif (c <= -1.4e-11) tmp = 1.0; elseif (c <= -1.1e-116) tmp = x / (x + (y + ((2.0 * b) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))); elseif (c <= -2.05e-297) tmp = 1.0; elseif (c <= 1.58e-201) tmp = t_1; elseif (c <= 2.25e-90) tmp = t_2; elseif (c <= 7.5e+53) tmp = t_1; else tmp = x / (x + (y * exp((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[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[(N[(N[(2.0 * b), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.8e+193], 1.0, If[LessEqual[c, -9.5e+123], t$95$2, If[LessEqual[c, -1.4e-11], 1.0, If[LessEqual[c, -1.1e-116], N[(x / N[(x + N[(y + N[(N[(2.0 * b), $MachinePrecision] * N[(y * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.05e-297], 1.0, If[LessEqual[c, 1.58e-201], t$95$1, If[LessEqual[c, 2.25e-90], t$95$2, If[LessEqual[c, 7.5e+53], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
t_2 := \frac{x}{x + y \cdot \left(\left(2 \cdot b\right) \cdot \left(\frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right)\right) + 1\right)}\\
\mathbf{if}\;c \leq -3.8 \cdot 10^{+193}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -9.5 \cdot 10^{+123}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.4 \cdot 10^{-11}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.1 \cdot 10^{-116}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(2 \cdot b\right) \cdot \left(y \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{elif}\;c \leq -2.05 \cdot 10^{-297}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.58 \cdot 10^{-201}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2.25 \cdot 10^{-90}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 7.5 \cdot 10^{+53}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if c < -3.79999999999999972e193 or -9.4999999999999996e123 < c < -1.4e-11 or -1.10000000000000005e-116 < c < -2.0500000000000001e-297Initial program 94.3%
Taylor expanded in a around inf 63.6%
Taylor expanded in a around 0 29.6%
associate-*r*29.6%
*-commutative29.6%
*-commutative29.6%
Simplified29.6%
Taylor expanded in x around inf 76.6%
if -3.79999999999999972e193 < c < -9.4999999999999996e123 or 1.58e-201 < c < 2.25000000000000004e-90Initial program 91.2%
Taylor expanded in b around inf 74.1%
associate-*r/74.1%
metadata-eval74.1%
+-commutative74.1%
Simplified74.1%
Taylor expanded in b around 0 77.0%
associate-*r/77.0%
metadata-eval77.0%
+-commutative77.0%
sub-neg77.0%
distribute-neg-in77.0%
mul-1-neg77.0%
sub-neg77.0%
associate-+r-77.0%
metadata-eval77.0%
associate-*r/77.0%
+-commutative77.0%
associate-*r*77.0%
sub-neg77.0%
metadata-eval77.0%
+-commutative77.0%
associate-*r/77.0%
metadata-eval77.0%
Simplified77.0%
if -1.4e-11 < c < -1.10000000000000005e-116Initial program 84.7%
Taylor expanded in b around inf 85.1%
associate-*r/85.1%
metadata-eval85.1%
+-commutative85.1%
Simplified85.1%
Taylor expanded in b around 0 62.9%
distribute-rgt-in62.9%
*-un-lft-identity62.9%
+-commutative62.9%
associate-*r*62.9%
div-inv62.9%
associate-*l*66.5%
*-commutative66.5%
+-commutative66.5%
Applied egg-rr66.5%
if -2.0500000000000001e-297 < c < 1.58e-201 or 2.25000000000000004e-90 < c < 7.4999999999999997e53Initial program 96.3%
+-commutative96.3%
fma-def96.3%
Simplified100.0%
Taylor expanded in t around inf 74.4%
+-commutative74.4%
Simplified74.4%
Taylor expanded in a around 0 64.3%
Taylor expanded in c around 0 66.1%
if 7.4999999999999997e53 < c Initial program 85.8%
+-commutative85.8%
fma-def85.8%
Simplified87.5%
Taylor expanded in t around inf 75.8%
+-commutative75.8%
Simplified75.8%
Taylor expanded in a around 0 74.1%
Taylor expanded in c around inf 75.8%
Final simplification73.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/ x (+ x (* y (exp (* 2.0 (* (- c b) (- a -0.8333333333333334))))))))
(t_2 (/ x (+ x (* y (exp (/ b (/ t 1.3333333333333333))))))))
(if (<= t -1e-276)
t_1
(if (<= t 5e-275)
t_2
(if (<= t 2.8e-257)
1.0
(if (<= t 1.6e-218)
(/ x (+ x (+ y (* (* 2.0 a) (* y (- c b))))))
(if (<= t 1.3) t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((c - b) * (a - -0.8333333333333334))))));
double t_2 = x / (x + (y * exp((b / (t / 1.3333333333333333)))));
double tmp;
if (t <= -1e-276) {
tmp = t_1;
} else if (t <= 5e-275) {
tmp = t_2;
} else if (t <= 2.8e-257) {
tmp = 1.0;
} else if (t <= 1.6e-218) {
tmp = x / (x + (y + ((2.0 * a) * (y * (c - b)))));
} else if (t <= 1.3) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((c - b) * (a - (-0.8333333333333334d0)))))))
t_2 = x / (x + (y * exp((b / (t / 1.3333333333333333d0)))))
if (t <= (-1d-276)) then
tmp = t_1
else if (t <= 5d-275) then
tmp = t_2
else if (t <= 2.8d-257) then
tmp = 1.0d0
else if (t <= 1.6d-218) then
tmp = x / (x + (y + ((2.0d0 * a) * (y * (c - b)))))
else if (t <= 1.3d0) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((c - b) * (a - -0.8333333333333334))))));
double t_2 = x / (x + (y * Math.exp((b / (t / 1.3333333333333333)))));
double tmp;
if (t <= -1e-276) {
tmp = t_1;
} else if (t <= 5e-275) {
tmp = t_2;
} else if (t <= 2.8e-257) {
tmp = 1.0;
} else if (t <= 1.6e-218) {
tmp = x / (x + (y + ((2.0 * a) * (y * (c - b)))));
} else if (t <= 1.3) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((c - b) * (a - -0.8333333333333334)))))) t_2 = x / (x + (y * math.exp((b / (t / 1.3333333333333333))))) tmp = 0 if t <= -1e-276: tmp = t_1 elif t <= 5e-275: tmp = t_2 elif t <= 2.8e-257: tmp = 1.0 elif t <= 1.6e-218: tmp = x / (x + (y + ((2.0 * a) * (y * (c - b))))) elif t <= 1.3: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c - b) * Float64(a - -0.8333333333333334))))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(b / Float64(t / 1.3333333333333333)))))) tmp = 0.0 if (t <= -1e-276) tmp = t_1; elseif (t <= 5e-275) tmp = t_2; elseif (t <= 2.8e-257) tmp = 1.0; elseif (t <= 1.6e-218) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(2.0 * a) * Float64(y * Float64(c - b)))))); elseif (t <= 1.3) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((c - b) * (a - -0.8333333333333334)))))); t_2 = x / (x + (y * exp((b / (t / 1.3333333333333333))))); tmp = 0.0; if (t <= -1e-276) tmp = t_1; elseif (t <= 5e-275) tmp = t_2; elseif (t <= 2.8e-257) tmp = 1.0; elseif (t <= 1.6e-218) tmp = x / (x + (y + ((2.0 * a) * (y * (c - b))))); elseif (t <= 1.3) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c - b), $MachinePrecision] * N[(a - -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(b / N[(t / 1.3333333333333333), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1e-276], t$95$1, If[LessEqual[t, 5e-275], t$95$2, If[LessEqual[t, 2.8e-257], 1.0, If[LessEqual[t, 1.6e-218], N[(x / N[(x + N[(y + N[(N[(2.0 * a), $MachinePrecision] * N[(y * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.3], t$95$2, 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)}}\\
t_2 := \frac{x}{x + y \cdot e^{\frac{b}{\frac{t}{1.3333333333333333}}}}\\
\mathbf{if}\;t \leq -1 \cdot 10^{-276}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-275}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-257}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{-218}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(2 \cdot a\right) \cdot \left(y \cdot \left(c - b\right)\right)\right)}\\
\mathbf{elif}\;t \leq 1.3:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1e-276 or 1.30000000000000004 < t Initial program 92.1%
Taylor expanded in t around inf 92.2%
mul-1-neg92.2%
*-commutative92.2%
distribute-rgt-neg-in92.2%
distribute-neg-in92.2%
metadata-eval92.2%
Simplified92.2%
if -1e-276 < t < 4.99999999999999983e-275 or 1.6000000000000001e-218 < t < 1.30000000000000004Initial program 91.3%
Taylor expanded in b around inf 69.2%
associate-*r/69.2%
metadata-eval69.2%
+-commutative69.2%
Simplified69.2%
Taylor expanded in t around 0 70.6%
associate-*r/70.6%
associate-*l/70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in b around 0 70.6%
*-commutative70.6%
associate-*l/70.6%
associate-/l*70.6%
Simplified70.6%
if 4.99999999999999983e-275 < t < 2.80000000000000001e-257Initial program 66.7%
Taylor expanded in a around inf 35.3%
Taylor expanded in a around 0 6.4%
associate-*r*6.4%
*-commutative6.4%
*-commutative6.4%
Simplified6.4%
Taylor expanded in x around inf 100.0%
if 2.80000000000000001e-257 < t < 1.6000000000000001e-218Initial program 90.0%
Taylor expanded in a around inf 61.4%
Taylor expanded in a around 0 81.1%
associate-*r*81.1%
*-commutative81.1%
*-commutative81.1%
Simplified81.1%
Final simplification86.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (/ b (/ t 1.3333333333333333)))))))
(t_2 (/ x (+ x (* y (exp (* (- c b) 1.6666666666666667)))))))
(if (<= t -6e-277)
t_2
(if (<= t 6.6e-275)
t_1
(if (<= t 2e-259)
1.0
(if (<= t 1.4e-217)
(/ x (+ x (- y (* (* 2.0 a) (* y (- b c))))))
(if (<= t 1.3) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((b / (t / 1.3333333333333333)))));
double t_2 = x / (x + (y * exp(((c - b) * 1.6666666666666667))));
double tmp;
if (t <= -6e-277) {
tmp = t_2;
} else if (t <= 6.6e-275) {
tmp = t_1;
} else if (t <= 2e-259) {
tmp = 1.0;
} else if (t <= 1.4e-217) {
tmp = x / (x + (y - ((2.0 * a) * (y * (b - c)))));
} else if (t <= 1.3) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp((b / (t / 1.3333333333333333d0)))))
t_2 = x / (x + (y * exp(((c - b) * 1.6666666666666667d0))))
if (t <= (-6d-277)) then
tmp = t_2
else if (t <= 6.6d-275) then
tmp = t_1
else if (t <= 2d-259) then
tmp = 1.0d0
else if (t <= 1.4d-217) then
tmp = x / (x + (y - ((2.0d0 * a) * (y * (b - c)))))
else if (t <= 1.3d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((b / (t / 1.3333333333333333)))));
double t_2 = x / (x + (y * Math.exp(((c - b) * 1.6666666666666667))));
double tmp;
if (t <= -6e-277) {
tmp = t_2;
} else if (t <= 6.6e-275) {
tmp = t_1;
} else if (t <= 2e-259) {
tmp = 1.0;
} else if (t <= 1.4e-217) {
tmp = x / (x + (y - ((2.0 * a) * (y * (b - c)))));
} else if (t <= 1.3) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((b / (t / 1.3333333333333333))))) t_2 = x / (x + (y * math.exp(((c - b) * 1.6666666666666667)))) tmp = 0 if t <= -6e-277: tmp = t_2 elif t <= 6.6e-275: tmp = t_1 elif t <= 2e-259: tmp = 1.0 elif t <= 1.4e-217: tmp = x / (x + (y - ((2.0 * a) * (y * (b - c))))) elif t <= 1.3: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(b / Float64(t / 1.3333333333333333)))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c - b) * 1.6666666666666667))))) tmp = 0.0 if (t <= -6e-277) tmp = t_2; elseif (t <= 6.6e-275) tmp = t_1; elseif (t <= 2e-259) tmp = 1.0; elseif (t <= 1.4e-217) tmp = Float64(x / Float64(x + Float64(y - Float64(Float64(2.0 * a) * Float64(y * Float64(b - c)))))); elseif (t <= 1.3) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((b / (t / 1.3333333333333333))))); t_2 = x / (x + (y * exp(((c - b) * 1.6666666666666667)))); tmp = 0.0; if (t <= -6e-277) tmp = t_2; elseif (t <= 6.6e-275) tmp = t_1; elseif (t <= 2e-259) tmp = 1.0; elseif (t <= 1.4e-217) tmp = x / (x + (y - ((2.0 * a) * (y * (b - c))))); elseif (t <= 1.3) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(b / N[(t / 1.3333333333333333), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(N[(c - b), $MachinePrecision] * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6e-277], t$95$2, If[LessEqual[t, 6.6e-275], t$95$1, If[LessEqual[t, 2e-259], 1.0, If[LessEqual[t, 1.4e-217], N[(x / N[(x + N[(y - N[(N[(2.0 * a), $MachinePrecision] * N[(y * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.3], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\frac{b}{\frac{t}{1.3333333333333333}}}}\\
t_2 := \frac{x}{x + y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\mathbf{if}\;t \leq -6 \cdot 10^{-277}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{-275}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-259}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{-217}:\\
\;\;\;\;\frac{x}{x + \left(y - \left(2 \cdot a\right) \cdot \left(y \cdot \left(b - c\right)\right)\right)}\\
\mathbf{elif}\;t \leq 1.3:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -5.99999999999999956e-277 or 1.30000000000000004 < t Initial program 92.1%
+-commutative92.1%
fma-def92.1%
Simplified97.1%
Taylor expanded in t around inf 92.2%
+-commutative92.2%
Simplified92.2%
Taylor expanded in a around 0 82.0%
if -5.99999999999999956e-277 < t < 6.600000000000001e-275 or 1.4e-217 < t < 1.30000000000000004Initial program 91.3%
Taylor expanded in b around inf 69.2%
associate-*r/69.2%
metadata-eval69.2%
+-commutative69.2%
Simplified69.2%
Taylor expanded in t around 0 70.6%
associate-*r/70.6%
associate-*l/70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in b around 0 70.6%
*-commutative70.6%
associate-*l/70.6%
associate-/l*70.6%
Simplified70.6%
if 6.600000000000001e-275 < t < 2.0000000000000001e-259Initial program 66.7%
Taylor expanded in a around inf 35.3%
Taylor expanded in a around 0 6.4%
associate-*r*6.4%
*-commutative6.4%
*-commutative6.4%
Simplified6.4%
Taylor expanded in x around inf 100.0%
if 2.0000000000000001e-259 < t < 1.4e-217Initial program 90.0%
Taylor expanded in a around inf 61.4%
Taylor expanded in a around 0 81.1%
associate-*r*81.1%
*-commutative81.1%
*-commutative81.1%
Simplified81.1%
Final simplification79.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (/ b (/ t 1.3333333333333333))))))))
(if (<= t -1.7e-276)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 4e-230)
t_1
(if (<= t 1.7e-218)
(/ x (+ y (+ x (* 2.0 (* a (* y c))))))
(if (<= t 3.8e-176)
1.0
(if (<= t 1.3)
t_1
(/ x (+ x (* y (exp (* (- c b) 1.6666666666666667))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((b / (t / 1.3333333333333333)))));
double tmp;
if (t <= -1.7e-276) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 4e-230) {
tmp = t_1;
} else if (t <= 1.7e-218) {
tmp = x / (y + (x + (2.0 * (a * (y * c)))));
} else if (t <= 3.8e-176) {
tmp = 1.0;
} else if (t <= 1.3) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((b / (t / 1.3333333333333333d0)))))
if (t <= (-1.7d-276)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 4d-230) then
tmp = t_1
else if (t <= 1.7d-218) then
tmp = x / (y + (x + (2.0d0 * (a * (y * c)))))
else if (t <= 3.8d-176) then
tmp = 1.0d0
else if (t <= 1.3d0) then
tmp = t_1
else
tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((b / (t / 1.3333333333333333)))));
double tmp;
if (t <= -1.7e-276) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 4e-230) {
tmp = t_1;
} else if (t <= 1.7e-218) {
tmp = x / (y + (x + (2.0 * (a * (y * c)))));
} else if (t <= 3.8e-176) {
tmp = 1.0;
} else if (t <= 1.3) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp(((c - b) * 1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((b / (t / 1.3333333333333333))))) tmp = 0 if t <= -1.7e-276: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 4e-230: tmp = t_1 elif t <= 1.7e-218: tmp = x / (y + (x + (2.0 * (a * (y * c))))) elif t <= 3.8e-176: tmp = 1.0 elif t <= 1.3: tmp = t_1 else: tmp = x / (x + (y * math.exp(((c - b) * 1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(b / Float64(t / 1.3333333333333333)))))) tmp = 0.0 if (t <= -1.7e-276) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 4e-230) tmp = t_1; elseif (t <= 1.7e-218) tmp = Float64(x / Float64(y + Float64(x + Float64(2.0 * Float64(a * Float64(y * c)))))); elseif (t <= 3.8e-176) tmp = 1.0; elseif (t <= 1.3) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c - b) * 1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((b / (t / 1.3333333333333333))))); tmp = 0.0; if (t <= -1.7e-276) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 4e-230) tmp = t_1; elseif (t <= 1.7e-218) tmp = x / (y + (x + (2.0 * (a * (y * c))))); elseif (t <= 3.8e-176) tmp = 1.0; elseif (t <= 1.3) tmp = t_1; else tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(b / N[(t / 1.3333333333333333), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.7e-276], 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, 4e-230], t$95$1, If[LessEqual[t, 1.7e-218], N[(x / N[(y + N[(x + N[(2.0 * N[(a * N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.8e-176], 1.0, If[LessEqual[t, 1.3], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(N[(c - b), $MachinePrecision] * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\frac{b}{\frac{t}{1.3333333333333333}}}}\\
\mathbf{if}\;t \leq -1.7 \cdot 10^{-276}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-230}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-218}:\\
\;\;\;\;\frac{x}{y + \left(x + 2 \cdot \left(a \cdot \left(y \cdot c\right)\right)\right)}\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{-176}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1.3:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if t < -1.69999999999999996e-276Initial program 88.4%
Taylor expanded in a around inf 79.0%
if -1.69999999999999996e-276 < t < 4.00000000000000019e-230 or 3.80000000000000012e-176 < t < 1.30000000000000004Initial program 91.4%
Taylor expanded in b around inf 69.6%
associate-*r/69.6%
metadata-eval69.6%
+-commutative69.6%
Simplified69.6%
Taylor expanded in t around 0 69.6%
associate-*r/69.6%
associate-*l/69.6%
*-commutative69.6%
Simplified69.6%
Taylor expanded in b around 0 69.6%
*-commutative69.6%
associate-*l/69.6%
associate-/l*69.6%
Simplified69.6%
if 4.00000000000000019e-230 < t < 1.69999999999999993e-218Initial program 100.0%
Taylor expanded in a around inf 100.0%
Taylor expanded in a around 0 100.0%
associate-*r*100.0%
*-commutative100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in b around 0 100.0%
associate-+r+100.0%
+-commutative100.0%
associate-+l+100.0%
Simplified100.0%
if 1.69999999999999993e-218 < t < 3.80000000000000012e-176Initial program 75.0%
Taylor expanded in a around inf 3.1%
Taylor expanded in a around 0 27.5%
associate-*r*27.5%
*-commutative27.5%
*-commutative27.5%
Simplified27.5%
Taylor expanded in x around inf 87.9%
if 1.30000000000000004 < t Initial program 94.0%
+-commutative94.0%
fma-def94.0%
Simplified100.0%
Taylor expanded in t around inf 96.6%
+-commutative96.6%
Simplified96.6%
Taylor expanded in a around 0 83.6%
Final simplification79.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -1.45e-204)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 1.5e-174)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* (+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t))) c))))))
(if (<= t 1.3)
(/ x (+ x (* y (exp (/ b (/ t 1.3333333333333333))))))
(/
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 <= -1.45e-204) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 1.5e-174) {
tmp = x / (x + (y * exp((2.0 * ((a + (0.8333333333333334 + (-0.6666666666666666 / t))) * c)))));
} else if (t <= 1.3) {
tmp = x / (x + (y * exp((b / (t / 1.3333333333333333)))));
} 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 <= (-1.45d-204)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 1.5d-174) then
tmp = x / (x + (y * exp((2.0d0 * ((a + (0.8333333333333334d0 + ((-0.6666666666666666d0) / t))) * c)))))
else if (t <= 1.3d0) then
tmp = x / (x + (y * exp((b / (t / 1.3333333333333333d0)))))
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 <= -1.45e-204) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 1.5e-174) {
tmp = x / (x + (y * Math.exp((2.0 * ((a + (0.8333333333333334 + (-0.6666666666666666 / t))) * c)))));
} else if (t <= 1.3) {
tmp = x / (x + (y * Math.exp((b / (t / 1.3333333333333333)))));
} 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 <= -1.45e-204: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 1.5e-174: tmp = x / (x + (y * math.exp((2.0 * ((a + (0.8333333333333334 + (-0.6666666666666666 / t))) * c))))) elif t <= 1.3: tmp = x / (x + (y * math.exp((b / (t / 1.3333333333333333))))) 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 <= -1.45e-204) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 1.5e-174) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))) * c)))))); elseif (t <= 1.3) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b / Float64(t / 1.3333333333333333)))))); 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 <= -1.45e-204) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 1.5e-174) tmp = x / (x + (y * exp((2.0 * ((a + (0.8333333333333334 + (-0.6666666666666666 / t))) * c))))); elseif (t <= 1.3) tmp = x / (x + (y * exp((b / (t / 1.3333333333333333))))); 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, -1.45e-204], 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.5e-174], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.3], N[(x / N[(x + N[(y * N[Exp[N[(b / N[(t / 1.3333333333333333), $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 -1.45 \cdot 10^{-204}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{-174}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right) \cdot c\right)}}\\
\mathbf{elif}\;t \leq 1.3:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{b}{\frac{t}{1.3333333333333333}}}}\\
\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.45000000000000005e-204Initial program 91.5%
Taylor expanded in a around inf 85.5%
if -1.45000000000000005e-204 < t < 1.50000000000000011e-174Initial program 79.6%
Taylor expanded in c around inf 76.3%
+-commutative76.3%
associate-*r/76.3%
metadata-eval76.3%
associate-+r-76.3%
sub-neg76.3%
distribute-neg-frac76.3%
metadata-eval76.3%
Simplified76.3%
if 1.50000000000000011e-174 < t < 1.30000000000000004Initial program 97.8%
Taylor expanded in b around inf 70.6%
associate-*r/70.6%
metadata-eval70.6%
+-commutative70.6%
Simplified70.6%
Taylor expanded in t around 0 70.6%
associate-*r/70.6%
associate-*l/70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in b around 0 70.6%
*-commutative70.6%
associate-*l/70.6%
associate-/l*70.6%
Simplified70.6%
if 1.30000000000000004 < t Initial program 94.0%
Taylor expanded in t around inf 96.6%
mul-1-neg96.6%
*-commutative96.6%
distribute-rgt-neg-in96.6%
distribute-neg-in96.6%
metadata-eval96.6%
Simplified96.6%
Final simplification86.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (- c b) 1.6666666666666667)))))))
(if (<= t -5.2e-307)
t_1
(if (<= t 2.5e-173)
1.0
(if (<= t 9e-14)
(/ x (+ x (* y (+ (* 2.0 (* (/ -0.6666666666666666 t) c)) 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(((c - b) * 1.6666666666666667))));
double tmp;
if (t <= -5.2e-307) {
tmp = t_1;
} else if (t <= 2.5e-173) {
tmp = 1.0;
} else if (t <= 9e-14) {
tmp = x / (x + (y * ((2.0 * ((-0.6666666666666666 / t) * c)) + 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(((c - b) * 1.6666666666666667d0))))
if (t <= (-5.2d-307)) then
tmp = t_1
else if (t <= 2.5d-173) then
tmp = 1.0d0
else if (t <= 9d-14) then
tmp = x / (x + (y * ((2.0d0 * (((-0.6666666666666666d0) / t) * c)) + 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(((c - b) * 1.6666666666666667))));
double tmp;
if (t <= -5.2e-307) {
tmp = t_1;
} else if (t <= 2.5e-173) {
tmp = 1.0;
} else if (t <= 9e-14) {
tmp = x / (x + (y * ((2.0 * ((-0.6666666666666666 / t) * c)) + 1.0)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp(((c - b) * 1.6666666666666667)))) tmp = 0 if t <= -5.2e-307: tmp = t_1 elif t <= 2.5e-173: tmp = 1.0 elif t <= 9e-14: tmp = x / (x + (y * ((2.0 * ((-0.6666666666666666 / t) * c)) + 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(c - b) * 1.6666666666666667))))) tmp = 0.0 if (t <= -5.2e-307) tmp = t_1; elseif (t <= 2.5e-173) tmp = 1.0; elseif (t <= 9e-14) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(Float64(-0.6666666666666666 / t) * c)) + 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(((c - b) * 1.6666666666666667)))); tmp = 0.0; if (t <= -5.2e-307) tmp = t_1; elseif (t <= 2.5e-173) tmp = 1.0; elseif (t <= 9e-14) tmp = x / (x + (y * ((2.0 * ((-0.6666666666666666 / t) * c)) + 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[(c - b), $MachinePrecision] * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.2e-307], t$95$1, If[LessEqual[t, 2.5e-173], 1.0, If[LessEqual[t, 9e-14], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(N[(-0.6666666666666666 / t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\mathbf{if}\;t \leq -5.2 \cdot 10^{-307}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-173}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 9 \cdot 10^{-14}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(\frac{-0.6666666666666666}{t} \cdot c\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -5.19999999999999992e-307 or 8.9999999999999995e-14 < t Initial program 91.4%
+-commutative91.4%
fma-def91.4%
Simplified96.2%
Taylor expanded in t around inf 90.0%
+-commutative90.0%
Simplified90.0%
Taylor expanded in a around 0 80.3%
if -5.19999999999999992e-307 < t < 2.5000000000000001e-173Initial program 83.3%
Taylor expanded in a around inf 35.5%
Taylor expanded in a around 0 45.8%
associate-*r*45.8%
*-commutative45.8%
*-commutative45.8%
Simplified45.8%
Taylor expanded in x around inf 61.3%
if 2.5000000000000001e-173 < t < 8.9999999999999995e-14Initial program 97.6%
Taylor expanded in c around inf 56.7%
+-commutative56.7%
associate-*r/56.7%
metadata-eval56.7%
associate-+r-56.7%
sub-neg56.7%
distribute-neg-frac56.7%
metadata-eval56.7%
Simplified56.7%
Taylor expanded in c around 0 56.8%
+-commutative56.8%
*-lft-identity56.8%
distribute-lft-in56.8%
metadata-eval56.8%
+-commutative56.8%
metadata-eval56.8%
cancel-sign-sub-inv56.8%
associate--r+56.8%
associate--r+56.8%
cancel-sign-sub-inv56.8%
metadata-eval56.8%
+-commutative56.8%
metadata-eval56.8%
distribute-lft-in56.8%
*-lft-identity56.8%
+-commutative56.8%
associate--l+56.8%
associate-*r/56.8%
metadata-eval56.8%
Simplified56.8%
Taylor expanded in t around 0 59.2%
*-commutative59.2%
associate-*l/59.2%
associate-*r/59.2%
Simplified59.2%
Final simplification74.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(+
(*
2.0
(* c (+ 0.8333333333333334 (- a (/ 0.6666666666666666 t)))))
1.0))))))
(if (<= c -1.02e+192)
1.0
(if (<= c -8.3e+133)
t_1
(if (<= c -2.8e-11)
1.0
(if (<= c -1.45e-114)
(/ x (+ x (* y (+ (* -2.0 (* b (+ a 0.8333333333333334))) 1.0))))
(if (<= c -3.8e-307)
1.0
(if (<= c 3.8e-98)
(/ x (+ x (+ y (* (* 2.0 a) (* y (- c b))))))
(if (<= c 1.35e+31) 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 * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0)));
double tmp;
if (c <= -1.02e+192) {
tmp = 1.0;
} else if (c <= -8.3e+133) {
tmp = t_1;
} else if (c <= -2.8e-11) {
tmp = 1.0;
} else if (c <= -1.45e-114) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (c <= -3.8e-307) {
tmp = 1.0;
} else if (c <= 3.8e-98) {
tmp = x / (x + (y + ((2.0 * a) * (y * (c - b)))));
} else if (c <= 1.35e+31) {
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 * ((2.0d0 * (c * (0.8333333333333334d0 + (a - (0.6666666666666666d0 / t))))) + 1.0d0)))
if (c <= (-1.02d+192)) then
tmp = 1.0d0
else if (c <= (-8.3d+133)) then
tmp = t_1
else if (c <= (-2.8d-11)) then
tmp = 1.0d0
else if (c <= (-1.45d-114)) then
tmp = x / (x + (y * (((-2.0d0) * (b * (a + 0.8333333333333334d0))) + 1.0d0)))
else if (c <= (-3.8d-307)) then
tmp = 1.0d0
else if (c <= 3.8d-98) then
tmp = x / (x + (y + ((2.0d0 * a) * (y * (c - b)))))
else if (c <= 1.35d+31) 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 * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0)));
double tmp;
if (c <= -1.02e+192) {
tmp = 1.0;
} else if (c <= -8.3e+133) {
tmp = t_1;
} else if (c <= -2.8e-11) {
tmp = 1.0;
} else if (c <= -1.45e-114) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (c <= -3.8e-307) {
tmp = 1.0;
} else if (c <= 3.8e-98) {
tmp = x / (x + (y + ((2.0 * a) * (y * (c - b)))));
} else if (c <= 1.35e+31) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0))) tmp = 0 if c <= -1.02e+192: tmp = 1.0 elif c <= -8.3e+133: tmp = t_1 elif c <= -2.8e-11: tmp = 1.0 elif c <= -1.45e-114: tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))) elif c <= -3.8e-307: tmp = 1.0 elif c <= 3.8e-98: tmp = x / (x + (y + ((2.0 * a) * (y * (c - b))))) elif c <= 1.35e+31: 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 * Float64(Float64(2.0 * Float64(c * Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))))) + 1.0)))) tmp = 0.0 if (c <= -1.02e+192) tmp = 1.0; elseif (c <= -8.3e+133) tmp = t_1; elseif (c <= -2.8e-11) tmp = 1.0; elseif (c <= -1.45e-114) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))) + 1.0)))); elseif (c <= -3.8e-307) tmp = 1.0; elseif (c <= 3.8e-98) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(2.0 * a) * Float64(y * Float64(c - b)))))); elseif (c <= 1.35e+31) 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 * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0))); tmp = 0.0; if (c <= -1.02e+192) tmp = 1.0; elseif (c <= -8.3e+133) tmp = t_1; elseif (c <= -2.8e-11) tmp = 1.0; elseif (c <= -1.45e-114) tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))); elseif (c <= -3.8e-307) tmp = 1.0; elseif (c <= 3.8e-98) tmp = x / (x + (y + ((2.0 * a) * (y * (c - b))))); elseif (c <= 1.35e+31) 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[(N[(2.0 * N[(c * N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.02e+192], 1.0, If[LessEqual[c, -8.3e+133], t$95$1, If[LessEqual[c, -2.8e-11], 1.0, If[LessEqual[c, -1.45e-114], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.8e-307], 1.0, If[LessEqual[c, 3.8e-98], N[(x / N[(x + N[(y + N[(N[(2.0 * a), $MachinePrecision] * N[(y * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.35e+31], 1.0, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot \left(2 \cdot \left(c \cdot \left(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\right)\right) + 1\right)}\\
\mathbf{if}\;c \leq -1.02 \cdot 10^{+192}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -8.3 \cdot 10^{+133}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -2.8 \cdot 10^{-11}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.45 \cdot 10^{-114}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{elif}\;c \leq -3.8 \cdot 10^{-307}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 3.8 \cdot 10^{-98}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(2 \cdot a\right) \cdot \left(y \cdot \left(c - b\right)\right)\right)}\\
\mathbf{elif}\;c \leq 1.35 \cdot 10^{+31}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -1.01999999999999996e192 or -8.29999999999999953e133 < c < -2.8e-11 or -1.44999999999999998e-114 < c < -3.79999999999999985e-307 or 3.8000000000000003e-98 < c < 1.34999999999999993e31Initial program 95.1%
Taylor expanded in a around inf 64.6%
Taylor expanded in a around 0 30.4%
associate-*r*30.4%
*-commutative30.4%
*-commutative30.4%
Simplified30.4%
Taylor expanded in x around inf 69.3%
if -1.01999999999999996e192 < c < -8.29999999999999953e133 or 1.34999999999999993e31 < c Initial program 87.0%
Taylor expanded in c around inf 81.7%
+-commutative81.7%
associate-*r/81.7%
metadata-eval81.7%
associate-+r-81.7%
sub-neg81.7%
distribute-neg-frac81.7%
metadata-eval81.7%
Simplified81.7%
Taylor expanded in c around 0 62.2%
+-commutative62.2%
*-lft-identity62.2%
distribute-lft-in62.2%
metadata-eval62.2%
+-commutative62.2%
metadata-eval62.2%
cancel-sign-sub-inv62.2%
associate--r+62.2%
associate--r+62.2%
cancel-sign-sub-inv62.2%
metadata-eval62.2%
+-commutative62.2%
metadata-eval62.2%
distribute-lft-in62.2%
*-lft-identity62.2%
+-commutative62.2%
associate--l+62.2%
associate-*r/62.2%
metadata-eval62.2%
Simplified62.2%
if -2.8e-11 < c < -1.44999999999999998e-114Initial program 84.7%
Taylor expanded in b around inf 85.1%
associate-*r/85.1%
metadata-eval85.1%
+-commutative85.1%
Simplified85.1%
Taylor expanded in b around 0 62.9%
Taylor expanded in t around inf 55.6%
+-commutative55.6%
Simplified55.6%
if -3.79999999999999985e-307 < c < 3.8000000000000003e-98Initial program 92.7%
Taylor expanded in a around inf 59.8%
Taylor expanded in a around 0 59.9%
associate-*r*59.9%
*-commutative59.9%
*-commutative59.9%
Simplified59.9%
Final simplification64.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(+
(*
(* 2.0 b)
(+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a)))
1.0))))))
(if (<= c -2.4e+192)
1.0
(if (<= c -9.5e+123)
t_1
(if (<= c -4.6e-11)
1.0
(if (<= c -1.85e-113)
t_1
(if (<= c -2.05e-287)
1.0
(if (<= c 3.2e-98)
t_1
(if (<= c 1.02e+31)
1.0
(/
x
(+
x
(*
y
(+
(*
2.0
(*
c
(+ 0.8333333333333334 (- a (/ 0.6666666666666666 t)))))
1.0)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))) + 1.0)));
double tmp;
if (c <= -2.4e+192) {
tmp = 1.0;
} else if (c <= -9.5e+123) {
tmp = t_1;
} else if (c <= -4.6e-11) {
tmp = 1.0;
} else if (c <= -1.85e-113) {
tmp = t_1;
} else if (c <= -2.05e-287) {
tmp = 1.0;
} else if (c <= 3.2e-98) {
tmp = t_1;
} else if (c <= 1.02e+31) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * (((2.0d0 * b) * ((0.6666666666666666d0 / t) + ((-0.8333333333333334d0) - a))) + 1.0d0)))
if (c <= (-2.4d+192)) then
tmp = 1.0d0
else if (c <= (-9.5d+123)) then
tmp = t_1
else if (c <= (-4.6d-11)) then
tmp = 1.0d0
else if (c <= (-1.85d-113)) then
tmp = t_1
else if (c <= (-2.05d-287)) then
tmp = 1.0d0
else if (c <= 3.2d-98) then
tmp = t_1
else if (c <= 1.02d+31) then
tmp = 1.0d0
else
tmp = x / (x + (y * ((2.0d0 * (c * (0.8333333333333334d0 + (a - (0.6666666666666666d0 / t))))) + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))) + 1.0)));
double tmp;
if (c <= -2.4e+192) {
tmp = 1.0;
} else if (c <= -9.5e+123) {
tmp = t_1;
} else if (c <= -4.6e-11) {
tmp = 1.0;
} else if (c <= -1.85e-113) {
tmp = t_1;
} else if (c <= -2.05e-287) {
tmp = 1.0;
} else if (c <= 3.2e-98) {
tmp = t_1;
} else if (c <= 1.02e+31) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))) + 1.0))) tmp = 0 if c <= -2.4e+192: tmp = 1.0 elif c <= -9.5e+123: tmp = t_1 elif c <= -4.6e-11: tmp = 1.0 elif c <= -1.85e-113: tmp = t_1 elif c <= -2.05e-287: tmp = 1.0 elif c <= 3.2e-98: tmp = t_1 elif c <= 1.02e+31: tmp = 1.0 else: tmp = x / (x + (y * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(2.0 * b) * Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a))) + 1.0)))) tmp = 0.0 if (c <= -2.4e+192) tmp = 1.0; elseif (c <= -9.5e+123) tmp = t_1; elseif (c <= -4.6e-11) tmp = 1.0; elseif (c <= -1.85e-113) tmp = t_1; elseif (c <= -2.05e-287) tmp = 1.0; elseif (c <= 3.2e-98) tmp = t_1; elseif (c <= 1.02e+31) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(c * Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))))) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))) + 1.0))); tmp = 0.0; if (c <= -2.4e+192) tmp = 1.0; elseif (c <= -9.5e+123) tmp = t_1; elseif (c <= -4.6e-11) tmp = 1.0; elseif (c <= -1.85e-113) tmp = t_1; elseif (c <= -2.05e-287) tmp = 1.0; elseif (c <= 3.2e-98) tmp = t_1; elseif (c <= 1.02e+31) tmp = 1.0; else tmp = x / (x + (y * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[(N[(N[(2.0 * b), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.4e+192], 1.0, If[LessEqual[c, -9.5e+123], t$95$1, If[LessEqual[c, -4.6e-11], 1.0, If[LessEqual[c, -1.85e-113], t$95$1, If[LessEqual[c, -2.05e-287], 1.0, If[LessEqual[c, 3.2e-98], t$95$1, If[LessEqual[c, 1.02e+31], 1.0, N[(x / N[(x + N[(y * N[(N[(2.0 * N[(c * N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot \left(\left(2 \cdot b\right) \cdot \left(\frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right)\right) + 1\right)}\\
\mathbf{if}\;c \leq -2.4 \cdot 10^{+192}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -9.5 \cdot 10^{+123}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -4.6 \cdot 10^{-11}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.85 \cdot 10^{-113}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -2.05 \cdot 10^{-287}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 3.2 \cdot 10^{-98}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.02 \cdot 10^{+31}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(c \cdot \left(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\right)\right) + 1\right)}\\
\end{array}
\end{array}
if c < -2.3999999999999998e192 or -9.4999999999999996e123 < c < -4.60000000000000027e-11 or -1.8499999999999999e-113 < c < -2.0500000000000001e-287 or 3.2000000000000001e-98 < c < 1.02000000000000007e31Initial program 95.0%
Taylor expanded in a around inf 64.3%
Taylor expanded in a around 0 30.6%
associate-*r*30.6%
*-commutative30.6%
*-commutative30.6%
Simplified30.6%
Taylor expanded in x around inf 69.9%
if -2.3999999999999998e192 < c < -9.4999999999999996e123 or -4.60000000000000027e-11 < c < -1.8499999999999999e-113 or -2.0500000000000001e-287 < c < 3.2000000000000001e-98Initial program 89.5%
Taylor expanded in b around inf 83.3%
associate-*r/83.3%
metadata-eval83.3%
+-commutative83.3%
Simplified83.3%
Taylor expanded in b around 0 65.5%
associate-*r/65.5%
metadata-eval65.5%
+-commutative65.5%
sub-neg65.5%
distribute-neg-in65.5%
mul-1-neg65.5%
sub-neg65.5%
associate-+r-65.5%
metadata-eval65.5%
associate-*r/65.5%
+-commutative65.5%
associate-*r*65.5%
sub-neg65.5%
metadata-eval65.5%
+-commutative65.5%
associate-*r/65.5%
metadata-eval65.5%
Simplified65.5%
if 1.02000000000000007e31 < c Initial program 86.9%
Taylor expanded in c around inf 82.5%
+-commutative82.5%
associate-*r/82.5%
metadata-eval82.5%
associate-+r-82.5%
sub-neg82.5%
distribute-neg-frac82.5%
metadata-eval82.5%
Simplified82.5%
Taylor expanded in c around 0 58.8%
+-commutative58.8%
*-lft-identity58.8%
distribute-lft-in58.8%
metadata-eval58.8%
+-commutative58.8%
metadata-eval58.8%
cancel-sign-sub-inv58.8%
associate--r+58.8%
associate--r+58.8%
cancel-sign-sub-inv58.8%
metadata-eval58.8%
+-commutative58.8%
metadata-eval58.8%
distribute-lft-in58.8%
*-lft-identity58.8%
+-commutative58.8%
associate--l+58.8%
associate-*r/58.8%
metadata-eval58.8%
Simplified58.8%
Final simplification66.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(+
(*
(* 2.0 b)
(+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a)))
1.0))))))
(if (<= c -1.25e+192)
1.0
(if (<= c -9e+123)
t_1
(if (<= c -2.5e-11)
1.0
(if (<= c -7.5e-114)
(/
x
(+
x
(+
y
(*
(* 2.0 b)
(* y (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))))))
(if (<= c -1.02e-302)
1.0
(if (<= c 4e-98)
t_1
(if (<= c 1.02e+31)
1.0
(/
x
(+
x
(*
y
(+
(*
2.0
(*
c
(+ 0.8333333333333334 (- a (/ 0.6666666666666666 t)))))
1.0)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))) + 1.0)));
double tmp;
if (c <= -1.25e+192) {
tmp = 1.0;
} else if (c <= -9e+123) {
tmp = t_1;
} else if (c <= -2.5e-11) {
tmp = 1.0;
} else if (c <= -7.5e-114) {
tmp = x / (x + (y + ((2.0 * b) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
} else if (c <= -1.02e-302) {
tmp = 1.0;
} else if (c <= 4e-98) {
tmp = t_1;
} else if (c <= 1.02e+31) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * (((2.0d0 * b) * ((0.6666666666666666d0 / t) + ((-0.8333333333333334d0) - a))) + 1.0d0)))
if (c <= (-1.25d+192)) then
tmp = 1.0d0
else if (c <= (-9d+123)) then
tmp = t_1
else if (c <= (-2.5d-11)) then
tmp = 1.0d0
else if (c <= (-7.5d-114)) then
tmp = x / (x + (y + ((2.0d0 * b) * (y * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0))))))
else if (c <= (-1.02d-302)) then
tmp = 1.0d0
else if (c <= 4d-98) then
tmp = t_1
else if (c <= 1.02d+31) then
tmp = 1.0d0
else
tmp = x / (x + (y * ((2.0d0 * (c * (0.8333333333333334d0 + (a - (0.6666666666666666d0 / t))))) + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))) + 1.0)));
double tmp;
if (c <= -1.25e+192) {
tmp = 1.0;
} else if (c <= -9e+123) {
tmp = t_1;
} else if (c <= -2.5e-11) {
tmp = 1.0;
} else if (c <= -7.5e-114) {
tmp = x / (x + (y + ((2.0 * b) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
} else if (c <= -1.02e-302) {
tmp = 1.0;
} else if (c <= 4e-98) {
tmp = t_1;
} else if (c <= 1.02e+31) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))) + 1.0))) tmp = 0 if c <= -1.25e+192: tmp = 1.0 elif c <= -9e+123: tmp = t_1 elif c <= -2.5e-11: tmp = 1.0 elif c <= -7.5e-114: tmp = x / (x + (y + ((2.0 * b) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))) elif c <= -1.02e-302: tmp = 1.0 elif c <= 4e-98: tmp = t_1 elif c <= 1.02e+31: tmp = 1.0 else: tmp = x / (x + (y * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(2.0 * b) * Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a))) + 1.0)))) tmp = 0.0 if (c <= -1.25e+192) tmp = 1.0; elseif (c <= -9e+123) tmp = t_1; elseif (c <= -2.5e-11) tmp = 1.0; elseif (c <= -7.5e-114) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(2.0 * b) * Float64(y * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334))))))); elseif (c <= -1.02e-302) tmp = 1.0; elseif (c <= 4e-98) tmp = t_1; elseif (c <= 1.02e+31) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(c * Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))))) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * (((2.0 * b) * ((0.6666666666666666 / t) + (-0.8333333333333334 - a))) + 1.0))); tmp = 0.0; if (c <= -1.25e+192) tmp = 1.0; elseif (c <= -9e+123) tmp = t_1; elseif (c <= -2.5e-11) tmp = 1.0; elseif (c <= -7.5e-114) tmp = x / (x + (y + ((2.0 * b) * (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))); elseif (c <= -1.02e-302) tmp = 1.0; elseif (c <= 4e-98) tmp = t_1; elseif (c <= 1.02e+31) tmp = 1.0; else tmp = x / (x + (y * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[(N[(N[(2.0 * b), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.25e+192], 1.0, If[LessEqual[c, -9e+123], t$95$1, If[LessEqual[c, -2.5e-11], 1.0, If[LessEqual[c, -7.5e-114], N[(x / N[(x + N[(y + N[(N[(2.0 * b), $MachinePrecision] * N[(y * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.02e-302], 1.0, If[LessEqual[c, 4e-98], t$95$1, If[LessEqual[c, 1.02e+31], 1.0, N[(x / N[(x + N[(y * N[(N[(2.0 * N[(c * N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot \left(\left(2 \cdot b\right) \cdot \left(\frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right)\right) + 1\right)}\\
\mathbf{if}\;c \leq -1.25 \cdot 10^{+192}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -9 \cdot 10^{+123}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -2.5 \cdot 10^{-11}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -7.5 \cdot 10^{-114}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(2 \cdot b\right) \cdot \left(y \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{elif}\;c \leq -1.02 \cdot 10^{-302}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 4 \cdot 10^{-98}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.02 \cdot 10^{+31}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(c \cdot \left(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\right)\right) + 1\right)}\\
\end{array}
\end{array}
if c < -1.25000000000000008e192 or -8.99999999999999965e123 < c < -2.50000000000000009e-11 or -7.5000000000000002e-114 < c < -1.02e-302 or 3.99999999999999976e-98 < c < 1.02000000000000007e31Initial program 95.0%
Taylor expanded in a around inf 64.3%
Taylor expanded in a around 0 30.6%
associate-*r*30.6%
*-commutative30.6%
*-commutative30.6%
Simplified30.6%
Taylor expanded in x around inf 69.9%
if -1.25000000000000008e192 < c < -8.99999999999999965e123 or -1.02e-302 < c < 3.99999999999999976e-98Initial program 92.0%
Taylor expanded in b around inf 82.4%
associate-*r/82.4%
metadata-eval82.4%
+-commutative82.4%
Simplified82.4%
Taylor expanded in b around 0 66.9%
associate-*r/66.9%
metadata-eval66.9%
+-commutative66.9%
sub-neg66.9%
distribute-neg-in66.9%
mul-1-neg66.9%
sub-neg66.9%
associate-+r-66.9%
metadata-eval66.9%
associate-*r/66.9%
+-commutative66.9%
associate-*r*66.9%
sub-neg66.9%
metadata-eval66.9%
+-commutative66.9%
associate-*r/66.9%
metadata-eval66.9%
Simplified66.9%
if -2.50000000000000009e-11 < c < -7.5000000000000002e-114Initial program 84.7%
Taylor expanded in b around inf 85.1%
associate-*r/85.1%
metadata-eval85.1%
+-commutative85.1%
Simplified85.1%
Taylor expanded in b around 0 62.9%
distribute-rgt-in62.9%
*-un-lft-identity62.9%
+-commutative62.9%
associate-*r*62.9%
div-inv62.9%
associate-*l*66.5%
*-commutative66.5%
+-commutative66.5%
Applied egg-rr66.5%
if 1.02000000000000007e31 < c Initial program 86.9%
Taylor expanded in c around inf 82.5%
+-commutative82.5%
associate-*r/82.5%
metadata-eval82.5%
associate-+r-82.5%
sub-neg82.5%
distribute-neg-frac82.5%
metadata-eval82.5%
Simplified82.5%
Taylor expanded in c around 0 58.8%
+-commutative58.8%
*-lft-identity58.8%
distribute-lft-in58.8%
metadata-eval58.8%
+-commutative58.8%
metadata-eval58.8%
cancel-sign-sub-inv58.8%
associate--r+58.8%
associate--r+58.8%
cancel-sign-sub-inv58.8%
metadata-eval58.8%
+-commutative58.8%
metadata-eval58.8%
distribute-lft-in58.8%
*-lft-identity58.8%
+-commutative58.8%
associate--l+58.8%
associate-*r/58.8%
metadata-eval58.8%
Simplified58.8%
Final simplification66.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (+ (* (* 2.0 c) (+ a 0.8333333333333334)) 1.0))))))
(if (<= c -4.8e-11)
1.0
(if (<= c -3.3e-115)
(/ x (+ x (* y (+ (* -2.0 (* b (+ a 0.8333333333333334))) 1.0))))
(if (<= c -1.9e-303)
1.0
(if (<= c 3.5e-98)
(/ x (+ x (+ y (* (* 2.0 a) (* y (- c b))))))
(if (<= c 3.3e+31)
1.0
(if (<= c 3.7e+134)
t_1
(if (<= c 9e+168)
1.0
(if (<= c 1.3e+269)
(/
x
(+
x
(* y (+ (* 2.0 (* (/ -0.6666666666666666 t) c)) 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 * (((2.0 * c) * (a + 0.8333333333333334)) + 1.0)));
double tmp;
if (c <= -4.8e-11) {
tmp = 1.0;
} else if (c <= -3.3e-115) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (c <= -1.9e-303) {
tmp = 1.0;
} else if (c <= 3.5e-98) {
tmp = x / (x + (y + ((2.0 * a) * (y * (c - b)))));
} else if (c <= 3.3e+31) {
tmp = 1.0;
} else if (c <= 3.7e+134) {
tmp = t_1;
} else if (c <= 9e+168) {
tmp = 1.0;
} else if (c <= 1.3e+269) {
tmp = x / (x + (y * ((2.0 * ((-0.6666666666666666 / t) * c)) + 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 * (((2.0d0 * c) * (a + 0.8333333333333334d0)) + 1.0d0)))
if (c <= (-4.8d-11)) then
tmp = 1.0d0
else if (c <= (-3.3d-115)) then
tmp = x / (x + (y * (((-2.0d0) * (b * (a + 0.8333333333333334d0))) + 1.0d0)))
else if (c <= (-1.9d-303)) then
tmp = 1.0d0
else if (c <= 3.5d-98) then
tmp = x / (x + (y + ((2.0d0 * a) * (y * (c - b)))))
else if (c <= 3.3d+31) then
tmp = 1.0d0
else if (c <= 3.7d+134) then
tmp = t_1
else if (c <= 9d+168) then
tmp = 1.0d0
else if (c <= 1.3d+269) then
tmp = x / (x + (y * ((2.0d0 * (((-0.6666666666666666d0) / t) * c)) + 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 * (((2.0 * c) * (a + 0.8333333333333334)) + 1.0)));
double tmp;
if (c <= -4.8e-11) {
tmp = 1.0;
} else if (c <= -3.3e-115) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (c <= -1.9e-303) {
tmp = 1.0;
} else if (c <= 3.5e-98) {
tmp = x / (x + (y + ((2.0 * a) * (y * (c - b)))));
} else if (c <= 3.3e+31) {
tmp = 1.0;
} else if (c <= 3.7e+134) {
tmp = t_1;
} else if (c <= 9e+168) {
tmp = 1.0;
} else if (c <= 1.3e+269) {
tmp = x / (x + (y * ((2.0 * ((-0.6666666666666666 / t) * c)) + 1.0)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * (((2.0 * c) * (a + 0.8333333333333334)) + 1.0))) tmp = 0 if c <= -4.8e-11: tmp = 1.0 elif c <= -3.3e-115: tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))) elif c <= -1.9e-303: tmp = 1.0 elif c <= 3.5e-98: tmp = x / (x + (y + ((2.0 * a) * (y * (c - b))))) elif c <= 3.3e+31: tmp = 1.0 elif c <= 3.7e+134: tmp = t_1 elif c <= 9e+168: tmp = 1.0 elif c <= 1.3e+269: tmp = x / (x + (y * ((2.0 * ((-0.6666666666666666 / t) * c)) + 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 * Float64(Float64(Float64(2.0 * c) * Float64(a + 0.8333333333333334)) + 1.0)))) tmp = 0.0 if (c <= -4.8e-11) tmp = 1.0; elseif (c <= -3.3e-115) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))) + 1.0)))); elseif (c <= -1.9e-303) tmp = 1.0; elseif (c <= 3.5e-98) tmp = Float64(x / Float64(x + Float64(y + Float64(Float64(2.0 * a) * Float64(y * Float64(c - b)))))); elseif (c <= 3.3e+31) tmp = 1.0; elseif (c <= 3.7e+134) tmp = t_1; elseif (c <= 9e+168) tmp = 1.0; elseif (c <= 1.3e+269) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(Float64(-0.6666666666666666 / t) * c)) + 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 * (((2.0 * c) * (a + 0.8333333333333334)) + 1.0))); tmp = 0.0; if (c <= -4.8e-11) tmp = 1.0; elseif (c <= -3.3e-115) tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))); elseif (c <= -1.9e-303) tmp = 1.0; elseif (c <= 3.5e-98) tmp = x / (x + (y + ((2.0 * a) * (y * (c - b))))); elseif (c <= 3.3e+31) tmp = 1.0; elseif (c <= 3.7e+134) tmp = t_1; elseif (c <= 9e+168) tmp = 1.0; elseif (c <= 1.3e+269) tmp = x / (x + (y * ((2.0 * ((-0.6666666666666666 / t) * c)) + 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[(N[(N[(2.0 * c), $MachinePrecision] * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.8e-11], 1.0, If[LessEqual[c, -3.3e-115], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.9e-303], 1.0, If[LessEqual[c, 3.5e-98], N[(x / N[(x + N[(y + N[(N[(2.0 * a), $MachinePrecision] * N[(y * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.3e+31], 1.0, If[LessEqual[c, 3.7e+134], t$95$1, If[LessEqual[c, 9e+168], 1.0, If[LessEqual[c, 1.3e+269], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(N[(-0.6666666666666666 / t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot \left(\left(2 \cdot c\right) \cdot \left(a + 0.8333333333333334\right) + 1\right)}\\
\mathbf{if}\;c \leq -4.8 \cdot 10^{-11}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -3.3 \cdot 10^{-115}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{elif}\;c \leq -1.9 \cdot 10^{-303}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 3.5 \cdot 10^{-98}:\\
\;\;\;\;\frac{x}{x + \left(y + \left(2 \cdot a\right) \cdot \left(y \cdot \left(c - b\right)\right)\right)}\\
\mathbf{elif}\;c \leq 3.3 \cdot 10^{+31}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 3.7 \cdot 10^{+134}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 9 \cdot 10^{+168}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.3 \cdot 10^{+269}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(\frac{-0.6666666666666666}{t} \cdot c\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -4.8000000000000002e-11 or -3.2999999999999999e-115 < c < -1.90000000000000005e-303 or 3.5000000000000002e-98 < c < 3.29999999999999992e31 or 3.70000000000000013e134 < c < 9.00000000000000024e168Initial program 93.3%
Taylor expanded in a around inf 63.7%
Taylor expanded in a around 0 32.2%
associate-*r*32.2%
*-commutative32.2%
*-commutative32.2%
Simplified32.2%
Taylor expanded in x around inf 66.5%
if -4.8000000000000002e-11 < c < -3.2999999999999999e-115Initial program 84.7%
Taylor expanded in b around inf 85.1%
associate-*r/85.1%
metadata-eval85.1%
+-commutative85.1%
Simplified85.1%
Taylor expanded in b around 0 62.9%
Taylor expanded in t around inf 55.6%
+-commutative55.6%
Simplified55.6%
if -1.90000000000000005e-303 < c < 3.5000000000000002e-98Initial program 92.7%
Taylor expanded in a around inf 59.8%
Taylor expanded in a around 0 59.9%
associate-*r*59.9%
*-commutative59.9%
*-commutative59.9%
Simplified59.9%
if 3.29999999999999992e31 < c < 3.70000000000000013e134 or 1.3e269 < c Initial program 89.0%
Taylor expanded in c around inf 75.8%
+-commutative75.8%
associate-*r/75.8%
metadata-eval75.8%
associate-+r-75.8%
sub-neg75.8%
distribute-neg-frac75.8%
metadata-eval75.8%
Simplified75.8%
Taylor expanded in c around 0 59.6%
+-commutative59.6%
*-lft-identity59.6%
distribute-lft-in59.6%
metadata-eval59.6%
+-commutative59.6%
metadata-eval59.6%
cancel-sign-sub-inv59.6%
associate--r+59.6%
associate--r+59.6%
cancel-sign-sub-inv59.6%
metadata-eval59.6%
+-commutative59.6%
metadata-eval59.6%
distribute-lft-in59.6%
*-lft-identity59.6%
+-commutative59.6%
associate--l+59.6%
associate-*r/59.6%
metadata-eval59.6%
Simplified59.6%
Taylor expanded in t around inf 59.7%
associate-*r*59.7%
*-commutative59.7%
Simplified59.7%
if 9.00000000000000024e168 < c < 1.3e269Initial program 90.0%
Taylor expanded in c around inf 95.2%
+-commutative95.2%
associate-*r/95.2%
metadata-eval95.2%
associate-+r-95.2%
sub-neg95.2%
distribute-neg-frac95.2%
metadata-eval95.2%
Simplified95.2%
Taylor expanded in c around 0 71.0%
+-commutative71.0%
*-lft-identity71.0%
distribute-lft-in71.0%
metadata-eval71.0%
+-commutative71.0%
metadata-eval71.0%
cancel-sign-sub-inv71.0%
associate--r+71.0%
associate--r+71.0%
cancel-sign-sub-inv71.0%
metadata-eval71.0%
+-commutative71.0%
metadata-eval71.0%
distribute-lft-in71.0%
*-lft-identity71.0%
+-commutative71.0%
associate--l+71.0%
associate-*r/71.0%
metadata-eval71.0%
Simplified71.0%
Taylor expanded in t around 0 66.0%
*-commutative66.0%
associate-*l/66.0%
associate-*r/66.0%
Simplified66.0%
Final simplification63.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -1.26e-11)
1.0
(if (<= c -2.4e-116)
(/ x (+ x (* y (+ (* -2.0 (* b (+ a 0.8333333333333334))) 1.0))))
(if (<= c -6e-306)
1.0
(if (<= c 3.2e-98)
(/ x (+ x (* y (+ (/ b (/ t 1.3333333333333333)) 1.0))))
(if (<= c 1.4e+96)
1.0
(if (<= c 6.5e+130)
(/ x (+ x (* y (+ (* (* 2.0 c) (+ a 0.8333333333333334)) 1.0))))
(/
x
(+
x
(* y (+ (* 2.0 (* (/ -0.6666666666666666 t) c)) 1.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1.26e-11) {
tmp = 1.0;
} else if (c <= -2.4e-116) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (c <= -6e-306) {
tmp = 1.0;
} else if (c <= 3.2e-98) {
tmp = x / (x + (y * ((b / (t / 1.3333333333333333)) + 1.0)));
} else if (c <= 1.4e+96) {
tmp = 1.0;
} else if (c <= 6.5e+130) {
tmp = x / (x + (y * (((2.0 * c) * (a + 0.8333333333333334)) + 1.0)));
} else {
tmp = x / (x + (y * ((2.0 * ((-0.6666666666666666 / t) * c)) + 1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-1.26d-11)) then
tmp = 1.0d0
else if (c <= (-2.4d-116)) then
tmp = x / (x + (y * (((-2.0d0) * (b * (a + 0.8333333333333334d0))) + 1.0d0)))
else if (c <= (-6d-306)) then
tmp = 1.0d0
else if (c <= 3.2d-98) then
tmp = x / (x + (y * ((b / (t / 1.3333333333333333d0)) + 1.0d0)))
else if (c <= 1.4d+96) then
tmp = 1.0d0
else if (c <= 6.5d+130) then
tmp = x / (x + (y * (((2.0d0 * c) * (a + 0.8333333333333334d0)) + 1.0d0)))
else
tmp = x / (x + (y * ((2.0d0 * (((-0.6666666666666666d0) / t) * c)) + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1.26e-11) {
tmp = 1.0;
} else if (c <= -2.4e-116) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (c <= -6e-306) {
tmp = 1.0;
} else if (c <= 3.2e-98) {
tmp = x / (x + (y * ((b / (t / 1.3333333333333333)) + 1.0)));
} else if (c <= 1.4e+96) {
tmp = 1.0;
} else if (c <= 6.5e+130) {
tmp = x / (x + (y * (((2.0 * c) * (a + 0.8333333333333334)) + 1.0)));
} else {
tmp = x / (x + (y * ((2.0 * ((-0.6666666666666666 / t) * c)) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -1.26e-11: tmp = 1.0 elif c <= -2.4e-116: tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))) elif c <= -6e-306: tmp = 1.0 elif c <= 3.2e-98: tmp = x / (x + (y * ((b / (t / 1.3333333333333333)) + 1.0))) elif c <= 1.4e+96: tmp = 1.0 elif c <= 6.5e+130: tmp = x / (x + (y * (((2.0 * c) * (a + 0.8333333333333334)) + 1.0))) else: tmp = x / (x + (y * ((2.0 * ((-0.6666666666666666 / t) * c)) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -1.26e-11) tmp = 1.0; elseif (c <= -2.4e-116) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))) + 1.0)))); elseif (c <= -6e-306) tmp = 1.0; elseif (c <= 3.2e-98) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(b / Float64(t / 1.3333333333333333)) + 1.0)))); elseif (c <= 1.4e+96) tmp = 1.0; elseif (c <= 6.5e+130) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(2.0 * c) * Float64(a + 0.8333333333333334)) + 1.0)))); else tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(Float64(-0.6666666666666666 / t) * c)) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -1.26e-11) tmp = 1.0; elseif (c <= -2.4e-116) tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))); elseif (c <= -6e-306) tmp = 1.0; elseif (c <= 3.2e-98) tmp = x / (x + (y * ((b / (t / 1.3333333333333333)) + 1.0))); elseif (c <= 1.4e+96) tmp = 1.0; elseif (c <= 6.5e+130) tmp = x / (x + (y * (((2.0 * c) * (a + 0.8333333333333334)) + 1.0))); else tmp = x / (x + (y * ((2.0 * ((-0.6666666666666666 / t) * c)) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -1.26e-11], 1.0, If[LessEqual[c, -2.4e-116], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -6e-306], 1.0, If[LessEqual[c, 3.2e-98], N[(x / N[(x + N[(y * N[(N[(b / N[(t / 1.3333333333333333), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.4e+96], 1.0, If[LessEqual[c, 6.5e+130], N[(x / N[(x + N[(y * N[(N[(N[(2.0 * c), $MachinePrecision] * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(N[(-0.6666666666666666 / t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.26 \cdot 10^{-11}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -2.4 \cdot 10^{-116}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{elif}\;c \leq -6 \cdot 10^{-306}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 3.2 \cdot 10^{-98}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\frac{b}{\frac{t}{1.3333333333333333}} + 1\right)}\\
\mathbf{elif}\;c \leq 1.4 \cdot 10^{+96}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 6.5 \cdot 10^{+130}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(2 \cdot c\right) \cdot \left(a + 0.8333333333333334\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(\frac{-0.6666666666666666}{t} \cdot c\right) + 1\right)}\\
\end{array}
\end{array}
if c < -1.26e-11 or -2.39999999999999993e-116 < c < -6.00000000000000048e-306 or 3.2000000000000001e-98 < c < 1.4e96Initial program 93.4%
Taylor expanded in a around inf 63.7%
Taylor expanded in a around 0 35.5%
associate-*r*35.5%
*-commutative35.5%
*-commutative35.5%
Simplified35.5%
Taylor expanded in x around inf 63.6%
if -1.26e-11 < c < -2.39999999999999993e-116Initial program 84.7%
Taylor expanded in b around inf 85.1%
associate-*r/85.1%
metadata-eval85.1%
+-commutative85.1%
Simplified85.1%
Taylor expanded in b around 0 62.9%
Taylor expanded in t around inf 55.6%
+-commutative55.6%
Simplified55.6%
if -6.00000000000000048e-306 < c < 3.2000000000000001e-98Initial program 92.7%
Taylor expanded in b around inf 83.3%
associate-*r/83.3%
metadata-eval83.3%
+-commutative83.3%
Simplified83.3%
Taylor expanded in t around 0 65.1%
associate-*r/65.1%
associate-*l/65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in b around 0 58.1%
*-commutative58.1%
associate-*l/58.1%
associate-/l*58.1%
Simplified58.1%
if 1.4e96 < c < 6.5e130Initial program 100.0%
Taylor expanded in c around inf 87.9%
+-commutative87.9%
associate-*r/87.9%
metadata-eval87.9%
associate-+r-87.9%
sub-neg87.9%
distribute-neg-frac87.9%
metadata-eval87.9%
Simplified87.9%
Taylor expanded in c around 0 75.8%
+-commutative75.8%
*-lft-identity75.8%
distribute-lft-in75.8%
metadata-eval75.8%
+-commutative75.8%
metadata-eval75.8%
cancel-sign-sub-inv75.8%
associate--r+75.8%
associate--r+75.8%
cancel-sign-sub-inv75.8%
metadata-eval75.8%
+-commutative75.8%
metadata-eval75.8%
distribute-lft-in75.8%
*-lft-identity75.8%
+-commutative75.8%
associate--l+75.8%
associate-*r/75.8%
metadata-eval75.8%
Simplified75.8%
Taylor expanded in t around inf 87.9%
associate-*r*87.9%
*-commutative87.9%
Simplified87.9%
if 6.5e130 < c Initial program 84.4%
Taylor expanded in c around inf 93.9%
+-commutative93.9%
associate-*r/93.9%
metadata-eval93.9%
associate-+r-93.9%
sub-neg93.9%
distribute-neg-frac93.9%
metadata-eval93.9%
Simplified93.9%
Taylor expanded in c around 0 60.8%
+-commutative60.8%
*-lft-identity60.8%
distribute-lft-in60.8%
metadata-eval60.8%
+-commutative60.8%
metadata-eval60.8%
cancel-sign-sub-inv60.8%
associate--r+60.8%
associate--r+60.8%
cancel-sign-sub-inv60.8%
metadata-eval60.8%
+-commutative60.8%
metadata-eval60.8%
distribute-lft-in60.8%
*-lft-identity60.8%
+-commutative60.8%
associate--l+60.8%
associate-*r/60.8%
metadata-eval60.8%
Simplified60.8%
Taylor expanded in t around 0 51.6%
*-commutative51.6%
associate-*l/51.6%
associate-*r/51.6%
Simplified51.6%
Final simplification61.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -1.6e-11)
1.0
(if (<= c -7.2e-114)
(/ x (+ x (* y (+ (* -2.0 (* b (+ a 0.8333333333333334))) 1.0))))
(if (<= c -3.4e-299)
1.0
(if (<= c 3.6e-98)
(/ x (+ x (* y (+ (/ b (/ t 1.3333333333333333)) 1.0))))
(if (<= c 1.12e+169)
1.0
(/
x
(+ x (* y (+ (* 2.0 (* (/ -0.6666666666666666 t) c)) 1.0))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1.6e-11) {
tmp = 1.0;
} else if (c <= -7.2e-114) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (c <= -3.4e-299) {
tmp = 1.0;
} else if (c <= 3.6e-98) {
tmp = x / (x + (y * ((b / (t / 1.3333333333333333)) + 1.0)));
} else if (c <= 1.12e+169) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((2.0 * ((-0.6666666666666666 / t) * c)) + 1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-1.6d-11)) then
tmp = 1.0d0
else if (c <= (-7.2d-114)) then
tmp = x / (x + (y * (((-2.0d0) * (b * (a + 0.8333333333333334d0))) + 1.0d0)))
else if (c <= (-3.4d-299)) then
tmp = 1.0d0
else if (c <= 3.6d-98) then
tmp = x / (x + (y * ((b / (t / 1.3333333333333333d0)) + 1.0d0)))
else if (c <= 1.12d+169) then
tmp = 1.0d0
else
tmp = x / (x + (y * ((2.0d0 * (((-0.6666666666666666d0) / t) * c)) + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1.6e-11) {
tmp = 1.0;
} else if (c <= -7.2e-114) {
tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0)));
} else if (c <= -3.4e-299) {
tmp = 1.0;
} else if (c <= 3.6e-98) {
tmp = x / (x + (y * ((b / (t / 1.3333333333333333)) + 1.0)));
} else if (c <= 1.12e+169) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((2.0 * ((-0.6666666666666666 / t) * c)) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -1.6e-11: tmp = 1.0 elif c <= -7.2e-114: tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))) elif c <= -3.4e-299: tmp = 1.0 elif c <= 3.6e-98: tmp = x / (x + (y * ((b / (t / 1.3333333333333333)) + 1.0))) elif c <= 1.12e+169: tmp = 1.0 else: tmp = x / (x + (y * ((2.0 * ((-0.6666666666666666 / t) * c)) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -1.6e-11) tmp = 1.0; elseif (c <= -7.2e-114) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))) + 1.0)))); elseif (c <= -3.4e-299) tmp = 1.0; elseif (c <= 3.6e-98) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(b / Float64(t / 1.3333333333333333)) + 1.0)))); elseif (c <= 1.12e+169) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(Float64(-0.6666666666666666 / t) * c)) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -1.6e-11) tmp = 1.0; elseif (c <= -7.2e-114) tmp = x / (x + (y * ((-2.0 * (b * (a + 0.8333333333333334))) + 1.0))); elseif (c <= -3.4e-299) tmp = 1.0; elseif (c <= 3.6e-98) tmp = x / (x + (y * ((b / (t / 1.3333333333333333)) + 1.0))); elseif (c <= 1.12e+169) tmp = 1.0; else tmp = x / (x + (y * ((2.0 * ((-0.6666666666666666 / t) * c)) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -1.6e-11], 1.0, If[LessEqual[c, -7.2e-114], N[(x / N[(x + N[(y * N[(N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.4e-299], 1.0, If[LessEqual[c, 3.6e-98], N[(x / N[(x + N[(y * N[(N[(b / N[(t / 1.3333333333333333), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.12e+169], 1.0, N[(x / N[(x + N[(y * N[(N[(2.0 * N[(N[(-0.6666666666666666 / t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.6 \cdot 10^{-11}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -7.2 \cdot 10^{-114}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right) + 1\right)}\\
\mathbf{elif}\;c \leq -3.4 \cdot 10^{-299}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 3.6 \cdot 10^{-98}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\frac{b}{\frac{t}{1.3333333333333333}} + 1\right)}\\
\mathbf{elif}\;c \leq 1.12 \cdot 10^{+169}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(\frac{-0.6666666666666666}{t} \cdot c\right) + 1\right)}\\
\end{array}
\end{array}
if c < -1.59999999999999997e-11 or -7.20000000000000036e-114 < c < -3.3999999999999998e-299 or 3.6000000000000002e-98 < c < 1.11999999999999996e169Initial program 92.7%
Taylor expanded in a around inf 63.3%
Taylor expanded in a around 0 35.8%
associate-*r*35.8%
*-commutative35.8%
*-commutative35.8%
Simplified35.8%
Taylor expanded in x around inf 61.4%
if -1.59999999999999997e-11 < c < -7.20000000000000036e-114Initial program 84.7%
Taylor expanded in b around inf 85.1%
associate-*r/85.1%
metadata-eval85.1%
+-commutative85.1%
Simplified85.1%
Taylor expanded in b around 0 62.9%
Taylor expanded in t around inf 55.6%
+-commutative55.6%
Simplified55.6%
if -3.3999999999999998e-299 < c < 3.6000000000000002e-98Initial program 92.7%
Taylor expanded in b around inf 83.3%
associate-*r/83.3%
metadata-eval83.3%
+-commutative83.3%
Simplified83.3%
Taylor expanded in t around 0 65.1%
associate-*r/65.1%
associate-*l/65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in b around 0 58.1%
*-commutative58.1%
associate-*l/58.1%
associate-/l*58.1%
Simplified58.1%
if 1.11999999999999996e169 < c Initial program 88.5%
Taylor expanded in c around inf 96.3%
+-commutative96.3%
associate-*r/96.3%
metadata-eval96.3%
associate-+r-96.3%
sub-neg96.3%
distribute-neg-frac96.3%
metadata-eval96.3%
Simplified96.3%
Taylor expanded in c around 0 70.2%
+-commutative70.2%
*-lft-identity70.2%
distribute-lft-in70.2%
metadata-eval70.2%
+-commutative70.2%
metadata-eval70.2%
cancel-sign-sub-inv70.2%
associate--r+70.2%
associate--r+70.2%
cancel-sign-sub-inv70.2%
metadata-eval70.2%
+-commutative70.2%
metadata-eval70.2%
distribute-lft-in70.2%
*-lft-identity70.2%
+-commutative70.2%
associate--l+70.2%
associate-*r/70.2%
metadata-eval70.2%
Simplified70.2%
Taylor expanded in t around 0 59.0%
*-commutative59.0%
associate-*l/59.0%
associate-*r/59.0%
Simplified59.0%
Final simplification60.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y -3.4e+187)
(/ x (* y (+ (* 2.0 (* a (- c b))) 1.0)))
(if (<= y 9.6e+259)
1.0
(/ x (+ x (* y (+ (/ b (/ t 1.3333333333333333)) 1.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -3.4e+187) {
tmp = x / (y * ((2.0 * (a * (c - b))) + 1.0));
} else if (y <= 9.6e+259) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((b / (t / 1.3333333333333333)) + 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 <= (-3.4d+187)) then
tmp = x / (y * ((2.0d0 * (a * (c - b))) + 1.0d0))
else if (y <= 9.6d+259) then
tmp = 1.0d0
else
tmp = x / (x + (y * ((b / (t / 1.3333333333333333d0)) + 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 <= -3.4e+187) {
tmp = x / (y * ((2.0 * (a * (c - b))) + 1.0));
} else if (y <= 9.6e+259) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((b / (t / 1.3333333333333333)) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -3.4e+187: tmp = x / (y * ((2.0 * (a * (c - b))) + 1.0)) elif y <= 9.6e+259: tmp = 1.0 else: tmp = x / (x + (y * ((b / (t / 1.3333333333333333)) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -3.4e+187) tmp = Float64(x / Float64(y * Float64(Float64(2.0 * Float64(a * Float64(c - b))) + 1.0))); elseif (y <= 9.6e+259) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(b / Float64(t / 1.3333333333333333)) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= -3.4e+187) tmp = x / (y * ((2.0 * (a * (c - b))) + 1.0)); elseif (y <= 9.6e+259) tmp = 1.0; else tmp = x / (x + (y * ((b / (t / 1.3333333333333333)) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -3.4e+187], N[(x / N[(y * N[(N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.6e+259], 1.0, N[(x / N[(x + N[(y * N[(N[(b / N[(t / 1.3333333333333333), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.4 \cdot 10^{+187}:\\
\;\;\;\;\frac{x}{y \cdot \left(2 \cdot \left(a \cdot \left(c - b\right)\right) + 1\right)}\\
\mathbf{elif}\;y \leq 9.6 \cdot 10^{+259}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\frac{b}{\frac{t}{1.3333333333333333}} + 1\right)}\\
\end{array}
\end{array}
if y < -3.4e187Initial program 93.6%
Taylor expanded in a around inf 79.1%
Taylor expanded in a around 0 60.1%
associate-*r*60.1%
*-commutative60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in y around inf 55.9%
if -3.4e187 < y < 9.5999999999999999e259Initial program 90.6%
Taylor expanded in a around inf 60.1%
Taylor expanded in a around 0 36.3%
associate-*r*36.3%
*-commutative36.3%
*-commutative36.3%
Simplified36.3%
Taylor expanded in x around inf 53.2%
if 9.5999999999999999e259 < y Initial program 100.0%
Taylor expanded in b around inf 78.3%
associate-*r/78.3%
metadata-eval78.3%
+-commutative78.3%
Simplified78.3%
Taylor expanded in t around 0 56.8%
associate-*r/56.8%
associate-*l/56.8%
*-commutative56.8%
Simplified56.8%
Taylor expanded in b around 0 89.1%
*-commutative89.1%
associate-*l/89.1%
associate-/l*89.1%
Simplified89.1%
Final simplification55.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y -3.8e+167)
(/ x (+ y (+ x (* 2.0 (* a (* y c))))))
(if (<= y 4.6e+264)
1.0
(/ x (+ x (* y (+ (/ b (/ t 1.3333333333333333)) 1.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -3.8e+167) {
tmp = x / (y + (x + (2.0 * (a * (y * c)))));
} else if (y <= 4.6e+264) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((b / (t / 1.3333333333333333)) + 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 <= (-3.8d+167)) then
tmp = x / (y + (x + (2.0d0 * (a * (y * c)))))
else if (y <= 4.6d+264) then
tmp = 1.0d0
else
tmp = x / (x + (y * ((b / (t / 1.3333333333333333d0)) + 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 <= -3.8e+167) {
tmp = x / (y + (x + (2.0 * (a * (y * c)))));
} else if (y <= 4.6e+264) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((b / (t / 1.3333333333333333)) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -3.8e+167: tmp = x / (y + (x + (2.0 * (a * (y * c))))) elif y <= 4.6e+264: tmp = 1.0 else: tmp = x / (x + (y * ((b / (t / 1.3333333333333333)) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -3.8e+167) tmp = Float64(x / Float64(y + Float64(x + Float64(2.0 * Float64(a * Float64(y * c)))))); elseif (y <= 4.6e+264) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(b / Float64(t / 1.3333333333333333)) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= -3.8e+167) tmp = x / (y + (x + (2.0 * (a * (y * c))))); elseif (y <= 4.6e+264) tmp = 1.0; else tmp = x / (x + (y * ((b / (t / 1.3333333333333333)) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -3.8e+167], N[(x / N[(y + N[(x + N[(2.0 * N[(a * N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.6e+264], 1.0, N[(x / N[(x + N[(y * N[(N[(b / N[(t / 1.3333333333333333), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.8 \cdot 10^{+167}:\\
\;\;\;\;\frac{x}{y + \left(x + 2 \cdot \left(a \cdot \left(y \cdot c\right)\right)\right)}\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{+264}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\frac{b}{\frac{t}{1.3333333333333333}} + 1\right)}\\
\end{array}
\end{array}
if y < -3.79999999999999994e167Initial program 90.5%
Taylor expanded in a around inf 75.9%
Taylor expanded in a around 0 61.0%
associate-*r*61.0%
*-commutative61.0%
*-commutative61.0%
Simplified61.0%
Taylor expanded in b around 0 58.0%
associate-+r+58.0%
+-commutative58.0%
associate-+l+58.0%
Simplified58.0%
if -3.79999999999999994e167 < y < 4.6000000000000003e264Initial program 91.3%
Taylor expanded in a around inf 60.4%
Taylor expanded in a around 0 35.4%
associate-*r*35.4%
*-commutative35.4%
*-commutative35.4%
Simplified35.4%
Taylor expanded in x around inf 53.3%
if 4.6000000000000003e264 < y Initial program 100.0%
Taylor expanded in b around inf 78.3%
associate-*r/78.3%
metadata-eval78.3%
+-commutative78.3%
Simplified78.3%
Taylor expanded in t around 0 56.8%
associate-*r/56.8%
associate-*l/56.8%
*-commutative56.8%
Simplified56.8%
Taylor expanded in b around 0 89.1%
*-commutative89.1%
associate-*l/89.1%
associate-/l*89.1%
Simplified89.1%
Final simplification55.5%
(FPCore (x y z t a b c) :precision binary64 (if (<= y -6.5e+184) (/ x (* y (+ (* 2.0 (* a c)) 1.0))) (if (<= y 2.1e+260) 1.0 (/ x (+ x (* 1.3333333333333333 (* y (/ b t))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -6.5e+184) {
tmp = x / (y * ((2.0 * (a * c)) + 1.0));
} else if (y <= 2.1e+260) {
tmp = 1.0;
} else {
tmp = x / (x + (1.3333333333333333 * (y * (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 <= (-6.5d+184)) then
tmp = x / (y * ((2.0d0 * (a * c)) + 1.0d0))
else if (y <= 2.1d+260) then
tmp = 1.0d0
else
tmp = x / (x + (1.3333333333333333d0 * (y * (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 <= -6.5e+184) {
tmp = x / (y * ((2.0 * (a * c)) + 1.0));
} else if (y <= 2.1e+260) {
tmp = 1.0;
} else {
tmp = x / (x + (1.3333333333333333 * (y * (b / t))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -6.5e+184: tmp = x / (y * ((2.0 * (a * c)) + 1.0)) elif y <= 2.1e+260: tmp = 1.0 else: tmp = x / (x + (1.3333333333333333 * (y * (b / t)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -6.5e+184) tmp = Float64(x / Float64(y * Float64(Float64(2.0 * Float64(a * c)) + 1.0))); elseif (y <= 2.1e+260) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(1.3333333333333333 * Float64(y * Float64(b / t))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= -6.5e+184) tmp = x / (y * ((2.0 * (a * c)) + 1.0)); elseif (y <= 2.1e+260) tmp = 1.0; else tmp = x / (x + (1.3333333333333333 * (y * (b / t)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -6.5e+184], N[(x / N[(y * N[(N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.1e+260], 1.0, N[(x / N[(x + N[(1.3333333333333333 * N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.5 \cdot 10^{+184}:\\
\;\;\;\;\frac{x}{y \cdot \left(2 \cdot \left(a \cdot c\right) + 1\right)}\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{+260}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + 1.3333333333333333 \cdot \left(y \cdot \frac{b}{t}\right)}\\
\end{array}
\end{array}
if y < -6.50000000000000002e184Initial program 93.6%
Taylor expanded in a around inf 79.1%
Taylor expanded in a around 0 60.1%
associate-*r*60.1%
*-commutative60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in y around inf 55.9%
associate-/r*43.6%
+-commutative43.6%
associate-*r*43.6%
*-commutative43.6%
*-commutative43.6%
fma-def43.6%
*-commutative43.6%
Simplified43.6%
Taylor expanded in b around 0 52.5%
*-commutative52.5%
Simplified52.5%
if -6.50000000000000002e184 < y < 2.10000000000000012e260Initial program 90.6%
Taylor expanded in a around inf 60.1%
Taylor expanded in a around 0 36.3%
associate-*r*36.3%
*-commutative36.3%
*-commutative36.3%
Simplified36.3%
Taylor expanded in x around inf 53.2%
if 2.10000000000000012e260 < y Initial program 100.0%
Taylor expanded in b around inf 78.3%
associate-*r/78.3%
metadata-eval78.3%
+-commutative78.3%
Simplified78.3%
Taylor expanded in b around 0 89.1%
Taylor expanded in t around 0 78.7%
associate-/l*78.7%
Simplified78.7%
associate-/r/78.7%
Applied egg-rr78.7%
Final simplification54.0%
(FPCore (x y z t a b c) :precision binary64 (if (<= y -3.8e+187) (/ x (* y (+ (* 2.0 (* a c)) 1.0))) (if (<= y 2e+237) 1.0 (/ x (+ x (* 1.3333333333333333 (/ b (/ t y))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -3.8e+187) {
tmp = x / (y * ((2.0 * (a * c)) + 1.0));
} else if (y <= 2e+237) {
tmp = 1.0;
} else {
tmp = x / (x + (1.3333333333333333 * (b / (t / 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 <= (-3.8d+187)) then
tmp = x / (y * ((2.0d0 * (a * c)) + 1.0d0))
else if (y <= 2d+237) then
tmp = 1.0d0
else
tmp = x / (x + (1.3333333333333333d0 * (b / (t / 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 <= -3.8e+187) {
tmp = x / (y * ((2.0 * (a * c)) + 1.0));
} else if (y <= 2e+237) {
tmp = 1.0;
} else {
tmp = x / (x + (1.3333333333333333 * (b / (t / y))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -3.8e+187: tmp = x / (y * ((2.0 * (a * c)) + 1.0)) elif y <= 2e+237: tmp = 1.0 else: tmp = x / (x + (1.3333333333333333 * (b / (t / y)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -3.8e+187) tmp = Float64(x / Float64(y * Float64(Float64(2.0 * Float64(a * c)) + 1.0))); elseif (y <= 2e+237) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(1.3333333333333333 * Float64(b / Float64(t / y))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= -3.8e+187) tmp = x / (y * ((2.0 * (a * c)) + 1.0)); elseif (y <= 2e+237) tmp = 1.0; else tmp = x / (x + (1.3333333333333333 * (b / (t / y)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -3.8e+187], N[(x / N[(y * N[(N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e+237], 1.0, N[(x / N[(x + N[(1.3333333333333333 * N[(b / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.8 \cdot 10^{+187}:\\
\;\;\;\;\frac{x}{y \cdot \left(2 \cdot \left(a \cdot c\right) + 1\right)}\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+237}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + 1.3333333333333333 \cdot \frac{b}{\frac{t}{y}}}\\
\end{array}
\end{array}
if y < -3.8e187Initial program 93.6%
Taylor expanded in a around inf 79.1%
Taylor expanded in a around 0 60.1%
associate-*r*60.1%
*-commutative60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in y around inf 55.9%
associate-/r*43.6%
+-commutative43.6%
associate-*r*43.6%
*-commutative43.6%
*-commutative43.6%
fma-def43.6%
*-commutative43.6%
Simplified43.6%
Taylor expanded in b around 0 52.5%
*-commutative52.5%
Simplified52.5%
if -3.8e187 < y < 1.99999999999999988e237Initial program 90.5%
Taylor expanded in a around inf 60.7%
Taylor expanded in a around 0 36.2%
associate-*r*36.2%
*-commutative36.2%
*-commutative36.2%
Simplified36.2%
Taylor expanded in x around inf 53.3%
if 1.99999999999999988e237 < y Initial program 100.0%
Taylor expanded in b around inf 73.4%
associate-*r/73.4%
metadata-eval73.4%
+-commutative73.4%
Simplified73.4%
Taylor expanded in b around 0 82.2%
Taylor expanded in t around 0 73.8%
associate-/l*73.8%
Simplified73.8%
Final simplification54.0%
(FPCore (x y z t a b c) :precision binary64 (if (<= y -6.5e+184) (/ x (* y (+ (* 2.0 (* a (- c b))) 1.0))) (if (<= y 3.9e+253) 1.0 (/ x (+ x (* 1.3333333333333333 (/ b (/ t y))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -6.5e+184) {
tmp = x / (y * ((2.0 * (a * (c - b))) + 1.0));
} else if (y <= 3.9e+253) {
tmp = 1.0;
} else {
tmp = x / (x + (1.3333333333333333 * (b / (t / 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 <= (-6.5d+184)) then
tmp = x / (y * ((2.0d0 * (a * (c - b))) + 1.0d0))
else if (y <= 3.9d+253) then
tmp = 1.0d0
else
tmp = x / (x + (1.3333333333333333d0 * (b / (t / 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 <= -6.5e+184) {
tmp = x / (y * ((2.0 * (a * (c - b))) + 1.0));
} else if (y <= 3.9e+253) {
tmp = 1.0;
} else {
tmp = x / (x + (1.3333333333333333 * (b / (t / y))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -6.5e+184: tmp = x / (y * ((2.0 * (a * (c - b))) + 1.0)) elif y <= 3.9e+253: tmp = 1.0 else: tmp = x / (x + (1.3333333333333333 * (b / (t / y)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -6.5e+184) tmp = Float64(x / Float64(y * Float64(Float64(2.0 * Float64(a * Float64(c - b))) + 1.0))); elseif (y <= 3.9e+253) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(1.3333333333333333 * Float64(b / Float64(t / y))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= -6.5e+184) tmp = x / (y * ((2.0 * (a * (c - b))) + 1.0)); elseif (y <= 3.9e+253) tmp = 1.0; else tmp = x / (x + (1.3333333333333333 * (b / (t / y)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -6.5e+184], N[(x / N[(y * N[(N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.9e+253], 1.0, N[(x / N[(x + N[(1.3333333333333333 * N[(b / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.5 \cdot 10^{+184}:\\
\;\;\;\;\frac{x}{y \cdot \left(2 \cdot \left(a \cdot \left(c - b\right)\right) + 1\right)}\\
\mathbf{elif}\;y \leq 3.9 \cdot 10^{+253}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + 1.3333333333333333 \cdot \frac{b}{\frac{t}{y}}}\\
\end{array}
\end{array}
if y < -6.50000000000000002e184Initial program 93.6%
Taylor expanded in a around inf 79.1%
Taylor expanded in a around 0 60.1%
associate-*r*60.1%
*-commutative60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in y around inf 55.9%
if -6.50000000000000002e184 < y < 3.9000000000000001e253Initial program 90.5%
Taylor expanded in a around inf 60.7%
Taylor expanded in a around 0 36.2%
associate-*r*36.2%
*-commutative36.2%
*-commutative36.2%
Simplified36.2%
Taylor expanded in x around inf 53.3%
if 3.9000000000000001e253 < y Initial program 100.0%
Taylor expanded in b around inf 73.4%
associate-*r/73.4%
metadata-eval73.4%
+-commutative73.4%
Simplified73.4%
Taylor expanded in b around 0 82.2%
Taylor expanded in t around 0 73.8%
associate-/l*73.8%
Simplified73.8%
Final simplification54.6%
(FPCore (x y z t a b c) :precision binary64 (if (<= y -4e+187) (/ x (* y (+ (* 2.0 (* a c)) 1.0))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -4e+187) {
tmp = x / (y * ((2.0 * (a * c)) + 1.0));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= (-4d+187)) then
tmp = x / (y * ((2.0d0 * (a * c)) + 1.0d0))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -4e+187) {
tmp = x / (y * ((2.0 * (a * c)) + 1.0));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -4e+187: tmp = x / (y * ((2.0 * (a * c)) + 1.0)) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -4e+187) tmp = Float64(x / Float64(y * Float64(Float64(2.0 * Float64(a * c)) + 1.0))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= -4e+187) tmp = x / (y * ((2.0 * (a * c)) + 1.0)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -4e+187], N[(x / N[(y * N[(N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4 \cdot 10^{+187}:\\
\;\;\;\;\frac{x}{y \cdot \left(2 \cdot \left(a \cdot c\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -3.99999999999999963e187Initial program 93.6%
Taylor expanded in a around inf 79.1%
Taylor expanded in a around 0 60.1%
associate-*r*60.1%
*-commutative60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in y around inf 55.9%
associate-/r*43.6%
+-commutative43.6%
associate-*r*43.6%
*-commutative43.6%
*-commutative43.6%
fma-def43.6%
*-commutative43.6%
Simplified43.6%
Taylor expanded in b around 0 52.5%
*-commutative52.5%
Simplified52.5%
if -3.99999999999999963e187 < y Initial program 91.0%
Taylor expanded in a around inf 60.4%
Taylor expanded in a around 0 38.1%
associate-*r*38.1%
*-commutative38.1%
*-commutative38.1%
Simplified38.1%
Taylor expanded in x around inf 51.6%
Final simplification51.7%
(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 91.5%
Taylor expanded in a around inf 63.8%
Taylor expanded in a around 0 42.0%
associate-*r*42.0%
*-commutative42.0%
*-commutative42.0%
Simplified42.0%
Taylor expanded in x around inf 49.7%
Final simplification49.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 2023301
(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)))))))))))