
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 1.55e-292)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(+
(/ z (/ t (sqrt (+ t a))))
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.55e-292) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else {
tmp = x / (x + (y * pow(exp(2.0), ((z / (t / sqrt((t + a)))) + ((b - c) * ((2.0 / (t * 3.0)) - (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.55d-292) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else
tmp = x / (x + (y * (exp(2.0d0) ** ((z / (t / sqrt((t + a)))) + ((b - c) * ((2.0d0 / (t * 3.0d0)) - (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.55e-292) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), ((z / (t / Math.sqrt((t + a)))) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1.55e-292: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) else: tmp = x / (x + (y * math.pow(math.exp(2.0), ((z / (t / math.sqrt((t + a)))) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1.55e-292) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(Float64(z / Float64(t / sqrt(Float64(t + a)))) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - 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.55e-292) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); else tmp = x / (x + (y * (exp(2.0) ^ ((z / (t / sqrt((t + a)))) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 1.55e-292], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(z / N[(t / N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.55 \cdot 10^{-292}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(\frac{z}{\frac{t}{\sqrt{t + a}}} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if t < 1.55e-292Initial program 81.0%
Taylor expanded in t around 0 95.4%
if 1.55e-292 < t Initial program 94.9%
exp-prod94.9%
associate-/l*97.9%
metadata-eval97.9%
Simplified97.9%
Final simplification97.3%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
(- b c)
(+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a))
(* (sqrt (+ t a)) (/ z t))))
x)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / fma(y, pow(exp(2.0), fma((b - c), ((0.6666666666666666 / t) + (-0.8333333333333334 - a)), (sqrt((t + a)) * (z / t)))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(Float64(b - c), Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a)), Float64(sqrt(Float64(t + a)) * Float64(z / t)))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(b - c), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision] + N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(b - c, \frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right), \sqrt{t + a} \cdot \frac{z}{t}\right)\right)}, x\right)}
\end{array}
Initial program 91.5%
+-commutative91.5%
fma-def91.5%
Simplified96.2%
Final simplification96.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* (sqrt (+ t a)) z) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((sqrt((t + a)) * z) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / 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((t + a)) * z) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((math.sqrt((t + a)) * z) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(sqrt(Float64(t + a)) * z) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((sqrt((t + a)) * z) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\sqrt{t + a} \cdot z}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\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.8%
Final simplification96.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 4.6e-299)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 2e+153)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (- b c) (- (/ 0.6666666666666666 t) 0.8333333333333334))))))))
(/ x (+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 4.6e-299) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 2e+153) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 4.6d-299) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 2d+153) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((b - c) * ((0.6666666666666666d0 / t) - 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 4.6e-299) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 2e+153) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 4.6e-299: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 2e+153: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 4.6e-299) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); elseif (t <= 2e+153) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(b - c) * Float64(Float64(0.6666666666666666 / t) - 0.8333333333333334)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 4.6e-299) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 2e+153) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 4.6e-299], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e+153], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 4.6 \cdot 10^{-299}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+153}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(b - c\right) \cdot \left(\frac{0.6666666666666666}{t} - 0.8333333333333334\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < 4.6000000000000001e-299Initial program 80.7%
Taylor expanded in t around 0 95.4%
if 4.6000000000000001e-299 < t < 2e153Initial program 96.1%
Taylor expanded in a around 0 92.6%
*-commutative92.6%
associate-*r/92.6%
metadata-eval92.6%
Simplified92.6%
if 2e153 < t Initial program 92.4%
Taylor expanded in t around inf 93.9%
mul-1-neg93.9%
distribute-rgt-neg-in93.9%
distribute-neg-in93.9%
metadata-eval93.9%
sub-neg93.9%
Simplified93.9%
Final simplification93.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a)))))))))
(if (<= t -3.1e-246)
t_1
(if (<= t 4.2e-257)
(/ x (+ x (* y (exp (* 2.0 (* (/ z t) (sqrt a)))))))
(if (<= t 4e-197)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 3.2e-182)
(/
x
(+
x
(*
y
(-
1.0
(*
2.0
(*
c
(-
(cbrt
(*
(/ 0.6666666666666666 t)
(* (/ 0.6666666666666666 t) (/ 0.6666666666666666 t))))
(+ a 0.8333333333333334))))))))
(if (<= t 6.5e-75)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
c
(+ a (- 0.8333333333333334 (/ 0.6666666666666666 t)))))))))
(if (<= t 0.0072)
(/ x (+ x (* y (exp (* 2.0 (* z (sqrt (/ 1.0 t))))))))
(if (<= t 0.021)
(/ x (+ x (* y (+ (* 2.0 (* c a)) 1.0))))
t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
double tmp;
if (t <= -3.1e-246) {
tmp = t_1;
} else if (t <= 4.2e-257) {
tmp = x / (x + (y * exp((2.0 * ((z / t) * sqrt(a))))));
} else if (t <= 4e-197) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 3.2e-182) {
tmp = x / (x + (y * (1.0 - (2.0 * (c * (cbrt(((0.6666666666666666 / t) * ((0.6666666666666666 / t) * (0.6666666666666666 / t)))) - (a + 0.8333333333333334)))))));
} else if (t <= 6.5e-75) {
tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 - (0.6666666666666666 / t))))))));
} else if (t <= 0.0072) {
tmp = x / (x + (y * exp((2.0 * (z * sqrt((1.0 / t)))))));
} else if (t <= 0.021) {
tmp = x / (x + (y * ((2.0 * (c * a)) + 1.0)));
} else {
tmp = t_1;
}
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 * ((b - c) * (-0.8333333333333334 - a))))));
double tmp;
if (t <= -3.1e-246) {
tmp = t_1;
} else if (t <= 4.2e-257) {
tmp = x / (x + (y * Math.exp((2.0 * ((z / t) * Math.sqrt(a))))));
} else if (t <= 4e-197) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 3.2e-182) {
tmp = x / (x + (y * (1.0 - (2.0 * (c * (Math.cbrt(((0.6666666666666666 / t) * ((0.6666666666666666 / t) * (0.6666666666666666 / t)))) - (a + 0.8333333333333334)))))));
} else if (t <= 6.5e-75) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + (0.8333333333333334 - (0.6666666666666666 / t))))))));
} else if (t <= 0.0072) {
tmp = x / (x + (y * Math.exp((2.0 * (z * Math.sqrt((1.0 / t)))))));
} else if (t <= 0.021) {
tmp = x / (x + (y * ((2.0 * (c * a)) + 1.0)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))) tmp = 0.0 if (t <= -3.1e-246) tmp = t_1; elseif (t <= 4.2e-257) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z / t) * sqrt(a))))))); elseif (t <= 4e-197) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 3.2e-182) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(2.0 * Float64(c * Float64(cbrt(Float64(Float64(0.6666666666666666 / t) * Float64(Float64(0.6666666666666666 / t) * Float64(0.6666666666666666 / t)))) - Float64(a + 0.8333333333333334)))))))); elseif (t <= 6.5e-75) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 - Float64(0.6666666666666666 / t))))))))); elseif (t <= 0.0072) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(z * sqrt(Float64(1.0 / t)))))))); elseif (t <= 0.021) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(c * a)) + 1.0)))); else tmp = t_1; 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[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.1e-246], t$95$1, If[LessEqual[t, 4.2e-257], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z / t), $MachinePrecision] * N[Sqrt[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4e-197], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.2e-182], N[(x / N[(x + N[(y * N[(1.0 - N[(2.0 * N[(c * N[(N[Power[N[(N[(0.6666666666666666 / t), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] * N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e-75], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.0072], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.021], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(c * a), $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^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{if}\;t \leq -3.1 \cdot 10^{-246}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-257}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z}{t} \cdot \sqrt{a}\right)}}\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-197}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{-182}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - 2 \cdot \left(c \cdot \left(\sqrt[3]{\frac{0.6666666666666666}{t} \cdot \left(\frac{0.6666666666666666}{t} \cdot \frac{0.6666666666666666}{t}\right)} - \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-75}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 - \frac{0.6666666666666666}{t}\right)\right)\right)}}\\
\mathbf{elif}\;t \leq 0.0072:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}}\right)}}\\
\mathbf{elif}\;t \leq 0.021:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(c \cdot a\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -3.1e-246 or 0.0210000000000000013 < t Initial program 91.0%
Taylor expanded in t around inf 89.8%
mul-1-neg89.8%
distribute-rgt-neg-in89.8%
distribute-neg-in89.8%
metadata-eval89.8%
sub-neg89.8%
Simplified89.8%
if -3.1e-246 < t < 4.2000000000000002e-257Initial program 79.2%
Taylor expanded in t around 0 95.8%
Taylor expanded in z around inf 75.7%
if 4.2000000000000002e-257 < t < 3.9999999999999999e-197Initial program 100.0%
Taylor expanded in t around 0 90.0%
Taylor expanded in a around 0 100.0%
if 3.9999999999999999e-197 < t < 3.20000000000000002e-182Initial program 80.0%
Taylor expanded in c around inf 61.3%
+-commutative61.3%
associate-*r/61.3%
metadata-eval61.3%
associate--l+61.3%
Simplified61.3%
Taylor expanded in c around 0 80.6%
div-inv80.6%
add-cbrt-cube100.0%
Applied egg-rr100.0%
associate-*l*100.0%
Simplified100.0%
if 3.20000000000000002e-182 < t < 6.5000000000000002e-75Initial program 96.0%
Taylor expanded in c around inf 79.1%
+-commutative79.1%
associate-*r/79.1%
metadata-eval79.1%
associate--l+79.1%
Simplified79.1%
if 6.5000000000000002e-75 < t < 0.0071999999999999998Initial program 100.0%
Taylor expanded in a around 0 100.0%
*-commutative100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in z around inf 86.9%
if 0.0071999999999999998 < t < 0.0210000000000000013Initial program 100.0%
Taylor expanded in a around inf 100.0%
Taylor expanded in b around 0 100.0%
Taylor expanded in c around 0 100.0%
Final simplification87.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 5.6e-170)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 0.175)
(/ x (+ x (* y (exp (* 2.0 (* z (sqrt (/ 1.0 t))))))))
(/ x (+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 5.6e-170) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 0.175) {
tmp = x / (x + (y * exp((2.0 * (z * sqrt((1.0 / t)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 5.6d-170) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 0.175d0) then
tmp = x / (x + (y * exp((2.0d0 * (z * sqrt((1.0d0 / t)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 5.6e-170) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 0.175) {
tmp = x / (x + (y * Math.exp((2.0 * (z * Math.sqrt((1.0 / t)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 5.6e-170: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 0.175: tmp = x / (x + (y * math.exp((2.0 * (z * math.sqrt((1.0 / t))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 5.6e-170) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); elseif (t <= 0.175) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(z * sqrt(Float64(1.0 / t)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 5.6e-170) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 0.175) tmp = x / (x + (y * exp((2.0 * (z * sqrt((1.0 / t))))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 5.6e-170], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.175], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 5.6 \cdot 10^{-170}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{elif}\;t \leq 0.175:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}}\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < 5.59999999999999991e-170Initial program 85.3%
Taylor expanded in t around 0 90.7%
if 5.59999999999999991e-170 < t < 0.17499999999999999Initial program 97.8%
Taylor expanded in a around 0 90.3%
*-commutative90.3%
associate-*r/90.3%
metadata-eval90.3%
Simplified90.3%
Taylor expanded in z around inf 81.2%
if 0.17499999999999999 < t Initial program 94.1%
Taylor expanded in t around inf 92.4%
mul-1-neg92.4%
distribute-rgt-neg-in92.4%
distribute-neg-in92.4%
metadata-eval92.4%
sub-neg92.4%
Simplified92.4%
Final simplification89.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a)))))))))
(if (<= t -3e-247)
t_1
(if (<= t 1.02e-257)
(/ x (+ x (* y (exp (* 2.0 (* (/ z t) (sqrt a)))))))
(if (<= t 6e-198)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 1.2e-182)
(/
x
(+
x
(*
y
(-
1.0
(*
2.0
(*
c
(-
(cbrt
(*
(/ 0.6666666666666666 t)
(* (/ 0.6666666666666666 t) (/ 0.6666666666666666 t))))
(+ a 0.8333333333333334))))))))
(if (<= t 0.1)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
c
(+ a (- 0.8333333333333334 (/ 0.6666666666666666 t)))))))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
double tmp;
if (t <= -3e-247) {
tmp = t_1;
} else if (t <= 1.02e-257) {
tmp = x / (x + (y * exp((2.0 * ((z / t) * sqrt(a))))));
} else if (t <= 6e-198) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 1.2e-182) {
tmp = x / (x + (y * (1.0 - (2.0 * (c * (cbrt(((0.6666666666666666 / t) * ((0.6666666666666666 / t) * (0.6666666666666666 / t)))) - (a + 0.8333333333333334)))))));
} else if (t <= 0.1) {
tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 - (0.6666666666666666 / t))))))));
} else {
tmp = t_1;
}
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 * ((b - c) * (-0.8333333333333334 - a))))));
double tmp;
if (t <= -3e-247) {
tmp = t_1;
} else if (t <= 1.02e-257) {
tmp = x / (x + (y * Math.exp((2.0 * ((z / t) * Math.sqrt(a))))));
} else if (t <= 6e-198) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 1.2e-182) {
tmp = x / (x + (y * (1.0 - (2.0 * (c * (Math.cbrt(((0.6666666666666666 / t) * ((0.6666666666666666 / t) * (0.6666666666666666 / t)))) - (a + 0.8333333333333334)))))));
} else if (t <= 0.1) {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + (0.8333333333333334 - (0.6666666666666666 / t))))))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))) tmp = 0.0 if (t <= -3e-247) tmp = t_1; elseif (t <= 1.02e-257) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z / t) * sqrt(a))))))); elseif (t <= 6e-198) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 1.2e-182) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(2.0 * Float64(c * Float64(cbrt(Float64(Float64(0.6666666666666666 / t) * Float64(Float64(0.6666666666666666 / t) * Float64(0.6666666666666666 / t)))) - Float64(a + 0.8333333333333334)))))))); elseif (t <= 0.1) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 - Float64(0.6666666666666666 / t))))))))); else tmp = t_1; 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[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3e-247], t$95$1, If[LessEqual[t, 1.02e-257], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z / t), $MachinePrecision] * N[Sqrt[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6e-198], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.2e-182], N[(x / N[(x + N[(y * N[(1.0 - N[(2.0 * N[(c * N[(N[Power[N[(N[(0.6666666666666666 / t), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] * N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.1], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{if}\;t \leq -3 \cdot 10^{-247}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{-257}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z}{t} \cdot \sqrt{a}\right)}}\\
\mathbf{elif}\;t \leq 6 \cdot 10^{-198}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-182}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - 2 \cdot \left(c \cdot \left(\sqrt[3]{\frac{0.6666666666666666}{t} \cdot \left(\frac{0.6666666666666666}{t} \cdot \frac{0.6666666666666666}{t}\right)} - \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{elif}\;t \leq 0.1:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 - \frac{0.6666666666666666}{t}\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -2.9999999999999997e-247 or 0.10000000000000001 < t Initial program 91.0%
Taylor expanded in t around inf 89.8%
mul-1-neg89.8%
distribute-rgt-neg-in89.8%
distribute-neg-in89.8%
metadata-eval89.8%
sub-neg89.8%
Simplified89.8%
if -2.9999999999999997e-247 < t < 1.0199999999999999e-257Initial program 79.2%
Taylor expanded in t around 0 95.8%
Taylor expanded in z around inf 75.7%
if 1.0199999999999999e-257 < t < 6.0000000000000002e-198Initial program 100.0%
Taylor expanded in t around 0 90.0%
Taylor expanded in a around 0 100.0%
if 6.0000000000000002e-198 < t < 1.1999999999999999e-182Initial program 80.0%
Taylor expanded in c around inf 61.3%
+-commutative61.3%
associate-*r/61.3%
metadata-eval61.3%
associate--l+61.3%
Simplified61.3%
Taylor expanded in c around 0 80.6%
div-inv80.6%
add-cbrt-cube100.0%
Applied egg-rr100.0%
associate-*l*100.0%
Simplified100.0%
if 1.1999999999999999e-182 < t < 0.10000000000000001Initial program 98.1%
Taylor expanded in c around inf 75.2%
+-commutative75.2%
associate-*r/75.2%
metadata-eval75.2%
associate--l+75.2%
Simplified75.2%
Final simplification86.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 1.3333333333333333 (/ b t)))))))
(t_2 (/ x (+ x (* y (exp (* c 1.6666666666666667)))))))
(if (<= t -1.05e-73)
t_2
(if (<= t -5e-275)
t_1
(if (<= t 6.2e-204)
1.0
(if (<= t 6.6e-170)
(/
x
(-
x
(*
y
(+
-1.0
(*
2.0
(*
c
(- (- (/ 0.6666666666666666 t) a) 0.8333333333333334)))))))
(if (<= t 2.3e-53) 1.0 (if (<= t 0.225) 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((1.3333333333333333 * (b / t)))));
double t_2 = x / (x + (y * exp((c * 1.6666666666666667))));
double tmp;
if (t <= -1.05e-73) {
tmp = t_2;
} else if (t <= -5e-275) {
tmp = t_1;
} else if (t <= 6.2e-204) {
tmp = 1.0;
} else if (t <= 6.6e-170) {
tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else if (t <= 2.3e-53) {
tmp = 1.0;
} else if (t <= 0.225) {
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((1.3333333333333333d0 * (b / t)))))
t_2 = x / (x + (y * exp((c * 1.6666666666666667d0))))
if (t <= (-1.05d-73)) then
tmp = t_2
else if (t <= (-5d-275)) then
tmp = t_1
else if (t <= 6.2d-204) then
tmp = 1.0d0
else if (t <= 6.6d-170) then
tmp = x / (x - (y * ((-1.0d0) + (2.0d0 * (c * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0))))))
else if (t <= 2.3d-53) then
tmp = 1.0d0
else if (t <= 0.225d0) 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((1.3333333333333333 * (b / t)))));
double t_2 = x / (x + (y * Math.exp((c * 1.6666666666666667))));
double tmp;
if (t <= -1.05e-73) {
tmp = t_2;
} else if (t <= -5e-275) {
tmp = t_1;
} else if (t <= 6.2e-204) {
tmp = 1.0;
} else if (t <= 6.6e-170) {
tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else if (t <= 2.3e-53) {
tmp = 1.0;
} else if (t <= 0.225) {
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((1.3333333333333333 * (b / t))))) t_2 = x / (x + (y * math.exp((c * 1.6666666666666667)))) tmp = 0 if t <= -1.05e-73: tmp = t_2 elif t <= -5e-275: tmp = t_1 elif t <= 6.2e-204: tmp = 1.0 elif t <= 6.6e-170: tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))) elif t <= 2.3e-53: tmp = 1.0 elif t <= 0.225: 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(1.3333333333333333 * Float64(b / t)))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))) tmp = 0.0 if (t <= -1.05e-73) tmp = t_2; elseif (t <= -5e-275) tmp = t_1; elseif (t <= 6.2e-204) tmp = 1.0; elseif (t <= 6.6e-170) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(2.0 * Float64(c * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334))))))); elseif (t <= 2.3e-53) tmp = 1.0; elseif (t <= 0.225) 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((1.3333333333333333 * (b / t))))); t_2 = x / (x + (y * exp((c * 1.6666666666666667)))); tmp = 0.0; if (t <= -1.05e-73) tmp = t_2; elseif (t <= -5e-275) tmp = t_1; elseif (t <= 6.2e-204) tmp = 1.0; elseif (t <= 6.6e-170) tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))); elseif (t <= 2.3e-53) tmp = 1.0; elseif (t <= 0.225) 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[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.05e-73], t$95$2, If[LessEqual[t, -5e-275], t$95$1, If[LessEqual[t, 6.2e-204], 1.0, If[LessEqual[t, 6.6e-170], N[(x / N[(x - N[(y * N[(-1.0 + N[(2.0 * N[(c * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.3e-53], 1.0, If[LessEqual[t, 0.225], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b}{t}}}\\
t_2 := \frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{-73}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -5 \cdot 10^{-275}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-204}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{-170}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 2 \cdot \left(c \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right)\right)}\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{-53}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 0.225:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -1.0499999999999999e-73 or 0.225000000000000006 < t Initial program 93.2%
Taylor expanded in t around inf 92.2%
mul-1-neg92.2%
distribute-rgt-neg-in92.2%
distribute-neg-in92.2%
metadata-eval92.2%
sub-neg92.2%
Simplified92.2%
Taylor expanded in a around 0 83.8%
Taylor expanded in b around 0 73.5%
*-commutative73.5%
Simplified73.5%
if -1.0499999999999999e-73 < t < -4.99999999999999983e-275 or 2.3000000000000001e-53 < t < 0.225000000000000006Initial program 84.7%
Taylor expanded in b around inf 71.9%
*-commutative71.9%
associate-*r/71.9%
metadata-eval71.9%
+-commutative71.9%
Simplified71.9%
Taylor expanded in t around 0 68.6%
Taylor expanded in y around 0 68.6%
if -4.99999999999999983e-275 < t < 6.1999999999999998e-204 or 6.60000000000000007e-170 < t < 2.3000000000000001e-53Initial program 94.2%
Taylor expanded in a around inf 52.0%
Taylor expanded in a around 0 43.9%
Taylor expanded in x around inf 72.1%
if 6.1999999999999998e-204 < t < 6.60000000000000007e-170Initial program 93.3%
Taylor expanded in c around inf 80.6%
+-commutative80.6%
associate-*r/80.6%
metadata-eval80.6%
associate--l+80.6%
Simplified80.6%
Taylor expanded in c around 0 61.6%
associate--l+61.6%
associate-*r/61.6%
metadata-eval61.6%
Simplified61.6%
Final simplification71.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (- b c) -1.6666666666666667)))))))
(if (<= t 2.2e-308)
t_1
(if (<= t 2.6e-205)
1.0
(if (<= t 1.5e-167)
(/
x
(-
x
(*
y
(+
-1.0
(*
2.0
(* c (- (- (/ 0.6666666666666666 t) a) 0.8333333333333334)))))))
(if (<= t 1e-51)
1.0
(if (<= t 0.41)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ b t))))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp(((b - c) * -1.6666666666666667))));
double tmp;
if (t <= 2.2e-308) {
tmp = t_1;
} else if (t <= 2.6e-205) {
tmp = 1.0;
} else if (t <= 1.5e-167) {
tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else if (t <= 1e-51) {
tmp = 1.0;
} else if (t <= 0.41) {
tmp = x / (x + (y * exp((1.3333333333333333 * (b / t)))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp(((b - c) * (-1.6666666666666667d0)))))
if (t <= 2.2d-308) then
tmp = t_1
else if (t <= 2.6d-205) then
tmp = 1.0d0
else if (t <= 1.5d-167) then
tmp = x / (x - (y * ((-1.0d0) + (2.0d0 * (c * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0))))))
else if (t <= 1d-51) then
tmp = 1.0d0
else if (t <= 0.41d0) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * (b / t)))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
double tmp;
if (t <= 2.2e-308) {
tmp = t_1;
} else if (t <= 2.6e-205) {
tmp = 1.0;
} else if (t <= 1.5e-167) {
tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else if (t <= 1e-51) {
tmp = 1.0;
} else if (t <= 0.41) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * (b / t)))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) tmp = 0 if t <= 2.2e-308: tmp = t_1 elif t <= 2.6e-205: tmp = 1.0 elif t <= 1.5e-167: tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))) elif t <= 1e-51: tmp = 1.0 elif t <= 0.41: tmp = x / (x + (y * math.exp((1.3333333333333333 * (b / t))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))) tmp = 0.0 if (t <= 2.2e-308) tmp = t_1; elseif (t <= 2.6e-205) tmp = 1.0; elseif (t <= 1.5e-167) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(2.0 * Float64(c * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334))))))); elseif (t <= 1e-51) tmp = 1.0; elseif (t <= 0.41) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(b / t)))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); tmp = 0.0; if (t <= 2.2e-308) tmp = t_1; elseif (t <= 2.6e-205) tmp = 1.0; elseif (t <= 1.5e-167) tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))); elseif (t <= 1e-51) tmp = 1.0; elseif (t <= 0.41) tmp = x / (x + (y * exp((1.3333333333333333 * (b / t))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 2.2e-308], t$95$1, If[LessEqual[t, 2.6e-205], 1.0, If[LessEqual[t, 1.5e-167], N[(x / N[(x - N[(y * N[(-1.0 + N[(2.0 * N[(c * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e-51], 1.0, If[LessEqual[t, 0.41], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{if}\;t \leq 2.2 \cdot 10^{-308}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-205}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{-167}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 2 \cdot \left(c \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right)\right)}\\
\mathbf{elif}\;t \leq 10^{-51}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 0.41:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b}{t}}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < 2.2000000000000002e-308 or 0.409999999999999976 < t Initial program 89.4%
Taylor expanded in t around inf 88.3%
mul-1-neg88.3%
distribute-rgt-neg-in88.3%
distribute-neg-in88.3%
metadata-eval88.3%
sub-neg88.3%
Simplified88.3%
Taylor expanded in a around 0 80.5%
if 2.2000000000000002e-308 < t < 2.5999999999999998e-205 or 1.4999999999999999e-167 < t < 1e-51Initial program 95.6%
Taylor expanded in a around inf 50.7%
Taylor expanded in a around 0 43.5%
Taylor expanded in x around inf 72.1%
if 2.5999999999999998e-205 < t < 1.4999999999999999e-167Initial program 93.3%
Taylor expanded in c around inf 80.6%
+-commutative80.6%
associate-*r/80.6%
metadata-eval80.6%
associate--l+80.6%
Simplified80.6%
Taylor expanded in c around 0 61.6%
associate--l+61.6%
associate-*r/61.6%
metadata-eval61.6%
Simplified61.6%
if 1e-51 < t < 0.409999999999999976Initial program 100.0%
Taylor expanded in b around inf 73.8%
*-commutative73.8%
associate-*r/73.8%
metadata-eval73.8%
+-commutative73.8%
Simplified73.8%
Taylor expanded in t around 0 68.7%
Taylor expanded in y around 0 68.7%
Final simplification77.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))))
(if (<= t 1.5e-143)
t_1
(if (<= t 2.7e-53)
1.0
(if (<= t 2.1e-8)
t_1
(/
x
(+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
double tmp;
if (t <= 1.5e-143) {
tmp = t_1;
} else if (t <= 2.7e-53) {
tmp = 1.0;
} else if (t <= 2.1e-8) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
if (t <= 1.5d-143) then
tmp = t_1
else if (t <= 2.7d-53) then
tmp = 1.0d0
else if (t <= 2.1d-8) then
tmp = t_1
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
double tmp;
if (t <= 1.5e-143) {
tmp = t_1;
} else if (t <= 2.7e-53) {
tmp = 1.0;
} else if (t <= 2.1e-8) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) tmp = 0 if t <= 1.5e-143: tmp = t_1 elif t <= 2.7e-53: tmp = 1.0 elif t <= 2.1e-8: tmp = t_1 else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))) tmp = 0.0 if (t <= 1.5e-143) tmp = t_1; elseif (t <= 2.7e-53) tmp = 1.0; elseif (t <= 2.1e-8) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); tmp = 0.0; if (t <= 1.5e-143) tmp = t_1; elseif (t <= 2.7e-53) tmp = 1.0; elseif (t <= 2.1e-8) tmp = t_1; else tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 1.5e-143], t$95$1, If[LessEqual[t, 2.7e-53], 1.0, If[LessEqual[t, 2.1e-8], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{if}\;t \leq 1.5 \cdot 10^{-143}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-53}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{-8}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < 1.49999999999999993e-143 or 2.6999999999999999e-53 < t < 2.09999999999999994e-8Initial program 87.7%
Taylor expanded in t around 0 84.4%
Taylor expanded in a around 0 75.9%
if 1.49999999999999993e-143 < t < 2.6999999999999999e-53Initial program 95.5%
Taylor expanded in a around inf 60.7%
Taylor expanded in a around 0 54.7%
Taylor expanded in x around inf 73.8%
if 2.09999999999999994e-8 < t Initial program 94.3%
Taylor expanded in t around inf 91.2%
mul-1-neg91.2%
distribute-rgt-neg-in91.2%
distribute-neg-in91.2%
metadata-eval91.2%
sub-neg91.2%
Simplified91.2%
Final simplification82.9%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= t -3.2e-283) (not (<= t 0.17)))
(/ x (+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (+ a (- 0.8333333333333334 (/ 0.6666666666666666 t)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -3.2e-283) || !(t <= 0.17)) {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
} else {
tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 - (0.6666666666666666 / 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 ((t <= (-3.2d-283)) .or. (.not. (t <= 0.17d0))) then
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
else
tmp = x / (x + (y * exp((2.0d0 * (c * (a + (0.8333333333333334d0 - (0.6666666666666666d0 / 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 ((t <= -3.2e-283) || !(t <= 0.17)) {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + (0.8333333333333334 - (0.6666666666666666 / t))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -3.2e-283) or not (t <= 0.17): tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * (a + (0.8333333333333334 - (0.6666666666666666 / t)))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -3.2e-283) || !(t <= 0.17)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 - Float64(0.6666666666666666 / t))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((t <= -3.2e-283) || ~((t <= 0.17))) tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); else tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 - (0.6666666666666666 / t)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -3.2e-283], N[Not[LessEqual[t, 0.17]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{-283} \lor \neg \left(t \leq 0.17\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 - \frac{0.6666666666666666}{t}\right)\right)\right)}}\\
\end{array}
\end{array}
if t < -3.20000000000000012e-283 or 0.170000000000000012 < t Initial program 89.6%
Taylor expanded in t around inf 88.6%
mul-1-neg88.6%
distribute-rgt-neg-in88.6%
distribute-neg-in88.6%
metadata-eval88.6%
sub-neg88.6%
Simplified88.6%
if -3.20000000000000012e-283 < t < 0.170000000000000012Initial program 95.2%
Taylor expanded in c around inf 75.4%
+-commutative75.4%
associate-*r/75.4%
metadata-eval75.4%
associate--l+75.4%
Simplified75.4%
Final simplification84.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))))
(if (<= t 3.8e-146)
t_1
(if (<= t 3.6e-53)
1.0
(if (<= t 6.5e-9)
t_1
(/ x (+ x (* y (exp (* (- b c) -1.6666666666666667))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
double tmp;
if (t <= 3.8e-146) {
tmp = t_1;
} else if (t <= 3.6e-53) {
tmp = 1.0;
} else if (t <= 6.5e-9) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
if (t <= 3.8d-146) then
tmp = t_1
else if (t <= 3.6d-53) then
tmp = 1.0d0
else if (t <= 6.5d-9) then
tmp = t_1
else
tmp = x / (x + (y * exp(((b - c) * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
double tmp;
if (t <= 3.8e-146) {
tmp = t_1;
} else if (t <= 3.6e-53) {
tmp = 1.0;
} else if (t <= 6.5e-9) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) tmp = 0 if t <= 3.8e-146: tmp = t_1 elif t <= 3.6e-53: tmp = 1.0 elif t <= 6.5e-9: tmp = t_1 else: tmp = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))) tmp = 0.0 if (t <= 3.8e-146) tmp = t_1; elseif (t <= 3.6e-53) tmp = 1.0; elseif (t <= 6.5e-9) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); tmp = 0.0; if (t <= 3.8e-146) tmp = t_1; elseif (t <= 3.6e-53) tmp = 1.0; elseif (t <= 6.5e-9) tmp = t_1; else tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 3.8e-146], t$95$1, If[LessEqual[t, 3.6e-53], 1.0, If[LessEqual[t, 6.5e-9], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{if}\;t \leq 3.8 \cdot 10^{-146}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-53}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-9}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < 3.79999999999999994e-146 or 3.5999999999999999e-53 < t < 6.5000000000000003e-9Initial program 87.7%
Taylor expanded in t around 0 84.4%
Taylor expanded in a around 0 75.9%
if 3.79999999999999994e-146 < t < 3.5999999999999999e-53Initial program 95.5%
Taylor expanded in a around inf 60.7%
Taylor expanded in a around 0 54.7%
Taylor expanded in x around inf 73.8%
if 6.5000000000000003e-9 < t Initial program 94.3%
Taylor expanded in t around inf 91.2%
mul-1-neg91.2%
distribute-rgt-neg-in91.2%
distribute-neg-in91.2%
metadata-eval91.2%
sub-neg91.2%
Simplified91.2%
Taylor expanded in a around 0 82.7%
Final simplification78.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* c 1.6666666666666667)))))))
(if (<= t -3.5e-157)
t_1
(if (<= t 5e-202)
1.0
(if (<= t 6.5e-170)
(/
x
(-
x
(*
y
(+
-1.0
(*
2.0
(* c (- (- (/ 0.6666666666666666 t) a) 0.8333333333333334)))))))
(if (<= t 2.2e-18) 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 * 1.6666666666666667))));
double tmp;
if (t <= -3.5e-157) {
tmp = t_1;
} else if (t <= 5e-202) {
tmp = 1.0;
} else if (t <= 6.5e-170) {
tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else if (t <= 2.2e-18) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((c * 1.6666666666666667d0))))
if (t <= (-3.5d-157)) then
tmp = t_1
else if (t <= 5d-202) then
tmp = 1.0d0
else if (t <= 6.5d-170) then
tmp = x / (x - (y * ((-1.0d0) + (2.0d0 * (c * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0))))))
else if (t <= 2.2d-18) then
tmp = 1.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((c * 1.6666666666666667))));
double tmp;
if (t <= -3.5e-157) {
tmp = t_1;
} else if (t <= 5e-202) {
tmp = 1.0;
} else if (t <= 6.5e-170) {
tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else if (t <= 2.2e-18) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((c * 1.6666666666666667)))) tmp = 0 if t <= -3.5e-157: tmp = t_1 elif t <= 5e-202: tmp = 1.0 elif t <= 6.5e-170: tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))) elif t <= 2.2e-18: tmp = 1.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))) tmp = 0.0 if (t <= -3.5e-157) tmp = t_1; elseif (t <= 5e-202) tmp = 1.0; elseif (t <= 6.5e-170) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(2.0 * Float64(c * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334))))))); elseif (t <= 2.2e-18) tmp = 1.0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((c * 1.6666666666666667)))); tmp = 0.0; if (t <= -3.5e-157) tmp = t_1; elseif (t <= 5e-202) tmp = 1.0; elseif (t <= 6.5e-170) tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))); elseif (t <= 2.2e-18) tmp = 1.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.5e-157], t$95$1, If[LessEqual[t, 5e-202], 1.0, If[LessEqual[t, 6.5e-170], N[(x / N[(x - N[(y * N[(-1.0 + N[(2.0 * N[(c * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.2e-18], 1.0, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\mathbf{if}\;t \leq -3.5 \cdot 10^{-157}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-202}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-170}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 2 \cdot \left(c \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right)\right)}\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{-18}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -3.5000000000000002e-157 or 2.1999999999999998e-18 < t Initial program 93.5%
Taylor expanded in t around inf 88.9%
mul-1-neg88.9%
distribute-rgt-neg-in88.9%
distribute-neg-in88.9%
metadata-eval88.9%
sub-neg88.9%
Simplified88.9%
Taylor expanded in a around 0 80.4%
Taylor expanded in b around 0 70.9%
*-commutative70.9%
Simplified70.9%
if -3.5000000000000002e-157 < t < 4.99999999999999973e-202 or 6.50000000000000035e-170 < t < 2.1999999999999998e-18Initial program 87.8%
Taylor expanded in a around inf 57.0%
Taylor expanded in a around 0 36.5%
Taylor expanded in x around inf 62.4%
if 4.99999999999999973e-202 < t < 6.50000000000000035e-170Initial program 93.3%
Taylor expanded in c around inf 80.6%
+-commutative80.6%
associate-*r/80.6%
metadata-eval80.6%
associate--l+80.6%
Simplified80.6%
Taylor expanded in c around 0 61.6%
associate--l+61.6%
associate-*r/61.6%
metadata-eval61.6%
Simplified61.6%
Final simplification67.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -1.02e+130)
1.0
(if (<= c -1.2e-160)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= c 11000000000000.0)
(/ x (+ x (* y (exp (* -2.0 (* b a))))))
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1.02e+130) {
tmp = 1.0;
} else if (c <= -1.2e-160) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (c <= 11000000000000.0) {
tmp = x / (x + (y * exp((-2.0 * (b * a)))));
} else {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-1.02d+130)) then
tmp = 1.0d0
else if (c <= (-1.2d-160)) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (c <= 11000000000000.0d0) then
tmp = x / (x + (y * exp(((-2.0d0) * (b * a)))))
else
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -1.02e+130) {
tmp = 1.0;
} else if (c <= -1.2e-160) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (c <= 11000000000000.0) {
tmp = x / (x + (y * Math.exp((-2.0 * (b * a)))));
} else {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -1.02e+130: tmp = 1.0 elif c <= -1.2e-160: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif c <= 11000000000000.0: tmp = x / (x + (y * math.exp((-2.0 * (b * a))))) else: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -1.02e+130) tmp = 1.0; elseif (c <= -1.2e-160) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (c <= 11000000000000.0) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(b * a)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -1.02e+130) tmp = 1.0; elseif (c <= -1.2e-160) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (c <= 11000000000000.0) tmp = x / (x + (y * exp((-2.0 * (b * a))))); else tmp = x / (x + (y * exp((c * 1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -1.02e+130], 1.0, If[LessEqual[c, -1.2e-160], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 11000000000000.0], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(b * a), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.02 \cdot 10^{+130}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.2 \cdot 10^{-160}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;c \leq 11000000000000:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(b \cdot a\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if c < -1.01999999999999999e130Initial program 84.7%
Taylor expanded in a around inf 72.8%
Taylor expanded in a around 0 38.4%
Taylor expanded in x around inf 70.2%
if -1.01999999999999999e130 < c < -1.19999999999999995e-160Initial program 91.9%
Taylor expanded in t around inf 73.1%
mul-1-neg73.1%
distribute-rgt-neg-in73.1%
distribute-neg-in73.1%
metadata-eval73.1%
sub-neg73.1%
Simplified73.1%
Taylor expanded in a around 0 66.8%
Taylor expanded in b around inf 68.1%
*-commutative68.1%
Simplified68.1%
if -1.19999999999999995e-160 < c < 1.1e13Initial program 95.0%
Taylor expanded in a around inf 68.9%
Taylor expanded in c around 0 69.1%
if 1.1e13 < c Initial program 89.4%
Taylor expanded in t around inf 70.6%
mul-1-neg70.6%
distribute-rgt-neg-in70.6%
distribute-neg-in70.6%
metadata-eval70.6%
sub-neg70.6%
Simplified70.6%
Taylor expanded in a around 0 70.6%
Taylor expanded in b around 0 65.4%
*-commutative65.4%
Simplified65.4%
Final simplification68.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* b -1.6666666666666667)))))))
(if (<= b -1.3e+228)
t_1
(if (<= b -4.8e+95)
(/ x (+ (* -2.0 (* y (* b (+ a 0.8333333333333334)))) (+ x y)))
(if (<= b -3.5e+15)
t_1
(if (<= b 1.6e-297)
(/
x
(-
x
(*
y
(+
-1.0
(*
2.0
(*
c
(- (- (/ 0.6666666666666666 t) a) 0.8333333333333334)))))))
1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((b * -1.6666666666666667))));
double tmp;
if (b <= -1.3e+228) {
tmp = t_1;
} else if (b <= -4.8e+95) {
tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y));
} else if (b <= -3.5e+15) {
tmp = t_1;
} else if (b <= 1.6e-297) {
tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
if (b <= (-1.3d+228)) then
tmp = t_1
else if (b <= (-4.8d+95)) then
tmp = x / (((-2.0d0) * (y * (b * (a + 0.8333333333333334d0)))) + (x + y))
else if (b <= (-3.5d+15)) then
tmp = t_1
else if (b <= 1.6d-297) then
tmp = x / (x - (y * ((-1.0d0) + (2.0d0 * (c * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((b * -1.6666666666666667))));
double tmp;
if (b <= -1.3e+228) {
tmp = t_1;
} else if (b <= -4.8e+95) {
tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y));
} else if (b <= -3.5e+15) {
tmp = t_1;
} else if (b <= 1.6e-297) {
tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((b * -1.6666666666666667)))) tmp = 0 if b <= -1.3e+228: tmp = t_1 elif b <= -4.8e+95: tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y)) elif b <= -3.5e+15: tmp = t_1 elif b <= 1.6e-297: tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))) tmp = 0.0 if (b <= -1.3e+228) tmp = t_1; elseif (b <= -4.8e+95) tmp = Float64(x / Float64(Float64(-2.0 * Float64(y * Float64(b * Float64(a + 0.8333333333333334)))) + Float64(x + y))); elseif (b <= -3.5e+15) tmp = t_1; elseif (b <= 1.6e-297) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(2.0 * Float64(c * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((b * -1.6666666666666667)))); tmp = 0.0; if (b <= -1.3e+228) tmp = t_1; elseif (b <= -4.8e+95) tmp = x / ((-2.0 * (y * (b * (a + 0.8333333333333334)))) + (x + y)); elseif (b <= -3.5e+15) tmp = t_1; elseif (b <= 1.6e-297) tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.3e+228], t$95$1, If[LessEqual[b, -4.8e+95], N[(x / N[(N[(-2.0 * N[(y * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.5e+15], t$95$1, If[LessEqual[b, 1.6e-297], N[(x / N[(x - N[(y * N[(-1.0 + N[(2.0 * N[(c * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{if}\;b \leq -1.3 \cdot 10^{+228}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -4.8 \cdot 10^{+95}:\\
\;\;\;\;\frac{x}{-2 \cdot \left(y \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right)\right) + \left(x + y\right)}\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{+15}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{-297}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 2 \cdot \left(c \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.30000000000000004e228 or -4.8000000000000001e95 < b < -3.5e15Initial program 83.1%
Taylor expanded in t around inf 80.0%
mul-1-neg80.0%
distribute-rgt-neg-in80.0%
distribute-neg-in80.0%
metadata-eval80.0%
sub-neg80.0%
Simplified80.0%
Taylor expanded in a around 0 76.6%
Taylor expanded in b around inf 73.3%
*-commutative73.3%
Simplified73.3%
if -1.30000000000000004e228 < b < -4.8000000000000001e95Initial program 95.2%
Taylor expanded in b around inf 76.9%
*-commutative76.9%
associate-*r/76.9%
metadata-eval76.9%
+-commutative76.9%
Simplified76.9%
Taylor expanded in b around 0 67.6%
associate-*r/67.6%
metadata-eval67.6%
+-commutative67.6%
associate--r+67.6%
Simplified67.6%
Taylor expanded in t around inf 76.1%
if -3.5e15 < b < 1.59999999999999986e-297Initial program 96.1%
Taylor expanded in c around inf 74.8%
+-commutative74.8%
associate-*r/74.8%
metadata-eval74.8%
associate--l+74.8%
Simplified74.8%
Taylor expanded in c around 0 60.0%
associate--l+60.0%
associate-*r/60.0%
metadata-eval60.0%
Simplified60.0%
if 1.59999999999999986e-297 < b Initial program 90.0%
Taylor expanded in a around inf 66.8%
Taylor expanded in a around 0 45.0%
Taylor expanded in x around inf 64.8%
Final simplification65.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (- a (/ 0.6666666666666666 t)))
(t_2 (- (/ 0.6666666666666666 t) a)))
(if (<= b -6.2e-52)
(/
x
(+
x
(+
y
(*
2.0
(*
(/ (- (* t_1 t_1) 0.6944444444444444) (+ 0.8333333333333334 t_2))
(* y b))))))
(if (<= b 2e-299)
(/ x (- x (* y (+ -1.0 (* 2.0 (* c (- t_2 0.8333333333333334)))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a - (0.6666666666666666 / t);
double t_2 = (0.6666666666666666 / t) - a;
double tmp;
if (b <= -6.2e-52) {
tmp = x / (x + (y + (2.0 * ((((t_1 * t_1) - 0.6944444444444444) / (0.8333333333333334 + t_2)) * (y * b)))));
} else if (b <= 2e-299) {
tmp = x / (x - (y * (-1.0 + (2.0 * (c * (t_2 - 0.8333333333333334))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a - (0.6666666666666666d0 / t)
t_2 = (0.6666666666666666d0 / t) - a
if (b <= (-6.2d-52)) then
tmp = x / (x + (y + (2.0d0 * ((((t_1 * t_1) - 0.6944444444444444d0) / (0.8333333333333334d0 + t_2)) * (y * b)))))
else if (b <= 2d-299) then
tmp = x / (x - (y * ((-1.0d0) + (2.0d0 * (c * (t_2 - 0.8333333333333334d0))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = a - (0.6666666666666666 / t);
double t_2 = (0.6666666666666666 / t) - a;
double tmp;
if (b <= -6.2e-52) {
tmp = x / (x + (y + (2.0 * ((((t_1 * t_1) - 0.6944444444444444) / (0.8333333333333334 + t_2)) * (y * b)))));
} else if (b <= 2e-299) {
tmp = x / (x - (y * (-1.0 + (2.0 * (c * (t_2 - 0.8333333333333334))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = a - (0.6666666666666666 / t) t_2 = (0.6666666666666666 / t) - a tmp = 0 if b <= -6.2e-52: tmp = x / (x + (y + (2.0 * ((((t_1 * t_1) - 0.6944444444444444) / (0.8333333333333334 + t_2)) * (y * b))))) elif b <= 2e-299: tmp = x / (x - (y * (-1.0 + (2.0 * (c * (t_2 - 0.8333333333333334)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(a - Float64(0.6666666666666666 / t)) t_2 = Float64(Float64(0.6666666666666666 / t) - a) tmp = 0.0 if (b <= -6.2e-52) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(Float64(Float64(Float64(t_1 * t_1) - 0.6944444444444444) / Float64(0.8333333333333334 + t_2)) * Float64(y * b)))))); elseif (b <= 2e-299) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(2.0 * Float64(c * Float64(t_2 - 0.8333333333333334))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = a - (0.6666666666666666 / t); t_2 = (0.6666666666666666 / t) - a; tmp = 0.0; if (b <= -6.2e-52) tmp = x / (x + (y + (2.0 * ((((t_1 * t_1) - 0.6944444444444444) / (0.8333333333333334 + t_2)) * (y * b))))); elseif (b <= 2e-299) tmp = x / (x - (y * (-1.0 + (2.0 * (c * (t_2 - 0.8333333333333334)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision]}, If[LessEqual[b, -6.2e-52], N[(x / N[(x + N[(y + N[(2.0 * N[(N[(N[(N[(t$95$1 * t$95$1), $MachinePrecision] - 0.6944444444444444), $MachinePrecision] / N[(0.8333333333333334 + t$95$2), $MachinePrecision]), $MachinePrecision] * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2e-299], N[(x / N[(x - N[(y * N[(-1.0 + N[(2.0 * N[(c * N[(t$95$2 - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a - \frac{0.6666666666666666}{t}\\
t_2 := \frac{0.6666666666666666}{t} - a\\
\mathbf{if}\;b \leq -6.2 \cdot 10^{-52}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(\frac{t_1 \cdot t_1 - 0.6944444444444444}{0.8333333333333334 + t_2} \cdot \left(y \cdot b\right)\right)\right)}\\
\mathbf{elif}\;b \leq 2 \cdot 10^{-299}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 2 \cdot \left(c \cdot \left(t_2 - 0.8333333333333334\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -6.1999999999999998e-52Initial program 88.2%
Taylor expanded in b around inf 74.1%
*-commutative74.1%
associate-*r/74.1%
metadata-eval74.1%
+-commutative74.1%
Simplified74.1%
Taylor expanded in b around 0 52.8%
associate-*r/52.8%
metadata-eval52.8%
+-commutative52.8%
associate--r+52.8%
Simplified52.8%
flip--55.6%
metadata-eval55.6%
Applied egg-rr55.6%
if -6.1999999999999998e-52 < b < 1.99999999999999998e-299Initial program 98.3%
Taylor expanded in c around inf 77.2%
+-commutative77.2%
associate-*r/77.2%
metadata-eval77.2%
associate--l+77.2%
Simplified77.2%
Taylor expanded in c around 0 64.6%
associate--l+64.6%
associate-*r/64.6%
metadata-eval64.6%
Simplified64.6%
if 1.99999999999999998e-299 < b Initial program 90.0%
Taylor expanded in a around inf 66.8%
Taylor expanded in a around 0 45.0%
Taylor expanded in x around inf 64.8%
Final simplification62.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -350000000000.0)
(/ x (+ x (- y (* 2.0 (* a (* y b))))))
(if (<= b 1.95e-296)
(/
x
(-
x
(*
y
(+
-1.0
(*
2.0
(* c (- (- (/ 0.6666666666666666 t) a) 0.8333333333333334)))))))
1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -350000000000.0) {
tmp = x / (x + (y - (2.0 * (a * (y * b)))));
} else if (b <= 1.95e-296) {
tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-350000000000.0d0)) then
tmp = x / (x + (y - (2.0d0 * (a * (y * b)))))
else if (b <= 1.95d-296) then
tmp = x / (x - (y * ((-1.0d0) + (2.0d0 * (c * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -350000000000.0) {
tmp = x / (x + (y - (2.0 * (a * (y * b)))));
} else if (b <= 1.95e-296) {
tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -350000000000.0: tmp = x / (x + (y - (2.0 * (a * (y * b))))) elif b <= 1.95e-296: tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -350000000000.0) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(a * Float64(y * b)))))); elseif (b <= 1.95e-296) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(2.0 * Float64(c * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -350000000000.0) tmp = x / (x + (y - (2.0 * (a * (y * b))))); elseif (b <= 1.95e-296) tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -350000000000.0], N[(x / N[(x + N[(y - N[(2.0 * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.95e-296], N[(x / N[(x - N[(y * N[(-1.0 + N[(2.0 * N[(c * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -350000000000:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(a \cdot \left(y \cdot b\right)\right)\right)}\\
\mathbf{elif}\;b \leq 1.95 \cdot 10^{-296}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 2 \cdot \left(c \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.5e11Initial program 88.4%
Taylor expanded in b around inf 81.0%
*-commutative81.0%
associate-*r/81.0%
metadata-eval81.0%
+-commutative81.0%
Simplified81.0%
Taylor expanded in b around 0 53.1%
associate-*r/53.1%
metadata-eval53.1%
+-commutative53.1%
associate--r+53.1%
Simplified53.1%
Taylor expanded in a around inf 56.9%
mul-1-neg56.9%
*-commutative56.9%
distribute-rgt-neg-in56.9%
*-commutative56.9%
Simplified56.9%
if -3.5e11 < b < 1.95000000000000005e-296Initial program 96.0%
Taylor expanded in c around inf 74.4%
+-commutative74.4%
associate-*r/74.4%
metadata-eval74.4%
associate--l+74.4%
Simplified74.4%
Taylor expanded in c around 0 60.7%
associate--l+60.7%
associate-*r/60.7%
metadata-eval60.7%
Simplified60.7%
if 1.95000000000000005e-296 < b Initial program 90.0%
Taylor expanded in a around inf 66.8%
Taylor expanded in a around 0 45.0%
Taylor expanded in x around inf 64.8%
Final simplification62.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -1e-51)
(/
x
(-
x
(*
y
(+
-1.0
(*
2.0
(*
b
(+ (+ a 0.8333333333333334) (* 0.6666666666666666 (/ -1.0 t)))))))))
(if (<= b 2.75e-297)
(/
x
(-
x
(*
y
(+
-1.0
(*
2.0
(* c (- (- (/ 0.6666666666666666 t) a) 0.8333333333333334)))))))
1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1e-51) {
tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t))))))));
} else if (b <= 2.75e-297) {
tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-1d-51)) then
tmp = x / (x - (y * ((-1.0d0) + (2.0d0 * (b * ((a + 0.8333333333333334d0) + (0.6666666666666666d0 * ((-1.0d0) / t))))))))
else if (b <= 2.75d-297) then
tmp = x / (x - (y * ((-1.0d0) + (2.0d0 * (c * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1e-51) {
tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t))))))));
} else if (b <= 2.75e-297) {
tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -1e-51: tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t)))))))) elif b <= 2.75e-297: tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -1e-51) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(2.0 * Float64(b * Float64(Float64(a + 0.8333333333333334) + Float64(0.6666666666666666 * Float64(-1.0 / t))))))))); elseif (b <= 2.75e-297) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(2.0 * Float64(c * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -1e-51) tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a + 0.8333333333333334) + (0.6666666666666666 * (-1.0 / t)))))))); elseif (b <= 2.75e-297) tmp = x / (x - (y * (-1.0 + (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -1e-51], N[(x / N[(x - N[(y * N[(-1.0 + N[(2.0 * N[(b * N[(N[(a + 0.8333333333333334), $MachinePrecision] + N[(0.6666666666666666 * N[(-1.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.75e-297], N[(x / N[(x - N[(y * N[(-1.0 + N[(2.0 * N[(c * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1 \cdot 10^{-51}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 2 \cdot \left(b \cdot \left(\left(a + 0.8333333333333334\right) + 0.6666666666666666 \cdot \frac{-1}{t}\right)\right)\right)}\\
\mathbf{elif}\;b \leq 2.75 \cdot 10^{-297}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 2 \cdot \left(c \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1e-51Initial program 88.2%
Taylor expanded in b around inf 74.1%
*-commutative74.1%
associate-*r/74.1%
metadata-eval74.1%
+-commutative74.1%
Simplified74.1%
Taylor expanded in b around 0 55.6%
if -1e-51 < b < 2.75000000000000015e-297Initial program 98.3%
Taylor expanded in c around inf 77.2%
+-commutative77.2%
associate-*r/77.2%
metadata-eval77.2%
associate--l+77.2%
Simplified77.2%
Taylor expanded in c around 0 64.6%
associate--l+64.6%
associate-*r/64.6%
metadata-eval64.6%
Simplified64.6%
if 2.75000000000000015e-297 < b Initial program 90.0%
Taylor expanded in a around inf 66.8%
Taylor expanded in a around 0 45.0%
Taylor expanded in x around inf 64.8%
Final simplification62.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (+ (* 1.3333333333333333 (/ b t)) 1.0))))))
(if (<= b -1.4e-6)
t_1
(if (<= b -7e-180)
(/ x (+ x (* y (/ (* c -1.3333333333333333) t))))
(if (<= b 2.6e-300) t_1 1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * ((1.3333333333333333 * (b / t)) + 1.0)));
double tmp;
if (b <= -1.4e-6) {
tmp = t_1;
} else if (b <= -7e-180) {
tmp = x / (x + (y * ((c * -1.3333333333333333) / t)));
} else if (b <= 2.6e-300) {
tmp = t_1;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * ((1.3333333333333333d0 * (b / t)) + 1.0d0)))
if (b <= (-1.4d-6)) then
tmp = t_1
else if (b <= (-7d-180)) then
tmp = x / (x + (y * ((c * (-1.3333333333333333d0)) / t)))
else if (b <= 2.6d-300) then
tmp = t_1
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * ((1.3333333333333333 * (b / t)) + 1.0)));
double tmp;
if (b <= -1.4e-6) {
tmp = t_1;
} else if (b <= -7e-180) {
tmp = x / (x + (y * ((c * -1.3333333333333333) / t)));
} else if (b <= 2.6e-300) {
tmp = t_1;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * ((1.3333333333333333 * (b / t)) + 1.0))) tmp = 0 if b <= -1.4e-6: tmp = t_1 elif b <= -7e-180: tmp = x / (x + (y * ((c * -1.3333333333333333) / t))) elif b <= 2.6e-300: tmp = t_1 else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * Float64(Float64(1.3333333333333333 * Float64(b / t)) + 1.0)))) tmp = 0.0 if (b <= -1.4e-6) tmp = t_1; elseif (b <= -7e-180) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(c * -1.3333333333333333) / t)))); elseif (b <= 2.6e-300) tmp = t_1; else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * ((1.3333333333333333 * (b / t)) + 1.0))); tmp = 0.0; if (b <= -1.4e-6) tmp = t_1; elseif (b <= -7e-180) tmp = x / (x + (y * ((c * -1.3333333333333333) / t))); elseif (b <= 2.6e-300) tmp = t_1; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[(N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.4e-6], t$95$1, If[LessEqual[b, -7e-180], N[(x / N[(x + N[(y * N[(N[(c * -1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.6e-300], t$95$1, 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot \left(1.3333333333333333 \cdot \frac{b}{t} + 1\right)}\\
\mathbf{if}\;b \leq -1.4 \cdot 10^{-6}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -7 \cdot 10^{-180}:\\
\;\;\;\;\frac{x}{x + y \cdot \frac{c \cdot -1.3333333333333333}{t}}\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{-300}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.39999999999999994e-6 or -7.0000000000000001e-180 < b < 2.59999999999999997e-300Initial program 91.5%
Taylor expanded in b around inf 67.3%
*-commutative67.3%
associate-*r/67.3%
metadata-eval67.3%
+-commutative67.3%
Simplified67.3%
Taylor expanded in t around 0 55.9%
Taylor expanded in b around 0 47.8%
if -1.39999999999999994e-6 < b < -7.0000000000000001e-180Initial program 97.0%
Taylor expanded in c around inf 79.6%
+-commutative79.6%
associate-*r/79.6%
metadata-eval79.6%
associate--l+79.6%
Simplified79.6%
Taylor expanded in c around 0 59.4%
Taylor expanded in t around 0 53.4%
associate-/l*50.7%
Simplified50.7%
*-un-lft-identity50.7%
associate-*r/50.7%
Applied egg-rr50.7%
*-lft-identity50.7%
associate-/r/59.4%
*-commutative59.4%
Simplified59.4%
if 2.59999999999999997e-300 < b Initial program 90.1%
Taylor expanded in a around inf 66.3%
Taylor expanded in a around 0 44.6%
Taylor expanded in x around inf 64.3%
Final simplification57.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (+ y (* 1.3333333333333333 (/ (* y b) t)))))))
(if (<= b -4e+98)
t_1
(if (<= b -4.8e-180)
(/ x (+ x (* y (/ (* c -1.3333333333333333) t))))
(if (<= b 3e-300) t_1 1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y + (1.3333333333333333 * ((y * b) / t))));
double tmp;
if (b <= -4e+98) {
tmp = t_1;
} else if (b <= -4.8e-180) {
tmp = x / (x + (y * ((c * -1.3333333333333333) / t)));
} else if (b <= 3e-300) {
tmp = t_1;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y + (1.3333333333333333d0 * ((y * b) / t))))
if (b <= (-4d+98)) then
tmp = t_1
else if (b <= (-4.8d-180)) then
tmp = x / (x + (y * ((c * (-1.3333333333333333d0)) / t)))
else if (b <= 3d-300) then
tmp = t_1
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y + (1.3333333333333333 * ((y * b) / t))));
double tmp;
if (b <= -4e+98) {
tmp = t_1;
} else if (b <= -4.8e-180) {
tmp = x / (x + (y * ((c * -1.3333333333333333) / t)));
} else if (b <= 3e-300) {
tmp = t_1;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y + (1.3333333333333333 * ((y * b) / t)))) tmp = 0 if b <= -4e+98: tmp = t_1 elif b <= -4.8e-180: tmp = x / (x + (y * ((c * -1.3333333333333333) / t))) elif b <= 3e-300: tmp = t_1 else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y + Float64(1.3333333333333333 * Float64(Float64(y * b) / t))))) tmp = 0.0 if (b <= -4e+98) tmp = t_1; elseif (b <= -4.8e-180) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(c * -1.3333333333333333) / t)))); elseif (b <= 3e-300) tmp = t_1; else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y + (1.3333333333333333 * ((y * b) / t)))); tmp = 0.0; if (b <= -4e+98) tmp = t_1; elseif (b <= -4.8e-180) tmp = x / (x + (y * ((c * -1.3333333333333333) / t))); elseif (b <= 3e-300) tmp = t_1; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y + N[(1.3333333333333333 * N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4e+98], t$95$1, If[LessEqual[b, -4.8e-180], N[(x / N[(x + N[(y * N[(N[(c * -1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3e-300], t$95$1, 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + \left(y + 1.3333333333333333 \cdot \frac{y \cdot b}{t}\right)}\\
\mathbf{if}\;b \leq -4 \cdot 10^{+98}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -4.8 \cdot 10^{-180}:\\
\;\;\;\;\frac{x}{x + y \cdot \frac{c \cdot -1.3333333333333333}{t}}\\
\mathbf{elif}\;b \leq 3 \cdot 10^{-300}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.99999999999999999e98 or -4.79999999999999959e-180 < b < 3.00000000000000024e-300Initial program 92.1%
Taylor expanded in b around inf 69.7%
*-commutative69.7%
associate-*r/69.7%
metadata-eval69.7%
+-commutative69.7%
Simplified69.7%
Taylor expanded in t around 0 55.6%
Taylor expanded in b around 0 53.1%
if -3.99999999999999999e98 < b < -4.79999999999999959e-180Initial program 94.1%
Taylor expanded in c around inf 79.2%
+-commutative79.2%
associate-*r/79.2%
metadata-eval79.2%
associate--l+79.2%
Simplified79.2%
Taylor expanded in c around 0 58.7%
Taylor expanded in t around 0 52.9%
associate-/l*51.1%
Simplified51.1%
*-un-lft-identity51.1%
associate-*r/51.1%
Applied egg-rr51.1%
*-lft-identity51.1%
associate-/r/56.7%
*-commutative56.7%
Simplified56.7%
if 3.00000000000000024e-300 < b Initial program 90.1%
Taylor expanded in a around inf 66.3%
Taylor expanded in a around 0 44.6%
Taylor expanded in x around inf 64.3%
Final simplification59.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -3.4e-67)
(/ x (+ x (- y (* 2.0 (* a (* y b))))))
(if (<= b 1.5e-296)
(/ x (- x (* y (- -1.0 (* 2.0 (/ (* c -0.6666666666666666) t))))))
1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.4e-67) {
tmp = x / (x + (y - (2.0 * (a * (y * b)))));
} else if (b <= 1.5e-296) {
tmp = x / (x - (y * (-1.0 - (2.0 * ((c * -0.6666666666666666) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-3.4d-67)) then
tmp = x / (x + (y - (2.0d0 * (a * (y * b)))))
else if (b <= 1.5d-296) then
tmp = x / (x - (y * ((-1.0d0) - (2.0d0 * ((c * (-0.6666666666666666d0)) / t)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.4e-67) {
tmp = x / (x + (y - (2.0 * (a * (y * b)))));
} else if (b <= 1.5e-296) {
tmp = x / (x - (y * (-1.0 - (2.0 * ((c * -0.6666666666666666) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -3.4e-67: tmp = x / (x + (y - (2.0 * (a * (y * b))))) elif b <= 1.5e-296: tmp = x / (x - (y * (-1.0 - (2.0 * ((c * -0.6666666666666666) / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -3.4e-67) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(a * Float64(y * b)))))); elseif (b <= 1.5e-296) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(2.0 * Float64(Float64(c * -0.6666666666666666) / t)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -3.4e-67) tmp = x / (x + (y - (2.0 * (a * (y * b))))); elseif (b <= 1.5e-296) tmp = x / (x - (y * (-1.0 - (2.0 * ((c * -0.6666666666666666) / t))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -3.4e-67], N[(x / N[(x + N[(y - N[(2.0 * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e-296], N[(x / N[(x - N[(y * N[(-1.0 - N[(2.0 * N[(N[(c * -0.6666666666666666), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.4 \cdot 10^{-67}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(a \cdot \left(y \cdot b\right)\right)\right)}\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{-296}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - 2 \cdot \frac{c \cdot -0.6666666666666666}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.4000000000000001e-67Initial program 88.5%
Taylor expanded in b around inf 74.8%
*-commutative74.8%
associate-*r/74.8%
metadata-eval74.8%
+-commutative74.8%
Simplified74.8%
Taylor expanded in b around 0 54.1%
associate-*r/54.1%
metadata-eval54.1%
+-commutative54.1%
associate--r+54.1%
Simplified54.1%
Taylor expanded in a around inf 54.3%
mul-1-neg54.3%
*-commutative54.3%
distribute-rgt-neg-in54.3%
*-commutative54.3%
Simplified54.3%
if -3.4000000000000001e-67 < b < 1.4999999999999999e-296Initial program 98.2%
Taylor expanded in c around inf 76.4%
+-commutative76.4%
associate-*r/76.4%
metadata-eval76.4%
associate--l+76.4%
Simplified76.4%
Taylor expanded in c around 0 63.4%
Taylor expanded in t around 0 59.4%
*-commutative59.4%
associate-*l/59.4%
Simplified59.4%
if 1.4999999999999999e-296 < b Initial program 90.0%
Taylor expanded in a around inf 66.8%
Taylor expanded in a around 0 45.0%
Taylor expanded in x around inf 64.8%
Final simplification60.7%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -5e+97) (/ x (+ x (+ y (* 1.3333333333333333 (/ (* y b) t))))) (if (<= b 2.5e-300) (/ x (+ x (* y (+ (* 2.0 (* c a)) 1.0)))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -5e+97) {
tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t))));
} else if (b <= 2.5e-300) {
tmp = x / (x + (y * ((2.0 * (c * a)) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-5d+97)) then
tmp = x / (x + (y + (1.3333333333333333d0 * ((y * b) / t))))
else if (b <= 2.5d-300) then
tmp = x / (x + (y * ((2.0d0 * (c * a)) + 1.0d0)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -5e+97) {
tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t))));
} else if (b <= 2.5e-300) {
tmp = x / (x + (y * ((2.0 * (c * a)) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -5e+97: tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t)))) elif b <= 2.5e-300: tmp = x / (x + (y * ((2.0 * (c * a)) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -5e+97) tmp = Float64(x / Float64(x + Float64(y + Float64(1.3333333333333333 * Float64(Float64(y * b) / t))))); elseif (b <= 2.5e-300) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(c * a)) + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -5e+97) tmp = x / (x + (y + (1.3333333333333333 * ((y * b) / t)))); elseif (b <= 2.5e-300) tmp = x / (x + (y * ((2.0 * (c * a)) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -5e+97], N[(x / N[(x + N[(y + N[(1.3333333333333333 * N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.5e-300], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(c * a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{+97}:\\
\;\;\;\;\frac{x}{x + \left(y + 1.3333333333333333 \cdot \frac{y \cdot b}{t}\right)}\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{-300}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(c \cdot a\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -4.99999999999999999e97Initial program 86.7%
Taylor expanded in b around inf 89.5%
*-commutative89.5%
associate-*r/89.5%
metadata-eval89.5%
+-commutative89.5%
Simplified89.5%
Taylor expanded in t around 0 60.8%
Taylor expanded in b around 0 58.4%
if -4.99999999999999999e97 < b < 2.49999999999999998e-300Initial program 95.5%
Taylor expanded in a around inf 63.2%
Taylor expanded in b around 0 61.0%
Taylor expanded in c around 0 54.7%
if 2.49999999999999998e-300 < b Initial program 90.1%
Taylor expanded in a around inf 66.3%
Taylor expanded in a around 0 44.6%
Taylor expanded in x around inf 64.3%
Final simplification60.1%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -5.8e+130) (/ x (+ x (- y (* 2.0 (* a (* y b)))))) (if (<= b 9e-300) (/ x (+ x (* y (+ (* 2.0 (* c a)) 1.0)))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -5.8e+130) {
tmp = x / (x + (y - (2.0 * (a * (y * b)))));
} else if (b <= 9e-300) {
tmp = x / (x + (y * ((2.0 * (c * a)) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-5.8d+130)) then
tmp = x / (x + (y - (2.0d0 * (a * (y * b)))))
else if (b <= 9d-300) then
tmp = x / (x + (y * ((2.0d0 * (c * a)) + 1.0d0)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -5.8e+130) {
tmp = x / (x + (y - (2.0 * (a * (y * b)))));
} else if (b <= 9e-300) {
tmp = x / (x + (y * ((2.0 * (c * a)) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -5.8e+130: tmp = x / (x + (y - (2.0 * (a * (y * b))))) elif b <= 9e-300: tmp = x / (x + (y * ((2.0 * (c * a)) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -5.8e+130) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(a * Float64(y * b)))))); elseif (b <= 9e-300) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(c * a)) + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -5.8e+130) tmp = x / (x + (y - (2.0 * (a * (y * b))))); elseif (b <= 9e-300) tmp = x / (x + (y * ((2.0 * (c * a)) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -5.8e+130], N[(x / N[(x + N[(y - N[(2.0 * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9e-300], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(c * a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.8 \cdot 10^{+130}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(a \cdot \left(y \cdot b\right)\right)\right)}\\
\mathbf{elif}\;b \leq 9 \cdot 10^{-300}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(c \cdot a\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -5.7999999999999998e130Initial program 87.8%
Taylor expanded in b around inf 90.9%
*-commutative90.9%
associate-*r/90.9%
metadata-eval90.9%
+-commutative90.9%
Simplified90.9%
Taylor expanded in b around 0 54.8%
associate-*r/54.8%
metadata-eval54.8%
+-commutative54.8%
associate--r+54.8%
Simplified54.8%
Taylor expanded in a around inf 61.0%
mul-1-neg61.0%
*-commutative61.0%
distribute-rgt-neg-in61.0%
*-commutative61.0%
Simplified61.0%
if -5.7999999999999998e130 < b < 9.0000000000000001e-300Initial program 94.7%
Taylor expanded in a around inf 61.0%
Taylor expanded in b around 0 59.0%
Taylor expanded in c around 0 54.0%
if 9.0000000000000001e-300 < b Initial program 90.1%
Taylor expanded in a around inf 66.3%
Taylor expanded in a around 0 44.6%
Taylor expanded in x around inf 64.3%
Final simplification60.1%
(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 65.2%
Taylor expanded in a around 0 42.5%
Taylor expanded in x around inf 52.7%
Final simplification52.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 2023185
(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)))))))))))