
(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 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
(+ (+ a 0.8333333333333334) (/ -0.6666666666666666 t))
(- c b)
(* (/ z t) (sqrt (+ a t)))))
x)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / fma(y, pow(exp(2.0), fma(((a + 0.8333333333333334) + (-0.6666666666666666 / t)), (c - b), ((z / t) * sqrt((a + t))))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(Float64(Float64(a + 0.8333333333333334) + Float64(-0.6666666666666666 / t)), Float64(c - b), Float64(Float64(z / t) * sqrt(Float64(a + t))))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision] + N[(N[(z / t), $MachinePrecision] * N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(\left(a + 0.8333333333333334\right) + \frac{-0.6666666666666666}{t}, c - b, \frac{z}{t} \cdot \sqrt{a + t}\right)\right)}, x\right)}
\end{array}
Initial program 93.4%
Simplified98.9%
Final simplification98.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (sqrt (+ a t))))
(if (<=
(+
(/ (* z t_1) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))
INFINITY)
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(+
(/ z (/ t t_1))
(* (+ a (- 0.8333333333333334 (/ (/ 2.0 t) 3.0))) (- c b)))))))
(/ x (+ x (* y (exp (* b -1.6666666666666667))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = sqrt((a + t));
double tmp;
if ((((z * t_1) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))) <= ((double) INFINITY)) {
tmp = x / (x + (y * pow(exp(2.0), ((z / (t / t_1)) + ((a + (0.8333333333333334 - ((2.0 / t) / 3.0))) * (c - b))))));
} else {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
}
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));
double tmp;
if ((((z * t_1) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))) <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), ((z / (t / t_1)) + ((a + (0.8333333333333334 - ((2.0 / t) / 3.0))) * (c - b))))));
} else {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = math.sqrt((a + t)) tmp = 0 if (((z * t_1) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))) <= math.inf: tmp = x / (x + (y * math.pow(math.exp(2.0), ((z / (t / t_1)) + ((a + (0.8333333333333334 - ((2.0 / t) / 3.0))) * (c - b)))))) else: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = sqrt(Float64(a + t)) tmp = 0.0 if (Float64(Float64(Float64(z * t_1) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) <= Inf) tmp = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(Float64(z / Float64(t / t_1)) + Float64(Float64(a + Float64(0.8333333333333334 - Float64(Float64(2.0 / t) / 3.0))) * Float64(c - b))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = sqrt((a + t)); tmp = 0.0; if ((((z * t_1) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))) <= Inf) tmp = x / (x + (y * (exp(2.0) ^ ((z / (t / t_1)) + ((a + (0.8333333333333334 - ((2.0 / t) / 3.0))) * (c - b)))))); else tmp = x / (x + (y * exp((b * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(N[(N[(z * t$95$1), $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], Infinity], N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(z / N[(t / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(a + N[(0.8333333333333334 - N[(N[(2.0 / t), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt{a + t}\\
\mathbf{if}\;\frac{z \cdot t_1}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right) \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(\frac{z}{\frac{t}{t_1}} + \left(a + \left(0.8333333333333334 - \frac{\frac{2}{t}}{3}\right)\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\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%
associate--l+98.8%
metadata-eval98.8%
associate-/r*98.8%
Simplified98.8%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) Initial program 0.0%
Taylor expanded in t around inf 62.7%
mul-1-neg62.7%
+-commutative62.7%
distribute-rgt-neg-in62.7%
neg-sub062.7%
associate--r-62.7%
neg-sub062.7%
+-commutative62.7%
sub-neg62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in a around 0 55.3%
Taylor expanded in c around 0 63.0%
*-commutative63.0%
Simplified63.0%
Final simplification96.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ a t))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/ x (+ x (* y (exp (* b -1.6666666666666667))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * Math.sqrt((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(a + t))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((a + t))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp((b * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{a + t}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 98.4%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) Initial program 0.0%
Taylor expanded in t around inf 62.7%
mul-1-neg62.7%
+-commutative62.7%
distribute-rgt-neg-in62.7%
neg-sub062.7%
associate--r-62.7%
neg-sub062.7%
+-commutative62.7%
sub-neg62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in a around 0 55.3%
Taylor expanded in c around 0 63.0%
*-commutative63.0%
Simplified63.0%
Final simplification96.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))))
(if (<= t 4.4e-193)
t_1
(if (<= t 9.8e-107)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(if (<= t 1.35e-74)
t_1
(if (<= t 1.2e-8)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(/
x
(+
x
(* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
double tmp;
if (t <= 4.4e-193) {
tmp = t_1;
} else if (t <= 9.8e-107) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if (t <= 1.35e-74) {
tmp = t_1;
} else if (t <= 1.2e-8) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
if (t <= 4.4d-193) then
tmp = t_1
else if (t <= 9.8d-107) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else if (t <= 1.35d-74) then
tmp = t_1
else if (t <= 1.2d-8) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
double tmp;
if (t <= 4.4e-193) {
tmp = t_1;
} else if (t <= 9.8e-107) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else if (t <= 1.35e-74) {
tmp = t_1;
} else if (t <= 1.2e-8) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) tmp = 0 if t <= 4.4e-193: tmp = t_1 elif t <= 9.8e-107: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) elif t <= 1.35e-74: tmp = t_1 elif t <= 1.2e-8: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) else: tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))) tmp = 0.0 if (t <= 4.4e-193) tmp = t_1; elseif (t <= 9.8e-107) 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.35e-74) tmp = t_1; elseif (t <= 1.2e-8) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); tmp = 0.0; if (t <= 4.4e-193) tmp = t_1; elseif (t <= 9.8e-107) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); elseif (t <= 1.35e-74) tmp = t_1; elseif (t <= 1.2e-8) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); else tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 4.4e-193], t$95$1, If[LessEqual[t, 9.8e-107], 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.35e-74], t$95$1, If[LessEqual[t, 1.2e-8], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{if}\;t \leq 4.4 \cdot 10^{-193}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 9.8 \cdot 10^{-107}:\\
\;\;\;\;\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.35 \cdot 10^{-74}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-8}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 4.39999999999999953e-193 or 9.79999999999999959e-107 < t < 1.35000000000000009e-74Initial program 91.8%
Taylor expanded in t around 0 92.1%
if 4.39999999999999953e-193 < t < 9.79999999999999959e-107Initial program 94.1%
Taylor expanded in b around inf 77.1%
associate-*r/77.1%
metadata-eval77.1%
+-commutative77.1%
Simplified77.1%
if 1.35000000000000009e-74 < t < 1.19999999999999999e-8Initial program 92.0%
Taylor expanded in a around inf 83.6%
if 1.19999999999999999e-8 < t Initial program 94.9%
Taylor expanded in t around inf 89.7%
mul-1-neg89.7%
+-commutative89.7%
distribute-rgt-neg-in89.7%
neg-sub089.7%
associate--r-89.7%
neg-sub089.7%
+-commutative89.7%
sub-neg89.7%
*-commutative89.7%
Simplified89.7%
Final simplification89.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 1e-194)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 2.2e+133)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (+ (/ -0.6666666666666666 t) 0.8333333333333334) (- c b))))))))
(/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1e-194) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 2.2e+133) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + (((-0.6666666666666666 / t) + 0.8333333333333334) * (c - b)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
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-194) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 2.2d+133) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((((-0.6666666666666666d0) / t) + 0.8333333333333334d0) * (c - b)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
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-194) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 2.2e+133) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + (((-0.6666666666666666 / t) + 0.8333333333333334) * (c - b)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1e-194: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 2.2e+133: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + (((-0.6666666666666666 / t) + 0.8333333333333334) * (c - b))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1e-194) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); elseif (t <= 2.2e+133) 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(c - b)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 1e-194) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 2.2e+133) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + (((-0.6666666666666666 / t) + 0.8333333333333334) * (c - b))))))); else tmp = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 1e-194], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.2e+133], 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[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 10^{-194}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{+133}:\\
\;\;\;\;\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(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 1.00000000000000002e-194Initial program 90.6%
Taylor expanded in t around 0 92.0%
if 1.00000000000000002e-194 < t < 2.2e133Initial program 96.8%
Taylor expanded in a around 0 84.4%
*-commutative84.4%
*-commutative84.4%
cancel-sign-sub-inv84.4%
metadata-eval84.4%
associate-*r/84.4%
metadata-eval84.4%
Simplified84.4%
if 2.2e133 < t Initial program 92.5%
Taylor expanded in t around inf 91.3%
mul-1-neg91.3%
+-commutative91.3%
distribute-rgt-neg-in91.3%
neg-sub091.3%
associate--r-91.3%
neg-sub091.3%
+-commutative91.3%
sub-neg91.3%
*-commutative91.3%
Simplified91.3%
Final simplification89.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b)))))))))
(if (<= t -5.5e-251)
t_1
(if (<= t 1.02e-226)
(/ x (+ x (* y (exp (* 2.0 (* (/ z t) (sqrt a)))))))
(if (<= t 1.55e-34)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
double tmp;
if (t <= -5.5e-251) {
tmp = t_1;
} else if (t <= 1.02e-226) {
tmp = x / (x + (y * exp((2.0 * ((z / t) * sqrt(a))))));
} else if (t <= 1.55e-34) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
if (t <= (-5.5d-251)) then
tmp = t_1
else if (t <= 1.02d-226) then
tmp = x / (x + (y * exp((2.0d0 * ((z / t) * sqrt(a))))))
else if (t <= 1.55d-34) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
double tmp;
if (t <= -5.5e-251) {
tmp = t_1;
} else if (t <= 1.02e-226) {
tmp = x / (x + (y * Math.exp((2.0 * ((z / t) * Math.sqrt(a))))));
} else if (t <= 1.55e-34) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) tmp = 0 if t <= -5.5e-251: tmp = t_1 elif t <= 1.02e-226: tmp = x / (x + (y * math.exp((2.0 * ((z / t) * math.sqrt(a)))))) elif t <= 1.55e-34: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) 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(a + 0.8333333333333334) * Float64(c - b))))))) tmp = 0.0 if (t <= -5.5e-251) tmp = t_1; elseif (t <= 1.02e-226) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z / t) * sqrt(a))))))); elseif (t <= 1.55e-34) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); tmp = 0.0; if (t <= -5.5e-251) tmp = t_1; elseif (t <= 1.02e-226) tmp = x / (x + (y * exp((2.0 * ((z / t) * sqrt(a)))))); elseif (t <= 1.55e-34) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); 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[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.5e-251], t$95$1, If[LessEqual[t, 1.02e-226], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z / t), $MachinePrecision] * N[Sqrt[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.55e-34], 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], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq -5.5 \cdot 10^{-251}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{-226}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z}{t} \cdot \sqrt{a}\right)}}\\
\mathbf{elif}\;t \leq 1.55 \cdot 10^{-34}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -5.5e-251 or 1.5499999999999999e-34 < t Initial program 95.5%
Taylor expanded in t around inf 89.2%
mul-1-neg89.2%
+-commutative89.2%
distribute-rgt-neg-in89.2%
neg-sub089.2%
associate--r-89.2%
neg-sub089.2%
+-commutative89.2%
sub-neg89.2%
*-commutative89.2%
Simplified89.2%
if -5.5e-251 < t < 1.01999999999999998e-226Initial program 80.0%
Taylor expanded in t around 0 96.8%
Taylor expanded in z around inf 87.1%
if 1.01999999999999998e-226 < t < 1.5499999999999999e-34Initial program 94.2%
Taylor expanded in b around inf 77.7%
associate-*r/77.7%
metadata-eval77.7%
+-commutative77.7%
Simplified77.7%
Final simplification86.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= t -9e-297)
t_1
(if (<= t 7.2e-193)
(/ x (+ x (* y (exp (* 2.0 (* (/ -0.6666666666666666 t) c))))))
(if (<= t 3.55e-140)
1.0
(if (<= t 6.6e-91)
(/ x (- x (* y (+ -1.0 (* 1.3333333333333333 (/ (- c b) t))))))
(if (or (<= t 9.2e+20) (not (<= t 1e+204)))
t_1
(/ x (+ x (* y (exp (* 1.6666666666666667 (- c b)))))))))))))
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 <= -9e-297) {
tmp = t_1;
} else if (t <= 7.2e-193) {
tmp = x / (x + (y * exp((2.0 * ((-0.6666666666666666 / t) * c)))));
} else if (t <= 3.55e-140) {
tmp = 1.0;
} else if (t <= 6.6e-91) {
tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
} else if ((t <= 9.2e+20) || !(t <= 1e+204)) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((1.6666666666666667 * (c - b)))));
}
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 <= (-9d-297)) then
tmp = t_1
else if (t <= 7.2d-193) then
tmp = x / (x + (y * exp((2.0d0 * (((-0.6666666666666666d0) / t) * c)))))
else if (t <= 3.55d-140) then
tmp = 1.0d0
else if (t <= 6.6d-91) then
tmp = x / (x - (y * ((-1.0d0) + (1.3333333333333333d0 * ((c - b) / t)))))
else if ((t <= 9.2d+20) .or. (.not. (t <= 1d+204))) then
tmp = t_1
else
tmp = x / (x + (y * exp((1.6666666666666667d0 * (c - b)))))
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 <= -9e-297) {
tmp = t_1;
} else if (t <= 7.2e-193) {
tmp = x / (x + (y * Math.exp((2.0 * ((-0.6666666666666666 / t) * c)))));
} else if (t <= 3.55e-140) {
tmp = 1.0;
} else if (t <= 6.6e-91) {
tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
} else if ((t <= 9.2e+20) || !(t <= 1e+204)) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((1.6666666666666667 * (c - b)))));
}
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 <= -9e-297: tmp = t_1 elif t <= 7.2e-193: tmp = x / (x + (y * math.exp((2.0 * ((-0.6666666666666666 / t) * c))))) elif t <= 3.55e-140: tmp = 1.0 elif t <= 6.6e-91: tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t))))) elif (t <= 9.2e+20) or not (t <= 1e+204): tmp = t_1 else: tmp = x / (x + (y * math.exp((1.6666666666666667 * (c - b))))) 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 <= -9e-297) tmp = t_1; elseif (t <= 7.2e-193) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(-0.6666666666666666 / t) * c)))))); elseif (t <= 3.55e-140) tmp = 1.0; elseif (t <= 6.6e-91) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(1.3333333333333333 * Float64(Float64(c - b) / t)))))); elseif ((t <= 9.2e+20) || !(t <= 1e+204)) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.6666666666666667 * Float64(c - b)))))); 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 <= -9e-297) tmp = t_1; elseif (t <= 7.2e-193) tmp = x / (x + (y * exp((2.0 * ((-0.6666666666666666 / t) * c))))); elseif (t <= 3.55e-140) tmp = 1.0; elseif (t <= 6.6e-91) tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t))))); elseif ((t <= 9.2e+20) || ~((t <= 1e+204))) tmp = t_1; else tmp = x / (x + (y * exp((1.6666666666666667 * (c - b))))); 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, -9e-297], t$95$1, If[LessEqual[t, 7.2e-193], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(-0.6666666666666666 / t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.55e-140], 1.0, If[LessEqual[t, 6.6e-91], N[(x / N[(x - N[(y * N[(-1.0 + N[(1.3333333333333333 * N[(N[(c - b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 9.2e+20], N[Not[LessEqual[t, 1e+204]], $MachinePrecision]], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(1.6666666666666667 * N[(c - b), $MachinePrecision]), $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 -9 \cdot 10^{-297}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 7.2 \cdot 10^{-193}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{-0.6666666666666666}{t} \cdot c\right)}}\\
\mathbf{elif}\;t \leq 3.55 \cdot 10^{-140}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{-91}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 1.3333333333333333 \cdot \frac{c - b}{t}\right)}\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{+20} \lor \neg \left(t \leq 10^{+204}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.6666666666666667 \cdot \left(c - b\right)}}\\
\end{array}
\end{array}
if t < -8.99999999999999951e-297 or 6.60000000000000023e-91 < t < 9.2e20 or 9.99999999999999989e203 < t Initial program 92.7%
Taylor expanded in a around inf 81.8%
if -8.99999999999999951e-297 < t < 7.1999999999999998e-193Initial program 88.5%
Taylor expanded in c around inf 81.4%
cancel-sign-sub-inv81.4%
+-commutative81.4%
metadata-eval81.4%
associate-*r/81.4%
metadata-eval81.4%
associate-+r+81.4%
Simplified81.4%
Taylor expanded in t around 0 77.6%
*-commutative77.6%
associate-*l/77.6%
associate-*r/77.6%
Simplified77.6%
if 7.1999999999999998e-193 < t < 3.54999999999999993e-140Initial program 100.0%
Taylor expanded in a around inf 72.3%
Taylor expanded in a around 0 30.8%
associate-*r*30.8%
*-commutative30.8%
*-commutative30.8%
Simplified30.8%
Taylor expanded in x around inf 100.0%
if 3.54999999999999993e-140 < t < 6.60000000000000023e-91Initial program 91.7%
Taylor expanded in t around 0 41.9%
Taylor expanded in t around inf 42.0%
Taylor expanded in a around 0 76.0%
if 9.2e20 < t < 9.99999999999999989e203Initial program 96.8%
Taylor expanded in t around inf 88.3%
mul-1-neg88.3%
+-commutative88.3%
distribute-rgt-neg-in88.3%
neg-sub088.3%
associate--r-88.3%
neg-sub088.3%
+-commutative88.3%
sub-neg88.3%
*-commutative88.3%
Simplified88.3%
Taylor expanded in a around 0 81.9%
Final simplification81.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b)))))))))
(if (<= t -2.5e-298)
t_1
(if (<= t 9.5e-193)
(/ x (+ x (* y (exp (* 2.0 (* (/ -0.6666666666666666 t) c))))))
(if (<= t 3e-139)
1.0
(if (<= t 6.6e-91)
(/ x (- x (* y (+ -1.0 (* 1.3333333333333333 (/ (- c b) t))))))
(if (<= t 1.2e-8)
(/ 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 * ((a + 0.8333333333333334) * (c - b))))));
double tmp;
if (t <= -2.5e-298) {
tmp = t_1;
} else if (t <= 9.5e-193) {
tmp = x / (x + (y * exp((2.0 * ((-0.6666666666666666 / t) * c)))));
} else if (t <= 3e-139) {
tmp = 1.0;
} else if (t <= 6.6e-91) {
tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
} else if (t <= 1.2e-8) {
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 * ((a + 0.8333333333333334d0) * (c - b))))))
if (t <= (-2.5d-298)) then
tmp = t_1
else if (t <= 9.5d-193) then
tmp = x / (x + (y * exp((2.0d0 * (((-0.6666666666666666d0) / t) * c)))))
else if (t <= 3d-139) then
tmp = 1.0d0
else if (t <= 6.6d-91) then
tmp = x / (x - (y * ((-1.0d0) + (1.3333333333333333d0 * ((c - b) / t)))))
else if (t <= 1.2d-8) 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 * ((a + 0.8333333333333334) * (c - b))))));
double tmp;
if (t <= -2.5e-298) {
tmp = t_1;
} else if (t <= 9.5e-193) {
tmp = x / (x + (y * Math.exp((2.0 * ((-0.6666666666666666 / t) * c)))));
} else if (t <= 3e-139) {
tmp = 1.0;
} else if (t <= 6.6e-91) {
tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
} else if (t <= 1.2e-8) {
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 * ((a + 0.8333333333333334) * (c - b)))))) tmp = 0 if t <= -2.5e-298: tmp = t_1 elif t <= 9.5e-193: tmp = x / (x + (y * math.exp((2.0 * ((-0.6666666666666666 / t) * c))))) elif t <= 3e-139: tmp = 1.0 elif t <= 6.6e-91: tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t))))) elif t <= 1.2e-8: 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(a + 0.8333333333333334) * Float64(c - b))))))) tmp = 0.0 if (t <= -2.5e-298) tmp = t_1; elseif (t <= 9.5e-193) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(-0.6666666666666666 / t) * c)))))); elseif (t <= 3e-139) tmp = 1.0; elseif (t <= 6.6e-91) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(1.3333333333333333 * Float64(Float64(c - b) / t)))))); elseif (t <= 1.2e-8) 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 * ((a + 0.8333333333333334) * (c - b)))))); tmp = 0.0; if (t <= -2.5e-298) tmp = t_1; elseif (t <= 9.5e-193) tmp = x / (x + (y * exp((2.0 * ((-0.6666666666666666 / t) * c))))); elseif (t <= 3e-139) tmp = 1.0; elseif (t <= 6.6e-91) tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t))))); elseif (t <= 1.2e-8) 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[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.5e-298], t$95$1, If[LessEqual[t, 9.5e-193], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(-0.6666666666666666 / t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e-139], 1.0, If[LessEqual[t, 6.6e-91], N[(x / N[(x - N[(y * N[(-1.0 + N[(1.3333333333333333 * N[(N[(c - b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.2e-8], 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(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq -2.5 \cdot 10^{-298}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{-193}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{-0.6666666666666666}{t} \cdot c\right)}}\\
\mathbf{elif}\;t \leq 3 \cdot 10^{-139}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{-91}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 1.3333333333333333 \cdot \frac{c - b}{t}\right)}\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-8}:\\
\;\;\;\;\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 < -2.5000000000000001e-298 or 1.19999999999999999e-8 < t Initial program 93.9%
Taylor expanded in t around inf 89.4%
mul-1-neg89.4%
+-commutative89.4%
distribute-rgt-neg-in89.4%
neg-sub089.4%
associate--r-89.4%
neg-sub089.4%
+-commutative89.4%
sub-neg89.4%
*-commutative89.4%
Simplified89.4%
if -2.5000000000000001e-298 < t < 9.5000000000000003e-193Initial program 88.5%
Taylor expanded in c around inf 81.4%
cancel-sign-sub-inv81.4%
+-commutative81.4%
metadata-eval81.4%
associate-*r/81.4%
metadata-eval81.4%
associate-+r+81.4%
Simplified81.4%
Taylor expanded in t around 0 77.6%
*-commutative77.6%
associate-*l/77.6%
associate-*r/77.6%
Simplified77.6%
if 9.5000000000000003e-193 < t < 2.9999999999999999e-139Initial program 100.0%
Taylor expanded in a around inf 72.3%
Taylor expanded in a around 0 30.8%
associate-*r*30.8%
*-commutative30.8%
*-commutative30.8%
Simplified30.8%
Taylor expanded in x around inf 100.0%
if 2.9999999999999999e-139 < t < 6.60000000000000023e-91Initial program 91.7%
Taylor expanded in t around 0 41.9%
Taylor expanded in t around inf 42.0%
Taylor expanded in a around 0 76.0%
if 6.60000000000000023e-91 < t < 1.19999999999999999e-8Initial program 94.1%
Taylor expanded in a around inf 76.8%
Final simplification86.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 1.6666666666666667 (- c b))))))))
(if (<= t -5e-310)
t_1
(if (<= t 6.6e-91)
(/ x (+ x (* 2.0 (* a (* y c)))))
(if (<= t 6.5e-21)
(/ x (+ x (* y (exp (* -2.0 (* a b))))))
(if (<= t 4.4e+260)
t_1
(if (<= t 8.5e+304)
1.0
(/ x (+ x (* y (exp (* b -1.6666666666666667))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((1.6666666666666667 * (c - b)))));
double tmp;
if (t <= -5e-310) {
tmp = t_1;
} else if (t <= 6.6e-91) {
tmp = x / (x + (2.0 * (a * (y * c))));
} else if (t <= 6.5e-21) {
tmp = x / (x + (y * exp((-2.0 * (a * b)))));
} else if (t <= 4.4e+260) {
tmp = t_1;
} else if (t <= 8.5e+304) {
tmp = 1.0;
} else {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((1.6666666666666667d0 * (c - b)))))
if (t <= (-5d-310)) then
tmp = t_1
else if (t <= 6.6d-91) then
tmp = x / (x + (2.0d0 * (a * (y * c))))
else if (t <= 6.5d-21) then
tmp = x / (x + (y * exp(((-2.0d0) * (a * b)))))
else if (t <= 4.4d+260) then
tmp = t_1
else if (t <= 8.5d+304) then
tmp = 1.0d0
else
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((1.6666666666666667 * (c - b)))));
double tmp;
if (t <= -5e-310) {
tmp = t_1;
} else if (t <= 6.6e-91) {
tmp = x / (x + (2.0 * (a * (y * c))));
} else if (t <= 6.5e-21) {
tmp = x / (x + (y * Math.exp((-2.0 * (a * b)))));
} else if (t <= 4.4e+260) {
tmp = t_1;
} else if (t <= 8.5e+304) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((1.6666666666666667 * (c - b))))) tmp = 0 if t <= -5e-310: tmp = t_1 elif t <= 6.6e-91: tmp = x / (x + (2.0 * (a * (y * c)))) elif t <= 6.5e-21: tmp = x / (x + (y * math.exp((-2.0 * (a * b))))) elif t <= 4.4e+260: tmp = t_1 elif t <= 8.5e+304: tmp = 1.0 else: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(1.6666666666666667 * Float64(c - b)))))) tmp = 0.0 if (t <= -5e-310) tmp = t_1; elseif (t <= 6.6e-91) tmp = Float64(x / Float64(x + Float64(2.0 * Float64(a * Float64(y * c))))); elseif (t <= 6.5e-21) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))); elseif (t <= 4.4e+260) tmp = t_1; elseif (t <= 8.5e+304) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((1.6666666666666667 * (c - b))))); tmp = 0.0; if (t <= -5e-310) tmp = t_1; elseif (t <= 6.6e-91) tmp = x / (x + (2.0 * (a * (y * c)))); elseif (t <= 6.5e-21) tmp = x / (x + (y * exp((-2.0 * (a * b))))); elseif (t <= 4.4e+260) tmp = t_1; elseif (t <= 8.5e+304) tmp = 1.0; else tmp = x / (x + (y * exp((b * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(1.6666666666666667 * N[(c - b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5e-310], t$95$1, If[LessEqual[t, 6.6e-91], N[(x / N[(x + N[(2.0 * N[(a * N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e-21], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.4e+260], t$95$1, If[LessEqual[t, 8.5e+304], 1.0, N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{1.6666666666666667 \cdot \left(c - b\right)}}\\
\mathbf{if}\;t \leq -5 \cdot 10^{-310}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{-91}:\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(a \cdot \left(y \cdot c\right)\right)}\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-21}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{elif}\;t \leq 4.4 \cdot 10^{+260}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{+304}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < -4.999999999999985e-310 or 6.49999999999999987e-21 < t < 4.40000000000000023e260Initial program 93.2%
Taylor expanded in t around inf 87.7%
mul-1-neg87.7%
+-commutative87.7%
distribute-rgt-neg-in87.7%
neg-sub087.7%
associate--r-87.7%
neg-sub087.7%
+-commutative87.7%
sub-neg87.7%
*-commutative87.7%
Simplified87.7%
Taylor expanded in a around 0 77.5%
if -4.999999999999985e-310 < t < 6.60000000000000023e-91Initial program 93.2%
Taylor expanded in c around inf 72.6%
cancel-sign-sub-inv72.6%
+-commutative72.6%
metadata-eval72.6%
associate-*r/72.6%
metadata-eval72.6%
associate-+r+72.6%
Simplified72.6%
Taylor expanded in c around 0 50.8%
associate-*r*50.8%
sub-neg50.8%
+-commutative50.8%
associate-*r/50.8%
metadata-eval50.8%
distribute-neg-frac50.8%
metadata-eval50.8%
associate-*r*50.8%
metadata-eval50.8%
distribute-neg-frac50.8%
sub-neg50.8%
+-commutative50.8%
metadata-eval50.8%
associate-*r/50.8%
associate-*r/50.8%
metadata-eval50.8%
associate-+r-50.8%
Simplified50.8%
Taylor expanded in a around inf 67.5%
if 6.60000000000000023e-91 < t < 6.49999999999999987e-21Initial program 93.1%
Taylor expanded in a around inf 76.1%
Taylor expanded in c around 0 72.8%
*-commutative72.8%
Simplified72.8%
if 4.40000000000000023e260 < t < 8.5000000000000005e304Initial program 95.2%
Taylor expanded in a around inf 85.5%
Taylor expanded in a around 0 41.9%
associate-*r*41.9%
*-commutative41.9%
*-commutative41.9%
Simplified41.9%
Taylor expanded in x around inf 80.6%
if 8.5000000000000005e304 < t Initial program 100.0%
Taylor expanded in t around inf 100.0%
mul-1-neg100.0%
+-commutative100.0%
distribute-rgt-neg-in100.0%
neg-sub0100.0%
associate--r-100.0%
neg-sub0100.0%
+-commutative100.0%
sub-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in a around 0 100.0%
Taylor expanded in c around 0 100.0%
*-commutative100.0%
Simplified100.0%
Final simplification75.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= t -5e-310)
t_1
(if (<= t 6.6e-91)
(/ x (+ x (* 2.0 (* a (* y c)))))
(if (or (<= t 4.5e+20) (not (<= t 2e+204)))
t_1
(/ x (+ x (* y (exp (* 1.6666666666666667 (- c b)))))))))))
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 <= -5e-310) {
tmp = t_1;
} else if (t <= 6.6e-91) {
tmp = x / (x + (2.0 * (a * (y * c))));
} else if ((t <= 4.5e+20) || !(t <= 2e+204)) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((1.6666666666666667 * (c - b)))));
}
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 <= (-5d-310)) then
tmp = t_1
else if (t <= 6.6d-91) then
tmp = x / (x + (2.0d0 * (a * (y * c))))
else if ((t <= 4.5d+20) .or. (.not. (t <= 2d+204))) then
tmp = t_1
else
tmp = x / (x + (y * exp((1.6666666666666667d0 * (c - b)))))
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 <= -5e-310) {
tmp = t_1;
} else if (t <= 6.6e-91) {
tmp = x / (x + (2.0 * (a * (y * c))));
} else if ((t <= 4.5e+20) || !(t <= 2e+204)) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((1.6666666666666667 * (c - b)))));
}
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 <= -5e-310: tmp = t_1 elif t <= 6.6e-91: tmp = x / (x + (2.0 * (a * (y * c)))) elif (t <= 4.5e+20) or not (t <= 2e+204): tmp = t_1 else: tmp = x / (x + (y * math.exp((1.6666666666666667 * (c - b))))) 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 <= -5e-310) tmp = t_1; elseif (t <= 6.6e-91) tmp = Float64(x / Float64(x + Float64(2.0 * Float64(a * Float64(y * c))))); elseif ((t <= 4.5e+20) || !(t <= 2e+204)) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.6666666666666667 * Float64(c - b)))))); 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 <= -5e-310) tmp = t_1; elseif (t <= 6.6e-91) tmp = x / (x + (2.0 * (a * (y * c)))); elseif ((t <= 4.5e+20) || ~((t <= 2e+204))) tmp = t_1; else tmp = x / (x + (y * exp((1.6666666666666667 * (c - b))))); 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, -5e-310], t$95$1, If[LessEqual[t, 6.6e-91], N[(x / N[(x + N[(2.0 * N[(a * N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 4.5e+20], N[Not[LessEqual[t, 2e+204]], $MachinePrecision]], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(1.6666666666666667 * N[(c - b), $MachinePrecision]), $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 -5 \cdot 10^{-310}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{-91}:\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(a \cdot \left(y \cdot c\right)\right)}\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{+20} \lor \neg \left(t \leq 2 \cdot 10^{+204}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.6666666666666667 \cdot \left(c - b\right)}}\\
\end{array}
\end{array}
if t < -4.999999999999985e-310 or 6.60000000000000023e-91 < t < 4.5e20 or 1.99999999999999998e204 < t Initial program 92.1%
Taylor expanded in a around inf 81.3%
if -4.999999999999985e-310 < t < 6.60000000000000023e-91Initial program 93.2%
Taylor expanded in c around inf 72.6%
cancel-sign-sub-inv72.6%
+-commutative72.6%
metadata-eval72.6%
associate-*r/72.6%
metadata-eval72.6%
associate-+r+72.6%
Simplified72.6%
Taylor expanded in c around 0 50.8%
associate-*r*50.8%
sub-neg50.8%
+-commutative50.8%
associate-*r/50.8%
metadata-eval50.8%
distribute-neg-frac50.8%
metadata-eval50.8%
associate-*r*50.8%
metadata-eval50.8%
distribute-neg-frac50.8%
sub-neg50.8%
+-commutative50.8%
metadata-eval50.8%
associate-*r/50.8%
associate-*r/50.8%
metadata-eval50.8%
associate-+r-50.8%
Simplified50.8%
Taylor expanded in a around inf 67.5%
if 4.5e20 < t < 1.99999999999999998e204Initial program 96.8%
Taylor expanded in t around inf 88.3%
mul-1-neg88.3%
+-commutative88.3%
distribute-rgt-neg-in88.3%
neg-sub088.3%
associate--r-88.3%
neg-sub088.3%
+-commutative88.3%
sub-neg88.3%
*-commutative88.3%
Simplified88.3%
Taylor expanded in a around 0 81.9%
Final simplification79.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/ x (+ x (* y (exp (* 2.0 (* (+ a 0.8333333333333334) (- c b)))))))))
(if (<= t -8.8e-297)
t_1
(if (<= t 1e-235)
(/ x (+ x (* y (exp (* 2.0 (* (/ -0.6666666666666666 t) c))))))
(if (<= t 1.82e-34)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
double tmp;
if (t <= -8.8e-297) {
tmp = t_1;
} else if (t <= 1e-235) {
tmp = x / (x + (y * exp((2.0 * ((-0.6666666666666666 / t) * c)))));
} else if (t <= 1.82e-34) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((a + 0.8333333333333334d0) * (c - b))))))
if (t <= (-8.8d-297)) then
tmp = t_1
else if (t <= 1d-235) then
tmp = x / (x + (y * exp((2.0d0 * (((-0.6666666666666666d0) / t) * c)))))
else if (t <= 1.82d-34) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((a + 0.8333333333333334) * (c - b))))));
double tmp;
if (t <= -8.8e-297) {
tmp = t_1;
} else if (t <= 1e-235) {
tmp = x / (x + (y * Math.exp((2.0 * ((-0.6666666666666666 / t) * c)))));
} else if (t <= 1.82e-34) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))) tmp = 0 if t <= -8.8e-297: tmp = t_1 elif t <= 1e-235: tmp = x / (x + (y * math.exp((2.0 * ((-0.6666666666666666 / t) * c))))) elif t <= 1.82e-34: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) 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(a + 0.8333333333333334) * Float64(c - b))))))) tmp = 0.0 if (t <= -8.8e-297) tmp = t_1; elseif (t <= 1e-235) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(-0.6666666666666666 / t) * c)))))); elseif (t <= 1.82e-34) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((a + 0.8333333333333334) * (c - b)))))); tmp = 0.0; if (t <= -8.8e-297) tmp = t_1; elseif (t <= 1e-235) tmp = x / (x + (y * exp((2.0 * ((-0.6666666666666666 / t) * c))))); elseif (t <= 1.82e-34) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); 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[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.8e-297], t$95$1, If[LessEqual[t, 1e-235], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(-0.6666666666666666 / t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.82e-34], 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], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq -8.8 \cdot 10^{-297}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 10^{-235}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{-0.6666666666666666}{t} \cdot c\right)}}\\
\mathbf{elif}\;t \leq 1.82 \cdot 10^{-34}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -8.7999999999999994e-297 or 1.82000000000000009e-34 < t Initial program 94.2%
Taylor expanded in t around inf 87.9%
mul-1-neg87.9%
+-commutative87.9%
distribute-rgt-neg-in87.9%
neg-sub087.9%
associate--r-87.9%
neg-sub087.9%
+-commutative87.9%
sub-neg87.9%
*-commutative87.9%
Simplified87.9%
if -8.7999999999999994e-297 < t < 9.9999999999999996e-236Initial program 80.0%
Taylor expanded in c around inf 87.1%
cancel-sign-sub-inv87.1%
+-commutative87.1%
metadata-eval87.1%
associate-*r/87.1%
metadata-eval87.1%
associate-+r+87.1%
Simplified87.1%
Taylor expanded in t around 0 93.5%
*-commutative93.5%
associate-*l/93.5%
associate-*r/93.5%
Simplified93.5%
if 9.9999999999999996e-236 < t < 1.82000000000000009e-34Initial program 94.4%
Taylor expanded in b around inf 76.7%
associate-*r/76.7%
metadata-eval76.7%
+-commutative76.7%
Simplified76.7%
Final simplification85.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* -2.0 (* a b))))))))
(if (<= c -250000000000.0)
1.0
(if (<= c -4.8e-153)
t_1
(if (<= c -9.6e-244)
1.0
(if (<= c 1.02e+164)
t_1
(/ x (+ x (* y (exp (* c 1.6666666666666667)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((-2.0 * (a * b)))));
double tmp;
if (c <= -250000000000.0) {
tmp = 1.0;
} else if (c <= -4.8e-153) {
tmp = t_1;
} else if (c <= -9.6e-244) {
tmp = 1.0;
} else if (c <= 1.02e+164) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((c * 1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp(((-2.0d0) * (a * b)))))
if (c <= (-250000000000.0d0)) then
tmp = 1.0d0
else if (c <= (-4.8d-153)) then
tmp = t_1
else if (c <= (-9.6d-244)) then
tmp = 1.0d0
else if (c <= 1.02d+164) then
tmp = t_1
else
tmp = x / (x + (y * exp((c * 1.6666666666666667d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((-2.0 * (a * b)))));
double tmp;
if (c <= -250000000000.0) {
tmp = 1.0;
} else if (c <= -4.8e-153) {
tmp = t_1;
} else if (c <= -9.6e-244) {
tmp = 1.0;
} else if (c <= 1.02e+164) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((c * 1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((-2.0 * (a * b))))) tmp = 0 if c <= -250000000000.0: tmp = 1.0 elif c <= -4.8e-153: tmp = t_1 elif c <= -9.6e-244: tmp = 1.0 elif c <= 1.02e+164: tmp = t_1 else: tmp = x / (x + (y * math.exp((c * 1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(a * b)))))) tmp = 0.0 if (c <= -250000000000.0) tmp = 1.0; elseif (c <= -4.8e-153) tmp = t_1; elseif (c <= -9.6e-244) tmp = 1.0; elseif (c <= 1.02e+164) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(c * 1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((-2.0 * (a * b))))); tmp = 0.0; if (c <= -250000000000.0) tmp = 1.0; elseif (c <= -4.8e-153) tmp = t_1; elseif (c <= -9.6e-244) tmp = 1.0; elseif (c <= 1.02e+164) tmp = t_1; else tmp = x / (x + (y * exp((c * 1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(a * b), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -250000000000.0], 1.0, If[LessEqual[c, -4.8e-153], t$95$1, If[LessEqual[c, -9.6e-244], 1.0, If[LessEqual[c, 1.02e+164], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(c * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{-2 \cdot \left(a \cdot b\right)}}\\
\mathbf{if}\;c \leq -250000000000:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -4.8 \cdot 10^{-153}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -9.6 \cdot 10^{-244}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.02 \cdot 10^{+164}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{c \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if c < -2.5e11 or -4.8000000000000004e-153 < c < -9.60000000000000063e-244Initial program 94.3%
Taylor expanded in a around inf 58.8%
Taylor expanded in a around 0 27.4%
associate-*r*27.4%
*-commutative27.4%
*-commutative27.4%
Simplified27.4%
Taylor expanded in x around inf 63.3%
if -2.5e11 < c < -4.8000000000000004e-153 or -9.60000000000000063e-244 < c < 1.02e164Initial program 92.5%
Taylor expanded in a around inf 75.9%
Taylor expanded in c around 0 71.9%
*-commutative71.9%
Simplified71.9%
if 1.02e164 < c Initial program 95.7%
Taylor expanded in t around inf 83.2%
mul-1-neg83.2%
+-commutative83.2%
distribute-rgt-neg-in83.2%
neg-sub083.2%
associate--r-83.2%
neg-sub083.2%
+-commutative83.2%
sub-neg83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in a around 0 74.7%
Taylor expanded in c around inf 70.5%
*-commutative70.5%
Simplified70.5%
Final simplification68.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -50000000000000.0)
(/ x (+ x (* y (exp (* b -1.6666666666666667)))))
(if (<= b 7e-219)
1.0
(if (<= b 9e-119)
(/ x (- x (* y (+ -1.0 (* 1.3333333333333333 (/ (- c b) t))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -50000000000000.0) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (b <= 7e-219) {
tmp = 1.0;
} else if (b <= 9e-119) {
tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-50000000000000.0d0)) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (b <= 7d-219) then
tmp = 1.0d0
else if (b <= 9d-119) then
tmp = x / (x - (y * ((-1.0d0) + (1.3333333333333333d0 * ((c - b) / t)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -50000000000000.0) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (b <= 7e-219) {
tmp = 1.0;
} else if (b <= 9e-119) {
tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -50000000000000.0: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif b <= 7e-219: tmp = 1.0 elif b <= 9e-119: tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -50000000000000.0) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (b <= 7e-219) tmp = 1.0; elseif (b <= 9e-119) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(1.3333333333333333 * Float64(Float64(c - b) / t)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -50000000000000.0) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (b <= 7e-219) tmp = 1.0; elseif (b <= 9e-119) tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -50000000000000.0], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7e-219], 1.0, If[LessEqual[b, 9e-119], N[(x / N[(x - N[(y * N[(-1.0 + N[(1.3333333333333333 * N[(N[(c - b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -50000000000000:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b \leq 7 \cdot 10^{-219}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 9 \cdot 10^{-119}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 1.3333333333333333 \cdot \frac{c - b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -5e13Initial program 91.1%
Taylor expanded in t around inf 75.8%
mul-1-neg75.8%
+-commutative75.8%
distribute-rgt-neg-in75.8%
neg-sub075.8%
associate--r-75.8%
neg-sub075.8%
+-commutative75.8%
sub-neg75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in a around 0 70.6%
Taylor expanded in c around 0 68.9%
*-commutative68.9%
Simplified68.9%
if -5e13 < b < 7.00000000000000022e-219 or 9.0000000000000005e-119 < b Initial program 93.4%
Taylor expanded in a around inf 67.0%
Taylor expanded in a around 0 38.8%
associate-*r*38.8%
*-commutative38.8%
*-commutative38.8%
Simplified38.8%
Taylor expanded in x around inf 64.2%
if 7.00000000000000022e-219 < b < 9.0000000000000005e-119Initial program 100.0%
Taylor expanded in t around 0 60.4%
Taylor expanded in t around inf 55.6%
Taylor expanded in a around 0 80.8%
Final simplification66.5%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= b -3.5e+63) (and (not (<= b 1.8e-217)) (<= b 6.8e-119))) (/ x (- x (* y (+ -1.0 (* 1.3333333333333333 (/ (- c b) t)))))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -3.5e+63) || (!(b <= 1.8e-217) && (b <= 6.8e-119))) {
tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b <= (-3.5d+63)) .or. (.not. (b <= 1.8d-217)) .and. (b <= 6.8d-119)) then
tmp = x / (x - (y * ((-1.0d0) + (1.3333333333333333d0 * ((c - b) / t)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -3.5e+63) || (!(b <= 1.8e-217) && (b <= 6.8e-119))) {
tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -3.5e+63) or (not (b <= 1.8e-217) and (b <= 6.8e-119)): tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -3.5e+63) || (!(b <= 1.8e-217) && (b <= 6.8e-119))) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(1.3333333333333333 * Float64(Float64(c - b) / t)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -3.5e+63) || (~((b <= 1.8e-217)) && (b <= 6.8e-119))) tmp = x / (x - (y * (-1.0 + (1.3333333333333333 * ((c - b) / t))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -3.5e+63], And[N[Not[LessEqual[b, 1.8e-217]], $MachinePrecision], LessEqual[b, 6.8e-119]]], N[(x / N[(x - N[(y * N[(-1.0 + N[(1.3333333333333333 * N[(N[(c - b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.5 \cdot 10^{+63} \lor \neg \left(b \leq 1.8 \cdot 10^{-217}\right) \land b \leq 6.8 \cdot 10^{-119}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + 1.3333333333333333 \cdot \frac{c - b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.50000000000000029e63 or 1.79999999999999991e-217 < b < 6.80000000000000047e-119Initial program 94.2%
Taylor expanded in t around 0 53.6%
Taylor expanded in t around inf 53.7%
Taylor expanded in a around 0 59.0%
if -3.50000000000000029e63 < b < 1.79999999999999991e-217 or 6.80000000000000047e-119 < b Initial program 93.1%
Taylor expanded in a around inf 67.4%
Taylor expanded in a around 0 39.3%
associate-*r*39.3%
*-commutative39.3%
*-commutative39.3%
Simplified39.3%
Taylor expanded in x around inf 63.7%
Final simplification62.5%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= b -5.8e+69) (and (not (<= b 7e-254)) (<= b 1.36e-118))) (/ x (+ x (* -1.3333333333333333 (/ (* y c) t)))) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -5.8e+69) || (!(b <= 7e-254) && (b <= 1.36e-118))) {
tmp = x / (x + (-1.3333333333333333 * ((y * c) / t)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b <= (-5.8d+69)) .or. (.not. (b <= 7d-254)) .and. (b <= 1.36d-118)) then
tmp = x / (x + ((-1.3333333333333333d0) * ((y * c) / t)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -5.8e+69) || (!(b <= 7e-254) && (b <= 1.36e-118))) {
tmp = x / (x + (-1.3333333333333333 * ((y * c) / t)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -5.8e+69) or (not (b <= 7e-254) and (b <= 1.36e-118)): tmp = x / (x + (-1.3333333333333333 * ((y * c) / t))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -5.8e+69) || (!(b <= 7e-254) && (b <= 1.36e-118))) tmp = Float64(x / Float64(x + Float64(-1.3333333333333333 * Float64(Float64(y * c) / t)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -5.8e+69) || (~((b <= 7e-254)) && (b <= 1.36e-118))) tmp = x / (x + (-1.3333333333333333 * ((y * c) / t))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -5.8e+69], And[N[Not[LessEqual[b, 7e-254]], $MachinePrecision], LessEqual[b, 1.36e-118]]], N[(x / N[(x + N[(-1.3333333333333333 * N[(N[(y * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.8 \cdot 10^{+69} \lor \neg \left(b \leq 7 \cdot 10^{-254}\right) \land b \leq 1.36 \cdot 10^{-118}:\\
\;\;\;\;\frac{x}{x + -1.3333333333333333 \cdot \frac{y \cdot c}{t}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -5.7999999999999997e69 or 7.00000000000000014e-254 < b < 1.36000000000000009e-118Initial program 94.6%
Taylor expanded in c around inf 64.1%
cancel-sign-sub-inv64.1%
+-commutative64.1%
metadata-eval64.1%
associate-*r/64.1%
metadata-eval64.1%
associate-+r+64.1%
Simplified64.1%
Taylor expanded in c around 0 52.9%
associate-*r*52.9%
sub-neg52.9%
+-commutative52.9%
associate-*r/52.9%
metadata-eval52.9%
distribute-neg-frac52.9%
metadata-eval52.9%
associate-*r*52.9%
metadata-eval52.9%
distribute-neg-frac52.9%
sub-neg52.9%
+-commutative52.9%
metadata-eval52.9%
associate-*r/52.9%
associate-*r/52.9%
metadata-eval52.9%
associate-+r-52.9%
Simplified52.9%
Taylor expanded in t around 0 53.8%
if -5.7999999999999997e69 < b < 7.00000000000000014e-254 or 1.36000000000000009e-118 < b Initial program 92.9%
Taylor expanded in a around inf 68.4%
Taylor expanded in a around 0 38.9%
associate-*r*38.9%
*-commutative38.9%
*-commutative38.9%
Simplified38.9%
Taylor expanded in x around inf 63.0%
Final simplification60.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -2.9e+78)
(/ x (+ x (* 1.3333333333333333 (/ b (/ t y)))))
(if (<= b 1e-253)
1.0
(if (<= b 1.5e-118)
(/ x (+ x (* -1.3333333333333333 (/ (* y c) t))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.9e+78) {
tmp = x / (x + (1.3333333333333333 * (b / (t / y))));
} else if (b <= 1e-253) {
tmp = 1.0;
} else if (b <= 1.5e-118) {
tmp = x / (x + (-1.3333333333333333 * ((y * c) / t)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-2.9d+78)) then
tmp = x / (x + (1.3333333333333333d0 * (b / (t / y))))
else if (b <= 1d-253) then
tmp = 1.0d0
else if (b <= 1.5d-118) then
tmp = x / (x + ((-1.3333333333333333d0) * ((y * c) / t)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -2.9e+78) {
tmp = x / (x + (1.3333333333333333 * (b / (t / y))));
} else if (b <= 1e-253) {
tmp = 1.0;
} else if (b <= 1.5e-118) {
tmp = x / (x + (-1.3333333333333333 * ((y * c) / t)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -2.9e+78: tmp = x / (x + (1.3333333333333333 * (b / (t / y)))) elif b <= 1e-253: tmp = 1.0 elif b <= 1.5e-118: tmp = x / (x + (-1.3333333333333333 * ((y * c) / t))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -2.9e+78) tmp = Float64(x / Float64(x + Float64(1.3333333333333333 * Float64(b / Float64(t / y))))); elseif (b <= 1e-253) tmp = 1.0; elseif (b <= 1.5e-118) tmp = Float64(x / Float64(x + Float64(-1.3333333333333333 * Float64(Float64(y * c) / t)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -2.9e+78) tmp = x / (x + (1.3333333333333333 * (b / (t / y)))); elseif (b <= 1e-253) tmp = 1.0; elseif (b <= 1.5e-118) tmp = x / (x + (-1.3333333333333333 * ((y * c) / t))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -2.9e+78], N[(x / N[(x + N[(1.3333333333333333 * N[(b / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1e-253], 1.0, If[LessEqual[b, 1.5e-118], N[(x / N[(x + N[(-1.3333333333333333 * N[(N[(y * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.9 \cdot 10^{+78}:\\
\;\;\;\;\frac{x}{x + 1.3333333333333333 \cdot \frac{b}{\frac{t}{y}}}\\
\mathbf{elif}\;b \leq 10^{-253}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{-118}:\\
\;\;\;\;\frac{x}{x + -1.3333333333333333 \cdot \frac{y \cdot c}{t}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -2.90000000000000017e78Initial program 90.8%
Taylor expanded in t around 0 49.6%
Taylor expanded in t around inf 54.3%
Taylor expanded in b around inf 51.9%
associate-/l*51.9%
Simplified51.9%
if -2.90000000000000017e78 < b < 1.0000000000000001e-253 or 1.50000000000000009e-118 < b Initial program 93.0%
Taylor expanded in a around inf 67.8%
Taylor expanded in a around 0 38.9%
associate-*r*38.9%
*-commutative38.9%
*-commutative38.9%
Simplified38.9%
Taylor expanded in x around inf 62.6%
if 1.0000000000000001e-253 < b < 1.50000000000000009e-118Initial program 100.0%
Taylor expanded in c around inf 81.1%
cancel-sign-sub-inv81.1%
+-commutative81.1%
metadata-eval81.1%
associate-*r/81.1%
metadata-eval81.1%
associate-+r+81.1%
Simplified81.1%
Taylor expanded in c around 0 70.2%
associate-*r*70.2%
sub-neg70.2%
+-commutative70.2%
associate-*r/70.2%
metadata-eval70.2%
distribute-neg-frac70.2%
metadata-eval70.2%
associate-*r*70.2%
metadata-eval70.2%
distribute-neg-frac70.2%
sub-neg70.2%
+-commutative70.2%
metadata-eval70.2%
associate-*r/70.2%
associate-*r/70.2%
metadata-eval70.2%
associate-+r-70.2%
Simplified70.2%
Taylor expanded in t around 0 69.4%
Final simplification61.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c 1.8e-229)
1.0
(if (<= c 2.4e-59)
(/ x (+ x y))
(if (<= c 2.7e+158) 1.0 (* 0.5 (/ x (* a (* y c))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.8e-229) {
tmp = 1.0;
} else if (c <= 2.4e-59) {
tmp = x / (x + y);
} else if (c <= 2.7e+158) {
tmp = 1.0;
} else {
tmp = 0.5 * (x / (a * (y * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 1.8d-229) then
tmp = 1.0d0
else if (c <= 2.4d-59) then
tmp = x / (x + y)
else if (c <= 2.7d+158) then
tmp = 1.0d0
else
tmp = 0.5d0 * (x / (a * (y * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.8e-229) {
tmp = 1.0;
} else if (c <= 2.4e-59) {
tmp = x / (x + y);
} else if (c <= 2.7e+158) {
tmp = 1.0;
} else {
tmp = 0.5 * (x / (a * (y * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 1.8e-229: tmp = 1.0 elif c <= 2.4e-59: tmp = x / (x + y) elif c <= 2.7e+158: tmp = 1.0 else: tmp = 0.5 * (x / (a * (y * c))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 1.8e-229) tmp = 1.0; elseif (c <= 2.4e-59) tmp = Float64(x / Float64(x + y)); elseif (c <= 2.7e+158) tmp = 1.0; else tmp = Float64(0.5 * Float64(x / Float64(a * Float64(y * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 1.8e-229) tmp = 1.0; elseif (c <= 2.4e-59) tmp = x / (x + y); elseif (c <= 2.7e+158) tmp = 1.0; else tmp = 0.5 * (x / (a * (y * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 1.8e-229], 1.0, If[LessEqual[c, 2.4e-59], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.7e+158], 1.0, N[(0.5 * N[(x / N[(a * N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 1.8 \cdot 10^{-229}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 2.4 \cdot 10^{-59}:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{elif}\;c \leq 2.7 \cdot 10^{+158}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{x}{a \cdot \left(y \cdot c\right)}\\
\end{array}
\end{array}
if c < 1.80000000000000001e-229 or 2.40000000000000015e-59 < c < 2.69999999999999979e158Initial program 92.8%
Taylor expanded in a around inf 67.7%
Taylor expanded in a around 0 36.7%
associate-*r*36.7%
*-commutative36.7%
*-commutative36.7%
Simplified36.7%
Taylor expanded in x around inf 60.0%
if 1.80000000000000001e-229 < c < 2.40000000000000015e-59Initial program 96.1%
Taylor expanded in a around inf 84.6%
Taylor expanded in a around 0 61.6%
if 2.69999999999999979e158 < c Initial program 95.7%
Taylor expanded in c around inf 91.6%
cancel-sign-sub-inv91.6%
+-commutative91.6%
metadata-eval91.6%
associate-*r/91.6%
metadata-eval91.6%
associate-+r+91.6%
Simplified91.6%
Taylor expanded in c around 0 62.1%
associate-*r*62.1%
sub-neg62.1%
+-commutative62.1%
associate-*r/62.1%
metadata-eval62.1%
distribute-neg-frac62.1%
metadata-eval62.1%
associate-*r*62.1%
metadata-eval62.1%
distribute-neg-frac62.1%
sub-neg62.1%
+-commutative62.1%
metadata-eval62.1%
associate-*r/62.1%
associate-*r/62.1%
metadata-eval62.1%
associate-+r-62.1%
Simplified62.1%
Taylor expanded in a around inf 58.5%
Final simplification60.0%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 1.9e-229) 1.0 (/ 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 tmp;
if (c <= 1.9e-229) {
tmp = 1.0;
} else {
tmp = x / (x + (y * (((2.0 * a) * (c - b)) + 1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 1.9d-229) then
tmp = 1.0d0
else
tmp = x / (x + (y * (((2.0d0 * a) * (c - b)) + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.9e-229) {
tmp = 1.0;
} else {
tmp = x / (x + (y * (((2.0 * a) * (c - b)) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 1.9e-229: tmp = 1.0 else: tmp = x / (x + (y * (((2.0 * a) * (c - b)) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 1.9e-229) tmp = 1.0; 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) tmp = 0.0; if (c <= 1.9e-229) tmp = 1.0; 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_] := If[LessEqual[c, 1.9e-229], 1.0, 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}
\mathbf{if}\;c \leq 1.9 \cdot 10^{-229}:\\
\;\;\;\;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 c < 1.9000000000000001e-229Initial program 92.7%
Taylor expanded in a around inf 65.2%
Taylor expanded in a around 0 33.9%
associate-*r*33.9%
*-commutative33.9%
*-commutative33.9%
Simplified33.9%
Taylor expanded in x around inf 62.0%
if 1.9000000000000001e-229 < c Initial program 94.7%
Taylor expanded in a around inf 75.1%
Taylor expanded in a around 0 58.6%
associate-*r*58.6%
*-commutative58.6%
*-commutative58.6%
Simplified58.6%
Final simplification60.8%
(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 93.4%
Taylor expanded in a around inf 68.8%
Taylor expanded in a around 0 42.9%
associate-*r*42.9%
*-commutative42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in x around inf 55.2%
Final simplification55.2%
(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 2024021
(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)))))))))))