
(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 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
(+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t)))
(- c b)
(* (sqrt (+ a t)) (/ z t))))
x)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / fma(y, pow(exp(2.0), fma((a + (0.8333333333333334 + (-0.6666666666666666 / t))), (c - b), (sqrt((a + t)) * (z / t)))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))), Float64(c - b), Float64(sqrt(Float64(a + t)) * Float64(z / t)))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(a + N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision] + N[(N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right), c - b, \sqrt{a + t} \cdot \frac{z}{t}\right)\right)}, x\right)}
\end{array}
Initial program 95.4%
Simplified98.1%
Final simplification98.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))
(t_2 (sqrt (+ a t))))
(if (<= (+ (/ (* t_2 z) t) t_1) INFINITY)
(/ x (+ x (* y (pow (exp 2.0) (+ (/ z (/ t t_2)) t_1)))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (- (* z (sqrt a)) (* -0.6666666666666666 (- b c))) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334));
double t_2 = sqrt((a + t));
double tmp;
if ((((t_2 * z) / t) + t_1) <= ((double) INFINITY)) {
tmp = x / (x + (y * pow(exp(2.0), ((z / (t / t_2)) + t_1))));
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334));
double t_2 = Math.sqrt((a + t));
double tmp;
if ((((t_2 * z) / t) + t_1) <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), ((z / (t / t_2)) + t_1))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)) t_2 = math.sqrt((a + t)) tmp = 0 if (((t_2 * z) / t) + t_1) <= math.inf: tmp = x / (x + (y * math.pow(math.exp(2.0), ((z / (t / t_2)) + t_1)))) else: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334))) t_2 = sqrt(Float64(a + t)) tmp = 0.0 if (Float64(Float64(Float64(t_2 * z) / t) + t_1) <= Inf) tmp = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(Float64(z / Float64(t / t_2)) + t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) - Float64(-0.6666666666666666 * Float64(b - c))) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)); t_2 = sqrt((a + t)); tmp = 0.0; if ((((t_2 * z) / t) + t_1) <= Inf) tmp = x / (x + (y * (exp(2.0) ^ ((z / (t / t_2)) + t_1)))); else tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(N[(N[(t$95$2 * z), $MachinePrecision] / t), $MachinePrecision] + t$95$1), $MachinePrecision], Infinity], N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(z / N[(t / t$95$2), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] - N[(-0.6666666666666666 * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
t_2 := \sqrt{a + t}\\
\mathbf{if}\;\frac{t_2 \cdot z}{t} + t_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(\frac{z}{\frac{t}{t_2}} + t_1\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} - -0.6666666666666666 \cdot \left(b - c\right)}{t}}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 98.4%
exp-prod98.4%
associate-/l*98.8%
metadata-eval98.8%
Simplified98.8%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) Initial program 0.0%
Taylor expanded in t around 0 76.1%
Final simplification98.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* (sqrt (+ a t)) 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 (- b c))) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((sqrt((a + t)) * z) / t) + ((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 * (b - c))) / t)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((Math.sqrt((a + t)) * z) / t) + ((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 * (b - c))) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((math.sqrt((a + t)) * 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 * (b - c))) / t))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(sqrt(Float64(a + t)) * z) / t) + Float64(Float64(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(b - c))) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((sqrt((a + t)) * z) / t) + ((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 * (b - c))) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision] + N[(N[(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[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\sqrt{a + t} \cdot z}{t} + \left(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(b - c\right)}{t}}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 98.4%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) Initial program 0.0%
Taylor expanded in t around 0 76.1%
Final simplification97.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 7.2e-177)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (- (* z (sqrt a)) (* -0.6666666666666666 (- b c))) t))))))
(if (<= t 1.36e-45)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(if (<= t 7.2e+168)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (+ 0.8333333333333334 (/ -0.6666666666666666 t)) (- c b))))))))
(/
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 <= 7.2e-177) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
} else if (t <= 1.36e-45) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if (t <= 7.2e+168) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((0.8333333333333334 + (-0.6666666666666666 / t)) * (c - b)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((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 <= 7.2d-177) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) - ((-0.6666666666666666d0) * (b - c))) / t)))))
else if (t <= 1.36d-45) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else if (t <= 7.2d+168) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((0.8333333333333334d0 + ((-0.6666666666666666d0) / t)) * (c - b)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((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 <= 7.2e-177) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
} else if (t <= 1.36e-45) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if (t <= 7.2e+168) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((0.8333333333333334 + (-0.6666666666666666 / t)) * (c - b)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 7.2e-177: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))) elif t <= 1.36e-45: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) elif t <= 7.2e+168: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((0.8333333333333334 + (-0.6666666666666666 / t)) * (c - b))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 7.2e-177) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) - Float64(-0.6666666666666666 * Float64(b - c))) / t)))))); elseif (t <= 1.36e-45) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); elseif (t <= 7.2e+168) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t)) * Float64(c - b)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(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 <= 7.2e-177) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))); elseif (t <= 1.36e-45) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); elseif (t <= 7.2e+168) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((0.8333333333333334 + (-0.6666666666666666 / t)) * (c - b))))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 7.2e-177], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] - N[(-0.6666666666666666 * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.36e-45], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.2e+168], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 7.2 \cdot 10^{-177}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} - -0.6666666666666666 \cdot \left(b - c\right)}{t}}}\\
\mathbf{elif}\;t \leq 1.36 \cdot 10^{-45}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{elif}\;t \leq 7.2 \cdot 10^{+168}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < 7.19999999999999965e-177Initial program 92.7%
Taylor expanded in t around 0 90.9%
if 7.19999999999999965e-177 < t < 1.35999999999999998e-45Initial program 100.0%
Taylor expanded in b around inf 83.4%
associate-*r/83.4%
metadata-eval83.4%
+-commutative83.4%
Simplified83.4%
if 1.35999999999999998e-45 < t < 7.1999999999999999e168Initial program 97.4%
Taylor expanded in a around 0 97.5%
*-commutative97.5%
*-commutative97.5%
cancel-sign-sub-inv97.5%
metadata-eval97.5%
associate-*r/97.5%
metadata-eval97.5%
Simplified97.5%
if 7.1999999999999999e168 < t Initial program 94.0%
Taylor expanded in t around inf 96.0%
mul-1-neg96.0%
*-commutative96.0%
distribute-rgt-neg-in96.0%
distribute-neg-in96.0%
metadata-eval96.0%
Simplified96.0%
Final simplification92.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 6.8e-177)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 0.047)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 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 <= 6.8e-177) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 0.047) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 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 <= 6.8d-177) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 0.047d0) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 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 <= 6.8e-177) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 0.047) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 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 <= 6.8e-177: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 0.047: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 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 <= 6.8e-177) 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.047) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 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 <= 6.8e-177) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 0.047) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 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, 6.8e-177], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.047], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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 6.8 \cdot 10^{-177}:\\
\;\;\;\;\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.047:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\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 < 6.8000000000000001e-177Initial program 92.7%
Taylor expanded in t around 0 90.9%
if 6.8000000000000001e-177 < t < 0.047Initial program 98.0%
Taylor expanded in b around inf 74.6%
associate-*r/74.6%
metadata-eval74.6%
+-commutative74.6%
Simplified74.6%
if 0.047 < t Initial program 96.5%
Taylor expanded in t around inf 92.5%
mul-1-neg92.5%
*-commutative92.5%
distribute-rgt-neg-in92.5%
distribute-neg-in92.5%
metadata-eval92.5%
Simplified92.5%
Final simplification88.5%
(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 -1e-297)
t_1
(if (<= t 4.2e-216)
(/ x (+ x (* y (exp (/ (* c -1.3333333333333333) t)))))
(if (<= t 1.25e-164)
(/
x
(+
x
(-
y
(*
2.0
(*
c
(*
y
(-
(* 0.6666666666666666 (/ 1.0 t))
(+ a 0.8333333333333334))))))))
(if (<= t 7.5e-5) 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 <= -1e-297) {
tmp = t_1;
} else if (t <= 4.2e-216) {
tmp = x / (x + (y * exp(((c * -1.3333333333333333) / t))));
} else if (t <= 1.25e-164) {
tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))))));
} else if (t <= 7.5e-5) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
if (t <= (-1d-297)) then
tmp = t_1
else if (t <= 4.2d-216) then
tmp = x / (x + (y * exp(((c * (-1.3333333333333333d0)) / t))))
else if (t <= 1.25d-164) then
tmp = x / (x + (y - (2.0d0 * (c * (y * ((0.6666666666666666d0 * (1.0d0 / t)) - (a + 0.8333333333333334d0)))))))
else if (t <= 7.5d-5) then
tmp = 1.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
double tmp;
if (t <= -1e-297) {
tmp = t_1;
} else if (t <= 4.2e-216) {
tmp = x / (x + (y * Math.exp(((c * -1.3333333333333333) / t))));
} else if (t <= 1.25e-164) {
tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))))));
} else if (t <= 7.5e-5) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) tmp = 0 if t <= -1e-297: tmp = t_1 elif t <= 4.2e-216: tmp = x / (x + (y * math.exp(((c * -1.3333333333333333) / t)))) elif t <= 1.25e-164: tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))))))) elif t <= 7.5e-5: tmp = 1.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))) tmp = 0.0 if (t <= -1e-297) tmp = t_1; elseif (t <= 4.2e-216) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c * -1.3333333333333333) / t))))); elseif (t <= 1.25e-164) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(c * Float64(y * Float64(Float64(0.6666666666666666 * Float64(1.0 / t)) - Float64(a + 0.8333333333333334)))))))); elseif (t <= 7.5e-5) tmp = 1.0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); tmp = 0.0; if (t <= -1e-297) tmp = t_1; elseif (t <= 4.2e-216) tmp = x / (x + (y * exp(((c * -1.3333333333333333) / t)))); elseif (t <= 1.25e-164) tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))))))); elseif (t <= 7.5e-5) tmp = 1.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1e-297], t$95$1, If[LessEqual[t, 4.2e-216], N[(x / N[(x + N[(y * N[Exp[N[(N[(c * -1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.25e-164], N[(x / N[(x + N[(y - N[(2.0 * N[(c * N[(y * N[(N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.5e-5], 1.0, 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 -1 \cdot 10^{-297}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-216}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{c \cdot -1.3333333333333333}{t}}}\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-164}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(c \cdot \left(y \cdot \left(0.6666666666666666 \cdot \frac{1}{t} - \left(a + 0.8333333333333334\right)\right)\right)\right)\right)}\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-5}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.00000000000000004e-297 or 7.49999999999999934e-5 < t Initial program 95.6%
Taylor expanded in t around inf 89.9%
mul-1-neg89.9%
*-commutative89.9%
distribute-rgt-neg-in89.9%
distribute-neg-in89.9%
metadata-eval89.9%
Simplified89.9%
if -1.00000000000000004e-297 < t < 4.2000000000000003e-216Initial program 91.7%
Taylor expanded in c around inf 87.9%
cancel-sign-sub-inv87.9%
+-commutative87.9%
metadata-eval87.9%
associate-*r/87.9%
metadata-eval87.9%
associate-+r+87.9%
Simplified87.9%
Taylor expanded in t around 0 83.9%
associate-*r/83.9%
*-commutative83.9%
Simplified83.9%
Taylor expanded in y around 0 83.9%
associate-*r/83.9%
Simplified83.9%
if 4.2000000000000003e-216 < t < 1.2499999999999999e-164Initial program 90.0%
Taylor expanded in c around inf 51.6%
cancel-sign-sub-inv51.6%
+-commutative51.6%
metadata-eval51.6%
associate-*r/51.6%
metadata-eval51.6%
associate-+r+51.6%
Simplified51.6%
Taylor expanded in c around 0 80.6%
if 1.2499999999999999e-164 < t < 7.49999999999999934e-5Initial program 97.7%
Taylor expanded in t around inf 36.9%
mul-1-neg36.9%
*-commutative36.9%
distribute-rgt-neg-in36.9%
distribute-neg-in36.9%
metadata-eval36.9%
Simplified36.9%
Taylor expanded in a around 0 32.4%
Taylor expanded in x around inf 59.4%
Final simplification83.9%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= t -1.2e-296) (not (<= t 0.047)))
(/ x (+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -1.2e-296) || !(t <= 0.047)) {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (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.2d-296)) .or. (.not. (t <= 0.047d0))) then
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (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.2e-296) || !(t <= 0.047)) {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -1.2e-296) or not (t <= 0.047): tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -1.2e-296) || !(t <= 0.047)) 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(b * Float64(Float64(0.6666666666666666 / t) - 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.2e-296) || ~((t <= 0.047))) tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -1.2e-296], N[Not[LessEqual[t, 0.047]], $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[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.2 \cdot 10^{-296} \lor \neg \left(t \leq 0.047\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(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if t < -1.19999999999999998e-296 or 0.047 < t Initial program 96.1%
Taylor expanded in t around inf 90.3%
mul-1-neg90.3%
*-commutative90.3%
distribute-rgt-neg-in90.3%
distribute-neg-in90.3%
metadata-eval90.3%
Simplified90.3%
if -1.19999999999999998e-296 < t < 0.047Initial program 93.8%
Taylor expanded in b around inf 73.5%
associate-*r/73.5%
metadata-eval73.5%
+-commutative73.5%
Simplified73.5%
Final simplification85.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (- b c) -1.6666666666666667)))))))
(if (<= t -3e-308)
t_1
(if (<= t 1.85e-268)
1.0
(if (<= t 5.6e-164)
(/
x
(-
x
(*
y
(+
-1.0
(*
2.0
(* b (- (- a -0.8333333333333334) (/ 0.6666666666666666 t))))))))
(if (<= t 0.00037) 1.0 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp(((b - c) * -1.6666666666666667))));
double tmp;
if (t <= -3e-308) {
tmp = t_1;
} else if (t <= 1.85e-268) {
tmp = 1.0;
} else if (t <= 5.6e-164) {
tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a - -0.8333333333333334) - (0.6666666666666666 / t)))))));
} else if (t <= 0.00037) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp(((b - c) * (-1.6666666666666667d0)))))
if (t <= (-3d-308)) then
tmp = t_1
else if (t <= 1.85d-268) then
tmp = 1.0d0
else if (t <= 5.6d-164) then
tmp = x / (x - (y * ((-1.0d0) + (2.0d0 * (b * ((a - (-0.8333333333333334d0)) - (0.6666666666666666d0 / t)))))))
else if (t <= 0.00037d0) then
tmp = 1.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
double tmp;
if (t <= -3e-308) {
tmp = t_1;
} else if (t <= 1.85e-268) {
tmp = 1.0;
} else if (t <= 5.6e-164) {
tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a - -0.8333333333333334) - (0.6666666666666666 / t)))))));
} else if (t <= 0.00037) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) tmp = 0 if t <= -3e-308: tmp = t_1 elif t <= 1.85e-268: tmp = 1.0 elif t <= 5.6e-164: tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a - -0.8333333333333334) - (0.6666666666666666 / t))))))) elif t <= 0.00037: tmp = 1.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))) tmp = 0.0 if (t <= -3e-308) tmp = t_1; elseif (t <= 1.85e-268) tmp = 1.0; elseif (t <= 5.6e-164) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(2.0 * Float64(b * Float64(Float64(a - -0.8333333333333334) - Float64(0.6666666666666666 / t)))))))); elseif (t <= 0.00037) tmp = 1.0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); tmp = 0.0; if (t <= -3e-308) tmp = t_1; elseif (t <= 1.85e-268) tmp = 1.0; elseif (t <= 5.6e-164) tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a - -0.8333333333333334) - (0.6666666666666666 / t))))))); elseif (t <= 0.00037) tmp = 1.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3e-308], t$95$1, If[LessEqual[t, 1.85e-268], 1.0, If[LessEqual[t, 5.6e-164], N[(x / N[(x - N[(y * N[(-1.0 + N[(2.0 * N[(b * N[(N[(a - -0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.00037], 1.0, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{if}\;t \leq -3 \cdot 10^{-308}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{-268}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 5.6 \cdot 10^{-164}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 2 \cdot \left(b \cdot \left(\left(a - -0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)\right)}\\
\mathbf{elif}\;t \leq 0.00037:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -3.00000000000000022e-308 or 3.6999999999999999e-4 < t Initial program 95.7%
Taylor expanded in t around inf 89.6%
mul-1-neg89.6%
*-commutative89.6%
distribute-rgt-neg-in89.6%
distribute-neg-in89.6%
metadata-eval89.6%
Simplified89.6%
Taylor expanded in a around 0 82.3%
if -3.00000000000000022e-308 < t < 1.85000000000000009e-268 or 5.6000000000000002e-164 < t < 3.6999999999999999e-4Initial program 94.5%
Taylor expanded in t around inf 33.1%
mul-1-neg33.1%
*-commutative33.1%
distribute-rgt-neg-in33.1%
distribute-neg-in33.1%
metadata-eval33.1%
Simplified33.1%
Taylor expanded in a around 0 29.6%
Taylor expanded in x around inf 64.8%
if 1.85000000000000009e-268 < t < 5.6000000000000002e-164Initial program 94.7%
Taylor expanded in b around inf 69.6%
associate-*r/69.6%
metadata-eval69.6%
+-commutative69.6%
Simplified69.6%
Taylor expanded in b around 0 69.6%
sub-neg69.6%
distribute-neg-in69.6%
metadata-eval69.6%
sub-neg69.6%
associate-*r/69.6%
metadata-eval69.6%
+-commutative69.6%
+-commutative69.6%
Simplified69.6%
Final simplification77.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -8e-257)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 3.1e-217)
(/ x (+ x (* y (exp (/ (* c -1.3333333333333333) t)))))
(if (<= t 1.2e-164)
(/
x
(+
x
(-
y
(*
2.0
(*
c
(*
y
(-
(* 0.6666666666666666 (/ 1.0 t))
(+ a 0.8333333333333334))))))))
(if (<= t 0.00021)
1.0
(/ x (+ x (* y (exp (* (- b c) -1.6666666666666667))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -8e-257) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 3.1e-217) {
tmp = x / (x + (y * exp(((c * -1.3333333333333333) / t))));
} else if (t <= 1.2e-164) {
tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))))));
} else if (t <= 0.00021) {
tmp = 1.0;
} else {
tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-8d-257)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 3.1d-217) then
tmp = x / (x + (y * exp(((c * (-1.3333333333333333d0)) / t))))
else if (t <= 1.2d-164) then
tmp = x / (x + (y - (2.0d0 * (c * (y * ((0.6666666666666666d0 * (1.0d0 / t)) - (a + 0.8333333333333334d0)))))))
else if (t <= 0.00021d0) then
tmp = 1.0d0
else
tmp = x / (x + (y * exp(((b - c) * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -8e-257) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 3.1e-217) {
tmp = x / (x + (y * Math.exp(((c * -1.3333333333333333) / t))));
} else if (t <= 1.2e-164) {
tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))))));
} else if (t <= 0.00021) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -8e-257: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 3.1e-217: tmp = x / (x + (y * math.exp(((c * -1.3333333333333333) / t)))) elif t <= 1.2e-164: tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))))))) elif t <= 0.00021: tmp = 1.0 else: tmp = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -8e-257) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 3.1e-217) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c * -1.3333333333333333) / t))))); elseif (t <= 1.2e-164) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(c * Float64(y * Float64(Float64(0.6666666666666666 * Float64(1.0 / t)) - Float64(a + 0.8333333333333334)))))))); elseif (t <= 0.00021) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -8e-257) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 3.1e-217) tmp = x / (x + (y * exp(((c * -1.3333333333333333) / t)))); elseif (t <= 1.2e-164) tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))))))); elseif (t <= 0.00021) tmp = 1.0; else tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -8e-257], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.1e-217], N[(x / N[(x + N[(y * N[Exp[N[(N[(c * -1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.2e-164], N[(x / N[(x + N[(y - N[(2.0 * N[(c * N[(y * N[(N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.00021], 1.0, N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8 \cdot 10^{-257}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{-217}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{c \cdot -1.3333333333333333}{t}}}\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-164}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(c \cdot \left(y \cdot \left(0.6666666666666666 \cdot \frac{1}{t} - \left(a + 0.8333333333333334\right)\right)\right)\right)\right)}\\
\mathbf{elif}\;t \leq 0.00021:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -7.9999999999999998e-257Initial program 94.6%
Taylor expanded in a around inf 85.9%
if -7.9999999999999998e-257 < t < 3.0999999999999999e-217Initial program 91.4%
Taylor expanded in c around inf 83.4%
cancel-sign-sub-inv83.4%
+-commutative83.4%
metadata-eval83.4%
associate-*r/83.4%
metadata-eval83.4%
associate-+r+83.4%
Simplified83.4%
Taylor expanded in t around 0 80.6%
associate-*r/80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in y around 0 80.6%
associate-*r/80.6%
Simplified80.6%
if 3.0999999999999999e-217 < t < 1.19999999999999992e-164Initial program 90.0%
Taylor expanded in c around inf 51.6%
cancel-sign-sub-inv51.6%
+-commutative51.6%
metadata-eval51.6%
associate-*r/51.6%
metadata-eval51.6%
associate-+r+51.6%
Simplified51.6%
Taylor expanded in c around 0 80.6%
if 1.19999999999999992e-164 < t < 2.1000000000000001e-4Initial program 97.7%
Taylor expanded in t around inf 36.9%
mul-1-neg36.9%
*-commutative36.9%
distribute-rgt-neg-in36.9%
distribute-neg-in36.9%
metadata-eval36.9%
Simplified36.9%
Taylor expanded in a around 0 32.4%
Taylor expanded in x around inf 59.4%
if 2.1000000000000001e-4 < t Initial program 96.5%
Taylor expanded in t around inf 91.8%
mul-1-neg91.8%
*-commutative91.8%
distribute-rgt-neg-in91.8%
distribute-neg-in91.8%
metadata-eval91.8%
Simplified91.8%
Taylor expanded in a around 0 83.4%
Final simplification79.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (- b c) -1.6666666666666667)))))))
(if (<= t -4.1e-297)
t_1
(if (<= t 2.8e-227)
(/ x (+ x (* y (exp (/ (* c -1.3333333333333333) t)))))
(if (<= t 0.0005) 1.0 t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp(((b - c) * -1.6666666666666667))));
double tmp;
if (t <= -4.1e-297) {
tmp = t_1;
} else if (t <= 2.8e-227) {
tmp = x / (x + (y * exp(((c * -1.3333333333333333) / t))));
} else if (t <= 0.0005) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp(((b - c) * (-1.6666666666666667d0)))))
if (t <= (-4.1d-297)) then
tmp = t_1
else if (t <= 2.8d-227) then
tmp = x / (x + (y * exp(((c * (-1.3333333333333333d0)) / t))))
else if (t <= 0.0005d0) then
tmp = 1.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
double tmp;
if (t <= -4.1e-297) {
tmp = t_1;
} else if (t <= 2.8e-227) {
tmp = x / (x + (y * Math.exp(((c * -1.3333333333333333) / t))));
} else if (t <= 0.0005) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) tmp = 0 if t <= -4.1e-297: tmp = t_1 elif t <= 2.8e-227: tmp = x / (x + (y * math.exp(((c * -1.3333333333333333) / t)))) elif t <= 0.0005: tmp = 1.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))) tmp = 0.0 if (t <= -4.1e-297) tmp = t_1; elseif (t <= 2.8e-227) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c * -1.3333333333333333) / t))))); elseif (t <= 0.0005) tmp = 1.0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); tmp = 0.0; if (t <= -4.1e-297) tmp = t_1; elseif (t <= 2.8e-227) tmp = x / (x + (y * exp(((c * -1.3333333333333333) / t)))); elseif (t <= 0.0005) tmp = 1.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.1e-297], t$95$1, If[LessEqual[t, 2.8e-227], N[(x / N[(x + N[(y * N[Exp[N[(N[(c * -1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.0005], 1.0, t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{if}\;t \leq -4.1 \cdot 10^{-297}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-227}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{c \cdot -1.3333333333333333}{t}}}\\
\mathbf{elif}\;t \leq 0.0005:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -4.1000000000000002e-297 or 5.0000000000000001e-4 < t Initial program 95.6%
Taylor expanded in t around inf 89.9%
mul-1-neg89.9%
*-commutative89.9%
distribute-rgt-neg-in89.9%
distribute-neg-in89.9%
metadata-eval89.9%
Simplified89.9%
Taylor expanded in a around 0 82.6%
if -4.1000000000000002e-297 < t < 2.7999999999999998e-227Initial program 91.3%
Taylor expanded in c around inf 87.4%
cancel-sign-sub-inv87.4%
+-commutative87.4%
metadata-eval87.4%
associate-*r/87.4%
metadata-eval87.4%
associate-+r+87.4%
Simplified87.4%
Taylor expanded in t around 0 83.2%
associate-*r/83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in y around 0 83.2%
associate-*r/83.2%
Simplified83.2%
if 2.7999999999999998e-227 < t < 5.0000000000000001e-4Initial program 96.3%
Taylor expanded in t around inf 40.8%
mul-1-neg40.8%
*-commutative40.8%
distribute-rgt-neg-in40.8%
distribute-neg-in40.8%
metadata-eval40.8%
Simplified40.8%
Taylor expanded in a around 0 37.2%
Taylor expanded in x around inf 56.9%
Final simplification77.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -1e+21)
(/ x (* y (exp (* (- b c) -1.6666666666666667))))
(if (<= (- b c) 100000.0)
(/
x
(-
x
(*
y
(+
-1.0
(*
2.0
(* b (- (- a -0.8333333333333334) (/ 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 - c) <= -1e+21) {
tmp = x / (y * exp(((b - c) * -1.6666666666666667)));
} else if ((b - c) <= 100000.0) {
tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a - -0.8333333333333334) - (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 - c) <= (-1d+21)) then
tmp = x / (y * exp(((b - c) * (-1.6666666666666667d0))))
else if ((b - c) <= 100000.0d0) then
tmp = x / (x - (y * ((-1.0d0) + (2.0d0 * (b * ((a - (-0.8333333333333334d0)) - (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 - c) <= -1e+21) {
tmp = x / (y * Math.exp(((b - c) * -1.6666666666666667)));
} else if ((b - c) <= 100000.0) {
tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a - -0.8333333333333334) - (0.6666666666666666 / t)))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -1e+21: tmp = x / (y * math.exp(((b - c) * -1.6666666666666667))) elif (b - c) <= 100000.0: tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a - -0.8333333333333334) - (0.6666666666666666 / t))))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -1e+21) tmp = Float64(x / Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667)))); elseif (Float64(b - c) <= 100000.0) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(2.0 * Float64(b * Float64(Float64(a - -0.8333333333333334) - Float64(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 - c) <= -1e+21) tmp = x / (y * exp(((b - c) * -1.6666666666666667))); elseif ((b - c) <= 100000.0) tmp = x / (x - (y * (-1.0 + (2.0 * (b * ((a - -0.8333333333333334) - (0.6666666666666666 / t))))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -1e+21], N[(x / N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 100000.0], N[(x / N[(x - N[(y * N[(-1.0 + N[(2.0 * N[(b * N[(N[(a - -0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -1 \cdot 10^{+21}:\\
\;\;\;\;\frac{x}{y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b - c \leq 100000:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 2 \cdot \left(b \cdot \left(\left(a - -0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -1e21Initial program 93.9%
Taylor expanded in t around inf 79.7%
mul-1-neg79.7%
*-commutative79.7%
distribute-rgt-neg-in79.7%
distribute-neg-in79.7%
metadata-eval79.7%
Simplified79.7%
Taylor expanded in a around 0 76.1%
Taylor expanded in x around 0 76.1%
if -1e21 < (-.f64 b c) < 1e5Initial program 100.0%
Taylor expanded in b around inf 70.7%
associate-*r/70.7%
metadata-eval70.7%
+-commutative70.7%
Simplified70.7%
Taylor expanded in b around 0 55.7%
sub-neg55.7%
distribute-neg-in55.7%
metadata-eval55.7%
sub-neg55.7%
associate-*r/55.7%
metadata-eval55.7%
+-commutative55.7%
+-commutative55.7%
Simplified55.7%
if 1e5 < (-.f64 b c) Initial program 92.9%
Taylor expanded in t around inf 76.0%
mul-1-neg76.0%
*-commutative76.0%
distribute-rgt-neg-in76.0%
distribute-neg-in76.0%
metadata-eval76.0%
Simplified76.0%
Taylor expanded in a around 0 76.0%
Taylor expanded in x around inf 76.0%
Final simplification69.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (+ 1.0 (* 1.3333333333333333 (/ b t))))))))
(if (<= c -1.7e-60)
1.0
(if (<= c -4.6e-114)
(/ x (- x (* y (+ -1.0 (* 2.0 (* a (- b c)))))))
(if (<= c -4.5e-211)
1.0
(if (<= c -1.15e-277)
t_1
(if (<= c 1.2e-180)
1.0
(if (<= c 1.4e-120)
t_1
(if (<= c 2.3e+22)
1.0
(/
x
(*
y
(+
1.0
(*
2.0
(*
c
(+
(/ -0.6666666666666666 t)
(+ a 0.8333333333333334))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t)))));
double tmp;
if (c <= -1.7e-60) {
tmp = 1.0;
} else if (c <= -4.6e-114) {
tmp = x / (x - (y * (-1.0 + (2.0 * (a * (b - c))))));
} else if (c <= -4.5e-211) {
tmp = 1.0;
} else if (c <= -1.15e-277) {
tmp = t_1;
} else if (c <= 1.2e-180) {
tmp = 1.0;
} else if (c <= 1.4e-120) {
tmp = t_1;
} else if (c <= 2.3e+22) {
tmp = 1.0;
} else {
tmp = x / (y * (1.0 + (2.0 * (c * ((-0.6666666666666666 / t) + (a + 0.8333333333333334))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * (1.0d0 + (1.3333333333333333d0 * (b / t)))))
if (c <= (-1.7d-60)) then
tmp = 1.0d0
else if (c <= (-4.6d-114)) then
tmp = x / (x - (y * ((-1.0d0) + (2.0d0 * (a * (b - c))))))
else if (c <= (-4.5d-211)) then
tmp = 1.0d0
else if (c <= (-1.15d-277)) then
tmp = t_1
else if (c <= 1.2d-180) then
tmp = 1.0d0
else if (c <= 1.4d-120) then
tmp = t_1
else if (c <= 2.3d+22) then
tmp = 1.0d0
else
tmp = x / (y * (1.0d0 + (2.0d0 * (c * (((-0.6666666666666666d0) / t) + (a + 0.8333333333333334d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t)))));
double tmp;
if (c <= -1.7e-60) {
tmp = 1.0;
} else if (c <= -4.6e-114) {
tmp = x / (x - (y * (-1.0 + (2.0 * (a * (b - c))))));
} else if (c <= -4.5e-211) {
tmp = 1.0;
} else if (c <= -1.15e-277) {
tmp = t_1;
} else if (c <= 1.2e-180) {
tmp = 1.0;
} else if (c <= 1.4e-120) {
tmp = t_1;
} else if (c <= 2.3e+22) {
tmp = 1.0;
} else {
tmp = x / (y * (1.0 + (2.0 * (c * ((-0.6666666666666666 / t) + (a + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t))))) tmp = 0 if c <= -1.7e-60: tmp = 1.0 elif c <= -4.6e-114: tmp = x / (x - (y * (-1.0 + (2.0 * (a * (b - c)))))) elif c <= -4.5e-211: tmp = 1.0 elif c <= -1.15e-277: tmp = t_1 elif c <= 1.2e-180: tmp = 1.0 elif c <= 1.4e-120: tmp = t_1 elif c <= 2.3e+22: tmp = 1.0 else: tmp = x / (y * (1.0 + (2.0 * (c * ((-0.6666666666666666 / t) + (a + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(1.3333333333333333 * Float64(b / t)))))) tmp = 0.0 if (c <= -1.7e-60) tmp = 1.0; elseif (c <= -4.6e-114) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(2.0 * Float64(a * Float64(b - c))))))); elseif (c <= -4.5e-211) tmp = 1.0; elseif (c <= -1.15e-277) tmp = t_1; elseif (c <= 1.2e-180) tmp = 1.0; elseif (c <= 1.4e-120) tmp = t_1; elseif (c <= 2.3e+22) tmp = 1.0; else tmp = Float64(x / Float64(y * Float64(1.0 + Float64(2.0 * Float64(c * Float64(Float64(-0.6666666666666666 / t) + Float64(a + 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t))))); tmp = 0.0; if (c <= -1.7e-60) tmp = 1.0; elseif (c <= -4.6e-114) tmp = x / (x - (y * (-1.0 + (2.0 * (a * (b - c)))))); elseif (c <= -4.5e-211) tmp = 1.0; elseif (c <= -1.15e-277) tmp = t_1; elseif (c <= 1.2e-180) tmp = 1.0; elseif (c <= 1.4e-120) tmp = t_1; elseif (c <= 2.3e+22) tmp = 1.0; else tmp = x / (y * (1.0 + (2.0 * (c * ((-0.6666666666666666 / t) + (a + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[(1.0 + N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.7e-60], 1.0, If[LessEqual[c, -4.6e-114], N[(x / N[(x - N[(y * N[(-1.0 + N[(2.0 * N[(a * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -4.5e-211], 1.0, If[LessEqual[c, -1.15e-277], t$95$1, If[LessEqual[c, 1.2e-180], 1.0, If[LessEqual[c, 1.4e-120], t$95$1, If[LessEqual[c, 2.3e+22], 1.0, N[(x / N[(y * N[(1.0 + N[(2.0 * N[(c * N[(N[(-0.6666666666666666 / t), $MachinePrecision] + N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot \left(1 + 1.3333333333333333 \cdot \frac{b}{t}\right)}\\
\mathbf{if}\;c \leq -1.7 \cdot 10^{-60}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -4.6 \cdot 10^{-114}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 2 \cdot \left(a \cdot \left(b - c\right)\right)\right)}\\
\mathbf{elif}\;c \leq -4.5 \cdot 10^{-211}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.15 \cdot 10^{-277}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.2 \cdot 10^{-180}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.4 \cdot 10^{-120}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2.3 \cdot 10^{+22}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(1 + 2 \cdot \left(c \cdot \left(\frac{-0.6666666666666666}{t} + \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\end{array}
\end{array}
if c < -1.70000000000000003e-60 or -4.5999999999999999e-114 < c < -4.4999999999999999e-211 or -1.15e-277 < c < 1.1999999999999999e-180 or 1.39999999999999997e-120 < c < 2.3000000000000002e22Initial program 96.4%
Taylor expanded in t around inf 70.4%
mul-1-neg70.4%
*-commutative70.4%
distribute-rgt-neg-in70.4%
distribute-neg-in70.4%
metadata-eval70.4%
Simplified70.4%
Taylor expanded in a around 0 64.7%
Taylor expanded in x around inf 65.8%
if -1.70000000000000003e-60 < c < -4.5999999999999999e-114Initial program 89.1%
Taylor expanded in a around inf 73.1%
Taylor expanded in a around 0 67.7%
if -4.4999999999999999e-211 < c < -1.15e-277 or 1.1999999999999999e-180 < c < 1.39999999999999997e-120Initial program 96.4%
Taylor expanded in b around inf 86.9%
associate-*r/86.9%
metadata-eval86.9%
+-commutative86.9%
Simplified86.9%
Taylor expanded in t around 0 65.5%
associate-*r/65.5%
*-commutative65.5%
Simplified65.5%
Taylor expanded in b around 0 65.7%
if 2.3000000000000002e22 < c Initial program 93.2%
Taylor expanded in c around inf 84.6%
cancel-sign-sub-inv84.6%
+-commutative84.6%
metadata-eval84.6%
associate-*r/84.6%
metadata-eval84.6%
associate-+r+84.6%
Simplified84.6%
Taylor expanded in c around 0 53.9%
associate-*r*53.9%
associate--l+53.9%
associate-*r/53.9%
metadata-eval53.9%
Simplified53.9%
Taylor expanded in y around inf 58.2%
sub-neg58.2%
associate-*r/58.2%
metadata-eval58.2%
distribute-neg-frac58.2%
metadata-eval58.2%
Simplified58.2%
Final simplification64.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(-
x
(*
y
(+
-1.0
(*
2.0
(*
b
(- (- a -0.8333333333333334) (/ 0.6666666666666666 t))))))))))
(if (<= c -2.15e-60)
1.0
(if (<= c -1.35e-114)
t_1
(if (<= c -5.8e-211)
1.0
(if (<= c 3.2e-305)
t_1
(if (<= c 1.15e-179)
1.0
(if (<= c 4.8e-117)
(/ x (+ x (* y (+ 1.0 (* 1.3333333333333333 (/ b t))))))
(if (<= c 2.5e+26)
1.0
(/
x
(*
y
(+
1.0
(*
2.0
(*
c
(+
(/ -0.6666666666666666 t)
(+ a 0.8333333333333334))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x - (y * (-1.0 + (2.0 * (b * ((a - -0.8333333333333334) - (0.6666666666666666 / t)))))));
double tmp;
if (c <= -2.15e-60) {
tmp = 1.0;
} else if (c <= -1.35e-114) {
tmp = t_1;
} else if (c <= -5.8e-211) {
tmp = 1.0;
} else if (c <= 3.2e-305) {
tmp = t_1;
} else if (c <= 1.15e-179) {
tmp = 1.0;
} else if (c <= 4.8e-117) {
tmp = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t)))));
} else if (c <= 2.5e+26) {
tmp = 1.0;
} else {
tmp = x / (y * (1.0 + (2.0 * (c * ((-0.6666666666666666 / t) + (a + 0.8333333333333334))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x - (y * ((-1.0d0) + (2.0d0 * (b * ((a - (-0.8333333333333334d0)) - (0.6666666666666666d0 / t)))))))
if (c <= (-2.15d-60)) then
tmp = 1.0d0
else if (c <= (-1.35d-114)) then
tmp = t_1
else if (c <= (-5.8d-211)) then
tmp = 1.0d0
else if (c <= 3.2d-305) then
tmp = t_1
else if (c <= 1.15d-179) then
tmp = 1.0d0
else if (c <= 4.8d-117) then
tmp = x / (x + (y * (1.0d0 + (1.3333333333333333d0 * (b / t)))))
else if (c <= 2.5d+26) then
tmp = 1.0d0
else
tmp = x / (y * (1.0d0 + (2.0d0 * (c * (((-0.6666666666666666d0) / t) + (a + 0.8333333333333334d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x - (y * (-1.0 + (2.0 * (b * ((a - -0.8333333333333334) - (0.6666666666666666 / t)))))));
double tmp;
if (c <= -2.15e-60) {
tmp = 1.0;
} else if (c <= -1.35e-114) {
tmp = t_1;
} else if (c <= -5.8e-211) {
tmp = 1.0;
} else if (c <= 3.2e-305) {
tmp = t_1;
} else if (c <= 1.15e-179) {
tmp = 1.0;
} else if (c <= 4.8e-117) {
tmp = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t)))));
} else if (c <= 2.5e+26) {
tmp = 1.0;
} else {
tmp = x / (y * (1.0 + (2.0 * (c * ((-0.6666666666666666 / t) + (a + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x - (y * (-1.0 + (2.0 * (b * ((a - -0.8333333333333334) - (0.6666666666666666 / t))))))) tmp = 0 if c <= -2.15e-60: tmp = 1.0 elif c <= -1.35e-114: tmp = t_1 elif c <= -5.8e-211: tmp = 1.0 elif c <= 3.2e-305: tmp = t_1 elif c <= 1.15e-179: tmp = 1.0 elif c <= 4.8e-117: tmp = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t))))) elif c <= 2.5e+26: tmp = 1.0 else: tmp = x / (y * (1.0 + (2.0 * (c * ((-0.6666666666666666 / t) + (a + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(2.0 * Float64(b * Float64(Float64(a - -0.8333333333333334) - Float64(0.6666666666666666 / t)))))))) tmp = 0.0 if (c <= -2.15e-60) tmp = 1.0; elseif (c <= -1.35e-114) tmp = t_1; elseif (c <= -5.8e-211) tmp = 1.0; elseif (c <= 3.2e-305) tmp = t_1; elseif (c <= 1.15e-179) tmp = 1.0; elseif (c <= 4.8e-117) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(1.3333333333333333 * Float64(b / t)))))); elseif (c <= 2.5e+26) tmp = 1.0; else tmp = Float64(x / Float64(y * Float64(1.0 + Float64(2.0 * Float64(c * Float64(Float64(-0.6666666666666666 / t) + Float64(a + 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x - (y * (-1.0 + (2.0 * (b * ((a - -0.8333333333333334) - (0.6666666666666666 / t))))))); tmp = 0.0; if (c <= -2.15e-60) tmp = 1.0; elseif (c <= -1.35e-114) tmp = t_1; elseif (c <= -5.8e-211) tmp = 1.0; elseif (c <= 3.2e-305) tmp = t_1; elseif (c <= 1.15e-179) tmp = 1.0; elseif (c <= 4.8e-117) tmp = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t))))); elseif (c <= 2.5e+26) tmp = 1.0; else tmp = x / (y * (1.0 + (2.0 * (c * ((-0.6666666666666666 / t) + (a + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x - N[(y * N[(-1.0 + N[(2.0 * N[(b * N[(N[(a - -0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.15e-60], 1.0, If[LessEqual[c, -1.35e-114], t$95$1, If[LessEqual[c, -5.8e-211], 1.0, If[LessEqual[c, 3.2e-305], t$95$1, If[LessEqual[c, 1.15e-179], 1.0, If[LessEqual[c, 4.8e-117], N[(x / N[(x + N[(y * N[(1.0 + N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.5e+26], 1.0, N[(x / N[(y * N[(1.0 + N[(2.0 * N[(c * N[(N[(-0.6666666666666666 / t), $MachinePrecision] + N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x - y \cdot \left(-1 + 2 \cdot \left(b \cdot \left(\left(a - -0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)\right)}\\
\mathbf{if}\;c \leq -2.15 \cdot 10^{-60}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.35 \cdot 10^{-114}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -5.8 \cdot 10^{-211}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 3.2 \cdot 10^{-305}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.15 \cdot 10^{-179}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 4.8 \cdot 10^{-117}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + 1.3333333333333333 \cdot \frac{b}{t}\right)}\\
\mathbf{elif}\;c \leq 2.5 \cdot 10^{+26}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(1 + 2 \cdot \left(c \cdot \left(\frac{-0.6666666666666666}{t} + \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\end{array}
\end{array}
if c < -2.15e-60 or -1.35e-114 < c < -5.80000000000000029e-211 or 3.20000000000000009e-305 < c < 1.14999999999999994e-179 or 4.80000000000000028e-117 < c < 2.5e26Initial program 96.2%
Taylor expanded in t around inf 70.0%
mul-1-neg70.0%
*-commutative70.0%
distribute-rgt-neg-in70.0%
distribute-neg-in70.0%
metadata-eval70.0%
Simplified70.0%
Taylor expanded in a around 0 63.9%
Taylor expanded in x around inf 66.2%
if -2.15e-60 < c < -1.35e-114 or -5.80000000000000029e-211 < c < 3.20000000000000009e-305Initial program 93.2%
Taylor expanded in b around inf 84.2%
associate-*r/84.2%
metadata-eval84.2%
+-commutative84.2%
Simplified84.2%
Taylor expanded in b around 0 66.5%
sub-neg66.5%
distribute-neg-in66.5%
metadata-eval66.5%
sub-neg66.5%
associate-*r/66.5%
metadata-eval66.5%
+-commutative66.5%
+-commutative66.5%
Simplified66.5%
if 1.14999999999999994e-179 < c < 4.80000000000000028e-117Initial program 100.0%
Taylor expanded in b around inf 88.4%
associate-*r/88.4%
metadata-eval88.4%
+-commutative88.4%
Simplified88.4%
Taylor expanded in t around 0 74.6%
associate-*r/74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in b around 0 68.0%
if 2.5e26 < c Initial program 93.2%
Taylor expanded in c around inf 84.6%
cancel-sign-sub-inv84.6%
+-commutative84.6%
metadata-eval84.6%
associate-*r/84.6%
metadata-eval84.6%
associate-+r+84.6%
Simplified84.6%
Taylor expanded in c around 0 53.9%
associate-*r*53.9%
associate--l+53.9%
associate-*r/53.9%
metadata-eval53.9%
Simplified53.9%
Taylor expanded in y around inf 58.2%
sub-neg58.2%
associate-*r/58.2%
metadata-eval58.2%
distribute-neg-frac58.2%
metadata-eval58.2%
Simplified58.2%
Final simplification65.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(-
x
(*
y
(+
-1.0
(*
2.0
(*
b
(- (- a -0.8333333333333334) (/ 0.6666666666666666 t))))))))))
(if (<= c -2.5e-60)
1.0
(if (<= c -1.05e-115)
t_1
(if (<= c -4.5e-211)
1.0
(if (<= c 2.8e-305)
t_1
(if (<= c 7.6e-180)
1.0
(/
x
(+
x
(-
y
(*
2.0
(*
c
(*
y
(-
(* 0.6666666666666666 (/ 1.0 t))
(+ a 0.8333333333333334)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x - (y * (-1.0 + (2.0 * (b * ((a - -0.8333333333333334) - (0.6666666666666666 / t)))))));
double tmp;
if (c <= -2.5e-60) {
tmp = 1.0;
} else if (c <= -1.05e-115) {
tmp = t_1;
} else if (c <= -4.5e-211) {
tmp = 1.0;
} else if (c <= 2.8e-305) {
tmp = t_1;
} else if (c <= 7.6e-180) {
tmp = 1.0;
} else {
tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x - (y * ((-1.0d0) + (2.0d0 * (b * ((a - (-0.8333333333333334d0)) - (0.6666666666666666d0 / t)))))))
if (c <= (-2.5d-60)) then
tmp = 1.0d0
else if (c <= (-1.05d-115)) then
tmp = t_1
else if (c <= (-4.5d-211)) then
tmp = 1.0d0
else if (c <= 2.8d-305) then
tmp = t_1
else if (c <= 7.6d-180) then
tmp = 1.0d0
else
tmp = x / (x + (y - (2.0d0 * (c * (y * ((0.6666666666666666d0 * (1.0d0 / t)) - (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x - (y * (-1.0 + (2.0 * (b * ((a - -0.8333333333333334) - (0.6666666666666666 / t)))))));
double tmp;
if (c <= -2.5e-60) {
tmp = 1.0;
} else if (c <= -1.05e-115) {
tmp = t_1;
} else if (c <= -4.5e-211) {
tmp = 1.0;
} else if (c <= 2.8e-305) {
tmp = t_1;
} else if (c <= 7.6e-180) {
tmp = 1.0;
} else {
tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x - (y * (-1.0 + (2.0 * (b * ((a - -0.8333333333333334) - (0.6666666666666666 / t))))))) tmp = 0 if c <= -2.5e-60: tmp = 1.0 elif c <= -1.05e-115: tmp = t_1 elif c <= -4.5e-211: tmp = 1.0 elif c <= 2.8e-305: tmp = t_1 elif c <= 7.6e-180: tmp = 1.0 else: tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(2.0 * Float64(b * Float64(Float64(a - -0.8333333333333334) - Float64(0.6666666666666666 / t)))))))) tmp = 0.0 if (c <= -2.5e-60) tmp = 1.0; elseif (c <= -1.05e-115) tmp = t_1; elseif (c <= -4.5e-211) tmp = 1.0; elseif (c <= 2.8e-305) tmp = t_1; elseif (c <= 7.6e-180) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(c * Float64(y * Float64(Float64(0.6666666666666666 * Float64(1.0 / t)) - Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x - (y * (-1.0 + (2.0 * (b * ((a - -0.8333333333333334) - (0.6666666666666666 / t))))))); tmp = 0.0; if (c <= -2.5e-60) tmp = 1.0; elseif (c <= -1.05e-115) tmp = t_1; elseif (c <= -4.5e-211) tmp = 1.0; elseif (c <= 2.8e-305) tmp = t_1; elseif (c <= 7.6e-180) tmp = 1.0; else tmp = x / (x + (y - (2.0 * (c * (y * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x - N[(y * N[(-1.0 + N[(2.0 * N[(b * N[(N[(a - -0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.5e-60], 1.0, If[LessEqual[c, -1.05e-115], t$95$1, If[LessEqual[c, -4.5e-211], 1.0, If[LessEqual[c, 2.8e-305], t$95$1, If[LessEqual[c, 7.6e-180], 1.0, N[(x / N[(x + N[(y - N[(2.0 * N[(c * N[(y * N[(N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x - y \cdot \left(-1 + 2 \cdot \left(b \cdot \left(\left(a - -0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)\right)}\\
\mathbf{if}\;c \leq -2.5 \cdot 10^{-60}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.05 \cdot 10^{-115}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -4.5 \cdot 10^{-211}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 2.8 \cdot 10^{-305}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 7.6 \cdot 10^{-180}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(c \cdot \left(y \cdot \left(0.6666666666666666 \cdot \frac{1}{t} - \left(a + 0.8333333333333334\right)\right)\right)\right)\right)}\\
\end{array}
\end{array}
if c < -2.5000000000000001e-60 or -1.05000000000000001e-115 < c < -4.4999999999999999e-211 or 2.80000000000000014e-305 < c < 7.59999999999999999e-180Initial program 96.1%
Taylor expanded in t around inf 74.3%
mul-1-neg74.3%
*-commutative74.3%
distribute-rgt-neg-in74.3%
distribute-neg-in74.3%
metadata-eval74.3%
Simplified74.3%
Taylor expanded in a around 0 67.5%
Taylor expanded in x around inf 69.0%
if -2.5000000000000001e-60 < c < -1.05000000000000001e-115 or -4.4999999999999999e-211 < c < 2.80000000000000014e-305Initial program 93.2%
Taylor expanded in b around inf 84.2%
associate-*r/84.2%
metadata-eval84.2%
+-commutative84.2%
Simplified84.2%
Taylor expanded in b around 0 66.5%
sub-neg66.5%
distribute-neg-in66.5%
metadata-eval66.5%
sub-neg66.5%
associate-*r/66.5%
metadata-eval66.5%
+-commutative66.5%
+-commutative66.5%
Simplified66.5%
if 7.59999999999999999e-180 < c Initial program 95.3%
Taylor expanded in c around inf 75.5%
cancel-sign-sub-inv75.5%
+-commutative75.5%
metadata-eval75.5%
associate-*r/75.5%
metadata-eval75.5%
associate-+r+75.5%
Simplified75.5%
Taylor expanded in c around 0 53.9%
Final simplification63.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (+ 1.0 (* 1.3333333333333333 (/ b t))))))))
(if (<= c -1.75e-60)
1.0
(if (<= c -6e-139)
t_1
(if (<= c -4.5e-211)
1.0
(if (<= c -1.45e-274)
t_1
(if (<= c 1.05e-180)
1.0
(if (<= c 1.82e-119)
t_1
(if (<= c 7.2e+142)
1.0
(*
0.5
(/
(/ x c)
(*
y
(-
a
(-
(/ 0.6666666666666666 t)
0.8333333333333334))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t)))));
double tmp;
if (c <= -1.75e-60) {
tmp = 1.0;
} else if (c <= -6e-139) {
tmp = t_1;
} else if (c <= -4.5e-211) {
tmp = 1.0;
} else if (c <= -1.45e-274) {
tmp = t_1;
} else if (c <= 1.05e-180) {
tmp = 1.0;
} else if (c <= 1.82e-119) {
tmp = t_1;
} else if (c <= 7.2e+142) {
tmp = 1.0;
} else {
tmp = 0.5 * ((x / c) / (y * (a - ((0.6666666666666666 / t) - 0.8333333333333334))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * (1.0d0 + (1.3333333333333333d0 * (b / t)))))
if (c <= (-1.75d-60)) then
tmp = 1.0d0
else if (c <= (-6d-139)) then
tmp = t_1
else if (c <= (-4.5d-211)) then
tmp = 1.0d0
else if (c <= (-1.45d-274)) then
tmp = t_1
else if (c <= 1.05d-180) then
tmp = 1.0d0
else if (c <= 1.82d-119) then
tmp = t_1
else if (c <= 7.2d+142) then
tmp = 1.0d0
else
tmp = 0.5d0 * ((x / c) / (y * (a - ((0.6666666666666666d0 / t) - 0.8333333333333334d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t)))));
double tmp;
if (c <= -1.75e-60) {
tmp = 1.0;
} else if (c <= -6e-139) {
tmp = t_1;
} else if (c <= -4.5e-211) {
tmp = 1.0;
} else if (c <= -1.45e-274) {
tmp = t_1;
} else if (c <= 1.05e-180) {
tmp = 1.0;
} else if (c <= 1.82e-119) {
tmp = t_1;
} else if (c <= 7.2e+142) {
tmp = 1.0;
} else {
tmp = 0.5 * ((x / c) / (y * (a - ((0.6666666666666666 / t) - 0.8333333333333334))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t))))) tmp = 0 if c <= -1.75e-60: tmp = 1.0 elif c <= -6e-139: tmp = t_1 elif c <= -4.5e-211: tmp = 1.0 elif c <= -1.45e-274: tmp = t_1 elif c <= 1.05e-180: tmp = 1.0 elif c <= 1.82e-119: tmp = t_1 elif c <= 7.2e+142: tmp = 1.0 else: tmp = 0.5 * ((x / c) / (y * (a - ((0.6666666666666666 / t) - 0.8333333333333334)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(1.3333333333333333 * Float64(b / t)))))) tmp = 0.0 if (c <= -1.75e-60) tmp = 1.0; elseif (c <= -6e-139) tmp = t_1; elseif (c <= -4.5e-211) tmp = 1.0; elseif (c <= -1.45e-274) tmp = t_1; elseif (c <= 1.05e-180) tmp = 1.0; elseif (c <= 1.82e-119) tmp = t_1; elseif (c <= 7.2e+142) tmp = 1.0; else tmp = Float64(0.5 * Float64(Float64(x / c) / Float64(y * Float64(a - Float64(Float64(0.6666666666666666 / t) - 0.8333333333333334))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t))))); tmp = 0.0; if (c <= -1.75e-60) tmp = 1.0; elseif (c <= -6e-139) tmp = t_1; elseif (c <= -4.5e-211) tmp = 1.0; elseif (c <= -1.45e-274) tmp = t_1; elseif (c <= 1.05e-180) tmp = 1.0; elseif (c <= 1.82e-119) tmp = t_1; elseif (c <= 7.2e+142) tmp = 1.0; else tmp = 0.5 * ((x / c) / (y * (a - ((0.6666666666666666 / t) - 0.8333333333333334)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[(1.0 + N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.75e-60], 1.0, If[LessEqual[c, -6e-139], t$95$1, If[LessEqual[c, -4.5e-211], 1.0, If[LessEqual[c, -1.45e-274], t$95$1, If[LessEqual[c, 1.05e-180], 1.0, If[LessEqual[c, 1.82e-119], t$95$1, If[LessEqual[c, 7.2e+142], 1.0, N[(0.5 * N[(N[(x / c), $MachinePrecision] / N[(y * N[(a - N[(N[(0.6666666666666666 / t), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot \left(1 + 1.3333333333333333 \cdot \frac{b}{t}\right)}\\
\mathbf{if}\;c \leq -1.75 \cdot 10^{-60}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -6 \cdot 10^{-139}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -4.5 \cdot 10^{-211}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.45 \cdot 10^{-274}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.05 \cdot 10^{-180}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.82 \cdot 10^{-119}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 7.2 \cdot 10^{+142}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{\frac{x}{c}}{y \cdot \left(a - \left(\frac{0.6666666666666666}{t} - 0.8333333333333334\right)\right)}\\
\end{array}
\end{array}
if c < -1.74999999999999988e-60 or -5.9999999999999998e-139 < c < -4.4999999999999999e-211 or -1.44999999999999988e-274 < c < 1.0499999999999999e-180 or 1.82000000000000008e-119 < c < 7.2000000000000003e142Initial program 96.2%
Taylor expanded in t around inf 72.0%
mul-1-neg72.0%
*-commutative72.0%
distribute-rgt-neg-in72.0%
distribute-neg-in72.0%
metadata-eval72.0%
Simplified72.0%
Taylor expanded in a around 0 66.7%
Taylor expanded in x around inf 62.4%
if -1.74999999999999988e-60 < c < -5.9999999999999998e-139 or -4.4999999999999999e-211 < c < -1.44999999999999988e-274 or 1.0499999999999999e-180 < c < 1.82000000000000008e-119Initial program 94.1%
Taylor expanded in b around inf 87.1%
associate-*r/87.1%
metadata-eval87.1%
+-commutative87.1%
Simplified87.1%
Taylor expanded in t around 0 72.3%
associate-*r/72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in b around 0 62.8%
if 7.2000000000000003e142 < c Initial program 91.3%
Taylor expanded in c around inf 91.6%
cancel-sign-sub-inv91.6%
+-commutative91.6%
metadata-eval91.6%
associate-*r/91.6%
metadata-eval91.6%
associate-+r+91.6%
Simplified91.6%
Taylor expanded in c around 0 70.6%
associate-*r*70.6%
associate--l+70.6%
associate-*r/70.6%
metadata-eval70.6%
Simplified70.6%
Taylor expanded in y around inf 70.6%
sub-neg70.6%
associate-*r/70.6%
metadata-eval70.6%
distribute-neg-frac70.6%
metadata-eval70.6%
Simplified70.6%
Taylor expanded in c around inf 70.6%
associate-/r*70.6%
+-commutative70.6%
associate--l+70.6%
associate-*r/70.6%
metadata-eval70.6%
Simplified70.6%
Final simplification63.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (+ 1.0 (* 1.3333333333333333 (/ b t))))))))
(if (<= c -2.5e-60)
1.0
(if (<= c -3.3e-140)
t_1
(if (<= c -4.2e-211)
1.0
(if (<= c -1.25e-272)
t_1
(if (<= c 3.7e-181)
1.0
(if (<= c 2.6e-120)
t_1
(if (<= c 2.5e+168)
1.0
(/
x
(*
y
(+ 1.0 (* 2.0 (* c (+ a 0.8333333333333334)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t)))));
double tmp;
if (c <= -2.5e-60) {
tmp = 1.0;
} else if (c <= -3.3e-140) {
tmp = t_1;
} else if (c <= -4.2e-211) {
tmp = 1.0;
} else if (c <= -1.25e-272) {
tmp = t_1;
} else if (c <= 3.7e-181) {
tmp = 1.0;
} else if (c <= 2.6e-120) {
tmp = t_1;
} else if (c <= 2.5e+168) {
tmp = 1.0;
} else {
tmp = x / (y * (1.0 + (2.0 * (c * (a + 0.8333333333333334)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * (1.0d0 + (1.3333333333333333d0 * (b / t)))))
if (c <= (-2.5d-60)) then
tmp = 1.0d0
else if (c <= (-3.3d-140)) then
tmp = t_1
else if (c <= (-4.2d-211)) then
tmp = 1.0d0
else if (c <= (-1.25d-272)) then
tmp = t_1
else if (c <= 3.7d-181) then
tmp = 1.0d0
else if (c <= 2.6d-120) then
tmp = t_1
else if (c <= 2.5d+168) then
tmp = 1.0d0
else
tmp = x / (y * (1.0d0 + (2.0d0 * (c * (a + 0.8333333333333334d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t)))));
double tmp;
if (c <= -2.5e-60) {
tmp = 1.0;
} else if (c <= -3.3e-140) {
tmp = t_1;
} else if (c <= -4.2e-211) {
tmp = 1.0;
} else if (c <= -1.25e-272) {
tmp = t_1;
} else if (c <= 3.7e-181) {
tmp = 1.0;
} else if (c <= 2.6e-120) {
tmp = t_1;
} else if (c <= 2.5e+168) {
tmp = 1.0;
} else {
tmp = x / (y * (1.0 + (2.0 * (c * (a + 0.8333333333333334)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t))))) tmp = 0 if c <= -2.5e-60: tmp = 1.0 elif c <= -3.3e-140: tmp = t_1 elif c <= -4.2e-211: tmp = 1.0 elif c <= -1.25e-272: tmp = t_1 elif c <= 3.7e-181: tmp = 1.0 elif c <= 2.6e-120: tmp = t_1 elif c <= 2.5e+168: tmp = 1.0 else: tmp = x / (y * (1.0 + (2.0 * (c * (a + 0.8333333333333334))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(1.3333333333333333 * Float64(b / t)))))) tmp = 0.0 if (c <= -2.5e-60) tmp = 1.0; elseif (c <= -3.3e-140) tmp = t_1; elseif (c <= -4.2e-211) tmp = 1.0; elseif (c <= -1.25e-272) tmp = t_1; elseif (c <= 3.7e-181) tmp = 1.0; elseif (c <= 2.6e-120) tmp = t_1; elseif (c <= 2.5e+168) tmp = 1.0; else tmp = Float64(x / Float64(y * Float64(1.0 + Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * (1.0 + (1.3333333333333333 * (b / t))))); tmp = 0.0; if (c <= -2.5e-60) tmp = 1.0; elseif (c <= -3.3e-140) tmp = t_1; elseif (c <= -4.2e-211) tmp = 1.0; elseif (c <= -1.25e-272) tmp = t_1; elseif (c <= 3.7e-181) tmp = 1.0; elseif (c <= 2.6e-120) tmp = t_1; elseif (c <= 2.5e+168) tmp = 1.0; else tmp = x / (y * (1.0 + (2.0 * (c * (a + 0.8333333333333334))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[(1.0 + N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.5e-60], 1.0, If[LessEqual[c, -3.3e-140], t$95$1, If[LessEqual[c, -4.2e-211], 1.0, If[LessEqual[c, -1.25e-272], t$95$1, If[LessEqual[c, 3.7e-181], 1.0, If[LessEqual[c, 2.6e-120], t$95$1, If[LessEqual[c, 2.5e+168], 1.0, N[(x / N[(y * N[(1.0 + N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot \left(1 + 1.3333333333333333 \cdot \frac{b}{t}\right)}\\
\mathbf{if}\;c \leq -2.5 \cdot 10^{-60}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -3.3 \cdot 10^{-140}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -4.2 \cdot 10^{-211}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -1.25 \cdot 10^{-272}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 3.7 \cdot 10^{-181}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 2.6 \cdot 10^{-120}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2.5 \cdot 10^{+168}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(1 + 2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right)\right)}\\
\end{array}
\end{array}
if c < -2.5000000000000001e-60 or -3.29999999999999987e-140 < c < -4.20000000000000015e-211 or -1.24999999999999995e-272 < c < 3.69999999999999984e-181 or 2.6000000000000001e-120 < c < 2.49999999999999983e168Initial program 95.7%
Taylor expanded in t around inf 72.4%
mul-1-neg72.4%
*-commutative72.4%
distribute-rgt-neg-in72.4%
distribute-neg-in72.4%
metadata-eval72.4%
Simplified72.4%
Taylor expanded in a around 0 67.3%
Taylor expanded in x around inf 62.0%
if -2.5000000000000001e-60 < c < -3.29999999999999987e-140 or -4.20000000000000015e-211 < c < -1.24999999999999995e-272 or 3.69999999999999984e-181 < c < 2.6000000000000001e-120Initial program 94.1%
Taylor expanded in b around inf 87.1%
associate-*r/87.1%
metadata-eval87.1%
+-commutative87.1%
Simplified87.1%
Taylor expanded in t around 0 72.3%
associate-*r/72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in b around 0 62.8%
if 2.49999999999999983e168 < c Initial program 95.0%
Taylor expanded in c around inf 95.2%
cancel-sign-sub-inv95.2%
+-commutative95.2%
metadata-eval95.2%
associate-*r/95.2%
metadata-eval95.2%
associate-+r+95.2%
Simplified95.2%
Taylor expanded in c around 0 71.1%
associate-*r*71.1%
associate--l+71.1%
associate-*r/71.1%
metadata-eval71.1%
Simplified71.1%
Taylor expanded in y around inf 71.1%
sub-neg71.1%
associate-*r/71.1%
metadata-eval71.1%
distribute-neg-frac71.1%
metadata-eval71.1%
Simplified71.1%
Taylor expanded in t around inf 71.1%
Final simplification62.8%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= b -1.15e+190) (and (not (<= b -3.1e-22)) (<= b -3e-244))) (/ x (- x (* y (+ -1.0 (* 2.0 (* a (- b c))))))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -1.15e+190) || (!(b <= -3.1e-22) && (b <= -3e-244))) {
tmp = x / (x - (y * (-1.0 + (2.0 * (a * (b - c))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b <= (-1.15d+190)) .or. (.not. (b <= (-3.1d-22))) .and. (b <= (-3d-244))) then
tmp = x / (x - (y * ((-1.0d0) + (2.0d0 * (a * (b - c))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -1.15e+190) || (!(b <= -3.1e-22) && (b <= -3e-244))) {
tmp = x / (x - (y * (-1.0 + (2.0 * (a * (b - c))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -1.15e+190) or (not (b <= -3.1e-22) and (b <= -3e-244)): tmp = x / (x - (y * (-1.0 + (2.0 * (a * (b - c)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -1.15e+190) || (!(b <= -3.1e-22) && (b <= -3e-244))) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(2.0 * Float64(a * Float64(b - c))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -1.15e+190) || (~((b <= -3.1e-22)) && (b <= -3e-244))) tmp = x / (x - (y * (-1.0 + (2.0 * (a * (b - c)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -1.15e+190], And[N[Not[LessEqual[b, -3.1e-22]], $MachinePrecision], LessEqual[b, -3e-244]]], N[(x / N[(x - N[(y * N[(-1.0 + N[(2.0 * N[(a * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.15 \cdot 10^{+190} \lor \neg \left(b \leq -3.1 \cdot 10^{-22}\right) \land b \leq -3 \cdot 10^{-244}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 2 \cdot \left(a \cdot \left(b - c\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.15e190 or -3.10000000000000013e-22 < b < -3.0000000000000001e-244Initial program 96.5%
Taylor expanded in a around inf 62.0%
Taylor expanded in a around 0 52.2%
if -1.15e190 < b < -3.10000000000000013e-22 or -3.0000000000000001e-244 < b Initial program 94.8%
Taylor expanded in t around inf 72.5%
mul-1-neg72.5%
*-commutative72.5%
distribute-rgt-neg-in72.5%
distribute-neg-in72.5%
metadata-eval72.5%
Simplified72.5%
Taylor expanded in a around 0 69.3%
Taylor expanded in x around inf 60.6%
Final simplification57.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -2.1e+190)
(/ x (- x (* y (+ -1.0 (* 2.0 (* a (- b c)))))))
(if (<= b -5.4e-23)
1.0
(if (<= b -4.8e-250) (/ x (- x (- (* 2.0 (* a (* y (- b c)))) y))) 1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.1e+190) {
tmp = x / (x - (y * (-1.0 + (2.0 * (a * (b - c))))));
} else if (b <= -5.4e-23) {
tmp = 1.0;
} else if (b <= -4.8e-250) {
tmp = x / (x - ((2.0 * (a * (y * (b - c)))) - y));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-2.1d+190)) then
tmp = x / (x - (y * ((-1.0d0) + (2.0d0 * (a * (b - c))))))
else if (b <= (-5.4d-23)) then
tmp = 1.0d0
else if (b <= (-4.8d-250)) then
tmp = x / (x - ((2.0d0 * (a * (y * (b - c)))) - y))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.1e+190) {
tmp = x / (x - (y * (-1.0 + (2.0 * (a * (b - c))))));
} else if (b <= -5.4e-23) {
tmp = 1.0;
} else if (b <= -4.8e-250) {
tmp = x / (x - ((2.0 * (a * (y * (b - c)))) - y));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -2.1e+190: tmp = x / (x - (y * (-1.0 + (2.0 * (a * (b - c)))))) elif b <= -5.4e-23: tmp = 1.0 elif b <= -4.8e-250: tmp = x / (x - ((2.0 * (a * (y * (b - c)))) - y)) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -2.1e+190) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(2.0 * Float64(a * Float64(b - c))))))); elseif (b <= -5.4e-23) tmp = 1.0; elseif (b <= -4.8e-250) tmp = Float64(x / Float64(x - Float64(Float64(2.0 * Float64(a * Float64(y * Float64(b - c)))) - y))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -2.1e+190) tmp = x / (x - (y * (-1.0 + (2.0 * (a * (b - c)))))); elseif (b <= -5.4e-23) tmp = 1.0; elseif (b <= -4.8e-250) tmp = x / (x - ((2.0 * (a * (y * (b - c)))) - y)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -2.1e+190], N[(x / N[(x - N[(y * N[(-1.0 + N[(2.0 * N[(a * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.4e-23], 1.0, If[LessEqual[b, -4.8e-250], N[(x / N[(x - N[(N[(2.0 * N[(a * N[(y * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.1 \cdot 10^{+190}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 2 \cdot \left(a \cdot \left(b - c\right)\right)\right)}\\
\mathbf{elif}\;b \leq -5.4 \cdot 10^{-23}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -4.8 \cdot 10^{-250}:\\
\;\;\;\;\frac{x}{x - \left(2 \cdot \left(a \cdot \left(y \cdot \left(b - c\right)\right)\right) - y\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -2.1000000000000001e190Initial program 94.0%
Taylor expanded in a around inf 53.1%
Taylor expanded in a around 0 44.4%
if -2.1000000000000001e190 < b < -5.3999999999999997e-23 or -4.7999999999999998e-250 < b Initial program 94.8%
Taylor expanded in t around inf 72.5%
mul-1-neg72.5%
*-commutative72.5%
distribute-rgt-neg-in72.5%
distribute-neg-in72.5%
metadata-eval72.5%
Simplified72.5%
Taylor expanded in a around 0 69.3%
Taylor expanded in x around inf 60.6%
if -5.3999999999999997e-23 < b < -4.7999999999999998e-250Initial program 98.0%
Taylor expanded in a around inf 67.8%
Taylor expanded in a around 0 57.3%
*-commutative57.3%
Simplified57.3%
Final simplification57.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -1.25e+190)
(/ x (- x (* y (+ -1.0 (* 2.0 (* a (- b c)))))))
(if (<= b -4.8e-123)
1.0
(if (<= b -7.7e-246)
(/ x (+ x (+ y (* 2.0 (* c (* y (+ 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 <= -1.25e+190) {
tmp = x / (x - (y * (-1.0 + (2.0 * (a * (b - c))))));
} else if (b <= -4.8e-123) {
tmp = 1.0;
} else if (b <= -7.7e-246) {
tmp = x / (x + (y + (2.0 * (c * (y * (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 <= (-1.25d+190)) then
tmp = x / (x - (y * ((-1.0d0) + (2.0d0 * (a * (b - c))))))
else if (b <= (-4.8d-123)) then
tmp = 1.0d0
else if (b <= (-7.7d-246)) then
tmp = x / (x + (y + (2.0d0 * (c * (y * (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 <= -1.25e+190) {
tmp = x / (x - (y * (-1.0 + (2.0 * (a * (b - c))))));
} else if (b <= -4.8e-123) {
tmp = 1.0;
} else if (b <= -7.7e-246) {
tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -1.25e+190: tmp = x / (x - (y * (-1.0 + (2.0 * (a * (b - c)))))) elif b <= -4.8e-123: tmp = 1.0 elif b <= -7.7e-246: tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -1.25e+190) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(2.0 * Float64(a * Float64(b - c))))))); elseif (b <= -4.8e-123) tmp = 1.0; elseif (b <= -7.7e-246) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * Float64(y * Float64(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 <= -1.25e+190) tmp = x / (x - (y * (-1.0 + (2.0 * (a * (b - c)))))); elseif (b <= -4.8e-123) tmp = 1.0; elseif (b <= -7.7e-246) tmp = x / (x + (y + (2.0 * (c * (y * (a + 0.8333333333333334)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -1.25e+190], N[(x / N[(x - N[(y * N[(-1.0 + N[(2.0 * N[(a * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.8e-123], 1.0, If[LessEqual[b, -7.7e-246], N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[(y * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.25 \cdot 10^{+190}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 2 \cdot \left(a \cdot \left(b - c\right)\right)\right)}\\
\mathbf{elif}\;b \leq -4.8 \cdot 10^{-123}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -7.7 \cdot 10^{-246}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \left(y \cdot \left(a + 0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.25000000000000009e190Initial program 94.0%
Taylor expanded in a around inf 53.1%
Taylor expanded in a around 0 44.4%
if -1.25000000000000009e190 < b < -4.8e-123 or -7.6999999999999995e-246 < b Initial program 95.0%
Taylor expanded in t around inf 72.7%
mul-1-neg72.7%
*-commutative72.7%
distribute-rgt-neg-in72.7%
distribute-neg-in72.7%
metadata-eval72.7%
Simplified72.7%
Taylor expanded in a around 0 67.5%
Taylor expanded in x around inf 58.7%
if -4.8e-123 < b < -7.6999999999999995e-246Initial program 100.0%
Taylor expanded in c around inf 73.9%
cancel-sign-sub-inv73.9%
+-commutative73.9%
metadata-eval73.9%
associate-*r/73.9%
metadata-eval73.9%
associate-+r+73.9%
Simplified73.9%
Taylor expanded in c around 0 72.1%
associate-*r*68.4%
associate--l+68.4%
associate-*r/68.4%
metadata-eval68.4%
Simplified68.4%
Taylor expanded in t around inf 68.4%
Final simplification57.9%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 1.5e+168) 1.0 (/ x (* y (+ 1.0 (* 2.0 (* c (+ a 0.8333333333333334))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.5e+168) {
tmp = 1.0;
} else {
tmp = x / (y * (1.0 + (2.0 * (c * (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 (c <= 1.5d+168) then
tmp = 1.0d0
else
tmp = x / (y * (1.0d0 + (2.0d0 * (c * (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 (c <= 1.5e+168) {
tmp = 1.0;
} else {
tmp = x / (y * (1.0 + (2.0 * (c * (a + 0.8333333333333334)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 1.5e+168: tmp = 1.0 else: tmp = x / (y * (1.0 + (2.0 * (c * (a + 0.8333333333333334))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 1.5e+168) tmp = 1.0; else tmp = Float64(x / Float64(y * Float64(1.0 + Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 1.5e+168) tmp = 1.0; else tmp = x / (y * (1.0 + (2.0 * (c * (a + 0.8333333333333334))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 1.5e+168], 1.0, N[(x / N[(y * N[(1.0 + N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 1.5 \cdot 10^{+168}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(1 + 2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right)\right)}\\
\end{array}
\end{array}
if c < 1.4999999999999999e168Initial program 95.4%
Taylor expanded in t around inf 71.9%
mul-1-neg71.9%
*-commutative71.9%
distribute-rgt-neg-in71.9%
distribute-neg-in71.9%
metadata-eval71.9%
Simplified71.9%
Taylor expanded in a around 0 65.5%
Taylor expanded in x around inf 55.7%
if 1.4999999999999999e168 < c Initial program 95.0%
Taylor expanded in c around inf 95.2%
cancel-sign-sub-inv95.2%
+-commutative95.2%
metadata-eval95.2%
associate-*r/95.2%
metadata-eval95.2%
associate-+r+95.2%
Simplified95.2%
Taylor expanded in c around 0 71.1%
associate-*r*71.1%
associate--l+71.1%
associate-*r/71.1%
metadata-eval71.1%
Simplified71.1%
Taylor expanded in y around inf 71.1%
sub-neg71.1%
associate-*r/71.1%
metadata-eval71.1%
distribute-neg-frac71.1%
metadata-eval71.1%
Simplified71.1%
Taylor expanded in t around inf 71.1%
Final simplification56.9%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 1.6e+169) 1.0 (* 0.5 (/ 1.0 (* a (/ (* y c) x))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.6e+169) {
tmp = 1.0;
} else {
tmp = 0.5 * (1.0 / (a * ((y * c) / x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 1.6d+169) then
tmp = 1.0d0
else
tmp = 0.5d0 * (1.0d0 / (a * ((y * c) / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.6e+169) {
tmp = 1.0;
} else {
tmp = 0.5 * (1.0 / (a * ((y * c) / x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 1.6e+169: tmp = 1.0 else: tmp = 0.5 * (1.0 / (a * ((y * c) / x))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 1.6e+169) tmp = 1.0; else tmp = Float64(0.5 * Float64(1.0 / Float64(a * Float64(Float64(y * c) / x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 1.6e+169) tmp = 1.0; else tmp = 0.5 * (1.0 / (a * ((y * c) / x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 1.6e+169], 1.0, N[(0.5 * N[(1.0 / N[(a * N[(N[(y * c), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 1.6 \cdot 10^{+169}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{1}{a \cdot \frac{y \cdot c}{x}}\\
\end{array}
\end{array}
if c < 1.5999999999999999e169Initial program 95.4%
Taylor expanded in t around inf 71.9%
mul-1-neg71.9%
*-commutative71.9%
distribute-rgt-neg-in71.9%
distribute-neg-in71.9%
metadata-eval71.9%
Simplified71.9%
Taylor expanded in a around 0 65.5%
Taylor expanded in x around inf 55.7%
if 1.5999999999999999e169 < c Initial program 95.0%
Taylor expanded in c around inf 95.2%
cancel-sign-sub-inv95.2%
+-commutative95.2%
metadata-eval95.2%
associate-*r/95.2%
metadata-eval95.2%
associate-+r+95.2%
Simplified95.2%
Taylor expanded in c around 0 71.1%
associate-*r*71.1%
associate--l+71.1%
associate-*r/71.1%
metadata-eval71.1%
Simplified71.1%
Taylor expanded in a around inf 66.2%
associate-/r*66.2%
Simplified66.2%
clear-num66.2%
inv-pow66.2%
Applied egg-rr66.2%
unpow-166.2%
associate-/r/71.0%
Simplified71.0%
Final simplification56.9%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 2.45e+169) 1.0 (* 0.5 (/ x (* a (* y c))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 2.45e+169) {
tmp = 1.0;
} else {
tmp = 0.5 * (x / (a * (y * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 2.45d+169) then
tmp = 1.0d0
else
tmp = 0.5d0 * (x / (a * (y * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 2.45e+169) {
tmp = 1.0;
} else {
tmp = 0.5 * (x / (a * (y * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 2.45e+169: tmp = 1.0 else: tmp = 0.5 * (x / (a * (y * c))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 2.45e+169) tmp = 1.0; else tmp = Float64(0.5 * Float64(x / Float64(a * Float64(y * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 2.45e+169) tmp = 1.0; else tmp = 0.5 * (x / (a * (y * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 2.45e+169], 1.0, N[(0.5 * N[(x / N[(a * N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 2.45 \cdot 10^{+169}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{x}{a \cdot \left(y \cdot c\right)}\\
\end{array}
\end{array}
if c < 2.45000000000000013e169Initial program 95.4%
Taylor expanded in t around inf 71.9%
mul-1-neg71.9%
*-commutative71.9%
distribute-rgt-neg-in71.9%
distribute-neg-in71.9%
metadata-eval71.9%
Simplified71.9%
Taylor expanded in a around 0 65.5%
Taylor expanded in x around inf 55.7%
if 2.45000000000000013e169 < c Initial program 95.0%
Taylor expanded in c around inf 95.2%
cancel-sign-sub-inv95.2%
+-commutative95.2%
metadata-eval95.2%
associate-*r/95.2%
metadata-eval95.2%
associate-+r+95.2%
Simplified95.2%
Taylor expanded in c around 0 71.1%
associate-*r*71.1%
associate--l+71.1%
associate-*r/71.1%
metadata-eval71.1%
Simplified71.1%
Taylor expanded in a around inf 66.2%
Final simplification56.5%
(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 95.4%
Taylor expanded in t around inf 73.3%
mul-1-neg73.3%
*-commutative73.3%
distribute-rgt-neg-in73.3%
distribute-neg-in73.3%
metadata-eval73.3%
Simplified73.3%
Taylor expanded in a around 0 67.4%
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 2023336
(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)))))))))))