
(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 25 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.6666666666666666 t) 0.8333333333333334))
(- c b)
(* (sqrt (+ a t)) (/ z t))))
x)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / fma(y, pow(exp(2.0), fma((a + ((-0.6666666666666666 / t) + 0.8333333333333334)), (c - b), (sqrt((a + t)) * (z / t)))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(Float64(a + Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334)), Float64(c - b), Float64(sqrt(Float64(a + t)) * Float64(z / t)))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(a + N[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision] + N[(N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(a + \left(\frac{-0.6666666666666666}{t} + 0.8333333333333334\right), c - b, \sqrt{a + t} \cdot \frac{z}{t}\right)\right)}, x\right)}
\end{array}
Initial program 94.2%
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 (+ (* (* 2.0 a) (- c b)) 1.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334));
double t_2 = sqrt((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 * (((2.0 * a) * (c - b)) + 1.0)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334));
double t_2 = Math.sqrt((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 * (((2.0 * a) * (c - b)) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)) t_2 = math.sqrt((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 * (((2.0 * a) * (c - b)) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334))) t_2 = sqrt(Float64(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 * Float64(Float64(Float64(2.0 * a) * Float64(c - b)) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)); t_2 = sqrt((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 * (((2.0 * a) * (c - b)) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(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[(N[(N[(2.0 * a), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision] + 1.0), $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 \left(\left(2 \cdot a\right) \cdot \left(c - b\right) + 1\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 98.4%
exp-prod98.4%
associate-/l*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 a around inf 47.2%
Taylor expanded in a around 0 73.6%
associate-*r*73.6%
*-commutative73.6%
*-commutative73.6%
Simplified73.6%
Final simplification97.7%
(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 (+ (* (* 2.0 a) (- c b)) 1.0)))))))
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 * (((2.0 * a) * (c - b)) + 1.0)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((Math.sqrt((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 * (((2.0 * a) * (c - b)) + 1.0)));
}
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 * (((2.0 * a) * (c - b)) + 1.0))) 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 * Float64(Float64(Float64(2.0 * a) * Float64(c - b)) + 1.0)))); 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 * (((2.0 * a) * (c - b)) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(N[Sqrt[N[(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[(N[(N[(2.0 * a), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision] + 1.0), $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 \left(\left(2 \cdot a\right) \cdot \left(c - b\right) + 1\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 98.4%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) Initial program 0.0%
Taylor expanded in a around inf 47.2%
Taylor expanded in a around 0 73.6%
associate-*r*73.6%
*-commutative73.6%
*-commutative73.6%
Simplified73.6%
Final simplification97.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -100000000000.0)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 2e-242)
(/
x
(+
x
(*
y
(exp
(* 2.0 (/ (- (* z (sqrt a)) (* -0.6666666666666666 (- b c))) t))))))
(if (<= t 2e+99)
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(* z (sqrt (/ 1.0 t)))
(* (+ (/ -0.6666666666666666 t) 0.8333333333333334) (- b c))))))))
(/
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 <= -100000000000.0) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 2e-242) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
} else if (t <= 2e+99) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) - (((-0.6666666666666666 / t) + 0.8333333333333334) * (b - c)))))));
} 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 <= (-100000000000.0d0)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 2d-242) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) - ((-0.6666666666666666d0) * (b - c))) / t)))))
else if (t <= 2d+99) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) - ((((-0.6666666666666666d0) / t) + 0.8333333333333334d0) * (b - c)))))))
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 <= -100000000000.0) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 2e-242) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
} else if (t <= 2e+99) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) - (((-0.6666666666666666 / t) + 0.8333333333333334) * (b - c)))))));
} 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 <= -100000000000.0: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 2e-242: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))) elif t <= 2e+99: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) - (((-0.6666666666666666 / t) + 0.8333333333333334) * (b - c))))))) 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 <= -100000000000.0) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 2e-242) 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 <= 2e+99) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) - Float64(Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334) * Float64(b - c)))))))); 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 <= -100000000000.0) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 2e-242) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))); elseif (t <= 2e+99) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) - (((-0.6666666666666666 / t) + 0.8333333333333334) * (b - c))))))); 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, -100000000000.0], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e-242], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] - N[(-0.6666666666666666 * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e+99], 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[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision] * N[(b - c), $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 -100000000000:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-242}:\\
\;\;\;\;\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 2 \cdot 10^{+99}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} - \left(\frac{-0.6666666666666666}{t} + 0.8333333333333334\right) \cdot \left(b - c\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 < -1e11Initial program 92.3%
Taylor expanded in a around inf 100.0%
if -1e11 < t < 2e-242Initial program 91.4%
Taylor expanded in t around 0 98.3%
if 2e-242 < t < 1.9999999999999999e99Initial program 94.8%
Taylor expanded in a around 0 91.9%
*-commutative91.9%
*-commutative91.9%
cancel-sign-sub-inv91.9%
metadata-eval91.9%
associate-*r/91.9%
metadata-eval91.9%
Simplified91.9%
if 1.9999999999999999e99 < t Initial program 95.6%
Taylor expanded in t around inf 93.5%
mul-1-neg93.5%
*-commutative93.5%
distribute-rgt-neg-in93.5%
distribute-neg-in93.5%
metadata-eval93.5%
Simplified93.5%
Final simplification94.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -1e-12)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 7.6e-177)
(/
x
(+
x
(*
y
(exp
(* 2.0 (/ (- (* z (sqrt a)) (* -0.6666666666666666 (- b c))) t))))))
(if (<= t 1.45e-119)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(if (<= t 1.32e-5)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* (+ a (+ (/ -0.6666666666666666 t) 0.8333333333333334)) c))))))
(if (<= t 0.52)
(/ x (+ x (* y (exp (* 2.0 (/ (* b 0.6666666666666666) t))))))
(/
x
(+
x
(* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1e-12) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 7.6e-177) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
} else if (t <= 1.45e-119) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if (t <= 1.32e-5) {
tmp = x / (x + (y * exp((2.0 * ((a + ((-0.6666666666666666 / t) + 0.8333333333333334)) * c)))));
} else if (t <= 0.52) {
tmp = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-1d-12)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 7.6d-177) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) - ((-0.6666666666666666d0) * (b - c))) / t)))))
else if (t <= 1.45d-119) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else if (t <= 1.32d-5) then
tmp = x / (x + (y * exp((2.0d0 * ((a + (((-0.6666666666666666d0) / t) + 0.8333333333333334d0)) * c)))))
else if (t <= 0.52d0) then
tmp = x / (x + (y * exp((2.0d0 * ((b * 0.6666666666666666d0) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -1e-12) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 7.6e-177) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t)))));
} else if (t <= 1.45e-119) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if (t <= 1.32e-5) {
tmp = x / (x + (y * Math.exp((2.0 * ((a + ((-0.6666666666666666 / t) + 0.8333333333333334)) * c)))));
} else if (t <= 0.52) {
tmp = x / (x + (y * Math.exp((2.0 * ((b * 0.6666666666666666) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -1e-12: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 7.6e-177: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))) elif t <= 1.45e-119: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) elif t <= 1.32e-5: tmp = x / (x + (y * math.exp((2.0 * ((a + ((-0.6666666666666666 / t) + 0.8333333333333334)) * c))))) elif t <= 0.52: tmp = x / (x + (y * math.exp((2.0 * ((b * 0.6666666666666666) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -1e-12) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 7.6e-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.45e-119) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); elseif (t <= 1.32e-5) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334)) * c)))))); elseif (t <= 0.52) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b * 0.6666666666666666) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= -1e-12) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 7.6e-177) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) - (-0.6666666666666666 * (b - c))) / t))))); elseif (t <= 1.45e-119) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); elseif (t <= 1.32e-5) tmp = x / (x + (y * exp((2.0 * ((a + ((-0.6666666666666666 / t) + 0.8333333333333334)) * c))))); elseif (t <= 0.52) tmp = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -1e-12], 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, 7.6e-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.45e-119], 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, 1.32e-5], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + N[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.52], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b * 0.6666666666666666), $MachinePrecision] / t), $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 -1 \cdot 10^{-12}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 7.6 \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.45 \cdot 10^{-119}:\\
\;\;\;\;\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 1.32 \cdot 10^{-5}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + \left(\frac{-0.6666666666666666}{t} + 0.8333333333333334\right)\right) \cdot c\right)}}\\
\mathbf{elif}\;t \leq 0.52:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{b \cdot 0.6666666666666666}{t}}}\\
\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 < -9.9999999999999998e-13Initial program 92.3%
Taylor expanded in a around inf 100.0%
if -9.9999999999999998e-13 < t < 7.60000000000000007e-177Initial program 90.4%
Taylor expanded in t around 0 97.3%
if 7.60000000000000007e-177 < t < 1.45e-119Initial program 94.4%
Taylor expanded in b around inf 83.9%
associate-*r/83.9%
metadata-eval83.9%
+-commutative83.9%
Simplified83.9%
if 1.45e-119 < t < 1.32000000000000007e-5Initial program 93.9%
Taylor expanded in c around inf 70.7%
cancel-sign-sub-inv70.7%
+-commutative70.7%
metadata-eval70.7%
associate-*r/70.7%
metadata-eval70.7%
associate-+r+70.7%
Simplified70.7%
if 1.32000000000000007e-5 < t < 0.52000000000000002Initial program 100.0%
Taylor expanded in b around inf 61.3%
associate-*r/61.3%
metadata-eval61.3%
+-commutative61.3%
Simplified61.3%
Taylor expanded in t around 0 100.0%
associate-*r/100.0%
metadata-eval100.0%
distribute-lft-neg-in100.0%
*-commutative100.0%
distribute-rgt-neg-in100.0%
metadata-eval100.0%
Simplified100.0%
if 0.52000000000000002 < t Initial program 96.6%
Taylor expanded in t around inf 90.7%
mul-1-neg90.7%
*-commutative90.7%
distribute-rgt-neg-in90.7%
distribute-neg-in90.7%
metadata-eval90.7%
Simplified90.7%
Final simplification90.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (- b c) -1.6666666666666667)))))))
(if (<= t -4e-310)
t_1
(if (<= t 2.3e-239)
(/ x (+ x (* -1.3333333333333333 (/ c (/ t y)))))
(if (<= t 2.06e-156)
1.0
(if (<= t 1.15e-95)
(/ x (+ x (* y (exp (* -2.0 (* a b))))))
(if (<= t 1.02e-69)
(* (/ -0.75 y) (/ (* x t) c))
(if (<= t 1e-27) 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 <= -4e-310) {
tmp = t_1;
} else if (t <= 2.3e-239) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else if (t <= 2.06e-156) {
tmp = 1.0;
} else if (t <= 1.15e-95) {
tmp = x / (x + (y * exp((-2.0 * (a * b)))));
} else if (t <= 1.02e-69) {
tmp = (-0.75 / y) * ((x * t) / c);
} else if (t <= 1e-27) {
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 <= (-4d-310)) then
tmp = t_1
else if (t <= 2.3d-239) then
tmp = x / (x + ((-1.3333333333333333d0) * (c / (t / y))))
else if (t <= 2.06d-156) then
tmp = 1.0d0
else if (t <= 1.15d-95) then
tmp = x / (x + (y * exp(((-2.0d0) * (a * b)))))
else if (t <= 1.02d-69) then
tmp = ((-0.75d0) / y) * ((x * t) / c)
else if (t <= 1d-27) 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 <= -4e-310) {
tmp = t_1;
} else if (t <= 2.3e-239) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else if (t <= 2.06e-156) {
tmp = 1.0;
} else if (t <= 1.15e-95) {
tmp = x / (x + (y * Math.exp((-2.0 * (a * b)))));
} else if (t <= 1.02e-69) {
tmp = (-0.75 / y) * ((x * t) / c);
} else if (t <= 1e-27) {
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 <= -4e-310: tmp = t_1 elif t <= 2.3e-239: tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))) elif t <= 2.06e-156: tmp = 1.0 elif t <= 1.15e-95: tmp = x / (x + (y * math.exp((-2.0 * (a * b))))) elif t <= 1.02e-69: tmp = (-0.75 / y) * ((x * t) / c) elif t <= 1e-27: 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 <= -4e-310) tmp = t_1; elseif (t <= 2.3e-239) tmp = Float64(x / Float64(x + Float64(-1.3333333333333333 * Float64(c / Float64(t / y))))); elseif (t <= 2.06e-156) tmp = 1.0; elseif (t <= 1.15e-95) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))); elseif (t <= 1.02e-69) tmp = Float64(Float64(-0.75 / y) * Float64(Float64(x * t) / c)); elseif (t <= 1e-27) 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 <= -4e-310) tmp = t_1; elseif (t <= 2.3e-239) tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))); elseif (t <= 2.06e-156) tmp = 1.0; elseif (t <= 1.15e-95) tmp = x / (x + (y * exp((-2.0 * (a * b))))); elseif (t <= 1.02e-69) tmp = (-0.75 / y) * ((x * t) / c); elseif (t <= 1e-27) 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, -4e-310], t$95$1, If[LessEqual[t, 2.3e-239], N[(x / N[(x + N[(-1.3333333333333333 * N[(c / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.06e-156], 1.0, If[LessEqual[t, 1.15e-95], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.02e-69], N[(N[(-0.75 / y), $MachinePrecision] * N[(N[(x * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e-27], 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 \cdot 10^{-310}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{-239}:\\
\;\;\;\;\frac{x}{x + -1.3333333333333333 \cdot \frac{c}{\frac{t}{y}}}\\
\mathbf{elif}\;t \leq 2.06 \cdot 10^{-156}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-95}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{-69}:\\
\;\;\;\;\frac{-0.75}{y} \cdot \frac{x \cdot t}{c}\\
\mathbf{elif}\;t \leq 10^{-27}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -3.999999999999988e-310 or 1e-27 < t Initial program 96.1%
Taylor expanded in t around inf 87.0%
mul-1-neg87.0%
*-commutative87.0%
distribute-rgt-neg-in87.0%
distribute-neg-in87.0%
metadata-eval87.0%
Simplified87.0%
Taylor expanded in a around 0 76.6%
if -3.999999999999988e-310 < t < 2.2999999999999999e-239Initial program 78.9%
Taylor expanded in c around inf 59.6%
cancel-sign-sub-inv59.6%
+-commutative59.6%
metadata-eval59.6%
associate-*r/59.6%
metadata-eval59.6%
associate-+r+59.6%
Simplified59.6%
Taylor expanded in c around 0 59.8%
Taylor expanded in t around 0 59.7%
associate-/l*64.5%
Simplified64.5%
if 2.2999999999999999e-239 < t < 2.06e-156 or 1.02000000000000005e-69 < t < 1e-27Initial program 93.5%
Taylor expanded in b around inf 56.5%
associate-*r/56.5%
metadata-eval56.5%
+-commutative56.5%
Simplified56.5%
Taylor expanded in x around inf 53.1%
if 2.06e-156 < t < 1.15e-95Initial program 95.2%
Taylor expanded in a around inf 72.4%
clear-num72.4%
inv-pow72.4%
+-commutative72.4%
fma-def72.4%
exp-prod72.4%
Applied egg-rr72.4%
unpow-172.4%
exp-prod72.4%
associate-*r*72.4%
*-commutative72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in c around 0 67.8%
if 1.15e-95 < t < 1.02000000000000005e-69Initial program 87.5%
Taylor expanded in c around inf 63.8%
cancel-sign-sub-inv63.8%
+-commutative63.8%
metadata-eval63.8%
associate-*r/63.8%
metadata-eval63.8%
associate-+r+63.8%
Simplified63.8%
Taylor expanded in c around 0 27.8%
Taylor expanded in t around 0 27.5%
associate-*r/27.5%
*-commutative27.5%
times-frac51.7%
Simplified51.7%
Final simplification71.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (- b c) -1.6666666666666667)))))))
(if (<= t -4e-310)
t_1
(if (<= t 1.75e-240)
(/ x (+ x (* -1.3333333333333333 (/ c (/ t y)))))
(if (<= t 2.5e-157)
1.0
(if (<= t 1.15e-95)
(/ x (+ x (* y (exp (* -2.0 (* a b))))))
(if (<= t 1.02e-69)
(* (/ -0.75 y) (/ (* x t) c))
(if (<= t 0.47)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
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 <= -4e-310) {
tmp = t_1;
} else if (t <= 1.75e-240) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else if (t <= 2.5e-157) {
tmp = 1.0;
} else if (t <= 1.15e-95) {
tmp = x / (x + (y * exp((-2.0 * (a * b)))));
} else if (t <= 1.02e-69) {
tmp = (-0.75 / y) * ((x * t) / c);
} else if (t <= 0.47) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} 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 <= (-4d-310)) then
tmp = t_1
else if (t <= 1.75d-240) then
tmp = x / (x + ((-1.3333333333333333d0) * (c / (t / y))))
else if (t <= 2.5d-157) then
tmp = 1.0d0
else if (t <= 1.15d-95) then
tmp = x / (x + (y * exp(((-2.0d0) * (a * b)))))
else if (t <= 1.02d-69) then
tmp = ((-0.75d0) / y) * ((x * t) / c)
else if (t <= 0.47d0) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
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 <= -4e-310) {
tmp = t_1;
} else if (t <= 1.75e-240) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else if (t <= 2.5e-157) {
tmp = 1.0;
} else if (t <= 1.15e-95) {
tmp = x / (x + (y * Math.exp((-2.0 * (a * b)))));
} else if (t <= 1.02e-69) {
tmp = (-0.75 / y) * ((x * t) / c);
} else if (t <= 0.47) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} 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 <= -4e-310: tmp = t_1 elif t <= 1.75e-240: tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))) elif t <= 2.5e-157: tmp = 1.0 elif t <= 1.15e-95: tmp = x / (x + (y * math.exp((-2.0 * (a * b))))) elif t <= 1.02e-69: tmp = (-0.75 / y) * ((x * t) / c) elif t <= 0.47: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) 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 <= -4e-310) tmp = t_1; elseif (t <= 1.75e-240) tmp = Float64(x / Float64(x + Float64(-1.3333333333333333 * Float64(c / Float64(t / y))))); elseif (t <= 2.5e-157) tmp = 1.0; elseif (t <= 1.15e-95) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))); elseif (t <= 1.02e-69) tmp = Float64(Float64(-0.75 / y) * Float64(Float64(x * t) / c)); elseif (t <= 0.47) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); 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 <= -4e-310) tmp = t_1; elseif (t <= 1.75e-240) tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))); elseif (t <= 2.5e-157) tmp = 1.0; elseif (t <= 1.15e-95) tmp = x / (x + (y * exp((-2.0 * (a * b))))); elseif (t <= 1.02e-69) tmp = (-0.75 / y) * ((x * t) / c); elseif (t <= 0.47) tmp = x / (x + (y * exp((2.0 * (a * c))))); 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, -4e-310], t$95$1, If[LessEqual[t, 1.75e-240], N[(x / N[(x + N[(-1.3333333333333333 * N[(c / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.5e-157], 1.0, If[LessEqual[t, 1.15e-95], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.02e-69], N[(N[(-0.75 / y), $MachinePrecision] * N[(N[(x * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.47], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{if}\;t \leq -4 \cdot 10^{-310}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{-240}:\\
\;\;\;\;\frac{x}{x + -1.3333333333333333 \cdot \frac{c}{\frac{t}{y}}}\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-157}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-95}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{-69}:\\
\;\;\;\;\frac{-0.75}{y} \cdot \frac{x \cdot t}{c}\\
\mathbf{elif}\;t \leq 0.47:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -3.999999999999988e-310 or 0.46999999999999997 < t Initial program 96.5%
Taylor expanded in t around inf 89.1%
mul-1-neg89.1%
*-commutative89.1%
distribute-rgt-neg-in89.1%
distribute-neg-in89.1%
metadata-eval89.1%
Simplified89.1%
Taylor expanded in a around 0 78.7%
if -3.999999999999988e-310 < t < 1.75000000000000008e-240Initial program 78.9%
Taylor expanded in c around inf 59.6%
cancel-sign-sub-inv59.6%
+-commutative59.6%
metadata-eval59.6%
associate-*r/59.6%
metadata-eval59.6%
associate-+r+59.6%
Simplified59.6%
Taylor expanded in c around 0 59.8%
Taylor expanded in t around 0 59.7%
associate-/l*64.5%
Simplified64.5%
if 1.75000000000000008e-240 < t < 2.5000000000000001e-157Initial program 90.0%
Taylor expanded in b around inf 61.3%
associate-*r/61.3%
metadata-eval61.3%
+-commutative61.3%
Simplified61.3%
Taylor expanded in x around inf 46.7%
if 2.5000000000000001e-157 < t < 1.15e-95Initial program 95.2%
Taylor expanded in a around inf 72.4%
clear-num72.4%
inv-pow72.4%
+-commutative72.4%
fma-def72.4%
exp-prod72.4%
Applied egg-rr72.4%
unpow-172.4%
exp-prod72.4%
associate-*r*72.4%
*-commutative72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in c around 0 67.8%
if 1.15e-95 < t < 1.02000000000000005e-69Initial program 87.5%
Taylor expanded in c around inf 63.8%
cancel-sign-sub-inv63.8%
+-commutative63.8%
metadata-eval63.8%
associate-*r/63.8%
metadata-eval63.8%
associate-+r+63.8%
Simplified63.8%
Taylor expanded in c around 0 27.8%
Taylor expanded in t around 0 27.5%
associate-*r/27.5%
*-commutative27.5%
times-frac51.7%
Simplified51.7%
if 1.02000000000000005e-69 < t < 0.46999999999999997Initial program 95.2%
Taylor expanded in a around inf 58.8%
Taylor expanded in b around 0 54.3%
Final simplification71.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/ x (+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a))))))))
(t_2 (/ x (+ x (* y (exp (* 2.0 (/ (* b 0.6666666666666666) t))))))))
(if (<= t -2.2e-306)
t_1
(if (<= t 4.9e-118)
t_2
(if (<= t 1.6e-14)
(/ x (+ x (* y (exp (* 2.0 (/ (* -0.6666666666666666 c) t))))))
(if (<= t 0.65) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
double t_2 = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t)))));
double tmp;
if (t <= -2.2e-306) {
tmp = t_1;
} else if (t <= 4.9e-118) {
tmp = t_2;
} else if (t <= 1.6e-14) {
tmp = x / (x + (y * exp((2.0 * ((-0.6666666666666666 * c) / t)))));
} else if (t <= 0.65) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
t_2 = x / (x + (y * exp((2.0d0 * ((b * 0.6666666666666666d0) / t)))))
if (t <= (-2.2d-306)) then
tmp = t_1
else if (t <= 4.9d-118) then
tmp = t_2
else if (t <= 1.6d-14) then
tmp = x / (x + (y * exp((2.0d0 * (((-0.6666666666666666d0) * c) / t)))))
else if (t <= 0.65d0) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
double t_2 = x / (x + (y * Math.exp((2.0 * ((b * 0.6666666666666666) / t)))));
double tmp;
if (t <= -2.2e-306) {
tmp = t_1;
} else if (t <= 4.9e-118) {
tmp = t_2;
} else if (t <= 1.6e-14) {
tmp = x / (x + (y * Math.exp((2.0 * ((-0.6666666666666666 * c) / t)))));
} else if (t <= 0.65) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) t_2 = x / (x + (y * math.exp((2.0 * ((b * 0.6666666666666666) / t))))) tmp = 0 if t <= -2.2e-306: tmp = t_1 elif t <= 4.9e-118: tmp = t_2 elif t <= 1.6e-14: tmp = x / (x + (y * math.exp((2.0 * ((-0.6666666666666666 * c) / t))))) elif t <= 0.65: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b * 0.6666666666666666) / t)))))) tmp = 0.0 if (t <= -2.2e-306) tmp = t_1; elseif (t <= 4.9e-118) tmp = t_2; elseif (t <= 1.6e-14) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(-0.6666666666666666 * c) / t)))))); elseif (t <= 0.65) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); t_2 = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t))))); tmp = 0.0; if (t <= -2.2e-306) tmp = t_1; elseif (t <= 4.9e-118) tmp = t_2; elseif (t <= 1.6e-14) tmp = x / (x + (y * exp((2.0 * ((-0.6666666666666666 * c) / t))))); elseif (t <= 0.65) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b * 0.6666666666666666), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.2e-306], t$95$1, If[LessEqual[t, 4.9e-118], t$95$2, If[LessEqual[t, 1.6e-14], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(-0.6666666666666666 * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.65], t$95$2, 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)}}\\
t_2 := \frac{x}{x + y \cdot e^{2 \cdot \frac{b \cdot 0.6666666666666666}{t}}}\\
\mathbf{if}\;t \leq -2.2 \cdot 10^{-306}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4.9 \cdot 10^{-118}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{-14}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{-0.6666666666666666 \cdot c}{t}}}\\
\mathbf{elif}\;t \leq 0.65:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -2.20000000000000016e-306 or 0.650000000000000022 < t Initial program 96.5%
Taylor expanded in t around inf 89.1%
mul-1-neg89.1%
*-commutative89.1%
distribute-rgt-neg-in89.1%
distribute-neg-in89.1%
metadata-eval89.1%
Simplified89.1%
if -2.20000000000000016e-306 < t < 4.8999999999999998e-118 or 1.6000000000000001e-14 < t < 0.650000000000000022Initial program 88.3%
Taylor expanded in b around inf 71.0%
associate-*r/71.0%
metadata-eval71.0%
+-commutative71.0%
Simplified71.0%
Taylor expanded in t around 0 71.0%
associate-*r/71.0%
metadata-eval71.0%
distribute-lft-neg-in71.0%
*-commutative71.0%
distribute-rgt-neg-in71.0%
metadata-eval71.0%
Simplified71.0%
if 4.8999999999999998e-118 < t < 1.6000000000000001e-14Initial program 93.1%
Taylor expanded in c around inf 66.7%
cancel-sign-sub-inv66.7%
+-commutative66.7%
metadata-eval66.7%
associate-*r/66.7%
metadata-eval66.7%
associate-+r+66.7%
Simplified66.7%
Taylor expanded in t around 0 63.5%
associate-*r/63.5%
metadata-eval63.5%
distribute-lft-neg-in63.5%
*-commutative63.5%
distribute-rgt-neg-in63.5%
metadata-eval63.5%
Simplified63.5%
Final simplification82.0%
(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 -9.2e-306)
t_1
(if (<= t 5e-118)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(if (<= t 6.4e-65)
(/ x (+ x (* y (exp (* 2.0 (/ (* -0.6666666666666666 c) t))))))
(if (<= t 0.46)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
double tmp;
if (t <= -9.2e-306) {
tmp = t_1;
} else if (t <= 5e-118) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if (t <= 6.4e-65) {
tmp = x / (x + (y * exp((2.0 * ((-0.6666666666666666 * c) / t)))));
} else if (t <= 0.46) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
if (t <= (-9.2d-306)) then
tmp = t_1
else if (t <= 5d-118) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else if (t <= 6.4d-65) then
tmp = x / (x + (y * exp((2.0d0 * (((-0.6666666666666666d0) * c) / t)))))
else if (t <= 0.46d0) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
double tmp;
if (t <= -9.2e-306) {
tmp = t_1;
} else if (t <= 5e-118) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if (t <= 6.4e-65) {
tmp = x / (x + (y * Math.exp((2.0 * ((-0.6666666666666666 * c) / t)))));
} else if (t <= 0.46) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) tmp = 0 if t <= -9.2e-306: tmp = t_1 elif t <= 5e-118: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) elif t <= 6.4e-65: tmp = x / (x + (y * math.exp((2.0 * ((-0.6666666666666666 * c) / t))))) elif t <= 0.46: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))) tmp = 0.0 if (t <= -9.2e-306) tmp = t_1; elseif (t <= 5e-118) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); elseif (t <= 6.4e-65) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(-0.6666666666666666 * c) / t)))))); elseif (t <= 0.46) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); tmp = 0.0; if (t <= -9.2e-306) tmp = t_1; elseif (t <= 5e-118) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); elseif (t <= 6.4e-65) tmp = x / (x + (y * exp((2.0 * ((-0.6666666666666666 * c) / t))))); elseif (t <= 0.46) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9.2e-306], t$95$1, If[LessEqual[t, 5e-118], 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, 6.4e-65], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(-0.6666666666666666 * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.46], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{if}\;t \leq -9.2 \cdot 10^{-306}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-118}:\\
\;\;\;\;\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 6.4 \cdot 10^{-65}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{-0.6666666666666666 \cdot c}{t}}}\\
\mathbf{elif}\;t \leq 0.46:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -9.19999999999999956e-306 or 0.46000000000000002 < t Initial program 96.5%
Taylor expanded in t around inf 89.1%
mul-1-neg89.1%
*-commutative89.1%
distribute-rgt-neg-in89.1%
distribute-neg-in89.1%
metadata-eval89.1%
Simplified89.1%
if -9.19999999999999956e-306 < t < 5.00000000000000015e-118Initial program 86.5%
Taylor expanded in b around inf 72.1%
associate-*r/72.1%
metadata-eval72.1%
+-commutative72.1%
Simplified72.1%
if 5.00000000000000015e-118 < t < 6.3999999999999998e-65Initial program 94.4%
Taylor expanded in c around inf 73.2%
cancel-sign-sub-inv73.2%
+-commutative73.2%
metadata-eval73.2%
associate-*r/73.2%
metadata-eval73.2%
associate-+r+73.2%
Simplified73.2%
Taylor expanded in t around 0 78.6%
associate-*r/78.6%
metadata-eval78.6%
distribute-lft-neg-in78.6%
*-commutative78.6%
distribute-rgt-neg-in78.6%
metadata-eval78.6%
Simplified78.6%
if 6.3999999999999998e-65 < t < 0.46000000000000002Initial program 94.7%
Taylor expanded in a around inf 59.5%
Final simplification82.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (/ (* b 0.6666666666666666) t))))))))
(if (<= t -1.1e-152)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 2.7e-118)
t_1
(if (<= t 1.22e-18)
(/ x (+ x (* y (exp (* 2.0 (/ (* -0.6666666666666666 c) t))))))
(if (<= t 0.37)
t_1
(/ x (+ x (* y (exp (* (- b c) -1.6666666666666667)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t)))));
double tmp;
if (t <= -1.1e-152) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 2.7e-118) {
tmp = t_1;
} else if (t <= 1.22e-18) {
tmp = x / (x + (y * exp((2.0 * ((-0.6666666666666666 * c) / t)))));
} else if (t <= 0.37) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((b * 0.6666666666666666d0) / t)))))
if (t <= (-1.1d-152)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 2.7d-118) then
tmp = t_1
else if (t <= 1.22d-18) then
tmp = x / (x + (y * exp((2.0d0 * (((-0.6666666666666666d0) * c) / t)))))
else if (t <= 0.37d0) then
tmp = t_1
else
tmp = x / (x + (y * exp(((b - c) * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((b * 0.6666666666666666) / t)))));
double tmp;
if (t <= -1.1e-152) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 2.7e-118) {
tmp = t_1;
} else if (t <= 1.22e-18) {
tmp = x / (x + (y * Math.exp((2.0 * ((-0.6666666666666666 * c) / t)))));
} else if (t <= 0.37) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((b * 0.6666666666666666) / t))))) tmp = 0 if t <= -1.1e-152: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 2.7e-118: tmp = t_1 elif t <= 1.22e-18: tmp = x / (x + (y * math.exp((2.0 * ((-0.6666666666666666 * c) / t))))) elif t <= 0.37: tmp = t_1 else: tmp = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b * 0.6666666666666666) / t)))))) tmp = 0.0 if (t <= -1.1e-152) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 2.7e-118) tmp = t_1; elseif (t <= 1.22e-18) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(-0.6666666666666666 * c) / t)))))); elseif (t <= 0.37) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t))))); tmp = 0.0; if (t <= -1.1e-152) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 2.7e-118) tmp = t_1; elseif (t <= 1.22e-18) tmp = x / (x + (y * exp((2.0 * ((-0.6666666666666666 * c) / t))))); elseif (t <= 0.37) tmp = t_1; else tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b * 0.6666666666666666), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.1e-152], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.7e-118], t$95$1, If[LessEqual[t, 1.22e-18], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(-0.6666666666666666 * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.37], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \frac{b \cdot 0.6666666666666666}{t}}}\\
\mathbf{if}\;t \leq -1.1 \cdot 10^{-152}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-118}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.22 \cdot 10^{-18}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{-0.6666666666666666 \cdot c}{t}}}\\
\mathbf{elif}\;t \leq 0.37:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -1.09999999999999992e-152Initial program 93.8%
Taylor expanded in a around inf 90.9%
if -1.09999999999999992e-152 < t < 2.69999999999999994e-118 or 1.2200000000000001e-18 < t < 0.37Initial program 91.4%
Taylor expanded in b around inf 71.4%
associate-*r/71.4%
metadata-eval71.4%
+-commutative71.4%
Simplified71.4%
Taylor expanded in t around 0 71.4%
associate-*r/71.4%
metadata-eval71.4%
distribute-lft-neg-in71.4%
*-commutative71.4%
distribute-rgt-neg-in71.4%
metadata-eval71.4%
Simplified71.4%
if 2.69999999999999994e-118 < t < 1.2200000000000001e-18Initial program 93.1%
Taylor expanded in c around inf 66.7%
cancel-sign-sub-inv66.7%
+-commutative66.7%
metadata-eval66.7%
associate-*r/66.7%
metadata-eval66.7%
associate-+r+66.7%
Simplified66.7%
Taylor expanded in t around 0 63.5%
associate-*r/63.5%
metadata-eval63.5%
distribute-lft-neg-in63.5%
*-commutative63.5%
distribute-rgt-neg-in63.5%
metadata-eval63.5%
Simplified63.5%
if 0.37 < t Initial program 96.6%
Taylor expanded in t around inf 90.7%
mul-1-neg90.7%
*-commutative90.7%
distribute-rgt-neg-in90.7%
distribute-neg-in90.7%
metadata-eval90.7%
Simplified90.7%
Taylor expanded in a around 0 78.9%
Final simplification76.3%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -2.9e+132) (not (<= c 1.95e+34)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* (+ a (+ (/ -0.6666666666666666 t) 0.8333333333333334)) c))))))
(/
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 ((c <= -2.9e+132) || !(c <= 1.95e+34)) {
tmp = x / (x + (y * exp((2.0 * ((a + ((-0.6666666666666666 / t) + 0.8333333333333334)) * c)))));
} 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 ((c <= (-2.9d+132)) .or. (.not. (c <= 1.95d+34))) then
tmp = x / (x + (y * exp((2.0d0 * ((a + (((-0.6666666666666666d0) / t) + 0.8333333333333334d0)) * c)))))
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 ((c <= -2.9e+132) || !(c <= 1.95e+34)) {
tmp = x / (x + (y * Math.exp((2.0 * ((a + ((-0.6666666666666666 / t) + 0.8333333333333334)) * c)))));
} 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 (c <= -2.9e+132) or not (c <= 1.95e+34): tmp = x / (x + (y * math.exp((2.0 * ((a + ((-0.6666666666666666 / t) + 0.8333333333333334)) * c))))) 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 ((c <= -2.9e+132) || !(c <= 1.95e+34)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334)) * c)))))); 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 ((c <= -2.9e+132) || ~((c <= 1.95e+34))) tmp = x / (x + (y * exp((2.0 * ((a + ((-0.6666666666666666 / t) + 0.8333333333333334)) * c))))); 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[c, -2.9e+132], N[Not[LessEqual[c, 1.95e+34]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + N[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] * c), $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}\;c \leq -2.9 \cdot 10^{+132} \lor \neg \left(c \leq 1.95 \cdot 10^{+34}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + \left(\frac{-0.6666666666666666}{t} + 0.8333333333333334\right)\right) \cdot c\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 c < -2.8999999999999999e132 or 1.9500000000000001e34 < c Initial program 90.8%
Taylor expanded in c around inf 93.2%
cancel-sign-sub-inv93.2%
+-commutative93.2%
metadata-eval93.2%
associate-*r/93.2%
metadata-eval93.2%
associate-+r+93.2%
Simplified93.2%
if -2.8999999999999999e132 < c < 1.9500000000000001e34Initial program 95.9%
Taylor expanded in b around inf 77.0%
associate-*r/77.0%
metadata-eval77.0%
+-commutative77.0%
Simplified77.0%
Final simplification82.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= t 6.4e-277)
t_1
(if (<= t 6.8e-167)
(/
x
(-
x
(-
(*
(* 2.0 b)
(* y (- a (+ -0.8333333333333334 (/ 0.6666666666666666 t)))))
y)))
(if (<= t 0.8)
t_1
(/ x (+ x (* y (exp (* (- b c) -1.6666666666666667))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= 6.4e-277) {
tmp = t_1;
} else if (t <= 6.8e-167) {
tmp = x / (x - (((2.0 * b) * (y * (a - (-0.8333333333333334 + (0.6666666666666666 / t))))) - y));
} else if (t <= 0.8) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
if (t <= 6.4d-277) then
tmp = t_1
else if (t <= 6.8d-167) then
tmp = x / (x - (((2.0d0 * b) * (y * (a - ((-0.8333333333333334d0) + (0.6666666666666666d0 / t))))) - y))
else if (t <= 0.8d0) then
tmp = t_1
else
tmp = x / (x + (y * exp(((b - c) * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= 6.4e-277) {
tmp = t_1;
} else if (t <= 6.8e-167) {
tmp = x / (x - (((2.0 * b) * (y * (a - (-0.8333333333333334 + (0.6666666666666666 / t))))) - y));
} else if (t <= 0.8) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) tmp = 0 if t <= 6.4e-277: tmp = t_1 elif t <= 6.8e-167: tmp = x / (x - (((2.0 * b) * (y * (a - (-0.8333333333333334 + (0.6666666666666666 / t))))) - y)) elif t <= 0.8: tmp = t_1 else: tmp = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))) tmp = 0.0 if (t <= 6.4e-277) tmp = t_1; elseif (t <= 6.8e-167) tmp = Float64(x / Float64(x - Float64(Float64(Float64(2.0 * b) * Float64(y * Float64(a - Float64(-0.8333333333333334 + Float64(0.6666666666666666 / t))))) - y))); elseif (t <= 0.8) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (a * (c - b)))))); tmp = 0.0; if (t <= 6.4e-277) tmp = t_1; elseif (t <= 6.8e-167) tmp = x / (x - (((2.0 * b) * (y * (a - (-0.8333333333333334 + (0.6666666666666666 / t))))) - y)); elseif (t <= 0.8) tmp = t_1; else tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 6.4e-277], t$95$1, If[LessEqual[t, 6.8e-167], N[(x / N[(x - N[(N[(N[(2.0 * b), $MachinePrecision] * N[(y * N[(a - N[(-0.8333333333333334 + N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.8], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq 6.4 \cdot 10^{-277}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{-167}:\\
\;\;\;\;\frac{x}{x - \left(\left(2 \cdot b\right) \cdot \left(y \cdot \left(a - \left(-0.8333333333333334 + \frac{0.6666666666666666}{t}\right)\right)\right) - y\right)}\\
\mathbf{elif}\;t \leq 0.8:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < 6.3999999999999996e-277 or 6.7999999999999995e-167 < t < 0.80000000000000004Initial program 94.6%
Taylor expanded in a around inf 67.3%
if 6.3999999999999996e-277 < t < 6.7999999999999995e-167Initial program 83.3%
Taylor expanded in b around inf 64.5%
associate-*r/64.5%
metadata-eval64.5%
+-commutative64.5%
Simplified64.5%
Taylor expanded in b around 0 48.8%
associate-*r*48.8%
*-commutative48.8%
*-commutative48.8%
associate--r+48.8%
sub-neg48.8%
associate-*r/48.8%
metadata-eval48.8%
metadata-eval48.8%
Simplified48.8%
if 0.80000000000000004 < t Initial program 96.6%
Taylor expanded in t around inf 90.7%
mul-1-neg90.7%
*-commutative90.7%
distribute-rgt-neg-in90.7%
distribute-neg-in90.7%
metadata-eval90.7%
Simplified90.7%
Taylor expanded in a around 0 78.9%
Final simplification70.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -2.05e-33)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 0.68)
(/ x (+ x (* y (exp (* 2.0 (/ (* b 0.6666666666666666) t))))))
(/ 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 <= -2.05e-33) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 0.68) {
tmp = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t)))));
} 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 <= (-2.05d-33)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 0.68d0) then
tmp = x / (x + (y * exp((2.0d0 * ((b * 0.6666666666666666d0) / t)))))
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 <= -2.05e-33) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 0.68) {
tmp = x / (x + (y * Math.exp((2.0 * ((b * 0.6666666666666666) / t)))));
} 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 <= -2.05e-33: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 0.68: tmp = x / (x + (y * math.exp((2.0 * ((b * 0.6666666666666666) / t))))) 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 <= -2.05e-33) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 0.68) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b * 0.6666666666666666) / t)))))); 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 <= -2.05e-33) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 0.68) tmp = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t))))); 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, -2.05e-33], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.68], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b * 0.6666666666666666), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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 -2.05 \cdot 10^{-33}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 0.68:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{b \cdot 0.6666666666666666}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -2.05e-33Initial program 93.8%
Taylor expanded in a around inf 100.0%
if -2.05e-33 < t < 0.680000000000000049Initial program 92.1%
Taylor expanded in b around inf 67.0%
associate-*r/67.0%
metadata-eval67.0%
+-commutative67.0%
Simplified67.0%
Taylor expanded in t around 0 66.3%
associate-*r/66.3%
metadata-eval66.3%
distribute-lft-neg-in66.3%
*-commutative66.3%
distribute-rgt-neg-in66.3%
metadata-eval66.3%
Simplified66.3%
if 0.680000000000000049 < t Initial program 96.6%
Taylor expanded in t around inf 90.7%
mul-1-neg90.7%
*-commutative90.7%
distribute-rgt-neg-in90.7%
distribute-neg-in90.7%
metadata-eval90.7%
Simplified90.7%
Taylor expanded in a around 0 78.9%
Final simplification74.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -5e-28)
(/ x (* y (exp (* (- b c) -1.6666666666666667))))
(if (or (<= (- b c) 1e-228)
(and (not (<= (- b c) 5e+244)) (<= (- b c) 8e+300)))
(/
x
(-
x
(-
(*
(* 2.0 b)
(* y (- a (+ -0.8333333333333334 (/ 0.6666666666666666 t)))))
y)))
1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -5e-28) {
tmp = x / (y * exp(((b - c) * -1.6666666666666667)));
} else if (((b - c) <= 1e-228) || (!((b - c) <= 5e+244) && ((b - c) <= 8e+300))) {
tmp = x / (x - (((2.0 * b) * (y * (a - (-0.8333333333333334 + (0.6666666666666666 / t))))) - y));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= (-5d-28)) then
tmp = x / (y * exp(((b - c) * (-1.6666666666666667d0))))
else if (((b - c) <= 1d-228) .or. (.not. ((b - c) <= 5d+244)) .and. ((b - c) <= 8d+300)) then
tmp = x / (x - (((2.0d0 * b) * (y * (a - ((-0.8333333333333334d0) + (0.6666666666666666d0 / t))))) - y))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -5e-28) {
tmp = x / (y * Math.exp(((b - c) * -1.6666666666666667)));
} else if (((b - c) <= 1e-228) || (!((b - c) <= 5e+244) && ((b - c) <= 8e+300))) {
tmp = x / (x - (((2.0 * b) * (y * (a - (-0.8333333333333334 + (0.6666666666666666 / t))))) - y));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -5e-28: tmp = x / (y * math.exp(((b - c) * -1.6666666666666667))) elif ((b - c) <= 1e-228) or (not ((b - c) <= 5e+244) and ((b - c) <= 8e+300)): tmp = x / (x - (((2.0 * b) * (y * (a - (-0.8333333333333334 + (0.6666666666666666 / t))))) - y)) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -5e-28) tmp = Float64(x / Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667)))); elseif ((Float64(b - c) <= 1e-228) || (!(Float64(b - c) <= 5e+244) && (Float64(b - c) <= 8e+300))) tmp = Float64(x / Float64(x - Float64(Float64(Float64(2.0 * b) * Float64(y * Float64(a - Float64(-0.8333333333333334 + Float64(0.6666666666666666 / t))))) - y))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= -5e-28) tmp = x / (y * exp(((b - c) * -1.6666666666666667))); elseif (((b - c) <= 1e-228) || (~(((b - c) <= 5e+244)) && ((b - c) <= 8e+300))) tmp = x / (x - (((2.0 * b) * (y * (a - (-0.8333333333333334 + (0.6666666666666666 / t))))) - y)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -5e-28], N[(x / N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[N[(b - c), $MachinePrecision], 1e-228], And[N[Not[LessEqual[N[(b - c), $MachinePrecision], 5e+244]], $MachinePrecision], LessEqual[N[(b - c), $MachinePrecision], 8e+300]]], N[(x / N[(x - N[(N[(N[(2.0 * b), $MachinePrecision] * N[(y * N[(a - N[(-0.8333333333333334 + N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -5 \cdot 10^{-28}:\\
\;\;\;\;\frac{x}{y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b - c \leq 10^{-228} \lor \neg \left(b - c \leq 5 \cdot 10^{+244}\right) \land b - c \leq 8 \cdot 10^{+300}:\\
\;\;\;\;\frac{x}{x - \left(\left(2 \cdot b\right) \cdot \left(y \cdot \left(a - \left(-0.8333333333333334 + \frac{0.6666666666666666}{t}\right)\right)\right) - y\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -5.0000000000000002e-28Initial program 92.2%
Taylor expanded in t around inf 75.3%
mul-1-neg75.3%
*-commutative75.3%
distribute-rgt-neg-in75.3%
distribute-neg-in75.3%
metadata-eval75.3%
Simplified75.3%
Taylor expanded in a around 0 68.7%
Taylor expanded in x around 0 68.7%
if -5.0000000000000002e-28 < (-.f64 b c) < 1.00000000000000003e-228 or 5.00000000000000022e244 < (-.f64 b c) < 8.0000000000000004e300Initial program 91.7%
Taylor expanded in b around inf 55.9%
associate-*r/55.9%
metadata-eval55.9%
+-commutative55.9%
Simplified55.9%
Taylor expanded in b around 0 59.5%
associate-*r*59.5%
*-commutative59.5%
*-commutative59.5%
associate--r+59.5%
sub-neg59.5%
associate-*r/59.5%
metadata-eval59.5%
metadata-eval59.5%
Simplified59.5%
if 1.00000000000000003e-228 < (-.f64 b c) < 5.00000000000000022e244 or 8.0000000000000004e300 < (-.f64 b c) Initial program 97.2%
Taylor expanded in b around inf 76.8%
associate-*r/76.8%
metadata-eval76.8%
+-commutative76.8%
Simplified76.8%
Taylor expanded in x around inf 67.1%
Final simplification66.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a -4.4e-272)
1.0
(if (<= a 1.55e-253)
(/ x (- x (* y (- -1.0 (* 2.0 (* -0.6666666666666666 (/ c t)))))))
(if (<= a 2.15e-206)
1.0
(if (<= a 1.25e-130)
(* (/ -0.75 y) (/ (* x t) c))
(if (<= a 1.46e+32)
(/ x (+ x (* -1.3333333333333333 (/ c (/ t y)))))
(if (or (<= a 1.28e+91) (and (not (<= a 4.2e+177)) (<= a 1.8e+229)))
(/ x (+ x (* y (+ (* (* 2.0 a) (- c b)) 1.0))))
1.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -4.4e-272) {
tmp = 1.0;
} else if (a <= 1.55e-253) {
tmp = x / (x - (y * (-1.0 - (2.0 * (-0.6666666666666666 * (c / t))))));
} else if (a <= 2.15e-206) {
tmp = 1.0;
} else if (a <= 1.25e-130) {
tmp = (-0.75 / y) * ((x * t) / c);
} else if (a <= 1.46e+32) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else if ((a <= 1.28e+91) || (!(a <= 4.2e+177) && (a <= 1.8e+229))) {
tmp = x / (x + (y * (((2.0 * a) * (c - b)) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (a <= (-4.4d-272)) then
tmp = 1.0d0
else if (a <= 1.55d-253) then
tmp = x / (x - (y * ((-1.0d0) - (2.0d0 * ((-0.6666666666666666d0) * (c / t))))))
else if (a <= 2.15d-206) then
tmp = 1.0d0
else if (a <= 1.25d-130) then
tmp = ((-0.75d0) / y) * ((x * t) / c)
else if (a <= 1.46d+32) then
tmp = x / (x + ((-1.3333333333333333d0) * (c / (t / y))))
else if ((a <= 1.28d+91) .or. (.not. (a <= 4.2d+177)) .and. (a <= 1.8d+229)) then
tmp = x / (x + (y * (((2.0d0 * a) * (c - b)) + 1.0d0)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -4.4e-272) {
tmp = 1.0;
} else if (a <= 1.55e-253) {
tmp = x / (x - (y * (-1.0 - (2.0 * (-0.6666666666666666 * (c / t))))));
} else if (a <= 2.15e-206) {
tmp = 1.0;
} else if (a <= 1.25e-130) {
tmp = (-0.75 / y) * ((x * t) / c);
} else if (a <= 1.46e+32) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else if ((a <= 1.28e+91) || (!(a <= 4.2e+177) && (a <= 1.8e+229))) {
tmp = x / (x + (y * (((2.0 * a) * (c - b)) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= -4.4e-272: tmp = 1.0 elif a <= 1.55e-253: tmp = x / (x - (y * (-1.0 - (2.0 * (-0.6666666666666666 * (c / t)))))) elif a <= 2.15e-206: tmp = 1.0 elif a <= 1.25e-130: tmp = (-0.75 / y) * ((x * t) / c) elif a <= 1.46e+32: tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))) elif (a <= 1.28e+91) or (not (a <= 4.2e+177) and (a <= 1.8e+229)): tmp = x / (x + (y * (((2.0 * a) * (c - b)) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= -4.4e-272) tmp = 1.0; elseif (a <= 1.55e-253) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(2.0 * Float64(-0.6666666666666666 * Float64(c / t))))))); elseif (a <= 2.15e-206) tmp = 1.0; elseif (a <= 1.25e-130) tmp = Float64(Float64(-0.75 / y) * Float64(Float64(x * t) / c)); elseif (a <= 1.46e+32) tmp = Float64(x / Float64(x + Float64(-1.3333333333333333 * Float64(c / Float64(t / y))))); elseif ((a <= 1.28e+91) || (!(a <= 4.2e+177) && (a <= 1.8e+229))) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(2.0 * a) * Float64(c - b)) + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= -4.4e-272) tmp = 1.0; elseif (a <= 1.55e-253) tmp = x / (x - (y * (-1.0 - (2.0 * (-0.6666666666666666 * (c / t)))))); elseif (a <= 2.15e-206) tmp = 1.0; elseif (a <= 1.25e-130) tmp = (-0.75 / y) * ((x * t) / c); elseif (a <= 1.46e+32) tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))); elseif ((a <= 1.28e+91) || (~((a <= 4.2e+177)) && (a <= 1.8e+229))) tmp = x / (x + (y * (((2.0 * a) * (c - b)) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, -4.4e-272], 1.0, If[LessEqual[a, 1.55e-253], N[(x / N[(x - N[(y * N[(-1.0 - N[(2.0 * N[(-0.6666666666666666 * N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.15e-206], 1.0, If[LessEqual[a, 1.25e-130], N[(N[(-0.75 / y), $MachinePrecision] * N[(N[(x * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.46e+32], N[(x / N[(x + N[(-1.3333333333333333 * N[(c / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, 1.28e+91], And[N[Not[LessEqual[a, 4.2e+177]], $MachinePrecision], LessEqual[a, 1.8e+229]]], N[(x / N[(x + N[(y * N[(N[(N[(2.0 * a), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.4 \cdot 10^{-272}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 1.55 \cdot 10^{-253}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - 2 \cdot \left(-0.6666666666666666 \cdot \frac{c}{t}\right)\right)}\\
\mathbf{elif}\;a \leq 2.15 \cdot 10^{-206}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{-130}:\\
\;\;\;\;\frac{-0.75}{y} \cdot \frac{x \cdot t}{c}\\
\mathbf{elif}\;a \leq 1.46 \cdot 10^{+32}:\\
\;\;\;\;\frac{x}{x + -1.3333333333333333 \cdot \frac{c}{\frac{t}{y}}}\\
\mathbf{elif}\;a \leq 1.28 \cdot 10^{+91} \lor \neg \left(a \leq 4.2 \cdot 10^{+177}\right) \land a \leq 1.8 \cdot 10^{+229}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(2 \cdot a\right) \cdot \left(c - b\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if a < -4.39999999999999976e-272 or 1.54999999999999998e-253 < a < 2.15000000000000012e-206 or 1.27999999999999999e91 < a < 4.20000000000000026e177 or 1.79999999999999993e229 < a Initial program 95.5%
Taylor expanded in b around inf 72.3%
associate-*r/72.3%
metadata-eval72.3%
+-commutative72.3%
Simplified72.3%
Taylor expanded in x around inf 59.6%
if -4.39999999999999976e-272 < a < 1.54999999999999998e-253Initial program 96.0%
Taylor expanded in c around inf 66.4%
cancel-sign-sub-inv66.4%
+-commutative66.4%
metadata-eval66.4%
associate-*r/66.4%
metadata-eval66.4%
associate-+r+66.4%
Simplified66.4%
Taylor expanded in c around 0 59.3%
Taylor expanded in t around 0 59.0%
if 2.15000000000000012e-206 < a < 1.2499999999999999e-130Initial program 100.0%
Taylor expanded in c around inf 71.3%
cancel-sign-sub-inv71.3%
+-commutative71.3%
metadata-eval71.3%
associate-*r/71.3%
metadata-eval71.3%
associate-+r+71.3%
Simplified71.3%
Taylor expanded in c around 0 33.1%
Taylor expanded in t around 0 41.0%
associate-*r/41.0%
*-commutative41.0%
times-frac61.0%
Simplified61.0%
if 1.2499999999999999e-130 < a < 1.46000000000000005e32Initial program 95.3%
Taylor expanded in c around inf 69.3%
cancel-sign-sub-inv69.3%
+-commutative69.3%
metadata-eval69.3%
associate-*r/69.3%
metadata-eval69.3%
associate-+r+69.3%
Simplified69.3%
Taylor expanded in c around 0 43.5%
Taylor expanded in t around 0 48.4%
associate-/l*50.8%
Simplified50.8%
if 1.46000000000000005e32 < a < 1.27999999999999999e91 or 4.20000000000000026e177 < a < 1.79999999999999993e229Initial program 86.8%
Taylor expanded in a around inf 72.1%
Taylor expanded in a around 0 61.8%
associate-*r*61.8%
*-commutative61.8%
*-commutative61.8%
Simplified61.8%
Final simplification58.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(-
1.0
(*
2.0
(* c (- (- (/ 0.6666666666666666 t) a) 0.8333333333333334))))))))
(t_2 (/ x (+ x (+ y (* -2.0 (* a (* y b))))))))
(if (<= b -2.6e+175)
t_2
(if (<= b -1.22e+57)
(/ x (+ x (* -1.3333333333333333 (/ c (/ t y)))))
(if (<= b -4.5e-213)
t_1
(if (<= b 2.15e-288)
1.0
(if (<= b 5.8e-217)
t_1
(if (<= b 1.75e+246) 1.0 (if (<= b 8.2e+295) t_2 1.0)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * (1.0 - (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
double t_2 = x / (x + (y + (-2.0 * (a * (y * b)))));
double tmp;
if (b <= -2.6e+175) {
tmp = t_2;
} else if (b <= -1.22e+57) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else if (b <= -4.5e-213) {
tmp = t_1;
} else if (b <= 2.15e-288) {
tmp = 1.0;
} else if (b <= 5.8e-217) {
tmp = t_1;
} else if (b <= 1.75e+246) {
tmp = 1.0;
} else if (b <= 8.2e+295) {
tmp = t_2;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * (1.0d0 - (2.0d0 * (c * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0))))))
t_2 = x / (x + (y + ((-2.0d0) * (a * (y * b)))))
if (b <= (-2.6d+175)) then
tmp = t_2
else if (b <= (-1.22d+57)) then
tmp = x / (x + ((-1.3333333333333333d0) * (c / (t / y))))
else if (b <= (-4.5d-213)) then
tmp = t_1
else if (b <= 2.15d-288) then
tmp = 1.0d0
else if (b <= 5.8d-217) then
tmp = t_1
else if (b <= 1.75d+246) then
tmp = 1.0d0
else if (b <= 8.2d+295) then
tmp = t_2
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * (1.0 - (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
double t_2 = x / (x + (y + (-2.0 * (a * (y * b)))));
double tmp;
if (b <= -2.6e+175) {
tmp = t_2;
} else if (b <= -1.22e+57) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else if (b <= -4.5e-213) {
tmp = t_1;
} else if (b <= 2.15e-288) {
tmp = 1.0;
} else if (b <= 5.8e-217) {
tmp = t_1;
} else if (b <= 1.75e+246) {
tmp = 1.0;
} else if (b <= 8.2e+295) {
tmp = t_2;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * (1.0 - (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))) t_2 = x / (x + (y + (-2.0 * (a * (y * b))))) tmp = 0 if b <= -2.6e+175: tmp = t_2 elif b <= -1.22e+57: tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))) elif b <= -4.5e-213: tmp = t_1 elif b <= 2.15e-288: tmp = 1.0 elif b <= 5.8e-217: tmp = t_1 elif b <= 1.75e+246: tmp = 1.0 elif b <= 8.2e+295: tmp = t_2 else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(2.0 * Float64(c * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334))))))) t_2 = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(a * Float64(y * b)))))) tmp = 0.0 if (b <= -2.6e+175) tmp = t_2; elseif (b <= -1.22e+57) tmp = Float64(x / Float64(x + Float64(-1.3333333333333333 * Float64(c / Float64(t / y))))); elseif (b <= -4.5e-213) tmp = t_1; elseif (b <= 2.15e-288) tmp = 1.0; elseif (b <= 5.8e-217) tmp = t_1; elseif (b <= 1.75e+246) tmp = 1.0; elseif (b <= 8.2e+295) tmp = t_2; else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * (1.0 - (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))); t_2 = x / (x + (y + (-2.0 * (a * (y * b))))); tmp = 0.0; if (b <= -2.6e+175) tmp = t_2; elseif (b <= -1.22e+57) tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))); elseif (b <= -4.5e-213) tmp = t_1; elseif (b <= 2.15e-288) tmp = 1.0; elseif (b <= 5.8e-217) tmp = t_1; elseif (b <= 1.75e+246) tmp = 1.0; elseif (b <= 8.2e+295) tmp = t_2; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[(1.0 - N[(2.0 * N[(c * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y + N[(-2.0 * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.6e+175], t$95$2, If[LessEqual[b, -1.22e+57], N[(x / N[(x + N[(-1.3333333333333333 * N[(c / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.5e-213], t$95$1, If[LessEqual[b, 2.15e-288], 1.0, If[LessEqual[b, 5.8e-217], t$95$1, If[LessEqual[b, 1.75e+246], 1.0, If[LessEqual[b, 8.2e+295], t$95$2, 1.0]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot \left(1 - 2 \cdot \left(c \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right)\right)}\\
t_2 := \frac{x}{x + \left(y + -2 \cdot \left(a \cdot \left(y \cdot b\right)\right)\right)}\\
\mathbf{if}\;b \leq -2.6 \cdot 10^{+175}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.22 \cdot 10^{+57}:\\
\;\;\;\;\frac{x}{x + -1.3333333333333333 \cdot \frac{c}{\frac{t}{y}}}\\
\mathbf{elif}\;b \leq -4.5 \cdot 10^{-213}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2.15 \cdot 10^{-288}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{-217}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{+246}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{+295}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -2.6e175 or 1.74999999999999988e246 < b < 8.19999999999999967e295Initial program 85.3%
Taylor expanded in a around inf 60.1%
clear-num60.1%
inv-pow60.1%
+-commutative60.1%
fma-def60.1%
exp-prod60.1%
Applied egg-rr60.1%
unpow-160.1%
exp-prod60.1%
associate-*r*60.1%
*-commutative60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in c around 0 60.1%
Taylor expanded in a around 0 55.6%
if -2.6e175 < b < -1.22e57Initial program 96.4%
Taylor expanded in c around inf 33.3%
cancel-sign-sub-inv33.3%
+-commutative33.3%
metadata-eval33.3%
associate-*r/33.3%
metadata-eval33.3%
associate-+r+33.3%
Simplified33.3%
Taylor expanded in c around 0 23.5%
Taylor expanded in t around 0 31.0%
associate-/l*34.4%
Simplified34.4%
if -1.22e57 < b < -4.5000000000000001e-213 or 2.14999999999999988e-288 < b < 5.79999999999999963e-217Initial program 95.7%
Taylor expanded in c around inf 69.1%
cancel-sign-sub-inv69.1%
+-commutative69.1%
metadata-eval69.1%
associate-*r/69.1%
metadata-eval69.1%
associate-+r+69.1%
Simplified69.1%
Taylor expanded in c around 0 58.2%
associate--l+58.2%
associate-*r/58.2%
metadata-eval58.2%
Simplified58.2%
if -4.5000000000000001e-213 < b < 2.14999999999999988e-288 or 5.79999999999999963e-217 < b < 1.74999999999999988e246 or 8.19999999999999967e295 < b Initial program 95.3%
Taylor expanded in b around inf 67.3%
associate-*r/67.3%
metadata-eval67.3%
+-commutative67.3%
Simplified67.3%
Taylor expanded in x around inf 60.5%
Final simplification56.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a -2.4e-273)
1.0
(if (<= a 1.55e-253)
(/ x (- x (* y (- -1.0 (* 2.0 (* -0.6666666666666666 (/ c t)))))))
(if (<= a 2.6e-206)
1.0
(if (<= a 1.25e-130)
(* (/ -0.75 y) (/ (* x t) c))
(if (<= a 1.45e+32)
(/ x (+ x (* -1.3333333333333333 (/ c (/ t y)))))
(if (<= a 1.35e+91)
(/ x (+ x (+ y (* -2.0 (* a (* y b))))))
(if (<= a 1.7e+178)
1.0
(if (<= a 1.12e+229) (* 0.5 (/ x (* c (* y a)))) 1.0)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -2.4e-273) {
tmp = 1.0;
} else if (a <= 1.55e-253) {
tmp = x / (x - (y * (-1.0 - (2.0 * (-0.6666666666666666 * (c / t))))));
} else if (a <= 2.6e-206) {
tmp = 1.0;
} else if (a <= 1.25e-130) {
tmp = (-0.75 / y) * ((x * t) / c);
} else if (a <= 1.45e+32) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else if (a <= 1.35e+91) {
tmp = x / (x + (y + (-2.0 * (a * (y * b)))));
} else if (a <= 1.7e+178) {
tmp = 1.0;
} else if (a <= 1.12e+229) {
tmp = 0.5 * (x / (c * (y * a)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (a <= (-2.4d-273)) then
tmp = 1.0d0
else if (a <= 1.55d-253) then
tmp = x / (x - (y * ((-1.0d0) - (2.0d0 * ((-0.6666666666666666d0) * (c / t))))))
else if (a <= 2.6d-206) then
tmp = 1.0d0
else if (a <= 1.25d-130) then
tmp = ((-0.75d0) / y) * ((x * t) / c)
else if (a <= 1.45d+32) then
tmp = x / (x + ((-1.3333333333333333d0) * (c / (t / y))))
else if (a <= 1.35d+91) then
tmp = x / (x + (y + ((-2.0d0) * (a * (y * b)))))
else if (a <= 1.7d+178) then
tmp = 1.0d0
else if (a <= 1.12d+229) then
tmp = 0.5d0 * (x / (c * (y * a)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -2.4e-273) {
tmp = 1.0;
} else if (a <= 1.55e-253) {
tmp = x / (x - (y * (-1.0 - (2.0 * (-0.6666666666666666 * (c / t))))));
} else if (a <= 2.6e-206) {
tmp = 1.0;
} else if (a <= 1.25e-130) {
tmp = (-0.75 / y) * ((x * t) / c);
} else if (a <= 1.45e+32) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else if (a <= 1.35e+91) {
tmp = x / (x + (y + (-2.0 * (a * (y * b)))));
} else if (a <= 1.7e+178) {
tmp = 1.0;
} else if (a <= 1.12e+229) {
tmp = 0.5 * (x / (c * (y * a)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= -2.4e-273: tmp = 1.0 elif a <= 1.55e-253: tmp = x / (x - (y * (-1.0 - (2.0 * (-0.6666666666666666 * (c / t)))))) elif a <= 2.6e-206: tmp = 1.0 elif a <= 1.25e-130: tmp = (-0.75 / y) * ((x * t) / c) elif a <= 1.45e+32: tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))) elif a <= 1.35e+91: tmp = x / (x + (y + (-2.0 * (a * (y * b))))) elif a <= 1.7e+178: tmp = 1.0 elif a <= 1.12e+229: tmp = 0.5 * (x / (c * (y * a))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= -2.4e-273) tmp = 1.0; elseif (a <= 1.55e-253) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(2.0 * Float64(-0.6666666666666666 * Float64(c / t))))))); elseif (a <= 2.6e-206) tmp = 1.0; elseif (a <= 1.25e-130) tmp = Float64(Float64(-0.75 / y) * Float64(Float64(x * t) / c)); elseif (a <= 1.45e+32) tmp = Float64(x / Float64(x + Float64(-1.3333333333333333 * Float64(c / Float64(t / y))))); elseif (a <= 1.35e+91) tmp = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(a * Float64(y * b)))))); elseif (a <= 1.7e+178) tmp = 1.0; elseif (a <= 1.12e+229) tmp = Float64(0.5 * Float64(x / Float64(c * Float64(y * a)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= -2.4e-273) tmp = 1.0; elseif (a <= 1.55e-253) tmp = x / (x - (y * (-1.0 - (2.0 * (-0.6666666666666666 * (c / t)))))); elseif (a <= 2.6e-206) tmp = 1.0; elseif (a <= 1.25e-130) tmp = (-0.75 / y) * ((x * t) / c); elseif (a <= 1.45e+32) tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))); elseif (a <= 1.35e+91) tmp = x / (x + (y + (-2.0 * (a * (y * b))))); elseif (a <= 1.7e+178) tmp = 1.0; elseif (a <= 1.12e+229) tmp = 0.5 * (x / (c * (y * a))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, -2.4e-273], 1.0, If[LessEqual[a, 1.55e-253], N[(x / N[(x - N[(y * N[(-1.0 - N[(2.0 * N[(-0.6666666666666666 * N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.6e-206], 1.0, If[LessEqual[a, 1.25e-130], N[(N[(-0.75 / y), $MachinePrecision] * N[(N[(x * t), $MachinePrecision] / c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.45e+32], N[(x / N[(x + N[(-1.3333333333333333 * N[(c / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.35e+91], N[(x / N[(x + N[(y + N[(-2.0 * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.7e+178], 1.0, If[LessEqual[a, 1.12e+229], N[(0.5 * N[(x / N[(c * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.4 \cdot 10^{-273}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 1.55 \cdot 10^{-253}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - 2 \cdot \left(-0.6666666666666666 \cdot \frac{c}{t}\right)\right)}\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-206}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{-130}:\\
\;\;\;\;\frac{-0.75}{y} \cdot \frac{x \cdot t}{c}\\
\mathbf{elif}\;a \leq 1.45 \cdot 10^{+32}:\\
\;\;\;\;\frac{x}{x + -1.3333333333333333 \cdot \frac{c}{\frac{t}{y}}}\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{+91}:\\
\;\;\;\;\frac{x}{x + \left(y + -2 \cdot \left(a \cdot \left(y \cdot b\right)\right)\right)}\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{+178}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 1.12 \cdot 10^{+229}:\\
\;\;\;\;0.5 \cdot \frac{x}{c \cdot \left(y \cdot a\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if a < -2.39999999999999982e-273 or 1.54999999999999998e-253 < a < 2.6e-206 or 1.35e91 < a < 1.7000000000000001e178 or 1.12e229 < a Initial program 95.6%
Taylor expanded in b around inf 72.5%
associate-*r/72.5%
metadata-eval72.5%
+-commutative72.5%
Simplified72.5%
Taylor expanded in x around inf 59.1%
if -2.39999999999999982e-273 < a < 1.54999999999999998e-253Initial program 96.0%
Taylor expanded in c around inf 66.4%
cancel-sign-sub-inv66.4%
+-commutative66.4%
metadata-eval66.4%
associate-*r/66.4%
metadata-eval66.4%
associate-+r+66.4%
Simplified66.4%
Taylor expanded in c around 0 59.3%
Taylor expanded in t around 0 59.0%
if 2.6e-206 < a < 1.2499999999999999e-130Initial program 100.0%
Taylor expanded in c around inf 71.3%
cancel-sign-sub-inv71.3%
+-commutative71.3%
metadata-eval71.3%
associate-*r/71.3%
metadata-eval71.3%
associate-+r+71.3%
Simplified71.3%
Taylor expanded in c around 0 33.1%
Taylor expanded in t around 0 41.0%
associate-*r/41.0%
*-commutative41.0%
times-frac61.0%
Simplified61.0%
if 1.2499999999999999e-130 < a < 1.45000000000000001e32Initial program 95.3%
Taylor expanded in c around inf 69.3%
cancel-sign-sub-inv69.3%
+-commutative69.3%
metadata-eval69.3%
associate-*r/69.3%
metadata-eval69.3%
associate-+r+69.3%
Simplified69.3%
Taylor expanded in c around 0 43.5%
Taylor expanded in t around 0 48.4%
associate-/l*50.8%
Simplified50.8%
if 1.45000000000000001e32 < a < 1.35e91Initial program 83.0%
Taylor expanded in a around inf 73.4%
clear-num73.4%
inv-pow73.4%
+-commutative73.4%
fma-def73.4%
exp-prod73.4%
Applied egg-rr73.4%
unpow-173.4%
exp-prod73.4%
associate-*r*73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in c around 0 60.1%
Taylor expanded in a around 0 60.4%
if 1.7000000000000001e178 < a < 1.12e229Initial program 93.3%
Taylor expanded in c around inf 61.5%
cancel-sign-sub-inv61.5%
+-commutative61.5%
metadata-eval61.5%
associate-*r/61.5%
metadata-eval61.5%
associate-+r+61.5%
Simplified61.5%
Taylor expanded in c around 0 55.7%
Taylor expanded in a around inf 42.7%
associate-/r*36.3%
Simplified36.3%
Taylor expanded in x around 0 42.7%
*-commutative42.7%
associate-*l*61.7%
Simplified61.7%
Final simplification58.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y -1.1e+117)
1.0
(if (or (<= y -3e-85) (not (<= y 1.2e+92)))
(/
x
(-
x
(-
(*
(* 2.0 b)
(* y (- a (+ -0.8333333333333334 (/ 0.6666666666666666 t)))))
y)))
1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -1.1e+117) {
tmp = 1.0;
} else if ((y <= -3e-85) || !(y <= 1.2e+92)) {
tmp = x / (x - (((2.0 * b) * (y * (a - (-0.8333333333333334 + (0.6666666666666666 / t))))) - y));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= (-1.1d+117)) then
tmp = 1.0d0
else if ((y <= (-3d-85)) .or. (.not. (y <= 1.2d+92))) then
tmp = x / (x - (((2.0d0 * b) * (y * (a - ((-0.8333333333333334d0) + (0.6666666666666666d0 / t))))) - y))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -1.1e+117) {
tmp = 1.0;
} else if ((y <= -3e-85) || !(y <= 1.2e+92)) {
tmp = x / (x - (((2.0 * b) * (y * (a - (-0.8333333333333334 + (0.6666666666666666 / t))))) - y));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -1.1e+117: tmp = 1.0 elif (y <= -3e-85) or not (y <= 1.2e+92): tmp = x / (x - (((2.0 * b) * (y * (a - (-0.8333333333333334 + (0.6666666666666666 / t))))) - y)) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -1.1e+117) tmp = 1.0; elseif ((y <= -3e-85) || !(y <= 1.2e+92)) tmp = Float64(x / Float64(x - Float64(Float64(Float64(2.0 * b) * Float64(y * Float64(a - Float64(-0.8333333333333334 + Float64(0.6666666666666666 / t))))) - y))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= -1.1e+117) tmp = 1.0; elseif ((y <= -3e-85) || ~((y <= 1.2e+92))) tmp = x / (x - (((2.0 * b) * (y * (a - (-0.8333333333333334 + (0.6666666666666666 / t))))) - y)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -1.1e+117], 1.0, If[Or[LessEqual[y, -3e-85], N[Not[LessEqual[y, 1.2e+92]], $MachinePrecision]], N[(x / N[(x - N[(N[(N[(2.0 * b), $MachinePrecision] * N[(y * N[(a - N[(-0.8333333333333334 + N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.1 \cdot 10^{+117}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq -3 \cdot 10^{-85} \lor \neg \left(y \leq 1.2 \cdot 10^{+92}\right):\\
\;\;\;\;\frac{x}{x - \left(\left(2 \cdot b\right) \cdot \left(y \cdot \left(a - \left(-0.8333333333333334 + \frac{0.6666666666666666}{t}\right)\right)\right) - y\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -1.10000000000000007e117 or -3.00000000000000022e-85 < y < 1.20000000000000002e92Initial program 94.4%
Taylor expanded in b around inf 72.4%
associate-*r/72.4%
metadata-eval72.4%
+-commutative72.4%
Simplified72.4%
Taylor expanded in x around inf 52.2%
if -1.10000000000000007e117 < y < -3.00000000000000022e-85 or 1.20000000000000002e92 < y Initial program 93.7%
Taylor expanded in b around inf 72.1%
associate-*r/72.1%
metadata-eval72.1%
+-commutative72.1%
Simplified72.1%
Taylor expanded in b around 0 56.8%
associate-*r*56.8%
*-commutative56.8%
*-commutative56.8%
associate--r+56.8%
sub-neg56.8%
associate-*r/56.8%
metadata-eval56.8%
metadata-eval56.8%
Simplified56.8%
Final simplification53.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a -1.5e-275)
1.0
(if (<= a 3.8e-98)
(/ x (+ x (* y (+ (* c 1.6666666666666667) 1.0))))
(if (<= a 1.12e-69)
1.0
(if (<= a 1.2e+91)
(/ x (+ x (* -1.3333333333333333 (/ c (/ t y)))))
(if (<= a 1.4e+179)
1.0
(if (<= a 1.46e+229) (* 0.5 (/ x (* c (* y a)))) 1.0)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -1.5e-275) {
tmp = 1.0;
} else if (a <= 3.8e-98) {
tmp = x / (x + (y * ((c * 1.6666666666666667) + 1.0)));
} else if (a <= 1.12e-69) {
tmp = 1.0;
} else if (a <= 1.2e+91) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else if (a <= 1.4e+179) {
tmp = 1.0;
} else if (a <= 1.46e+229) {
tmp = 0.5 * (x / (c * (y * a)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (a <= (-1.5d-275)) then
tmp = 1.0d0
else if (a <= 3.8d-98) then
tmp = x / (x + (y * ((c * 1.6666666666666667d0) + 1.0d0)))
else if (a <= 1.12d-69) then
tmp = 1.0d0
else if (a <= 1.2d+91) then
tmp = x / (x + ((-1.3333333333333333d0) * (c / (t / y))))
else if (a <= 1.4d+179) then
tmp = 1.0d0
else if (a <= 1.46d+229) then
tmp = 0.5d0 * (x / (c * (y * a)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -1.5e-275) {
tmp = 1.0;
} else if (a <= 3.8e-98) {
tmp = x / (x + (y * ((c * 1.6666666666666667) + 1.0)));
} else if (a <= 1.12e-69) {
tmp = 1.0;
} else if (a <= 1.2e+91) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else if (a <= 1.4e+179) {
tmp = 1.0;
} else if (a <= 1.46e+229) {
tmp = 0.5 * (x / (c * (y * a)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= -1.5e-275: tmp = 1.0 elif a <= 3.8e-98: tmp = x / (x + (y * ((c * 1.6666666666666667) + 1.0))) elif a <= 1.12e-69: tmp = 1.0 elif a <= 1.2e+91: tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))) elif a <= 1.4e+179: tmp = 1.0 elif a <= 1.46e+229: tmp = 0.5 * (x / (c * (y * a))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= -1.5e-275) tmp = 1.0; elseif (a <= 3.8e-98) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(c * 1.6666666666666667) + 1.0)))); elseif (a <= 1.12e-69) tmp = 1.0; elseif (a <= 1.2e+91) tmp = Float64(x / Float64(x + Float64(-1.3333333333333333 * Float64(c / Float64(t / y))))); elseif (a <= 1.4e+179) tmp = 1.0; elseif (a <= 1.46e+229) tmp = Float64(0.5 * Float64(x / Float64(c * Float64(y * a)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= -1.5e-275) tmp = 1.0; elseif (a <= 3.8e-98) tmp = x / (x + (y * ((c * 1.6666666666666667) + 1.0))); elseif (a <= 1.12e-69) tmp = 1.0; elseif (a <= 1.2e+91) tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))); elseif (a <= 1.4e+179) tmp = 1.0; elseif (a <= 1.46e+229) tmp = 0.5 * (x / (c * (y * a))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, -1.5e-275], 1.0, If[LessEqual[a, 3.8e-98], N[(x / N[(x + N[(y * N[(N[(c * 1.6666666666666667), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.12e-69], 1.0, If[LessEqual[a, 1.2e+91], N[(x / N[(x + N[(-1.3333333333333333 * N[(c / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e+179], 1.0, If[LessEqual[a, 1.46e+229], N[(0.5 * N[(x / N[(c * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.5 \cdot 10^{-275}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{-98}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(c \cdot 1.6666666666666667 + 1\right)}\\
\mathbf{elif}\;a \leq 1.12 \cdot 10^{-69}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{+91}:\\
\;\;\;\;\frac{x}{x + -1.3333333333333333 \cdot \frac{c}{\frac{t}{y}}}\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{+179}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 1.46 \cdot 10^{+229}:\\
\;\;\;\;0.5 \cdot \frac{x}{c \cdot \left(y \cdot a\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if a < -1.5e-275 or 3.8000000000000003e-98 < a < 1.12e-69 or 1.19999999999999991e91 < a < 1.4e179 or 1.4600000000000001e229 < a Initial program 95.3%
Taylor expanded in b around inf 73.8%
associate-*r/73.8%
metadata-eval73.8%
+-commutative73.8%
Simplified73.8%
Taylor expanded in x around inf 60.4%
if -1.5e-275 < a < 3.8000000000000003e-98Initial program 98.2%
Taylor expanded in c around inf 67.3%
cancel-sign-sub-inv67.3%
+-commutative67.3%
metadata-eval67.3%
associate-*r/67.3%
metadata-eval67.3%
associate-+r+67.3%
Simplified67.3%
Taylor expanded in c around 0 50.3%
Taylor expanded in t around inf 48.5%
Taylor expanded in a around 0 48.5%
+-commutative48.5%
Simplified48.5%
if 1.12e-69 < a < 1.19999999999999991e91Initial program 88.1%
Taylor expanded in c around inf 60.1%
cancel-sign-sub-inv60.1%
+-commutative60.1%
metadata-eval60.1%
associate-*r/60.1%
metadata-eval60.1%
associate-+r+60.1%
Simplified60.1%
Taylor expanded in c around 0 47.1%
Taylor expanded in t around 0 46.9%
associate-/l*46.9%
Simplified46.9%
if 1.4e179 < a < 1.4600000000000001e229Initial program 93.3%
Taylor expanded in c around inf 61.5%
cancel-sign-sub-inv61.5%
+-commutative61.5%
metadata-eval61.5%
associate-*r/61.5%
metadata-eval61.5%
associate-+r+61.5%
Simplified61.5%
Taylor expanded in c around 0 55.7%
Taylor expanded in a around inf 42.7%
associate-/r*36.3%
Simplified36.3%
Taylor expanded in x around 0 42.7%
*-commutative42.7%
associate-*l*61.7%
Simplified61.7%
Final simplification54.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (+ y (* -2.0 (* a (* y b))))))))
(if (<= a -2.7e-273)
1.0
(if (<= a 9.2e-181)
t_1
(if (<= a 1.12e-18)
(/ x (+ x (* -1.3333333333333333 (/ c (/ t y)))))
(if (<= a 1.2e+91)
t_1
(if (<= a 1.3e+179)
1.0
(if (<= a 1e+229) (* 0.5 (/ x (* c (* y a)))) 1.0))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y + (-2.0 * (a * (y * b)))));
double tmp;
if (a <= -2.7e-273) {
tmp = 1.0;
} else if (a <= 9.2e-181) {
tmp = t_1;
} else if (a <= 1.12e-18) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else if (a <= 1.2e+91) {
tmp = t_1;
} else if (a <= 1.3e+179) {
tmp = 1.0;
} else if (a <= 1e+229) {
tmp = 0.5 * (x / (c * (y * a)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y + ((-2.0d0) * (a * (y * b)))))
if (a <= (-2.7d-273)) then
tmp = 1.0d0
else if (a <= 9.2d-181) then
tmp = t_1
else if (a <= 1.12d-18) then
tmp = x / (x + ((-1.3333333333333333d0) * (c / (t / y))))
else if (a <= 1.2d+91) then
tmp = t_1
else if (a <= 1.3d+179) then
tmp = 1.0d0
else if (a <= 1d+229) then
tmp = 0.5d0 * (x / (c * (y * a)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y + (-2.0 * (a * (y * b)))));
double tmp;
if (a <= -2.7e-273) {
tmp = 1.0;
} else if (a <= 9.2e-181) {
tmp = t_1;
} else if (a <= 1.12e-18) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else if (a <= 1.2e+91) {
tmp = t_1;
} else if (a <= 1.3e+179) {
tmp = 1.0;
} else if (a <= 1e+229) {
tmp = 0.5 * (x / (c * (y * a)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y + (-2.0 * (a * (y * b))))) tmp = 0 if a <= -2.7e-273: tmp = 1.0 elif a <= 9.2e-181: tmp = t_1 elif a <= 1.12e-18: tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))) elif a <= 1.2e+91: tmp = t_1 elif a <= 1.3e+179: tmp = 1.0 elif a <= 1e+229: tmp = 0.5 * (x / (c * (y * a))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y + Float64(-2.0 * Float64(a * Float64(y * b)))))) tmp = 0.0 if (a <= -2.7e-273) tmp = 1.0; elseif (a <= 9.2e-181) tmp = t_1; elseif (a <= 1.12e-18) tmp = Float64(x / Float64(x + Float64(-1.3333333333333333 * Float64(c / Float64(t / y))))); elseif (a <= 1.2e+91) tmp = t_1; elseif (a <= 1.3e+179) tmp = 1.0; elseif (a <= 1e+229) tmp = Float64(0.5 * Float64(x / Float64(c * Float64(y * a)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y + (-2.0 * (a * (y * b))))); tmp = 0.0; if (a <= -2.7e-273) tmp = 1.0; elseif (a <= 9.2e-181) tmp = t_1; elseif (a <= 1.12e-18) tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))); elseif (a <= 1.2e+91) tmp = t_1; elseif (a <= 1.3e+179) tmp = 1.0; elseif (a <= 1e+229) tmp = 0.5 * (x / (c * (y * a))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y + N[(-2.0 * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.7e-273], 1.0, If[LessEqual[a, 9.2e-181], t$95$1, If[LessEqual[a, 1.12e-18], N[(x / N[(x + N[(-1.3333333333333333 * N[(c / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.2e+91], t$95$1, If[LessEqual[a, 1.3e+179], 1.0, If[LessEqual[a, 1e+229], N[(0.5 * N[(x / N[(c * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + \left(y + -2 \cdot \left(a \cdot \left(y \cdot b\right)\right)\right)}\\
\mathbf{if}\;a \leq -2.7 \cdot 10^{-273}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 9.2 \cdot 10^{-181}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.12 \cdot 10^{-18}:\\
\;\;\;\;\frac{x}{x + -1.3333333333333333 \cdot \frac{c}{\frac{t}{y}}}\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{+91}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.3 \cdot 10^{+179}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 10^{+229}:\\
\;\;\;\;0.5 \cdot \frac{x}{c \cdot \left(y \cdot a\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if a < -2.69999999999999984e-273 or 1.19999999999999991e91 < a < 1.3000000000000001e179 or 9.9999999999999999e228 < a Initial program 95.2%
Taylor expanded in b around inf 73.2%
associate-*r/73.2%
metadata-eval73.2%
+-commutative73.2%
Simplified73.2%
Taylor expanded in x around inf 59.4%
if -2.69999999999999984e-273 < a < 9.19999999999999963e-181 or 1.12000000000000001e-18 < a < 1.19999999999999991e91Initial program 92.2%
Taylor expanded in a around inf 61.1%
clear-num61.1%
inv-pow61.1%
+-commutative61.1%
fma-def61.1%
exp-prod61.1%
Applied egg-rr61.1%
unpow-161.1%
exp-prod61.1%
associate-*r*61.1%
*-commutative61.1%
*-commutative61.1%
Simplified61.1%
Taylor expanded in c around 0 54.6%
Taylor expanded in a around 0 50.5%
if 9.19999999999999963e-181 < a < 1.12000000000000001e-18Initial program 96.5%
Taylor expanded in c around inf 79.2%
cancel-sign-sub-inv79.2%
+-commutative79.2%
metadata-eval79.2%
associate-*r/79.2%
metadata-eval79.2%
associate-+r+79.2%
Simplified79.2%
Taylor expanded in c around 0 48.4%
Taylor expanded in t around 0 48.5%
associate-/l*48.6%
Simplified48.6%
if 1.3000000000000001e179 < a < 9.9999999999999999e228Initial program 93.3%
Taylor expanded in c around inf 61.5%
cancel-sign-sub-inv61.5%
+-commutative61.5%
metadata-eval61.5%
associate-*r/61.5%
metadata-eval61.5%
associate-+r+61.5%
Simplified61.5%
Taylor expanded in c around 0 55.7%
Taylor expanded in a around inf 42.7%
associate-/r*36.3%
Simplified36.3%
Taylor expanded in x around 0 42.7%
*-commutative42.7%
associate-*l*61.7%
Simplified61.7%
Final simplification55.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a -3e-275)
1.0
(if (<= a 1.16e+91)
(/ x (+ x (* -1.3333333333333333 (/ c (/ t y)))))
(if (<= a 8.2e+178)
1.0
(if (<= a 1.45e+229) (* 0.5 (/ x (* c (* y a)))) 1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -3e-275) {
tmp = 1.0;
} else if (a <= 1.16e+91) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else if (a <= 8.2e+178) {
tmp = 1.0;
} else if (a <= 1.45e+229) {
tmp = 0.5 * (x / (c * (y * a)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (a <= (-3d-275)) then
tmp = 1.0d0
else if (a <= 1.16d+91) then
tmp = x / (x + ((-1.3333333333333333d0) * (c / (t / y))))
else if (a <= 8.2d+178) then
tmp = 1.0d0
else if (a <= 1.45d+229) then
tmp = 0.5d0 * (x / (c * (y * a)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -3e-275) {
tmp = 1.0;
} else if (a <= 1.16e+91) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else if (a <= 8.2e+178) {
tmp = 1.0;
} else if (a <= 1.45e+229) {
tmp = 0.5 * (x / (c * (y * a)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= -3e-275: tmp = 1.0 elif a <= 1.16e+91: tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))) elif a <= 8.2e+178: tmp = 1.0 elif a <= 1.45e+229: tmp = 0.5 * (x / (c * (y * a))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= -3e-275) tmp = 1.0; elseif (a <= 1.16e+91) tmp = Float64(x / Float64(x + Float64(-1.3333333333333333 * Float64(c / Float64(t / y))))); elseif (a <= 8.2e+178) tmp = 1.0; elseif (a <= 1.45e+229) tmp = Float64(0.5 * Float64(x / Float64(c * Float64(y * a)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= -3e-275) tmp = 1.0; elseif (a <= 1.16e+91) tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))); elseif (a <= 8.2e+178) tmp = 1.0; elseif (a <= 1.45e+229) tmp = 0.5 * (x / (c * (y * a))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, -3e-275], 1.0, If[LessEqual[a, 1.16e+91], N[(x / N[(x + N[(-1.3333333333333333 * N[(c / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.2e+178], 1.0, If[LessEqual[a, 1.45e+229], N[(0.5 * N[(x / N[(c * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3 \cdot 10^{-275}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 1.16 \cdot 10^{+91}:\\
\;\;\;\;\frac{x}{x + -1.3333333333333333 \cdot \frac{c}{\frac{t}{y}}}\\
\mathbf{elif}\;a \leq 8.2 \cdot 10^{+178}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 1.45 \cdot 10^{+229}:\\
\;\;\;\;0.5 \cdot \frac{x}{c \cdot \left(y \cdot a\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if a < -3e-275 or 1.1600000000000001e91 < a < 8.19999999999999993e178 or 1.44999999999999991e229 < a Initial program 95.2%
Taylor expanded in b around inf 73.2%
associate-*r/73.2%
metadata-eval73.2%
+-commutative73.2%
Simplified73.2%
Taylor expanded in x around inf 59.4%
if -3e-275 < a < 1.1600000000000001e91Initial program 93.2%
Taylor expanded in c around inf 64.6%
cancel-sign-sub-inv64.6%
+-commutative64.6%
metadata-eval64.6%
associate-*r/64.6%
metadata-eval64.6%
associate-+r+64.6%
Simplified64.6%
Taylor expanded in c around 0 48.3%
Taylor expanded in t around 0 46.1%
associate-/l*45.3%
Simplified45.3%
if 8.19999999999999993e178 < a < 1.44999999999999991e229Initial program 93.3%
Taylor expanded in c around inf 61.5%
cancel-sign-sub-inv61.5%
+-commutative61.5%
metadata-eval61.5%
associate-*r/61.5%
metadata-eval61.5%
associate-+r+61.5%
Simplified61.5%
Taylor expanded in c around 0 55.7%
Taylor expanded in a around inf 42.7%
associate-/r*36.3%
Simplified36.3%
Taylor expanded in x around 0 42.7%
*-commutative42.7%
associate-*l*61.7%
Simplified61.7%
Final simplification53.1%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -1.15e+18) 1.0 (if (<= b -1.2e-29) (* -0.75 (/ (* x t) (* y 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+18) {
tmp = 1.0;
} else if (b <= -1.2e-29) {
tmp = -0.75 * ((x * t) / (y * 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+18)) then
tmp = 1.0d0
else if (b <= (-1.2d-29)) then
tmp = (-0.75d0) * ((x * t) / (y * 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+18) {
tmp = 1.0;
} else if (b <= -1.2e-29) {
tmp = -0.75 * ((x * t) / (y * c));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -1.15e+18: tmp = 1.0 elif b <= -1.2e-29: tmp = -0.75 * ((x * t) / (y * c)) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -1.15e+18) tmp = 1.0; elseif (b <= -1.2e-29) tmp = Float64(-0.75 * Float64(Float64(x * t) / Float64(y * 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+18) tmp = 1.0; elseif (b <= -1.2e-29) tmp = -0.75 * ((x * t) / (y * c)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -1.15e+18], 1.0, If[LessEqual[b, -1.2e-29], N[(-0.75 * N[(N[(x * t), $MachinePrecision] / N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.15 \cdot 10^{+18}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -1.2 \cdot 10^{-29}:\\
\;\;\;\;-0.75 \cdot \frac{x \cdot t}{y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.15e18 or -1.19999999999999996e-29 < b Initial program 94.0%
Taylor expanded in b around inf 72.1%
associate-*r/72.1%
metadata-eval72.1%
+-commutative72.1%
Simplified72.1%
Taylor expanded in x around inf 47.7%
if -1.15e18 < b < -1.19999999999999996e-29Initial program 100.0%
Taylor expanded in c around inf 89.8%
cancel-sign-sub-inv89.8%
+-commutative89.8%
metadata-eval89.8%
associate-*r/89.8%
metadata-eval89.8%
associate-+r+89.8%
Simplified89.8%
Taylor expanded in c around 0 89.8%
Taylor expanded in t around 0 67.5%
Final simplification48.4%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -7.5e+27) 1.0 (if (<= b -6.5e-34) (* 0.5 (/ x (* a (* y c)))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -7.5e+27) {
tmp = 1.0;
} else if (b <= -6.5e-34) {
tmp = 0.5 * (x / (a * (y * 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 <= (-7.5d+27)) then
tmp = 1.0d0
else if (b <= (-6.5d-34)) then
tmp = 0.5d0 * (x / (a * (y * 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 <= -7.5e+27) {
tmp = 1.0;
} else if (b <= -6.5e-34) {
tmp = 0.5 * (x / (a * (y * c)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -7.5e+27: tmp = 1.0 elif b <= -6.5e-34: tmp = 0.5 * (x / (a * (y * c))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -7.5e+27) tmp = 1.0; elseif (b <= -6.5e-34) tmp = Float64(0.5 * Float64(x / Float64(a * Float64(y * 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 <= -7.5e+27) tmp = 1.0; elseif (b <= -6.5e-34) tmp = 0.5 * (x / (a * (y * c))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -7.5e+27], 1.0, If[LessEqual[b, -6.5e-34], N[(0.5 * N[(x / N[(a * N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.5 \cdot 10^{+27}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -6.5 \cdot 10^{-34}:\\
\;\;\;\;0.5 \cdot \frac{x}{a \cdot \left(y \cdot c\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -7.5000000000000002e27 or -6.49999999999999985e-34 < b Initial program 94.2%
Taylor expanded in b around inf 72.6%
associate-*r/72.6%
metadata-eval72.6%
+-commutative72.6%
Simplified72.6%
Taylor expanded in x around inf 48.4%
if -7.5000000000000002e27 < b < -6.49999999999999985e-34Initial program 93.5%
Taylor expanded in c around inf 81.0%
cancel-sign-sub-inv81.0%
+-commutative81.0%
metadata-eval81.0%
associate-*r/81.0%
metadata-eval81.0%
associate-+r+81.0%
Simplified81.0%
Taylor expanded in c around 0 68.1%
Taylor expanded in a around inf 51.1%
Final simplification48.5%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -7.6e+27) 1.0 (if (<= b -6.2e-34) (* 0.5 (/ (/ x (* y c)) a)) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -7.6e+27) {
tmp = 1.0;
} else if (b <= -6.2e-34) {
tmp = 0.5 * ((x / (y * c)) / a);
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-7.6d+27)) then
tmp = 1.0d0
else if (b <= (-6.2d-34)) then
tmp = 0.5d0 * ((x / (y * c)) / a)
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -7.6e+27) {
tmp = 1.0;
} else if (b <= -6.2e-34) {
tmp = 0.5 * ((x / (y * c)) / a);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -7.6e+27: tmp = 1.0 elif b <= -6.2e-34: tmp = 0.5 * ((x / (y * c)) / a) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -7.6e+27) tmp = 1.0; elseif (b <= -6.2e-34) tmp = Float64(0.5 * Float64(Float64(x / Float64(y * c)) / a)); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -7.6e+27) tmp = 1.0; elseif (b <= -6.2e-34) tmp = 0.5 * ((x / (y * c)) / a); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -7.6e+27], 1.0, If[LessEqual[b, -6.2e-34], N[(0.5 * N[(N[(x / N[(y * c), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.6 \cdot 10^{+27}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq -6.2 \cdot 10^{-34}:\\
\;\;\;\;0.5 \cdot \frac{\frac{x}{y \cdot c}}{a}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -7.60000000000000043e27 or -6.1999999999999996e-34 < b Initial program 94.2%
Taylor expanded in b around inf 72.6%
associate-*r/72.6%
metadata-eval72.6%
+-commutative72.6%
Simplified72.6%
Taylor expanded in x around inf 48.4%
if -7.60000000000000043e27 < b < -6.1999999999999996e-34Initial program 93.5%
Taylor expanded in c around inf 81.0%
cancel-sign-sub-inv81.0%
+-commutative81.0%
metadata-eval81.0%
associate-*r/81.0%
metadata-eval81.0%
associate-+r+81.0%
Simplified81.0%
Taylor expanded in c around 0 68.1%
Taylor expanded in a around inf 51.1%
associate-/r*44.5%
Simplified44.5%
Taylor expanded in x around 0 51.1%
*-commutative51.1%
associate-/r*61.1%
Simplified61.1%
Final simplification49.1%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 94.2%
Taylor expanded in b around inf 72.3%
associate-*r/72.3%
metadata-eval72.3%
+-commutative72.3%
Simplified72.3%
Taylor expanded in x around inf 46.1%
Final simplification46.1%
(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 2023320
(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)))))))))))