
(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 18 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $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[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t\_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < +inf.0Initial program 100.0%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 0.0%
Taylor expanded in b around inf 77.6%
associate-*r/77.6%
metadata-eval77.6%
+-commutative77.6%
Simplified77.6%
Final simplification98.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 5e-95)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 7.5e-24)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
a
(+
c
(* c (/ (+ (/ -0.6666666666666666 t) 0.8333333333333334) a)))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (+ 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 <= 5e-95) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 7.5e-24) {
tmp = x / (x + (y * exp((2.0 * (a * (c + (c * (((-0.6666666666666666 / t) + 0.8333333333333334) / a))))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((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 <= 5d-95) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 7.5d-24) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c + (c * ((((-0.6666666666666666d0) / t) + 0.8333333333333334d0) / a))))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((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 <= 5e-95) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 7.5e-24) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c + (c * (((-0.6666666666666666 / t) + 0.8333333333333334) / a))))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 5e-95: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 7.5e-24: tmp = x / (x + (y * math.exp((2.0 * (a * (c + (c * (((-0.6666666666666666 / t) + 0.8333333333333334) / a)))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 5e-95) 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 <= 7.5e-24) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c + Float64(c * Float64(Float64(Float64(-0.6666666666666666 / t) + 0.8333333333333334) / a))))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + 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 <= 5e-95) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 7.5e-24) tmp = x / (x + (y * exp((2.0 * (a * (c + (c * (((-0.6666666666666666 / t) + 0.8333333333333334) / a)))))))); else tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((a + 0.8333333333333334) * (c - b))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 5e-95], 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, 7.5e-24], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c + N[(c * N[(N[(N[(-0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 5 \cdot 10^{-95}:\\
\;\;\;\;\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 7.5 \cdot 10^{-24}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c + c \cdot \frac{\frac{-0.6666666666666666}{t} + 0.8333333333333334}{a}\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 4.9999999999999998e-95Initial program 91.2%
Taylor expanded in t around 0 85.4%
if 4.9999999999999998e-95 < t < 7.50000000000000007e-24Initial program 95.5%
Taylor expanded in c around inf 73.6%
+-commutative73.6%
associate-*r/73.6%
metadata-eval73.6%
Simplified73.6%
Taylor expanded in a around inf 73.6%
associate-/l*82.4%
associate-*r/82.4%
metadata-eval82.4%
sub-neg82.4%
distribute-neg-frac82.4%
metadata-eval82.4%
Simplified82.4%
if 7.50000000000000007e-24 < t Initial program 98.3%
Taylor expanded in t around inf 99.9%
Final simplification91.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a c))))))))
(if (<= b -6.5e+206)
(/
x
(-
x
(*
y
(+
-1.0
(*
(* b 2.0)
(- a (+ (/ 0.6666666666666666 t) -0.8333333333333334)))))))
(if (<= b -2.2e-88)
t_1
(if (<= b -6.6e-149)
1.0
(if (<= b 1.8e-162)
t_1
(if (<= b 2.7e+105)
1.0
(if (<= b 2.5e+155)
(/ x (* y (exp (* 1.3333333333333333 (/ b t)))))
1.0))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (a * c)))));
double tmp;
if (b <= -6.5e+206) {
tmp = x / (x - (y * (-1.0 + ((b * 2.0) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else if (b <= -2.2e-88) {
tmp = t_1;
} else if (b <= -6.6e-149) {
tmp = 1.0;
} else if (b <= 1.8e-162) {
tmp = t_1;
} else if (b <= 2.7e+105) {
tmp = 1.0;
} else if (b <= 2.5e+155) {
tmp = x / (y * exp((1.3333333333333333 * (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) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (a * c)))))
if (b <= (-6.5d+206)) then
tmp = x / (x - (y * ((-1.0d0) + ((b * 2.0d0) * (a - ((0.6666666666666666d0 / t) + (-0.8333333333333334d0)))))))
else if (b <= (-2.2d-88)) then
tmp = t_1
else if (b <= (-6.6d-149)) then
tmp = 1.0d0
else if (b <= 1.8d-162) then
tmp = t_1
else if (b <= 2.7d+105) then
tmp = 1.0d0
else if (b <= 2.5d+155) then
tmp = x / (y * exp((1.3333333333333333d0 * (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 t_1 = x / (x + (y * Math.exp((2.0 * (a * c)))));
double tmp;
if (b <= -6.5e+206) {
tmp = x / (x - (y * (-1.0 + ((b * 2.0) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else if (b <= -2.2e-88) {
tmp = t_1;
} else if (b <= -6.6e-149) {
tmp = 1.0;
} else if (b <= 1.8e-162) {
tmp = t_1;
} else if (b <= 2.7e+105) {
tmp = 1.0;
} else if (b <= 2.5e+155) {
tmp = x / (y * Math.exp((1.3333333333333333 * (b / t))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * c))))) tmp = 0 if b <= -6.5e+206: tmp = x / (x - (y * (-1.0 + ((b * 2.0) * (a - ((0.6666666666666666 / t) + -0.8333333333333334)))))) elif b <= -2.2e-88: tmp = t_1 elif b <= -6.6e-149: tmp = 1.0 elif b <= 1.8e-162: tmp = t_1 elif b <= 2.7e+105: tmp = 1.0 elif b <= 2.5e+155: tmp = x / (y * math.exp((1.3333333333333333 * (b / t)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))) tmp = 0.0 if (b <= -6.5e+206) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(Float64(b * 2.0) * Float64(a - Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334))))))); elseif (b <= -2.2e-88) tmp = t_1; elseif (b <= -6.6e-149) tmp = 1.0; elseif (b <= 1.8e-162) tmp = t_1; elseif (b <= 2.7e+105) tmp = 1.0; elseif (b <= 2.5e+155) tmp = Float64(x / Float64(y * exp(Float64(1.3333333333333333 * Float64(b / t))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (a * c))))); tmp = 0.0; if (b <= -6.5e+206) tmp = x / (x - (y * (-1.0 + ((b * 2.0) * (a - ((0.6666666666666666 / t) + -0.8333333333333334)))))); elseif (b <= -2.2e-88) tmp = t_1; elseif (b <= -6.6e-149) tmp = 1.0; elseif (b <= 1.8e-162) tmp = t_1; elseif (b <= 2.7e+105) tmp = 1.0; elseif (b <= 2.5e+155) tmp = x / (y * exp((1.3333333333333333 * (b / t)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.5e+206], N[(x / N[(x - N[(y * N[(-1.0 + N[(N[(b * 2.0), $MachinePrecision] * N[(a - N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.2e-88], t$95$1, If[LessEqual[b, -6.6e-149], 1.0, If[LessEqual[b, 1.8e-162], t$95$1, If[LessEqual[b, 2.7e+105], 1.0, If[LessEqual[b, 2.5e+155], N[(x / N[(y * N[Exp[N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{if}\;b \leq -6.5 \cdot 10^{+206}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + \left(b \cdot 2\right) \cdot \left(a - \left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right)\right)\right)}\\
\mathbf{elif}\;b \leq -2.2 \cdot 10^{-88}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -6.6 \cdot 10^{-149}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-162}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{+105}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{+155}:\\
\;\;\;\;\frac{x}{y \cdot e^{1.3333333333333333 \cdot \frac{b}{t}}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -6.4999999999999995e206Initial program 90.5%
Taylor expanded in b around inf 90.8%
associate-*r/90.8%
metadata-eval90.8%
+-commutative90.8%
Simplified90.8%
Taylor expanded in b around 0 63.1%
associate-*r*63.1%
+-commutative63.1%
associate-*r/63.1%
metadata-eval63.1%
*-commutative63.1%
metadata-eval63.1%
associate-*r/63.1%
+-commutative63.1%
associate--r+63.1%
sub-neg63.1%
associate-*r/63.1%
metadata-eval63.1%
metadata-eval63.1%
*-commutative63.1%
Simplified63.1%
if -6.4999999999999995e206 < b < -2.20000000000000005e-88 or -6.60000000000000034e-149 < b < 1.7999999999999999e-162Initial program 97.3%
Taylor expanded in c around inf 75.2%
+-commutative75.2%
associate-*r/75.2%
metadata-eval75.2%
Simplified75.2%
Taylor expanded in a around inf 62.6%
if -2.20000000000000005e-88 < b < -6.60000000000000034e-149 or 1.7999999999999999e-162 < b < 2.70000000000000016e105 or 2.5e155 < b Initial program 94.5%
Taylor expanded in t around 0 56.1%
Taylor expanded in t around inf 39.8%
Taylor expanded in x around inf 69.2%
if 2.70000000000000016e105 < b < 2.5e155Initial program 83.3%
Taylor expanded in b around inf 75.8%
associate-*r/75.8%
metadata-eval75.8%
+-commutative75.8%
Simplified75.8%
Taylor expanded in t around 0 75.8%
Taylor expanded in x around 0 67.4%
Final simplification65.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -6.6e-89)
(/
x
(-
x
(*
y
(+
-1.0
(* (* b 2.0) (- a (+ (/ 0.6666666666666666 t) -0.8333333333333334)))))))
(if (<= b -1e-156)
1.0
(if (<= b 5e-172)
(/ x (- x (* y (- -1.0 (* c (* a 2.0))))))
(if (<= b 2.7e+105)
1.0
(if (<= b 2.5e+155)
(/ x (* y (exp (* 1.3333333333333333 (/ b t)))))
1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -6.6e-89) {
tmp = x / (x - (y * (-1.0 + ((b * 2.0) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else if (b <= -1e-156) {
tmp = 1.0;
} else if (b <= 5e-172) {
tmp = x / (x - (y * (-1.0 - (c * (a * 2.0)))));
} else if (b <= 2.7e+105) {
tmp = 1.0;
} else if (b <= 2.5e+155) {
tmp = x / (y * exp((1.3333333333333333 * (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 <= (-6.6d-89)) then
tmp = x / (x - (y * ((-1.0d0) + ((b * 2.0d0) * (a - ((0.6666666666666666d0 / t) + (-0.8333333333333334d0)))))))
else if (b <= (-1d-156)) then
tmp = 1.0d0
else if (b <= 5d-172) then
tmp = x / (x - (y * ((-1.0d0) - (c * (a * 2.0d0)))))
else if (b <= 2.7d+105) then
tmp = 1.0d0
else if (b <= 2.5d+155) then
tmp = x / (y * exp((1.3333333333333333d0 * (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 <= -6.6e-89) {
tmp = x / (x - (y * (-1.0 + ((b * 2.0) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else if (b <= -1e-156) {
tmp = 1.0;
} else if (b <= 5e-172) {
tmp = x / (x - (y * (-1.0 - (c * (a * 2.0)))));
} else if (b <= 2.7e+105) {
tmp = 1.0;
} else if (b <= 2.5e+155) {
tmp = x / (y * Math.exp((1.3333333333333333 * (b / t))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -6.6e-89: tmp = x / (x - (y * (-1.0 + ((b * 2.0) * (a - ((0.6666666666666666 / t) + -0.8333333333333334)))))) elif b <= -1e-156: tmp = 1.0 elif b <= 5e-172: tmp = x / (x - (y * (-1.0 - (c * (a * 2.0))))) elif b <= 2.7e+105: tmp = 1.0 elif b <= 2.5e+155: tmp = x / (y * math.exp((1.3333333333333333 * (b / t)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -6.6e-89) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(Float64(b * 2.0) * Float64(a - Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334))))))); elseif (b <= -1e-156) tmp = 1.0; elseif (b <= 5e-172) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(c * Float64(a * 2.0)))))); elseif (b <= 2.7e+105) tmp = 1.0; elseif (b <= 2.5e+155) tmp = Float64(x / Float64(y * exp(Float64(1.3333333333333333 * Float64(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 <= -6.6e-89) tmp = x / (x - (y * (-1.0 + ((b * 2.0) * (a - ((0.6666666666666666 / t) + -0.8333333333333334)))))); elseif (b <= -1e-156) tmp = 1.0; elseif (b <= 5e-172) tmp = x / (x - (y * (-1.0 - (c * (a * 2.0))))); elseif (b <= 2.7e+105) tmp = 1.0; elseif (b <= 2.5e+155) tmp = x / (y * exp((1.3333333333333333 * (b / t)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -6.6e-89], N[(x / N[(x - N[(y * N[(-1.0 + N[(N[(b * 2.0), $MachinePrecision] * N[(a - N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1e-156], 1.0, If[LessEqual[b, 5e-172], N[(x / N[(x - N[(y * N[(-1.0 - N[(c * N[(a * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.7e+105], 1.0, If[LessEqual[b, 2.5e+155], N[(x / N[(y * N[Exp[N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.6 \cdot 10^{-89}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + \left(b \cdot 2\right) \cdot \left(a - \left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right)\right)\right)}\\
\mathbf{elif}\;b \leq -1 \cdot 10^{-156}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 5 \cdot 10^{-172}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - c \cdot \left(a \cdot 2\right)\right)}\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{+105}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{+155}:\\
\;\;\;\;\frac{x}{y \cdot e^{1.3333333333333333 \cdot \frac{b}{t}}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -6.5999999999999993e-89Initial program 96.3%
Taylor expanded in b around inf 70.1%
associate-*r/70.1%
metadata-eval70.1%
+-commutative70.1%
Simplified70.1%
Taylor expanded in b around 0 51.2%
associate-*r*51.2%
+-commutative51.2%
associate-*r/51.2%
metadata-eval51.2%
*-commutative51.2%
metadata-eval51.2%
associate-*r/51.2%
+-commutative51.2%
associate--r+51.2%
sub-neg51.2%
associate-*r/51.2%
metadata-eval51.2%
metadata-eval51.2%
*-commutative51.2%
Simplified51.2%
if -6.5999999999999993e-89 < b < -1.00000000000000004e-156 or 4.9999999999999999e-172 < b < 2.70000000000000016e105 or 2.5e155 < b Initial program 93.8%
Taylor expanded in t around 0 56.4%
Taylor expanded in t around inf 39.7%
Taylor expanded in x around inf 69.2%
if -1.00000000000000004e-156 < b < 4.9999999999999999e-172Initial program 97.9%
Taylor expanded in c around inf 82.4%
+-commutative82.4%
associate-*r/82.4%
metadata-eval82.4%
Simplified82.4%
Taylor expanded in a around inf 69.2%
Taylor expanded in c around 0 59.8%
associate-*r*59.8%
*-commutative59.8%
Simplified59.8%
if 2.70000000000000016e105 < b < 2.5e155Initial program 83.3%
Taylor expanded in b around inf 75.8%
associate-*r/75.8%
metadata-eval75.8%
+-commutative75.8%
Simplified75.8%
Taylor expanded in t around 0 75.8%
Taylor expanded in x around 0 67.4%
Final simplification61.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* 2.0 (* c (+ a 0.8333333333333334)))))
(if (<= c -1.78e+22)
(/ x (+ x (* y (exp t_1))))
(if (<= c 1.1e-72)
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a)))))))
(if (<= c 6.2e-12)
(/ x (+ x (* y (exp (* 2.0 (* b (/ 0.6666666666666666 t)))))))
(/ x (+ x (* y (pow E t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 2.0 * (c * (a + 0.8333333333333334));
double tmp;
if (c <= -1.78e+22) {
tmp = x / (x + (y * exp(t_1)));
} else if (c <= 1.1e-72) {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else if (c <= 6.2e-12) {
tmp = x / (x + (y * exp((2.0 * (b * (0.6666666666666666 / t))))));
} else {
tmp = x / (x + (y * pow(((double) M_E), t_1)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 2.0 * (c * (a + 0.8333333333333334));
double tmp;
if (c <= -1.78e+22) {
tmp = x / (x + (y * Math.exp(t_1)));
} else if (c <= 1.1e-72) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else if (c <= 6.2e-12) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (0.6666666666666666 / t))))));
} else {
tmp = x / (x + (y * Math.pow(Math.E, t_1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = 2.0 * (c * (a + 0.8333333333333334)) tmp = 0 if c <= -1.78e+22: tmp = x / (x + (y * math.exp(t_1))) elif c <= 1.1e-72: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) elif c <= 6.2e-12: tmp = x / (x + (y * math.exp((2.0 * (b * (0.6666666666666666 / t)))))) else: tmp = x / (x + (y * math.pow(math.e, t_1))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))) tmp = 0.0 if (c <= -1.78e+22) tmp = Float64(x / Float64(x + Float64(y * exp(t_1)))); elseif (c <= 1.1e-72) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); elseif (c <= 6.2e-12) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(0.6666666666666666 / t))))))); else tmp = Float64(x / Float64(x + Float64(y * (exp(1) ^ t_1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = 2.0 * (c * (a + 0.8333333333333334)); tmp = 0.0; if (c <= -1.78e+22) tmp = x / (x + (y * exp(t_1))); elseif (c <= 1.1e-72) tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); elseif (c <= 6.2e-12) tmp = x / (x + (y * exp((2.0 * (b * (0.6666666666666666 / t)))))); else tmp = x / (x + (y * (2.71828182845904523536 ^ t_1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.78e+22], N[(x / N[(x + N[(y * N[Exp[t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.1e-72], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.2e-12], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Power[E, t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;c \leq -1.78 \cdot 10^{+22}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{t\_1}}\\
\mathbf{elif}\;c \leq 1.1 \cdot 10^{-72}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{elif}\;c \leq 6.2 \cdot 10^{-12}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \frac{0.6666666666666666}{t}\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot {e}^{t\_1}}\\
\end{array}
\end{array}
if c < -1.78e22Initial program 93.9%
Taylor expanded in c around inf 89.7%
+-commutative89.7%
associate-*r/89.7%
metadata-eval89.7%
Simplified89.7%
Taylor expanded in t around inf 76.5%
if -1.78e22 < c < 1.10000000000000001e-72Initial program 95.2%
Taylor expanded in b around inf 77.7%
associate-*r/77.7%
metadata-eval77.7%
+-commutative77.7%
Simplified77.7%
Taylor expanded in t around inf 70.0%
mul-1-neg70.0%
+-commutative70.0%
distribute-rgt-neg-in70.0%
+-commutative70.0%
mul-1-neg70.0%
distribute-lft-in70.0%
metadata-eval70.0%
mul-1-neg70.0%
unsub-neg70.0%
Simplified70.0%
if 1.10000000000000001e-72 < c < 6.2000000000000002e-12Initial program 100.0%
Taylor expanded in b around inf 70.5%
associate-*r/70.5%
metadata-eval70.5%
+-commutative70.5%
Simplified70.5%
Taylor expanded in t around 0 70.5%
if 6.2000000000000002e-12 < c Initial program 94.0%
Taylor expanded in c around inf 75.2%
+-commutative75.2%
associate-*r/75.2%
metadata-eval75.2%
Simplified75.2%
*-un-lft-identity75.2%
exp-prod75.3%
associate--l+75.3%
Applied egg-rr75.3%
exp-1-e75.3%
associate-*r*75.3%
associate-+r-75.3%
+-commutative75.3%
*-lft-identity75.3%
metadata-eval75.3%
cancel-sign-sub-inv75.3%
metadata-eval75.3%
associate-*r/75.3%
associate--r+75.3%
associate-*r*75.3%
associate--r+75.3%
cancel-sign-sub-inv75.3%
metadata-eval75.3%
*-lft-identity75.3%
associate--l+75.3%
associate-*r/75.3%
metadata-eval75.3%
Simplified75.3%
Taylor expanded in t around inf 71.5%
Final simplification72.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* c (+ a 0.8333333333333334)))))))))
(if (<= c -3.5e+22)
t_1
(if (<= c 3e-72)
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a)))))))
(if (<= c 5e-15)
(/ x (+ x (* y (exp (* 2.0 (* b (/ 0.6666666666666666 t)))))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334))))));
double tmp;
if (c <= -3.5e+22) {
tmp = t_1;
} else if (c <= 3e-72) {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else if (c <= 5e-15) {
tmp = x / (x + (y * exp((2.0 * (b * (0.6666666666666666 / t))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (c * (a + 0.8333333333333334d0))))))
if (c <= (-3.5d+22)) then
tmp = t_1
else if (c <= 3d-72) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
else if (c <= 5d-15) then
tmp = x / (x + (y * exp((2.0d0 * (b * (0.6666666666666666d0 / t))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (c * (a + 0.8333333333333334))))));
double tmp;
if (c <= -3.5e+22) {
tmp = t_1;
} else if (c <= 3e-72) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
} else if (c <= 5e-15) {
tmp = x / (x + (y * Math.exp((2.0 * (b * (0.6666666666666666 / t))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (c * (a + 0.8333333333333334)))))) tmp = 0 if c <= -3.5e+22: tmp = t_1 elif c <= 3e-72: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) elif c <= 5e-15: tmp = x / (x + (y * math.exp((2.0 * (b * (0.6666666666666666 / t)))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))))))) tmp = 0.0 if (c <= -3.5e+22) tmp = t_1; elseif (c <= 3e-72) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); elseif (c <= 5e-15) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(0.6666666666666666 / t))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334)))))); tmp = 0.0; if (c <= -3.5e+22) tmp = t_1; elseif (c <= 3e-72) tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); elseif (c <= 5e-15) tmp = x / (x + (y * exp((2.0 * (b * (0.6666666666666666 / t)))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.5e+22], t$95$1, If[LessEqual[c, 3e-72], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5e-15], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(0.6666666666666666 / t), $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(c \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\mathbf{if}\;c \leq -3.5 \cdot 10^{+22}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 3 \cdot 10^{-72}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{elif}\;c \leq 5 \cdot 10^{-15}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \frac{0.6666666666666666}{t}\right)}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -3.5e22 or 4.99999999999999999e-15 < c Initial program 94.0%
Taylor expanded in c around inf 83.4%
+-commutative83.4%
associate-*r/83.4%
metadata-eval83.4%
Simplified83.4%
Taylor expanded in t around inf 74.3%
if -3.5e22 < c < 3e-72Initial program 95.2%
Taylor expanded in b around inf 77.7%
associate-*r/77.7%
metadata-eval77.7%
+-commutative77.7%
Simplified77.7%
Taylor expanded in t around inf 70.0%
mul-1-neg70.0%
+-commutative70.0%
distribute-rgt-neg-in70.0%
+-commutative70.0%
mul-1-neg70.0%
distribute-lft-in70.0%
metadata-eval70.0%
mul-1-neg70.0%
unsub-neg70.0%
Simplified70.0%
if 3e-72 < c < 4.99999999999999999e-15Initial program 100.0%
Taylor expanded in b around inf 70.5%
associate-*r/70.5%
metadata-eval70.5%
+-commutative70.5%
Simplified70.5%
Taylor expanded in t around 0 70.5%
Final simplification72.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))))
(if (<= t 2.7e-132)
t_1
(if (<= t 1.35e-65)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= t 2.65e-43)
t_1
(/ x (+ x (* y (exp (* 2.0 (* b (- -0.8333333333333334 a))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
double tmp;
if (t <= 2.7e-132) {
tmp = t_1;
} else if (t <= 1.35e-65) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (t <= 2.65e-43) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
if (t <= 2.7d-132) then
tmp = t_1
else if (t <= 1.35d-65) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (t <= 2.65d-43) then
tmp = t_1
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
double tmp;
if (t <= 2.7e-132) {
tmp = t_1;
} else if (t <= 1.35e-65) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (t <= 2.65e-43) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) tmp = 0 if t <= 2.7e-132: tmp = t_1 elif t <= 1.35e-65: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif t <= 2.65e-43: tmp = t_1 else: tmp = x / (x + (y * math.exp((2.0 * (b * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))) tmp = 0.0 if (t <= 2.7e-132) tmp = t_1; elseif (t <= 1.35e-65) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (t <= 2.65e-43) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); tmp = 0.0; if (t <= 2.7e-132) tmp = t_1; elseif (t <= 1.35e-65) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (t <= 2.65e-43) tmp = t_1; else tmp = x / (x + (y * exp((2.0 * (b * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 2.7e-132], t$95$1, If[LessEqual[t, 1.35e-65], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.65e-43], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{if}\;t \leq 2.7 \cdot 10^{-132}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{-65}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;t \leq 2.65 \cdot 10^{-43}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < 2.6999999999999999e-132 or 1.3499999999999999e-65 < t < 2.6500000000000002e-43Initial program 90.7%
Taylor expanded in t around 0 85.4%
Taylor expanded in z around 0 74.9%
if 2.6999999999999999e-132 < t < 1.3499999999999999e-65Initial program 95.5%
Taylor expanded in c around inf 65.0%
+-commutative65.0%
associate-*r/65.0%
metadata-eval65.0%
Simplified65.0%
Taylor expanded in a around inf 65.2%
if 2.6500000000000002e-43 < t Initial program 98.4%
Taylor expanded in b around inf 66.1%
associate-*r/66.1%
metadata-eval66.1%
+-commutative66.1%
Simplified66.1%
Taylor expanded in t around inf 67.6%
mul-1-neg67.6%
+-commutative67.6%
distribute-rgt-neg-in67.6%
+-commutative67.6%
mul-1-neg67.6%
distribute-lft-in67.6%
metadata-eval67.6%
mul-1-neg67.6%
unsub-neg67.6%
Simplified67.6%
Final simplification70.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -2e+27)
(/
x
(+
x
(*
y
(exp
(* 2.0 (* c (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t))))))))
(if (<= c 4.8e+96)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/
x
(+
x
(*
y
(pow
E
(*
2.0
(* c (- 0.8333333333333334 (- (/ 0.6666666666666666 t) a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -2e+27) {
tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else if (c <= 4.8e+96) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * pow(((double) M_E), (2.0 * (c * (0.8333333333333334 - ((0.6666666666666666 / t) - a)))))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -2e+27) {
tmp = x / (x + (y * Math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else if (c <= 4.8e+96) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.pow(Math.E, (2.0 * (c * (0.8333333333333334 - ((0.6666666666666666 / t) - a)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -2e+27: tmp = x / (x + (y * math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))) elif c <= 4.8e+96: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = x / (x + (y * math.pow(math.e, (2.0 * (c * (0.8333333333333334 - ((0.6666666666666666 / t) - a))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -2e+27) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t)))))))); elseif (c <= 4.8e+96) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = Float64(x / Float64(x + Float64(y * (exp(1) ^ Float64(2.0 * Float64(c * Float64(0.8333333333333334 - Float64(Float64(0.6666666666666666 / t) - a)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -2e+27) tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))); elseif (c <= 4.8e+96) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (x + (y * (2.71828182845904523536 ^ (2.0 * (c * (0.8333333333333334 - ((0.6666666666666666 / t) - a))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -2e+27], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.8e+96], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Power[E, N[(2.0 * N[(c * N[(0.8333333333333334 - N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2 \cdot 10^{+27}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)}}\\
\mathbf{elif}\;c \leq 4.8 \cdot 10^{+96}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot {e}^{\left(2 \cdot \left(c \cdot \left(0.8333333333333334 - \left(\frac{0.6666666666666666}{t} - a\right)\right)\right)\right)}}\\
\end{array}
\end{array}
if c < -2e27Initial program 93.8%
Taylor expanded in c around inf 91.1%
+-commutative91.1%
associate-*r/91.1%
metadata-eval91.1%
Simplified91.1%
if -2e27 < c < 4.79999999999999986e96Initial program 95.6%
Taylor expanded in b around inf 77.0%
associate-*r/77.0%
metadata-eval77.0%
+-commutative77.0%
Simplified77.0%
if 4.79999999999999986e96 < c Initial program 93.3%
Taylor expanded in c around inf 83.9%
+-commutative83.9%
associate-*r/83.9%
metadata-eval83.9%
Simplified83.9%
*-un-lft-identity83.9%
exp-prod83.9%
associate--l+83.9%
Applied egg-rr83.9%
exp-1-e83.9%
associate-*r*83.9%
associate-+r-83.9%
+-commutative83.9%
*-lft-identity83.9%
metadata-eval83.9%
cancel-sign-sub-inv83.9%
metadata-eval83.9%
associate-*r/83.9%
associate--r+83.9%
associate-*r*83.9%
associate--r+83.9%
cancel-sign-sub-inv83.9%
metadata-eval83.9%
*-lft-identity83.9%
associate--l+83.9%
associate-*r/83.9%
metadata-eval83.9%
Simplified83.9%
Final simplification81.4%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -2.9e+24) (not (<= c 1.3e+95)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* c (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -2.9e+24) || !(c <= 1.3e+95)) {
tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((c <= (-2.9d+24)) .or. (.not. (c <= 1.3d+95))) then
tmp = x / (x + (y * exp((2.0d0 * (c * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t)))))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -2.9e+24) || !(c <= 1.3e+95)) {
tmp = x / (x + (y * Math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (c <= -2.9e+24) or not (c <= 1.3e+95): tmp = x / (x + (y * math.exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((c <= -2.9e+24) || !(c <= 1.3e+95)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((c <= -2.9e+24) || ~((c <= 1.3e+95))) tmp = x / (x + (y * exp((2.0 * (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[c, -2.9e+24], N[Not[LessEqual[c, 1.3e+95]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.9 \cdot 10^{+24} \lor \neg \left(c \leq 1.3 \cdot 10^{+95}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if c < -2.89999999999999979e24 or 1.29999999999999995e95 < c Initial program 93.7%
Taylor expanded in c around inf 88.8%
+-commutative88.8%
associate-*r/88.8%
metadata-eval88.8%
Simplified88.8%
if -2.89999999999999979e24 < c < 1.29999999999999995e95Initial program 95.6%
Taylor expanded in b around inf 77.0%
associate-*r/77.0%
metadata-eval77.0%
+-commutative77.0%
Simplified77.0%
Final simplification81.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* 2.0 (* c (+ a 0.8333333333333334)))))
(if (<= c -1.9e+113)
(/ x (+ x (* y (exp t_1))))
(if (<= c 1.05e+86)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/ x (+ x (* y (pow E t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 2.0 * (c * (a + 0.8333333333333334));
double tmp;
if (c <= -1.9e+113) {
tmp = x / (x + (y * exp(t_1)));
} else if (c <= 1.05e+86) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * pow(((double) M_E), t_1)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 2.0 * (c * (a + 0.8333333333333334));
double tmp;
if (c <= -1.9e+113) {
tmp = x / (x + (y * Math.exp(t_1)));
} else if (c <= 1.05e+86) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.pow(Math.E, t_1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = 2.0 * (c * (a + 0.8333333333333334)) tmp = 0 if c <= -1.9e+113: tmp = x / (x + (y * math.exp(t_1))) elif c <= 1.05e+86: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = x / (x + (y * math.pow(math.e, t_1))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))) tmp = 0.0 if (c <= -1.9e+113) tmp = Float64(x / Float64(x + Float64(y * exp(t_1)))); elseif (c <= 1.05e+86) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = Float64(x / Float64(x + Float64(y * (exp(1) ^ t_1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = 2.0 * (c * (a + 0.8333333333333334)); tmp = 0.0; if (c <= -1.9e+113) tmp = x / (x + (y * exp(t_1))); elseif (c <= 1.05e+86) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (x + (y * (2.71828182845904523536 ^ t_1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.9e+113], N[(x / N[(x + N[(y * N[Exp[t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.05e+86], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Power[E, t$95$1], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 2 \cdot \left(c \cdot \left(a + 0.8333333333333334\right)\right)\\
\mathbf{if}\;c \leq -1.9 \cdot 10^{+113}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{t\_1}}\\
\mathbf{elif}\;c \leq 1.05 \cdot 10^{+86}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot {e}^{t\_1}}\\
\end{array}
\end{array}
if c < -1.9000000000000002e113Initial program 91.5%
Taylor expanded in c around inf 91.8%
+-commutative91.8%
associate-*r/91.8%
metadata-eval91.8%
Simplified91.8%
Taylor expanded in t around inf 81.4%
if -1.9000000000000002e113 < c < 1.0499999999999999e86Initial program 96.6%
Taylor expanded in b around inf 75.4%
associate-*r/75.4%
metadata-eval75.4%
+-commutative75.4%
Simplified75.4%
if 1.0499999999999999e86 < c Initial program 90.3%
Taylor expanded in c around inf 81.3%
+-commutative81.3%
associate-*r/81.3%
metadata-eval81.3%
Simplified81.3%
*-un-lft-identity81.3%
exp-prod81.3%
associate--l+81.3%
Applied egg-rr81.3%
exp-1-e81.3%
associate-*r*81.3%
associate-+r-81.3%
+-commutative81.3%
*-lft-identity81.3%
metadata-eval81.3%
cancel-sign-sub-inv81.3%
metadata-eval81.3%
associate-*r/81.3%
associate--r+81.3%
associate-*r*81.3%
associate--r+81.3%
cancel-sign-sub-inv81.3%
metadata-eval81.3%
*-lft-identity81.3%
associate--l+81.3%
associate-*r/81.3%
metadata-eval81.3%
Simplified81.3%
Taylor expanded in t around inf 75.0%
Final simplification76.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -4e+22)
1.0
(if (<= c 65000000.0)
(/ x (+ x (* y (exp (* 2.0 (* a (- b)))))))
(/ x (+ x (* y (exp (* 2.0 (* a c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -4e+22) {
tmp = 1.0;
} else if (c <= 65000000.0) {
tmp = x / (x + (y * exp((2.0 * (a * -b)))));
} else {
tmp = x / (x + (y * exp((2.0 * (a * 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 <= (-4d+22)) then
tmp = 1.0d0
else if (c <= 65000000.0d0) then
tmp = x / (x + (y * exp((2.0d0 * (a * -b)))))
else
tmp = x / (x + (y * exp((2.0d0 * (a * 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 <= -4e+22) {
tmp = 1.0;
} else if (c <= 65000000.0) {
tmp = x / (x + (y * Math.exp((2.0 * (a * -b)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -4e+22: tmp = 1.0 elif c <= 65000000.0: tmp = x / (x + (y * math.exp((2.0 * (a * -b))))) else: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -4e+22) tmp = 1.0; elseif (c <= 65000000.0) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(-b))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -4e+22) tmp = 1.0; elseif (c <= 65000000.0) tmp = x / (x + (y * exp((2.0 * (a * -b))))); else tmp = x / (x + (y * exp((2.0 * (a * c))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -4e+22], 1.0, If[LessEqual[c, 65000000.0], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * (-b)), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4 \cdot 10^{+22}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 65000000:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(-b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\end{array}
\end{array}
if c < -4e22Initial program 93.9%
Taylor expanded in t around 0 53.7%
Taylor expanded in t around inf 38.0%
Taylor expanded in x around inf 70.6%
if -4e22 < c < 6.5e7Initial program 95.8%
Taylor expanded in b around inf 76.9%
associate-*r/76.9%
metadata-eval76.9%
+-commutative76.9%
Simplified76.9%
Taylor expanded in a around inf 63.8%
associate-*r*63.8%
mul-1-neg63.8%
Simplified63.8%
if 6.5e7 < c Initial program 93.2%
Taylor expanded in c around inf 73.6%
+-commutative73.6%
associate-*r/73.6%
metadata-eval73.6%
Simplified73.6%
Taylor expanded in a around inf 60.4%
Final simplification65.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -1.2e+86)
(/ x (+ x (+ y (* 1.3333333333333333 (/ (* b y) t)))))
(if (<= b -9.2e-86)
(/
x
(+
x
(*
y
(-
1.0
(*
2.0
(* c (- (- (/ 0.6666666666666666 t) a) 0.8333333333333334)))))))
(if (<= b -5.2e-157)
1.0
(if (<= b 6.6e-173) (/ x (- x (* y (- -1.0 (* c (* a 2.0)))))) 1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.2e+86) {
tmp = x / (x + (y + (1.3333333333333333 * ((b * y) / t))));
} else if (b <= -9.2e-86) {
tmp = x / (x + (y * (1.0 - (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else if (b <= -5.2e-157) {
tmp = 1.0;
} else if (b <= 6.6e-173) {
tmp = x / (x - (y * (-1.0 - (c * (a * 2.0)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-1.2d+86)) then
tmp = x / (x + (y + (1.3333333333333333d0 * ((b * y) / t))))
else if (b <= (-9.2d-86)) then
tmp = x / (x + (y * (1.0d0 - (2.0d0 * (c * (((0.6666666666666666d0 / t) - a) - 0.8333333333333334d0))))))
else if (b <= (-5.2d-157)) then
tmp = 1.0d0
else if (b <= 6.6d-173) then
tmp = x / (x - (y * ((-1.0d0) - (c * (a * 2.0d0)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.2e+86) {
tmp = x / (x + (y + (1.3333333333333333 * ((b * y) / t))));
} else if (b <= -9.2e-86) {
tmp = x / (x + (y * (1.0 - (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334))))));
} else if (b <= -5.2e-157) {
tmp = 1.0;
} else if (b <= 6.6e-173) {
tmp = x / (x - (y * (-1.0 - (c * (a * 2.0)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -1.2e+86: tmp = x / (x + (y + (1.3333333333333333 * ((b * y) / t)))) elif b <= -9.2e-86: tmp = x / (x + (y * (1.0 - (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))) elif b <= -5.2e-157: tmp = 1.0 elif b <= 6.6e-173: tmp = x / (x - (y * (-1.0 - (c * (a * 2.0))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -1.2e+86) tmp = Float64(x / Float64(x + Float64(y + Float64(1.3333333333333333 * Float64(Float64(b * y) / t))))); elseif (b <= -9.2e-86) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 - Float64(2.0 * Float64(c * Float64(Float64(Float64(0.6666666666666666 / t) - a) - 0.8333333333333334))))))); elseif (b <= -5.2e-157) tmp = 1.0; elseif (b <= 6.6e-173) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(c * Float64(a * 2.0)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -1.2e+86) tmp = x / (x + (y + (1.3333333333333333 * ((b * y) / t)))); elseif (b <= -9.2e-86) tmp = x / (x + (y * (1.0 - (2.0 * (c * (((0.6666666666666666 / t) - a) - 0.8333333333333334)))))); elseif (b <= -5.2e-157) tmp = 1.0; elseif (b <= 6.6e-173) tmp = x / (x - (y * (-1.0 - (c * (a * 2.0))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -1.2e+86], N[(x / N[(x + N[(y + N[(1.3333333333333333 * N[(N[(b * y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9.2e-86], N[(x / N[(x + N[(y * N[(1.0 - N[(2.0 * N[(c * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - a), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.2e-157], 1.0, If[LessEqual[b, 6.6e-173], N[(x / N[(x - N[(y * N[(-1.0 - N[(c * N[(a * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.2 \cdot 10^{+86}:\\
\;\;\;\;\frac{x}{x + \left(y + 1.3333333333333333 \cdot \frac{b \cdot y}{t}\right)}\\
\mathbf{elif}\;b \leq -9.2 \cdot 10^{-86}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 - 2 \cdot \left(c \cdot \left(\left(\frac{0.6666666666666666}{t} - a\right) - 0.8333333333333334\right)\right)\right)}\\
\mathbf{elif}\;b \leq -5.2 \cdot 10^{-157}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 6.6 \cdot 10^{-173}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - c \cdot \left(a \cdot 2\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.2e86Initial program 95.1%
Taylor expanded in b around inf 78.7%
associate-*r/78.7%
metadata-eval78.7%
+-commutative78.7%
Simplified78.7%
Taylor expanded in t around 0 43.3%
Taylor expanded in b around 0 50.6%
if -1.2e86 < b < -9.19999999999999985e-86Initial program 97.5%
Taylor expanded in c around inf 71.2%
+-commutative71.2%
associate-*r/71.2%
metadata-eval71.2%
Simplified71.2%
Taylor expanded in c around 0 54.3%
associate--l+54.3%
associate-*r/54.3%
metadata-eval54.3%
Simplified54.3%
if -9.19999999999999985e-86 < b < -5.19999999999999977e-157 or 6.6000000000000006e-173 < b Initial program 92.8%
Taylor expanded in t around 0 55.0%
Taylor expanded in t around inf 37.8%
Taylor expanded in x around inf 65.1%
if -5.19999999999999977e-157 < b < 6.6000000000000006e-173Initial program 97.9%
Taylor expanded in c around inf 82.4%
+-commutative82.4%
associate-*r/82.4%
metadata-eval82.4%
Simplified82.4%
Taylor expanded in a around inf 69.2%
Taylor expanded in c around 0 59.8%
associate-*r*59.8%
*-commutative59.8%
Simplified59.8%
Final simplification60.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -1.9e-88)
(/
x
(-
x
(*
y
(+
-1.0
(* (* b 2.0) (- a (+ (/ 0.6666666666666666 t) -0.8333333333333334)))))))
(if (<= b -3.5e-155)
1.0
(if (<= b 2.95e-173) (/ x (- x (* y (- -1.0 (* c (* a 2.0)))))) 1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.9e-88) {
tmp = x / (x - (y * (-1.0 + ((b * 2.0) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else if (b <= -3.5e-155) {
tmp = 1.0;
} else if (b <= 2.95e-173) {
tmp = x / (x - (y * (-1.0 - (c * (a * 2.0)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-1.9d-88)) then
tmp = x / (x - (y * ((-1.0d0) + ((b * 2.0d0) * (a - ((0.6666666666666666d0 / t) + (-0.8333333333333334d0)))))))
else if (b <= (-3.5d-155)) then
tmp = 1.0d0
else if (b <= 2.95d-173) then
tmp = x / (x - (y * ((-1.0d0) - (c * (a * 2.0d0)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -1.9e-88) {
tmp = x / (x - (y * (-1.0 + ((b * 2.0) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else if (b <= -3.5e-155) {
tmp = 1.0;
} else if (b <= 2.95e-173) {
tmp = x / (x - (y * (-1.0 - (c * (a * 2.0)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -1.9e-88: tmp = x / (x - (y * (-1.0 + ((b * 2.0) * (a - ((0.6666666666666666 / t) + -0.8333333333333334)))))) elif b <= -3.5e-155: tmp = 1.0 elif b <= 2.95e-173: tmp = x / (x - (y * (-1.0 - (c * (a * 2.0))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -1.9e-88) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 + Float64(Float64(b * 2.0) * Float64(a - Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334))))))); elseif (b <= -3.5e-155) tmp = 1.0; elseif (b <= 2.95e-173) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(c * Float64(a * 2.0)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -1.9e-88) tmp = x / (x - (y * (-1.0 + ((b * 2.0) * (a - ((0.6666666666666666 / t) + -0.8333333333333334)))))); elseif (b <= -3.5e-155) tmp = 1.0; elseif (b <= 2.95e-173) tmp = x / (x - (y * (-1.0 - (c * (a * 2.0))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -1.9e-88], N[(x / N[(x - N[(y * N[(-1.0 + N[(N[(b * 2.0), $MachinePrecision] * N[(a - N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.5e-155], 1.0, If[LessEqual[b, 2.95e-173], N[(x / N[(x - N[(y * N[(-1.0 - N[(c * N[(a * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.9 \cdot 10^{-88}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 + \left(b \cdot 2\right) \cdot \left(a - \left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right)\right)\right)}\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{-155}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 2.95 \cdot 10^{-173}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - c \cdot \left(a \cdot 2\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -1.90000000000000006e-88Initial program 96.3%
Taylor expanded in b around inf 70.1%
associate-*r/70.1%
metadata-eval70.1%
+-commutative70.1%
Simplified70.1%
Taylor expanded in b around 0 51.2%
associate-*r*51.2%
+-commutative51.2%
associate-*r/51.2%
metadata-eval51.2%
*-commutative51.2%
metadata-eval51.2%
associate-*r/51.2%
+-commutative51.2%
associate--r+51.2%
sub-neg51.2%
associate-*r/51.2%
metadata-eval51.2%
metadata-eval51.2%
*-commutative51.2%
Simplified51.2%
if -1.90000000000000006e-88 < b < -3.50000000000000015e-155 or 2.94999999999999998e-173 < b Initial program 92.8%
Taylor expanded in t around 0 55.0%
Taylor expanded in t around inf 37.8%
Taylor expanded in x around inf 65.1%
if -3.50000000000000015e-155 < b < 2.94999999999999998e-173Initial program 97.9%
Taylor expanded in c around inf 82.4%
+-commutative82.4%
associate-*r/82.4%
metadata-eval82.4%
Simplified82.4%
Taylor expanded in a around inf 69.2%
Taylor expanded in c around 0 59.8%
associate-*r*59.8%
*-commutative59.8%
Simplified59.8%
Final simplification59.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -3.8e+73)
(/ x (+ x (+ y (* 1.3333333333333333 (/ (* b y) t)))))
(if (<= b -3.8e-152)
1.0
(if (<= b 4e-172) (/ x (- x (* y (- -1.0 (* c (* a 2.0)))))) 1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.8e+73) {
tmp = x / (x + (y + (1.3333333333333333 * ((b * y) / t))));
} else if (b <= -3.8e-152) {
tmp = 1.0;
} else if (b <= 4e-172) {
tmp = x / (x - (y * (-1.0 - (c * (a * 2.0)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-3.8d+73)) then
tmp = x / (x + (y + (1.3333333333333333d0 * ((b * y) / t))))
else if (b <= (-3.8d-152)) then
tmp = 1.0d0
else if (b <= 4d-172) then
tmp = x / (x - (y * ((-1.0d0) - (c * (a * 2.0d0)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.8e+73) {
tmp = x / (x + (y + (1.3333333333333333 * ((b * y) / t))));
} else if (b <= -3.8e-152) {
tmp = 1.0;
} else if (b <= 4e-172) {
tmp = x / (x - (y * (-1.0 - (c * (a * 2.0)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -3.8e+73: tmp = x / (x + (y + (1.3333333333333333 * ((b * y) / t)))) elif b <= -3.8e-152: tmp = 1.0 elif b <= 4e-172: tmp = x / (x - (y * (-1.0 - (c * (a * 2.0))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -3.8e+73) tmp = Float64(x / Float64(x + Float64(y + Float64(1.3333333333333333 * Float64(Float64(b * y) / t))))); elseif (b <= -3.8e-152) tmp = 1.0; elseif (b <= 4e-172) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(c * Float64(a * 2.0)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -3.8e+73) tmp = x / (x + (y + (1.3333333333333333 * ((b * y) / t)))); elseif (b <= -3.8e-152) tmp = 1.0; elseif (b <= 4e-172) tmp = x / (x - (y * (-1.0 - (c * (a * 2.0))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -3.8e+73], N[(x / N[(x + N[(y + N[(1.3333333333333333 * N[(N[(b * y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.8e-152], 1.0, If[LessEqual[b, 4e-172], N[(x / N[(x - N[(y * N[(-1.0 - N[(c * N[(a * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.8 \cdot 10^{+73}:\\
\;\;\;\;\frac{x}{x + \left(y + 1.3333333333333333 \cdot \frac{b \cdot y}{t}\right)}\\
\mathbf{elif}\;b \leq -3.8 \cdot 10^{-152}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 4 \cdot 10^{-172}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - c \cdot \left(a \cdot 2\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.80000000000000022e73Initial program 93.8%
Taylor expanded in b around inf 77.8%
associate-*r/77.8%
metadata-eval77.8%
+-commutative77.8%
Simplified77.8%
Taylor expanded in t around 0 45.7%
Taylor expanded in b around 0 49.8%
if -3.80000000000000022e73 < b < -3.80000000000000012e-152 or 4.0000000000000002e-172 < b Initial program 94.3%
Taylor expanded in t around 0 55.0%
Taylor expanded in t around inf 36.8%
Taylor expanded in x around inf 60.2%
if -3.80000000000000012e-152 < b < 4.0000000000000002e-172Initial program 97.9%
Taylor expanded in c around inf 82.4%
+-commutative82.4%
associate-*r/82.4%
metadata-eval82.4%
Simplified82.4%
Taylor expanded in a around inf 69.2%
Taylor expanded in c around 0 59.8%
associate-*r*59.8%
*-commutative59.8%
Simplified59.8%
Final simplification58.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -2.6e-21)
1.0
(if (<= c 7.5e-84)
(/ x (+ x (+ y (* 1.3333333333333333 (* b (/ y t))))))
(if (<= c 2.1e+273) 1.0 (/ x (- x (* y (- -1.0 (* c (* a 2.0))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -2.6e-21) {
tmp = 1.0;
} else if (c <= 7.5e-84) {
tmp = x / (x + (y + (1.3333333333333333 * (b * (y / t)))));
} else if (c <= 2.1e+273) {
tmp = 1.0;
} else {
tmp = x / (x - (y * (-1.0 - (c * (a * 2.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 <= (-2.6d-21)) then
tmp = 1.0d0
else if (c <= 7.5d-84) then
tmp = x / (x + (y + (1.3333333333333333d0 * (b * (y / t)))))
else if (c <= 2.1d+273) then
tmp = 1.0d0
else
tmp = x / (x - (y * ((-1.0d0) - (c * (a * 2.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 <= -2.6e-21) {
tmp = 1.0;
} else if (c <= 7.5e-84) {
tmp = x / (x + (y + (1.3333333333333333 * (b * (y / t)))));
} else if (c <= 2.1e+273) {
tmp = 1.0;
} else {
tmp = x / (x - (y * (-1.0 - (c * (a * 2.0)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -2.6e-21: tmp = 1.0 elif c <= 7.5e-84: tmp = x / (x + (y + (1.3333333333333333 * (b * (y / t))))) elif c <= 2.1e+273: tmp = 1.0 else: tmp = x / (x - (y * (-1.0 - (c * (a * 2.0))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -2.6e-21) tmp = 1.0; elseif (c <= 7.5e-84) tmp = Float64(x / Float64(x + Float64(y + Float64(1.3333333333333333 * Float64(b * Float64(y / t)))))); elseif (c <= 2.1e+273) tmp = 1.0; else tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(c * Float64(a * 2.0)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -2.6e-21) tmp = 1.0; elseif (c <= 7.5e-84) tmp = x / (x + (y + (1.3333333333333333 * (b * (y / t))))); elseif (c <= 2.1e+273) tmp = 1.0; else tmp = x / (x - (y * (-1.0 - (c * (a * 2.0))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -2.6e-21], 1.0, If[LessEqual[c, 7.5e-84], N[(x / N[(x + N[(y + N[(1.3333333333333333 * N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.1e+273], 1.0, N[(x / N[(x - N[(y * N[(-1.0 - N[(c * N[(a * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.6 \cdot 10^{-21}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 7.5 \cdot 10^{-84}:\\
\;\;\;\;\frac{x}{x + \left(y + 1.3333333333333333 \cdot \left(b \cdot \frac{y}{t}\right)\right)}\\
\mathbf{elif}\;c \leq 2.1 \cdot 10^{+273}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - c \cdot \left(a \cdot 2\right)\right)}\\
\end{array}
\end{array}
if c < -2.60000000000000017e-21 or 7.50000000000000026e-84 < c < 2.10000000000000002e273Initial program 94.9%
Taylor expanded in t around 0 49.0%
Taylor expanded in t around inf 38.5%
Taylor expanded in x around inf 61.0%
if -2.60000000000000017e-21 < c < 7.50000000000000026e-84Initial program 94.4%
Taylor expanded in b around inf 77.6%
associate-*r/77.6%
metadata-eval77.6%
+-commutative77.6%
Simplified77.6%
Taylor expanded in t around 0 64.2%
Taylor expanded in b around 0 54.4%
associate-/l*52.6%
Simplified52.6%
if 2.10000000000000002e273 < c Initial program 100.0%
Taylor expanded in c around inf 100.0%
+-commutative100.0%
associate-*r/100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in a around inf 78.4%
Taylor expanded in c around 0 78.6%
associate-*r*78.6%
*-commutative78.6%
Simplified78.6%
Final simplification58.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= b -3.5e+117)
(* 0.75 (* t (/ (/ x b) y)))
(if (<= b -6.5e-158)
1.0
(if (<= b 4e-170) (/ x (- x (* y (- -1.0 (* c (* a 2.0)))))) 1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.5e+117) {
tmp = 0.75 * (t * ((x / b) / y));
} else if (b <= -6.5e-158) {
tmp = 1.0;
} else if (b <= 4e-170) {
tmp = x / (x - (y * (-1.0 - (c * (a * 2.0)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-3.5d+117)) then
tmp = 0.75d0 * (t * ((x / b) / y))
else if (b <= (-6.5d-158)) then
tmp = 1.0d0
else if (b <= 4d-170) then
tmp = x / (x - (y * ((-1.0d0) - (c * (a * 2.0d0)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.5e+117) {
tmp = 0.75 * (t * ((x / b) / y));
} else if (b <= -6.5e-158) {
tmp = 1.0;
} else if (b <= 4e-170) {
tmp = x / (x - (y * (-1.0 - (c * (a * 2.0)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -3.5e+117: tmp = 0.75 * (t * ((x / b) / y)) elif b <= -6.5e-158: tmp = 1.0 elif b <= 4e-170: tmp = x / (x - (y * (-1.0 - (c * (a * 2.0))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -3.5e+117) tmp = Float64(0.75 * Float64(t * Float64(Float64(x / b) / y))); elseif (b <= -6.5e-158) tmp = 1.0; elseif (b <= 4e-170) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(c * Float64(a * 2.0)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -3.5e+117) tmp = 0.75 * (t * ((x / b) / y)); elseif (b <= -6.5e-158) tmp = 1.0; elseif (b <= 4e-170) tmp = x / (x - (y * (-1.0 - (c * (a * 2.0))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -3.5e+117], N[(0.75 * N[(t * N[(N[(x / b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.5e-158], 1.0, If[LessEqual[b, 4e-170], N[(x / N[(x - N[(y * N[(-1.0 - N[(c * N[(a * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.5 \cdot 10^{+117}:\\
\;\;\;\;0.75 \cdot \left(t \cdot \frac{\frac{x}{b}}{y}\right)\\
\mathbf{elif}\;b \leq -6.5 \cdot 10^{-158}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 4 \cdot 10^{-170}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - c \cdot \left(a \cdot 2\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.49999999999999983e117Initial program 94.1%
Taylor expanded in b around inf 82.9%
associate-*r/82.9%
metadata-eval82.9%
+-commutative82.9%
Simplified82.9%
Taylor expanded in t around 0 43.1%
Taylor expanded in b around 0 49.0%
associate-/l*43.5%
Simplified43.5%
Taylor expanded in b around inf 42.9%
associate-/l*43.0%
associate-/r*45.7%
Simplified45.7%
if -3.49999999999999983e117 < b < -6.49999999999999971e-158 or 3.99999999999999993e-170 < b Initial program 94.2%
Taylor expanded in t around 0 53.5%
Taylor expanded in t around inf 37.5%
Taylor expanded in x around inf 59.5%
if -6.49999999999999971e-158 < b < 3.99999999999999993e-170Initial program 97.9%
Taylor expanded in c around inf 82.4%
+-commutative82.4%
associate-*r/82.4%
metadata-eval82.4%
Simplified82.4%
Taylor expanded in a around inf 69.2%
Taylor expanded in c around 0 59.8%
associate-*r*59.8%
*-commutative59.8%
Simplified59.8%
Final simplification57.7%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -3.5e+113) (* 0.75 (* t (/ (/ x b) y))) (if (<= b -1.35e-151) 1.0 (if (<= b 1.85e-195) (/ 1.0 (/ (+ x y) x)) 1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -3.5e+113) {
tmp = 0.75 * (t * ((x / b) / y));
} else if (b <= -1.35e-151) {
tmp = 1.0;
} else if (b <= 1.85e-195) {
tmp = 1.0 / ((x + y) / x);
} 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+113)) then
tmp = 0.75d0 * (t * ((x / b) / y))
else if (b <= (-1.35d-151)) then
tmp = 1.0d0
else if (b <= 1.85d-195) then
tmp = 1.0d0 / ((x + y) / x)
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+113) {
tmp = 0.75 * (t * ((x / b) / y));
} else if (b <= -1.35e-151) {
tmp = 1.0;
} else if (b <= 1.85e-195) {
tmp = 1.0 / ((x + y) / x);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -3.5e+113: tmp = 0.75 * (t * ((x / b) / y)) elif b <= -1.35e-151: tmp = 1.0 elif b <= 1.85e-195: tmp = 1.0 / ((x + y) / x) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -3.5e+113) tmp = Float64(0.75 * Float64(t * Float64(Float64(x / b) / y))); elseif (b <= -1.35e-151) tmp = 1.0; elseif (b <= 1.85e-195) tmp = Float64(1.0 / Float64(Float64(x + y) / x)); 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+113) tmp = 0.75 * (t * ((x / b) / y)); elseif (b <= -1.35e-151) tmp = 1.0; elseif (b <= 1.85e-195) tmp = 1.0 / ((x + y) / x); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -3.5e+113], N[(0.75 * N[(t * N[(N[(x / b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.35e-151], 1.0, If[LessEqual[b, 1.85e-195], N[(1.0 / N[(N[(x + y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.5 \cdot 10^{+113}:\\
\;\;\;\;0.75 \cdot \left(t \cdot \frac{\frac{x}{b}}{y}\right)\\
\mathbf{elif}\;b \leq -1.35 \cdot 10^{-151}:\\
\;\;\;\;1\\
\mathbf{elif}\;b \leq 1.85 \cdot 10^{-195}:\\
\;\;\;\;\frac{1}{\frac{x + y}{x}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -3.5000000000000001e113Initial program 94.1%
Taylor expanded in b around inf 82.9%
associate-*r/82.9%
metadata-eval82.9%
+-commutative82.9%
Simplified82.9%
Taylor expanded in t around 0 43.1%
Taylor expanded in b around 0 49.0%
associate-/l*43.5%
Simplified43.5%
Taylor expanded in b around inf 42.9%
associate-/l*43.0%
associate-/r*45.7%
Simplified45.7%
if -3.5000000000000001e113 < b < -1.35000000000000004e-151 or 1.84999999999999981e-195 < b Initial program 94.3%
Taylor expanded in t around 0 53.5%
Taylor expanded in t around inf 36.7%
Taylor expanded in x around inf 58.7%
if -1.35000000000000004e-151 < b < 1.84999999999999981e-195Initial program 97.7%
Taylor expanded in t around 0 55.1%
Taylor expanded in t around inf 53.6%
clear-num54.0%
inv-pow54.0%
Applied egg-rr54.0%
unpow-154.0%
Simplified54.0%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 94.9%
Taylor expanded in t around 0 53.1%
Taylor expanded in t around inf 37.8%
Taylor expanded in x around inf 50.4%
(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 2024085
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:alt
(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)))))))))))