
(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 16 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 (* 1.3333333333333333 (/ (* y b) t))))))))
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 + (1.3333333333333333 * ((y * b) / t))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((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 + (1.3333333333333333 * ((y * b) / t))));
}
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 + (1.3333333333333333 * ((y * b) / t)))) 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 + Float64(1.3333333333333333 * Float64(Float64(y * b) / t))))); 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 + (1.3333333333333333 * ((y * b) / t)))); 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[(1.3333333333333333 * N[(N[(y * b), $MachinePrecision] / t), $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 + \left(y + 1.3333333333333333 \cdot \frac{y \cdot b}{t}\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 99.6%
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%
exp-prod0.0%
Simplified38.5%
Taylor expanded in b around inf 47.9%
Taylor expanded in t around 0 55.4%
Taylor expanded in b around 0 63.3%
Final simplification97.7%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
z
(/ (sqrt (+ t a)) t)
(* (- a (- (/ 0.6666666666666666 t) 0.8333333333333334)) (- c b))))
x)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / fma(y, pow(exp(2.0), fma(z, (sqrt((t + a)) / t), ((a - ((0.6666666666666666 / t) - 0.8333333333333334)) * (c - b)))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(z, Float64(sqrt(Float64(t + a)) / t), Float64(Float64(a - Float64(Float64(0.6666666666666666 / t) - 0.8333333333333334)) * Float64(c - b)))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(z * N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] / t), $MachinePrecision] + N[(N[(a - N[(N[(0.6666666666666666 / t), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(z, \frac{\sqrt{t + a}}{t}, \left(a - \left(\frac{0.6666666666666666}{t} - 0.8333333333333334\right)\right) \cdot \left(c - b\right)\right)\right)}, x\right)}
\end{array}
Initial program 94.5%
Simplified97.3%
Final simplification97.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(* c (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t))))))))
(t_2
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(/ (* z (sqrt (+ t a))) t)
(* (+ a 0.8333333333333334) (- c b))))))))))
(if (<= c -3.2e+141)
t_1
(if (<= c -2.85e-154)
t_2
(if (<= c -7.6e-271)
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
b
(- (* 0.6666666666666666 (/ 1.0 t)) 0.8333333333333334)))))))
(if (<= c 8e+90) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * pow(exp(2.0), (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))));
double t_2 = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) + ((a + 0.8333333333333334) * (c - b)))))));
double tmp;
if (c <= -3.2e+141) {
tmp = t_1;
} else if (c <= -2.85e-154) {
tmp = t_2;
} else if (c <= -7.6e-271) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 * (1.0 / t)) - 0.8333333333333334))))));
} else if (c <= 8e+90) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * (exp(2.0d0) ** (c * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t))))))
t_2 = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) + ((a + 0.8333333333333334d0) * (c - b)))))))
if (c <= (-3.2d+141)) then
tmp = t_1
else if (c <= (-2.85d-154)) then
tmp = t_2
else if (c <= (-7.6d-271)) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 * (1.0d0 / t)) - 0.8333333333333334d0))))))
else if (c <= 8d+90) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.pow(Math.exp(2.0), (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))));
double t_2 = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) + ((a + 0.8333333333333334) * (c - b)))))));
double tmp;
if (c <= -3.2e+141) {
tmp = t_1;
} else if (c <= -2.85e-154) {
tmp = t_2;
} else if (c <= -7.6e-271) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 * (1.0 / t)) - 0.8333333333333334))))));
} else if (c <= 8e+90) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.pow(math.exp(2.0), (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))) t_2 = x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) + ((a + 0.8333333333333334) * (c - b))))))) tmp = 0 if c <= -3.2e+141: tmp = t_1 elif c <= -2.85e-154: tmp = t_2 elif c <= -7.6e-271: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 * (1.0 / t)) - 0.8333333333333334)))))) elif c <= 8e+90: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(c * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t))))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(a + 0.8333333333333334) * Float64(c - b)))))))) tmp = 0.0 if (c <= -3.2e+141) tmp = t_1; elseif (c <= -2.85e-154) tmp = t_2; elseif (c <= -7.6e-271) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 * Float64(1.0 / t)) - 0.8333333333333334))))))); elseif (c <= 8e+90) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * (exp(2.0) ^ (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))); t_2 = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) + ((a + 0.8333333333333334) * (c - b))))))); tmp = 0.0; if (c <= -3.2e+141) tmp = t_1; elseif (c <= -2.85e-154) tmp = t_2; elseif (c <= -7.6e-271) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 * (1.0 / t)) - 0.8333333333333334)))))); elseif (c <= 8e+90) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(c * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.2e+141], t$95$1, If[LessEqual[c, -2.85e-154], t$95$2, If[LessEqual[c, -7.6e-271], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 8e+90], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(c \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)}}\\
t_2 := \frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} + \left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;c \leq -3.2 \cdot 10^{+141}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -2.85 \cdot 10^{-154}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -7.6 \cdot 10^{-271}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(0.6666666666666666 \cdot \frac{1}{t} - 0.8333333333333334\right)\right)}}\\
\mathbf{elif}\;c \leq 8 \cdot 10^{+90}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -3.20000000000000019e141 or 7.99999999999999973e90 < c Initial program 88.3%
exp-prod88.3%
Simplified92.2%
Taylor expanded in c around inf 93.7%
+-commutative93.7%
associate-*r/93.7%
metadata-eval93.7%
Simplified93.7%
if -3.20000000000000019e141 < c < -2.8499999999999999e-154 or -7.60000000000000019e-271 < c < 7.99999999999999973e90Initial program 96.8%
Taylor expanded in t around inf 87.6%
+-commutative87.6%
*-commutative87.6%
Simplified87.6%
if -2.8499999999999999e-154 < c < -7.60000000000000019e-271Initial program 100.0%
exp-prod100.0%
Simplified95.5%
Taylor expanded in b around inf 91.5%
Taylor expanded in a around 0 91.6%
Final simplification89.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(* c (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t))))))))
(t_2
(/
x
(+
x
(* y (exp (* 2.0 (+ (/ (* z (sqrt (+ t a))) t) (* a (- c b))))))))))
(if (<= c -1.9e+23)
t_1
(if (<= c 4e-200)
t_2
(if (<= c 2.9e-119)
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))))))
(if (<= c 8e+90) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * pow(exp(2.0), (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))));
double t_2 = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) + (a * (c - b)))))));
double tmp;
if (c <= -1.9e+23) {
tmp = t_1;
} else if (c <= 4e-200) {
tmp = t_2;
} else if (c <= 2.9e-119) {
tmp = x / (x + (y * pow(exp(2.0), (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
} else if (c <= 8e+90) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * (exp(2.0d0) ** (c * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t))))))
t_2 = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) + (a * (c - b)))))))
if (c <= (-1.9d+23)) then
tmp = t_1
else if (c <= 4d-200) then
tmp = t_2
else if (c <= 2.9d-119) then
tmp = x / (x + (y * (exp(2.0d0) ** (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0))))))
else if (c <= 8d+90) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.pow(Math.exp(2.0), (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))));
double t_2 = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) + (a * (c - b)))))));
double tmp;
if (c <= -1.9e+23) {
tmp = t_1;
} else if (c <= 4e-200) {
tmp = t_2;
} else if (c <= 2.9e-119) {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
} else if (c <= 8e+90) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.pow(math.exp(2.0), (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))) t_2 = x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) + (a * (c - b))))))) tmp = 0 if c <= -1.9e+23: tmp = t_1 elif c <= 4e-200: tmp = t_2 elif c <= 2.9e-119: tmp = x / (x + (y * math.pow(math.exp(2.0), (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))) elif c <= 8e+90: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(c * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t))))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(a * Float64(c - b)))))))) tmp = 0.0 if (c <= -1.9e+23) tmp = t_1; elseif (c <= 4e-200) tmp = t_2; elseif (c <= 2.9e-119) tmp = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334))))))); elseif (c <= 8e+90) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * (exp(2.0) ^ (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))); t_2 = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) + (a * (c - b))))))); tmp = 0.0; if (c <= -1.9e+23) tmp = t_1; elseif (c <= 4e-200) tmp = t_2; elseif (c <= 2.9e-119) tmp = x / (x + (y * (exp(2.0) ^ (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))); elseif (c <= 8e+90) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(c * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.9e+23], t$95$1, If[LessEqual[c, 4e-200], t$95$2, If[LessEqual[c, 2.9e-119], N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 8e+90], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(c \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)}}\\
t_2 := \frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} + a \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;c \leq -1.9 \cdot 10^{+23}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 4 \cdot 10^{-200}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 2.9 \cdot 10^{-119}:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{elif}\;c \leq 8 \cdot 10^{+90}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.89999999999999987e23 or 7.99999999999999973e90 < c Initial program 91.0%
exp-prod91.0%
Simplified94.0%
Taylor expanded in c around inf 91.3%
+-commutative91.3%
associate-*r/91.3%
metadata-eval91.3%
Simplified91.3%
if -1.89999999999999987e23 < c < 3.9999999999999999e-200 or 2.9e-119 < c < 7.99999999999999973e90Initial program 98.5%
Taylor expanded in a around inf 81.6%
if 3.9999999999999999e-200 < c < 2.9e-119Initial program 84.2%
exp-prod84.2%
Simplified89.5%
Taylor expanded in b around inf 95.0%
associate-*r/95.0%
metadata-eval95.0%
+-commutative95.0%
Simplified95.0%
Final simplification86.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ (* z (sqrt (+ t a))) t)))
(if (<= t -5.5e-63)
(/ x (+ x (* y (exp (* 2.0 (+ t_1 (* a (- c b))))))))
(if (<= t 3.8e+15)
(/
x
(+
x
(* y (exp (* 2.0 (+ t_1 (* (/ -0.6666666666666666 t) (- c b))))))))
(/
x
(+
x
(* y (exp (* 2.0 (+ t_1 (* (+ a 0.8333333333333334) (- c b))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (z * sqrt((t + a))) / t;
double tmp;
if (t <= -5.5e-63) {
tmp = x / (x + (y * exp((2.0 * (t_1 + (a * (c - b)))))));
} else if (t <= 3.8e+15) {
tmp = x / (x + (y * exp((2.0 * (t_1 + ((-0.6666666666666666 / t) * (c - b)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (t_1 + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = (z * sqrt((t + a))) / t
if (t <= (-5.5d-63)) then
tmp = x / (x + (y * exp((2.0d0 * (t_1 + (a * (c - b)))))))
else if (t <= 3.8d+15) then
tmp = x / (x + (y * exp((2.0d0 * (t_1 + (((-0.6666666666666666d0) / t) * (c - b)))))))
else
tmp = x / (x + (y * exp((2.0d0 * (t_1 + ((a + 0.8333333333333334d0) * (c - b)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (z * Math.sqrt((t + a))) / t;
double tmp;
if (t <= -5.5e-63) {
tmp = x / (x + (y * Math.exp((2.0 * (t_1 + (a * (c - b)))))));
} else if (t <= 3.8e+15) {
tmp = x / (x + (y * Math.exp((2.0 * (t_1 + ((-0.6666666666666666 / t) * (c - b)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (t_1 + ((a + 0.8333333333333334) * (c - b)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (z * math.sqrt((t + a))) / t tmp = 0 if t <= -5.5e-63: tmp = x / (x + (y * math.exp((2.0 * (t_1 + (a * (c - b))))))) elif t <= 3.8e+15: tmp = x / (x + (y * math.exp((2.0 * (t_1 + ((-0.6666666666666666 / t) * (c - b))))))) else: tmp = x / (x + (y * math.exp((2.0 * (t_1 + ((a + 0.8333333333333334) * (c - b))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(z * sqrt(Float64(t + a))) / t) tmp = 0.0 if (t <= -5.5e-63) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(t_1 + Float64(a * Float64(c - b)))))))); elseif (t <= 3.8e+15) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(t_1 + Float64(Float64(-0.6666666666666666 / t) * Float64(c - b)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(t_1 + Float64(Float64(a + 0.8333333333333334) * Float64(c - b)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (z * sqrt((t + a))) / t; tmp = 0.0; if (t <= -5.5e-63) tmp = x / (x + (y * exp((2.0 * (t_1 + (a * (c - b))))))); elseif (t <= 3.8e+15) tmp = x / (x + (y * exp((2.0 * (t_1 + ((-0.6666666666666666 / t) * (c - b))))))); else tmp = x / (x + (y * exp((2.0 * (t_1 + ((a + 0.8333333333333334) * (c - b))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]}, If[LessEqual[t, -5.5e-63], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(t$95$1 + N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.8e+15], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(t$95$1 + N[(N[(-0.6666666666666666 / t), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(t$95$1 + N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t}\\
\mathbf{if}\;t \leq -5.5 \cdot 10^{-63}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(t\_1 + a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{+15}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(t\_1 + \frac{-0.6666666666666666}{t} \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(t\_1 + \left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < -5.50000000000000043e-63Initial program 94.7%
Taylor expanded in a around inf 94.7%
if -5.50000000000000043e-63 < t < 3.8e15Initial program 92.9%
Taylor expanded in t around 0 86.1%
if 3.8e15 < t Initial program 96.4%
Taylor expanded in t around inf 96.4%
+-commutative96.4%
*-commutative96.4%
Simplified96.4%
Final simplification91.1%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -7.2e+49) (not (<= c 2.05e-44)))
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(* c (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t)))))))
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(*
b
(- (* 0.6666666666666666 (/ 1.0 t)) (+ a 0.8333333333333334)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -7.2e+49) || !(c <= 2.05e-44)) {
tmp = x / (x + (y * pow(exp(2.0), (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))));
} else {
tmp = x / (x + (y * pow(exp(2.0), (b * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((c <= (-7.2d+49)) .or. (.not. (c <= 2.05d-44))) 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 * (1.0d0 / t)) - (a + 0.8333333333333334d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((c <= -7.2e+49) || !(c <= 2.05e-44)) {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))));
} else {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), (b * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (c <= -7.2e+49) or not (c <= 2.05e-44): tmp = x / (x + (y * math.pow(math.exp(2.0), (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))) else: tmp = x / (x + (y * math.pow(math.exp(2.0), (b * ((0.6666666666666666 * (1.0 / t)) - (a + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((c <= -7.2e+49) || !(c <= 2.05e-44)) tmp = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(c * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t))))))); else tmp = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(b * Float64(Float64(0.6666666666666666 * Float64(1.0 / t)) - Float64(a + 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((c <= -7.2e+49) || ~((c <= 2.05e-44))) 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 * (1.0 / t)) - (a + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[c, -7.2e+49], N[Not[LessEqual[c, 2.05e-44]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(c * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(b * N[(N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -7.2 \cdot 10^{+49} \lor \neg \left(c \leq 2.05 \cdot 10^{-44}\right):\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(c \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(b \cdot \left(0.6666666666666666 \cdot \frac{1}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if c < -7.19999999999999993e49 or 2.04999999999999996e-44 < c Initial program 91.9%
exp-prod91.9%
Simplified94.6%
Taylor expanded in c around inf 90.4%
+-commutative90.4%
associate-*r/90.4%
metadata-eval90.4%
Simplified90.4%
if -7.19999999999999993e49 < c < 2.04999999999999996e-44Initial program 96.5%
exp-prod96.5%
Simplified97.2%
Taylor expanded in b around inf 77.7%
Final simplification83.2%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= c -5.2e+49) (not (<= c 2.7e-44)))
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(* c (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t)))))))
(/
x
(+
x
(*
y
(pow
(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 <= -5.2e+49) || !(c <= 2.7e-44)) {
tmp = x / (x + (y * pow(exp(2.0), (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))));
} else {
tmp = x / (x + (y * pow(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 <= (-5.2d+49)) .or. (.not. (c <= 2.7d-44))) 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 <= -5.2e+49) || !(c <= 2.7e-44)) {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t))))));
} else {
tmp = x / (x + (y * Math.pow(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 <= -5.2e+49) or not (c <= 2.7e-44): tmp = x / (x + (y * math.pow(math.exp(2.0), (c * ((a + 0.8333333333333334) - (0.6666666666666666 / t)))))) else: tmp = x / (x + (y * math.pow(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 <= -5.2e+49) || !(c <= 2.7e-44)) tmp = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(c * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t))))))); else tmp = Float64(x / Float64(x + Float64(y * (exp(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 <= -5.2e+49) || ~((c <= 2.7e-44))) 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, -5.2e+49], N[Not[LessEqual[c, 2.7e-44]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(c * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -5.2 \cdot 10^{+49} \lor \neg \left(c \leq 2.7 \cdot 10^{-44}\right):\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(c \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if c < -5.19999999999999977e49 or 2.6999999999999999e-44 < c Initial program 91.9%
exp-prod91.9%
Simplified94.6%
Taylor expanded in c around inf 90.4%
+-commutative90.4%
associate-*r/90.4%
metadata-eval90.4%
Simplified90.4%
if -5.19999999999999977e49 < c < 2.6999999999999999e-44Initial program 96.5%
exp-prod96.5%
Simplified97.2%
Taylor expanded in b around inf 77.7%
associate-*r/77.7%
metadata-eval77.7%
+-commutative77.7%
Simplified77.7%
Final simplification83.2%
(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 -1e+50)
t_1
(if (<= c 4.2e+53)
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))))))
(if (or (<= c 1e+204) (not (<= c 1.35e+248))) t_1 1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334))))));
double tmp;
if (c <= -1e+50) {
tmp = t_1;
} else if (c <= 4.2e+53) {
tmp = x / (x + (y * pow(exp(2.0), (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
} else if ((c <= 1e+204) || !(c <= 1.35e+248)) {
tmp = t_1;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (c * (a + 0.8333333333333334d0))))))
if (c <= (-1d+50)) then
tmp = t_1
else if (c <= 4.2d+53) then
tmp = x / (x + (y * (exp(2.0d0) ** (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0))))))
else if ((c <= 1d+204) .or. (.not. (c <= 1.35d+248))) then
tmp = t_1
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (c * (a + 0.8333333333333334))))));
double tmp;
if (c <= -1e+50) {
tmp = t_1;
} else if (c <= 4.2e+53) {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
} else if ((c <= 1e+204) || !(c <= 1.35e+248)) {
tmp = t_1;
} else {
tmp = 1.0;
}
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 <= -1e+50: tmp = t_1 elif c <= 4.2e+53: tmp = x / (x + (y * math.pow(math.exp(2.0), (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))) elif (c <= 1e+204) or not (c <= 1.35e+248): tmp = t_1 else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))))))) tmp = 0.0 if (c <= -1e+50) tmp = t_1; elseif (c <= 4.2e+53) tmp = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334))))))); elseif ((c <= 1e+204) || !(c <= 1.35e+248)) tmp = t_1; else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334)))))); tmp = 0.0; if (c <= -1e+50) tmp = t_1; elseif (c <= 4.2e+53) tmp = x / (x + (y * (exp(2.0) ^ (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))); elseif ((c <= 1e+204) || ~((c <= 1.35e+248))) tmp = t_1; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1e+50], t$95$1, If[LessEqual[c, 4.2e+53], N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[c, 1e+204], N[Not[LessEqual[c, 1.35e+248]], $MachinePrecision]], t$95$1, 1.0]]]]
\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 -1 \cdot 10^{+50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 4.2 \cdot 10^{+53}:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{elif}\;c \leq 10^{+204} \lor \neg \left(c \leq 1.35 \cdot 10^{+248}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if c < -1.0000000000000001e50 or 4.2000000000000004e53 < c < 9.99999999999999989e203 or 1.34999999999999994e248 < c Initial program 91.3%
Taylor expanded in t around inf 72.4%
+-commutative72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in c around inf 77.9%
+-commutative77.9%
Simplified77.9%
if -1.0000000000000001e50 < c < 4.2000000000000004e53Initial program 96.8%
exp-prod96.8%
Simplified97.4%
Taylor expanded in b around inf 76.8%
associate-*r/76.8%
metadata-eval76.8%
+-commutative76.8%
Simplified76.8%
if 9.99999999999999989e203 < c < 1.34999999999999994e248Initial program 87.5%
exp-prod87.5%
Simplified100.0%
Taylor expanded in b around inf 39.1%
Taylor expanded in b around 0 15.4%
associate-*r*15.4%
associate-*r/15.4%
metadata-eval15.4%
+-commutative15.4%
associate-*r*15.4%
*-commutative15.4%
associate-*l*15.4%
metadata-eval15.4%
associate-*r/15.4%
+-commutative15.4%
*-commutative15.4%
associate-*r/15.4%
metadata-eval15.4%
+-commutative15.4%
associate--r+15.4%
sub-neg15.4%
sub-neg15.4%
Simplified15.4%
Taylor expanded in x around inf 87.9%
Final simplification77.5%
(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 -1.5e+50)
t_1
(if (<= c 3e+53)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (* 0.6666666666666666 (/ 1.0 t)) 0.8333333333333334)))))))
(if (or (<= c 3.4e+204) (not (<= c 2e+248))) t_1 1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334))))));
double tmp;
if (c <= -1.5e+50) {
tmp = t_1;
} else if (c <= 3e+53) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 * (1.0 / t)) - 0.8333333333333334))))));
} else if ((c <= 3.4e+204) || !(c <= 2e+248)) {
tmp = t_1;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (c * (a + 0.8333333333333334d0))))))
if (c <= (-1.5d+50)) then
tmp = t_1
else if (c <= 3d+53) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 * (1.0d0 / t)) - 0.8333333333333334d0))))))
else if ((c <= 3.4d+204) .or. (.not. (c <= 2d+248))) then
tmp = t_1
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (c * (a + 0.8333333333333334))))));
double tmp;
if (c <= -1.5e+50) {
tmp = t_1;
} else if (c <= 3e+53) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 * (1.0 / t)) - 0.8333333333333334))))));
} else if ((c <= 3.4e+204) || !(c <= 2e+248)) {
tmp = t_1;
} else {
tmp = 1.0;
}
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 <= -1.5e+50: tmp = t_1 elif c <= 3e+53: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 * (1.0 / t)) - 0.8333333333333334)))))) elif (c <= 3.4e+204) or not (c <= 2e+248): tmp = t_1 else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))))))) tmp = 0.0 if (c <= -1.5e+50) tmp = t_1; elseif (c <= 3e+53) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 * Float64(1.0 / t)) - 0.8333333333333334))))))); elseif ((c <= 3.4e+204) || !(c <= 2e+248)) tmp = t_1; else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334)))))); tmp = 0.0; if (c <= -1.5e+50) tmp = t_1; elseif (c <= 3e+53) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 * (1.0 / t)) - 0.8333333333333334)))))); elseif ((c <= 3.4e+204) || ~((c <= 2e+248))) tmp = t_1; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.5e+50], t$95$1, If[LessEqual[c, 3e+53], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 * N[(1.0 / t), $MachinePrecision]), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[c, 3.4e+204], N[Not[LessEqual[c, 2e+248]], $MachinePrecision]], t$95$1, 1.0]]]]
\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 -1.5 \cdot 10^{+50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 3 \cdot 10^{+53}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(0.6666666666666666 \cdot \frac{1}{t} - 0.8333333333333334\right)\right)}}\\
\mathbf{elif}\;c \leq 3.4 \cdot 10^{+204} \lor \neg \left(c \leq 2 \cdot 10^{+248}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if c < -1.4999999999999999e50 or 2.99999999999999998e53 < c < 3.4000000000000001e204 or 2.00000000000000009e248 < c Initial program 91.3%
Taylor expanded in t around inf 72.4%
+-commutative72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in c around inf 77.9%
+-commutative77.9%
Simplified77.9%
if -1.4999999999999999e50 < c < 2.99999999999999998e53Initial program 96.8%
exp-prod96.8%
Simplified97.4%
Taylor expanded in b around inf 76.8%
Taylor expanded in a around 0 73.8%
if 3.4000000000000001e204 < c < 2.00000000000000009e248Initial program 87.5%
exp-prod87.5%
Simplified100.0%
Taylor expanded in b around inf 39.1%
Taylor expanded in b around 0 15.4%
associate-*r*15.4%
associate-*r/15.4%
metadata-eval15.4%
+-commutative15.4%
associate-*r*15.4%
*-commutative15.4%
associate-*l*15.4%
metadata-eval15.4%
associate-*r/15.4%
+-commutative15.4%
*-commutative15.4%
associate-*r/15.4%
metadata-eval15.4%
+-commutative15.4%
associate--r+15.4%
sub-neg15.4%
sub-neg15.4%
Simplified15.4%
Taylor expanded in x around inf 87.9%
Final simplification75.7%
(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 -4.5e+49)
t_1
(if (<= c 1.02e-44)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ b t))))))
(if (or (<= c 2.6e+203) (not (<= c 1.35e+248))) t_1 1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334))))));
double tmp;
if (c <= -4.5e+49) {
tmp = t_1;
} else if (c <= 1.02e-44) {
tmp = x / (x + (y * exp((1.3333333333333333 * (b / t)))));
} else if ((c <= 2.6e+203) || !(c <= 1.35e+248)) {
tmp = t_1;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (c * (a + 0.8333333333333334d0))))))
if (c <= (-4.5d+49)) then
tmp = t_1
else if (c <= 1.02d-44) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * (b / t)))))
else if ((c <= 2.6d+203) .or. (.not. (c <= 1.35d+248))) then
tmp = t_1
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (c * (a + 0.8333333333333334))))));
double tmp;
if (c <= -4.5e+49) {
tmp = t_1;
} else if (c <= 1.02e-44) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * (b / t)))));
} else if ((c <= 2.6e+203) || !(c <= 1.35e+248)) {
tmp = t_1;
} else {
tmp = 1.0;
}
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 <= -4.5e+49: tmp = t_1 elif c <= 1.02e-44: tmp = x / (x + (y * math.exp((1.3333333333333333 * (b / t))))) elif (c <= 2.6e+203) or not (c <= 1.35e+248): tmp = t_1 else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + 0.8333333333333334))))))) tmp = 0.0 if (c <= -4.5e+49) tmp = t_1; elseif (c <= 1.02e-44) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(b / t)))))); elseif ((c <= 2.6e+203) || !(c <= 1.35e+248)) tmp = t_1; else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (c * (a + 0.8333333333333334)))))); tmp = 0.0; if (c <= -4.5e+49) tmp = t_1; elseif (c <= 1.02e-44) tmp = x / (x + (y * exp((1.3333333333333333 * (b / t))))); elseif ((c <= 2.6e+203) || ~((c <= 1.35e+248))) tmp = t_1; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.5e+49], t$95$1, If[LessEqual[c, 1.02e-44], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[c, 2.6e+203], N[Not[LessEqual[c, 1.35e+248]], $MachinePrecision]], t$95$1, 1.0]]]]
\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 -4.5 \cdot 10^{+49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1.02 \cdot 10^{-44}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b}{t}}}\\
\mathbf{elif}\;c \leq 2.6 \cdot 10^{+203} \lor \neg \left(c \leq 1.35 \cdot 10^{+248}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if c < -4.49999999999999982e49 or 1.0199999999999999e-44 < c < 2.5999999999999998e203 or 1.34999999999999994e248 < c Initial program 92.3%
Taylor expanded in t around inf 75.6%
+-commutative75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in c around inf 74.9%
+-commutative74.9%
Simplified74.9%
if -4.49999999999999982e49 < c < 1.0199999999999999e-44Initial program 96.5%
exp-prod96.5%
Simplified97.2%
Taylor expanded in b around inf 77.6%
Taylor expanded in a around 0 75.7%
Taylor expanded in t around 0 66.6%
*-commutative66.6%
Simplified66.6%
if 2.5999999999999998e203 < c < 1.34999999999999994e248Initial program 87.5%
exp-prod87.5%
Simplified100.0%
Taylor expanded in b around inf 39.1%
Taylor expanded in b around 0 15.4%
associate-*r*15.4%
associate-*r/15.4%
metadata-eval15.4%
+-commutative15.4%
associate-*r*15.4%
*-commutative15.4%
associate-*l*15.4%
metadata-eval15.4%
associate-*r/15.4%
+-commutative15.4%
*-commutative15.4%
associate-*r/15.4%
metadata-eval15.4%
+-commutative15.4%
associate--r+15.4%
sub-neg15.4%
sub-neg15.4%
Simplified15.4%
Taylor expanded in x around inf 87.9%
Final simplification70.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c -8.8e+49)
1.0
(if (<= c 3.05e-48)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ b t))))))
(if (or (<= c 1.08e+203) (not (<= c 4e+248)))
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -8.8e+49) {
tmp = 1.0;
} else if (c <= 3.05e-48) {
tmp = x / (x + (y * exp((1.3333333333333333 * (b / t)))));
} else if ((c <= 1.08e+203) || !(c <= 4e+248)) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= (-8.8d+49)) then
tmp = 1.0d0
else if (c <= 3.05d-48) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * (b / t)))))
else if ((c <= 1.08d+203) .or. (.not. (c <= 4d+248))) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= -8.8e+49) {
tmp = 1.0;
} else if (c <= 3.05e-48) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * (b / t)))));
} else if ((c <= 1.08e+203) || !(c <= 4e+248)) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= -8.8e+49: tmp = 1.0 elif c <= 3.05e-48: tmp = x / (x + (y * math.exp((1.3333333333333333 * (b / t))))) elif (c <= 1.08e+203) or not (c <= 4e+248): tmp = x / (x + (y * math.exp((2.0 * (a * c))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= -8.8e+49) tmp = 1.0; elseif (c <= 3.05e-48) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(b / t)))))); elseif ((c <= 1.08e+203) || !(c <= 4e+248)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= -8.8e+49) tmp = 1.0; elseif (c <= 3.05e-48) tmp = x / (x + (y * exp((1.3333333333333333 * (b / t))))); elseif ((c <= 1.08e+203) || ~((c <= 4e+248))) tmp = x / (x + (y * exp((2.0 * (a * c))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, -8.8e+49], 1.0, If[LessEqual[c, 3.05e-48], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(b / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[c, 1.08e+203], N[Not[LessEqual[c, 4e+248]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -8.8 \cdot 10^{+49}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 3.05 \cdot 10^{-48}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b}{t}}}\\
\mathbf{elif}\;c \leq 1.08 \cdot 10^{+203} \lor \neg \left(c \leq 4 \cdot 10^{+248}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if c < -8.8000000000000003e49 or 1.07999999999999998e203 < c < 4.00000000000000018e248Initial program 88.7%
exp-prod88.7%
Simplified92.5%
Taylor expanded in b around inf 44.1%
Taylor expanded in b around 0 29.9%
associate-*r*29.9%
associate-*r/29.9%
metadata-eval29.9%
+-commutative29.9%
associate-*r*29.9%
*-commutative29.9%
associate-*l*29.9%
metadata-eval29.9%
associate-*r/29.9%
+-commutative29.9%
*-commutative29.9%
associate-*r/29.9%
metadata-eval29.9%
+-commutative29.9%
associate--r+29.9%
sub-neg29.9%
sub-neg29.9%
Simplified29.9%
Taylor expanded in x around inf 76.2%
if -8.8000000000000003e49 < c < 3.0499999999999997e-48Initial program 96.5%
exp-prod96.5%
Simplified97.2%
Taylor expanded in b around inf 77.6%
Taylor expanded in a around 0 75.7%
Taylor expanded in t around 0 66.6%
*-commutative66.6%
Simplified66.6%
if 3.0499999999999997e-48 < c < 1.07999999999999998e203 or 4.00000000000000018e248 < c Initial program 94.9%
Taylor expanded in a around inf 72.0%
Taylor expanded in c around inf 59.0%
Final simplification66.8%
(FPCore (x y z t a b c) :precision binary64 (if (<= b -5.4e+20) (/ x (+ x (* y (exp (* b -1.6666666666666667))))) (if (<= b 4.6e-42) (/ x (+ x (* y (exp (* 2.0 (* a c)))))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -5.4e+20) {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
} else if (b <= 4.6e-42) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (b <= (-5.4d+20)) then
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
else if (b <= 4.6d-42) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (b <= -5.4e+20) {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
} else if (b <= 4.6e-42) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if b <= -5.4e+20: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) elif b <= 4.6e-42: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (b <= -5.4e+20) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); elseif (b <= 4.6e-42) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (b <= -5.4e+20) tmp = x / (x + (y * exp((b * -1.6666666666666667)))); elseif (b <= 4.6e-42) tmp = x / (x + (y * exp((2.0 * (a * c))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[b, -5.4e+20], N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.6e-42], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.4 \cdot 10^{+20}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\mathbf{elif}\;b \leq 4.6 \cdot 10^{-42}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -5.4e20Initial program 91.8%
exp-prod91.8%
Simplified93.9%
Taylor expanded in b around inf 82.2%
Taylor expanded in a around 0 82.2%
Taylor expanded in t around inf 60.5%
*-commutative60.5%
Simplified60.5%
if -5.4e20 < b < 4.60000000000000008e-42Initial program 96.7%
Taylor expanded in a around inf 80.7%
Taylor expanded in c around inf 58.7%
if 4.60000000000000008e-42 < b Initial program 92.7%
exp-prod92.7%
Simplified96.3%
Taylor expanded in b around inf 71.2%
Taylor expanded in b around 0 31.3%
associate-*r*31.3%
associate-*r/31.3%
metadata-eval31.3%
+-commutative31.3%
associate-*r*31.3%
*-commutative31.3%
associate-*l*31.3%
metadata-eval31.3%
associate-*r/31.3%
+-commutative31.3%
*-commutative31.3%
associate-*r/31.3%
metadata-eval31.3%
+-commutative31.3%
associate--r+31.3%
sub-neg31.3%
sub-neg31.3%
Simplified31.3%
Taylor expanded in x around inf 58.6%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 4.9e+73) 1.0 (/ x (+ x (* y (exp (* b -1.6666666666666667)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 4.9e+73) {
tmp = 1.0;
} else {
tmp = x / (x + (y * exp((b * -1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 4.9d+73) then
tmp = 1.0d0
else
tmp = x / (x + (y * exp((b * (-1.6666666666666667d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 4.9e+73) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp((b * -1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 4.9e+73: tmp = 1.0 else: tmp = x / (x + (y * math.exp((b * -1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 4.9e+73) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(b * -1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 4.9e+73) tmp = 1.0; else tmp = x / (x + (y * exp((b * -1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 4.9e+73], 1.0, N[(x / N[(x + N[(y * N[Exp[N[(b * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 4.9 \cdot 10^{+73}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{b \cdot -1.6666666666666667}}\\
\end{array}
\end{array}
if t < 4.8999999999999999e73Initial program 93.8%
exp-prod93.8%
Simplified93.8%
Taylor expanded in b around inf 63.6%
Taylor expanded in b around 0 33.9%
associate-*r*33.9%
associate-*r/33.9%
metadata-eval33.9%
+-commutative33.9%
associate-*r*33.9%
*-commutative33.9%
associate-*l*33.9%
metadata-eval33.9%
associate-*r/33.9%
+-commutative33.9%
*-commutative33.9%
associate-*r/33.9%
metadata-eval33.9%
+-commutative33.9%
associate--r+33.9%
sub-neg33.9%
sub-neg33.9%
Simplified33.9%
Taylor expanded in x around inf 53.4%
if 4.8999999999999999e73 < t Initial program 95.7%
exp-prod95.7%
Simplified100.0%
Taylor expanded in b around inf 62.7%
Taylor expanded in a around 0 62.9%
Taylor expanded in t around inf 62.9%
*-commutative62.9%
Simplified62.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 7.4e+292)
1.0
(/
x
(-
x
(/
(-
(* t (* y (+ -1.0 (* b (- 1.6666666666666667 (* a -2.0))))))
(* 1.3333333333333333 (* y b)))
t)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 7.4e+292) {
tmp = 1.0;
} else {
tmp = x / (x - (((t * (y * (-1.0 + (b * (1.6666666666666667 - (a * -2.0)))))) - (1.3333333333333333 * (y * b))) / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 7.4d+292) then
tmp = 1.0d0
else
tmp = x / (x - (((t * (y * ((-1.0d0) + (b * (1.6666666666666667d0 - (a * (-2.0d0))))))) - (1.3333333333333333d0 * (y * b))) / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 7.4e+292) {
tmp = 1.0;
} else {
tmp = x / (x - (((t * (y * (-1.0 + (b * (1.6666666666666667 - (a * -2.0)))))) - (1.3333333333333333 * (y * b))) / t));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 7.4e+292: tmp = 1.0 else: tmp = x / (x - (((t * (y * (-1.0 + (b * (1.6666666666666667 - (a * -2.0)))))) - (1.3333333333333333 * (y * b))) / t)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 7.4e+292) tmp = 1.0; else tmp = Float64(x / Float64(x - Float64(Float64(Float64(t * Float64(y * Float64(-1.0 + Float64(b * Float64(1.6666666666666667 - Float64(a * -2.0)))))) - Float64(1.3333333333333333 * Float64(y * b))) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 7.4e+292) tmp = 1.0; else tmp = x / (x - (((t * (y * (-1.0 + (b * (1.6666666666666667 - (a * -2.0)))))) - (1.3333333333333333 * (y * b))) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 7.4e+292], 1.0, N[(x / N[(x - N[(N[(N[(t * N[(y * N[(-1.0 + N[(b * N[(1.6666666666666667 - N[(a * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(1.3333333333333333 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 7.4 \cdot 10^{+292}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - \frac{t \cdot \left(y \cdot \left(-1 + b \cdot \left(1.6666666666666667 - a \cdot -2\right)\right)\right) - 1.3333333333333333 \cdot \left(y \cdot b\right)}{t}}\\
\end{array}
\end{array}
if t < 7.40000000000000019e292Initial program 95.1%
exp-prod95.1%
Simplified95.9%
Taylor expanded in b around inf 64.5%
Taylor expanded in b around 0 36.4%
associate-*r*36.4%
associate-*r/36.4%
metadata-eval36.4%
+-commutative36.4%
associate-*r*36.4%
*-commutative36.4%
associate-*l*36.4%
metadata-eval36.4%
associate-*r/36.4%
+-commutative36.4%
*-commutative36.4%
associate-*r/36.4%
metadata-eval36.4%
+-commutative36.4%
associate--r+36.4%
sub-neg36.4%
sub-neg36.4%
Simplified36.4%
Taylor expanded in x around inf 54.7%
if 7.40000000000000019e292 < t Initial program 80.0%
exp-prod80.0%
Simplified100.0%
Taylor expanded in b around inf 32.2%
Taylor expanded in b around 0 42.7%
associate-*r*42.7%
associate-*r/42.7%
metadata-eval42.7%
+-commutative42.7%
associate-*r*42.7%
*-commutative42.7%
associate-*l*42.7%
metadata-eval42.7%
associate-*r/42.7%
+-commutative42.7%
*-commutative42.7%
associate-*r/42.7%
metadata-eval42.7%
+-commutative42.7%
associate--r+42.7%
sub-neg42.7%
sub-neg42.7%
Simplified42.7%
Taylor expanded in t around 0 80.3%
Final simplification55.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 8e+291)
1.0
(/
x
(-
x
(*
b
(*
y
(+
1.6666666666666667
(* 2.0 (+ a (* 0.6666666666666666 (/ -1.0 t)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 8e+291) {
tmp = 1.0;
} else {
tmp = x / (x - (b * (y * (1.6666666666666667 + (2.0 * (a + (0.6666666666666666 * (-1.0 / t))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 8d+291) then
tmp = 1.0d0
else
tmp = x / (x - (b * (y * (1.6666666666666667d0 + (2.0d0 * (a + (0.6666666666666666d0 * ((-1.0d0) / t))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 8e+291) {
tmp = 1.0;
} else {
tmp = x / (x - (b * (y * (1.6666666666666667 + (2.0 * (a + (0.6666666666666666 * (-1.0 / t))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 8e+291: tmp = 1.0 else: tmp = x / (x - (b * (y * (1.6666666666666667 + (2.0 * (a + (0.6666666666666666 * (-1.0 / t)))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 8e+291) tmp = 1.0; else tmp = Float64(x / Float64(x - Float64(b * Float64(y * Float64(1.6666666666666667 + Float64(2.0 * Float64(a + Float64(0.6666666666666666 * Float64(-1.0 / t))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 8e+291) tmp = 1.0; else tmp = x / (x - (b * (y * (1.6666666666666667 + (2.0 * (a + (0.6666666666666666 * (-1.0 / t)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 8e+291], 1.0, N[(x / N[(x - N[(b * N[(y * N[(1.6666666666666667 + N[(2.0 * N[(a + N[(0.6666666666666666 * N[(-1.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 8 \cdot 10^{+291}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x - b \cdot \left(y \cdot \left(1.6666666666666667 + 2 \cdot \left(a + 0.6666666666666666 \cdot \frac{-1}{t}\right)\right)\right)}\\
\end{array}
\end{array}
if t < 7.9999999999999997e291Initial program 95.1%
exp-prod95.1%
Simplified95.9%
Taylor expanded in b around inf 64.5%
Taylor expanded in b around 0 36.4%
associate-*r*36.4%
associate-*r/36.4%
metadata-eval36.4%
+-commutative36.4%
associate-*r*36.4%
*-commutative36.4%
associate-*l*36.4%
metadata-eval36.4%
associate-*r/36.4%
+-commutative36.4%
*-commutative36.4%
associate-*r/36.4%
metadata-eval36.4%
+-commutative36.4%
associate--r+36.4%
sub-neg36.4%
sub-neg36.4%
Simplified36.4%
Taylor expanded in x around inf 54.7%
if 7.9999999999999997e291 < t Initial program 80.0%
exp-prod80.0%
Simplified100.0%
Taylor expanded in b around inf 32.2%
Taylor expanded in b around 0 42.7%
associate-*r*42.7%
associate-*r/42.7%
metadata-eval42.7%
+-commutative42.7%
associate-*r*42.7%
*-commutative42.7%
associate-*l*42.7%
metadata-eval42.7%
associate-*r/42.7%
+-commutative42.7%
*-commutative42.7%
associate-*r/42.7%
metadata-eval42.7%
+-commutative42.7%
associate--r+42.7%
sub-neg42.7%
sub-neg42.7%
Simplified42.7%
Taylor expanded in b around inf 61.3%
Final simplification55.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.5%
exp-prod94.5%
Simplified96.1%
Taylor expanded in b around inf 63.3%
Taylor expanded in b around 0 36.6%
associate-*r*36.6%
associate-*r/36.6%
metadata-eval36.6%
+-commutative36.6%
associate-*r*36.6%
*-commutative36.6%
associate-*l*36.6%
metadata-eval36.6%
associate-*r/36.6%
+-commutative36.6%
*-commutative36.6%
associate-*r/36.6%
metadata-eval36.6%
+-commutative36.6%
associate--r+36.6%
sub-neg36.6%
sub-neg36.6%
Simplified36.6%
Taylor expanded in x around inf 53.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* z (sqrt (+ t a)))) (t_2 (- a (/ 5.0 6.0))))
(if (< t -2.118326644891581e-50)
(/
x
(+
x
(* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b)))))))
(if (< t 5.196588770651547e-123)
(/
x
(+
x
(*
y
(exp
(*
2.0
(/
(-
(* t_1 (* (* 3.0 t) t_2))
(*
(- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0)
(* t_2 (* (- b c) t))))
(* (* (* t t) 3.0) t_2)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ t_1 t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = z * sqrt((t + a));
double t_2 = a - (5.0 / 6.0);
double tmp;
if (t < -2.118326644891581e-50) {
tmp = x / (x + (y * exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b))))));
} else if (t < 5.196588770651547e-123) {
tmp = x / (x + (y * exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * sqrt((t + a))
t_2 = a - (5.0d0 / 6.0d0)
if (t < (-2.118326644891581d-50)) then
tmp = x / (x + (y * exp((2.0d0 * (((a * c) + (0.8333333333333334d0 * c)) - (a * b))))))
else if (t < 5.196588770651547d-123) then
tmp = x / (x + (y * exp((2.0d0 * (((t_1 * ((3.0d0 * t) * t_2)) - (((((5.0d0 / 6.0d0) + a) * (3.0d0 * t)) - 2.0d0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0d0) * t_2))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((t_1 / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = z * Math.sqrt((t + a));
double t_2 = a - (5.0 / 6.0);
double tmp;
if (t < -2.118326644891581e-50) {
tmp = x / (x + (y * Math.exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b))))));
} else if (t < 5.196588770651547e-123) {
tmp = x / (x + (y * Math.exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = z * math.sqrt((t + a)) t_2 = a - (5.0 / 6.0) tmp = 0 if t < -2.118326644891581e-50: tmp = x / (x + (y * math.exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b)))))) elif t < 5.196588770651547e-123: tmp = x / (x + (y * math.exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2)))))) else: tmp = x / (x + (y * math.exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(z * sqrt(Float64(t + a))) t_2 = Float64(a - Float64(5.0 / 6.0)) tmp = 0.0 if (t < -2.118326644891581e-50) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(a * c) + Float64(0.8333333333333334 * c)) - Float64(a * b))))))); elseif (t < 5.196588770651547e-123) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(t_1 * Float64(Float64(3.0 * t) * t_2)) - Float64(Float64(Float64(Float64(Float64(5.0 / 6.0) + a) * Float64(3.0 * t)) - 2.0) * Float64(t_2 * Float64(Float64(b - c) * t)))) / Float64(Float64(Float64(t * t) * 3.0) * t_2))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(t_1 / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = z * sqrt((t + a)); t_2 = a - (5.0 / 6.0); tmp = 0.0; if (t < -2.118326644891581e-50) tmp = x / (x + (y * exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b)))))); elseif (t < 5.196588770651547e-123) tmp = x / (x + (y * exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2)))))); else tmp = x / (x + (y * exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a - N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -2.118326644891581e-50], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(a * c), $MachinePrecision] + N[(0.8333333333333334 * c), $MachinePrecision]), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[t, 5.196588770651547e-123], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(t$95$1 * N[(N[(3.0 * t), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(N[(N[(5.0 / 6.0), $MachinePrecision] + a), $MachinePrecision] * N[(3.0 * t), $MachinePrecision]), $MachinePrecision] - 2.0), $MachinePrecision] * N[(t$95$2 * N[(N[(b - c), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(t * t), $MachinePrecision] * 3.0), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(t$95$1 / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \sqrt{t + a}\\
t_2 := a - \frac{5}{6}\\
\mathbf{if}\;t < -2.118326644891581 \cdot 10^{-50}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a \cdot c + 0.8333333333333334 \cdot c\right) - a \cdot b\right)}}\\
\mathbf{elif}\;t < 5.196588770651547 \cdot 10^{-123}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{t\_1 \cdot \left(\left(3 \cdot t\right) \cdot t\_2\right) - \left(\left(\frac{5}{6} + a\right) \cdot \left(3 \cdot t\right) - 2\right) \cdot \left(t\_2 \cdot \left(\left(b - c\right) \cdot t\right)\right)}{\left(\left(t \cdot t\right) \cdot 3\right) \cdot t\_2}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{t\_1}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}\\
\end{array}
\end{array}
herbie shell --seed 2024111
(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)))))))))))