
(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 27 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
(- b c)
(+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a))
(* (sqrt (+ t a)) (/ z t))))
x)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / fma(y, pow(exp(2.0), fma((b - c), ((0.6666666666666666 / t) + (-0.8333333333333334 - a)), (sqrt((t + a)) * (z / t)))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(Float64(b - c), Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a)), Float64(sqrt(Float64(t + a)) * Float64(z / t)))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(b - c), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision] + N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(b - c, \frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right), \sqrt{t + a} \cdot \frac{z}{t}\right)\right)}, x\right)}
\end{array}
Initial program 95.0%
+-commutative95.0%
fma-def95.0%
Simplified98.9%
Final simplification98.9%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
(sqrt (+ t a))
(/ z t)
(* (- b c) (- (+ (/ 0.6666666666666666 t) -0.8333333333333334) a))))
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(sqrt((t + a)), (z / t), ((b - c) * (((0.6666666666666666 / t) + -0.8333333333333334) - a)))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(sqrt(Float64(t + a)), Float64(z / t), Float64(Float64(b - c) * Float64(Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334) - a)))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(\sqrt{t + a}, \frac{z}{t}, \left(b - c\right) \cdot \left(\left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right) - a\right)\right)\right)}, x\right)}
\end{array}
Initial program 95.0%
+-commutative95.0%
fma-def95.0%
Simplified98.8%
Final simplification98.8%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(+
(/ z (/ t (sqrt (+ t a))))
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * pow(exp(2.0), ((z / (t / sqrt((t + a)))) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))))));
}
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 / (t / sqrt((t + a)))) + ((b - c) * ((2.0d0 / (t * 3.0d0)) - (a + 0.8333333333333334d0)))))))
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.pow(Math.exp(2.0), ((z / (t / Math.sqrt((t + a)))) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.pow(math.exp(2.0), ((z / (t / math.sqrt((t + a)))) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(Float64(z / Float64(t / sqrt(Float64(t + a)))) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334)))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * (exp(2.0) ^ ((z / (t / sqrt((t + a)))) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(z / N[(t / N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(\frac{z}{\frac{t}{\sqrt{t + a}}} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\right)}}
\end{array}
Initial program 95.0%
exp-prod95.0%
associate-/l*97.7%
metadata-eval97.7%
Simplified97.7%
Final simplification97.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 1.95e+251)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(/ (* (sqrt (+ t a)) z) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a 0.8333333333333334)))))))))
(/ x (+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.95e+251) {
tmp = x / (x + (y * exp((2.0 * (((sqrt((t + a)) * z) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 1.95d+251) then
tmp = x / (x + (y * exp((2.0d0 * (((sqrt((t + a)) * z) / t) + ((b - c) * ((2.0d0 / (t * 3.0d0)) - (a + 0.8333333333333334d0))))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.95e+251) {
tmp = x / (x + (y * Math.exp((2.0 * (((Math.sqrt((t + a)) * z) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334))))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1.95e+251: tmp = x / (x + (y * math.exp((2.0 * (((math.sqrt((t + a)) * z) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1.95e+251) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(sqrt(Float64(t + a)) * z) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + 0.8333333333333334))))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 1.95e+251) tmp = x / (x + (y * exp((2.0 * (((sqrt((t + a)) * z) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + 0.8333333333333334)))))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 1.95e+251], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.95 \cdot 10^{+251}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{\sqrt{t + a} \cdot z}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < 1.94999999999999988e251Initial program 96.5%
if 1.94999999999999988e251 < t Initial program 85.3%
Taylor expanded in t around inf 100.0%
mul-1-neg100.0%
distribute-rgt-neg-in100.0%
distribute-neg-in100.0%
metadata-eval100.0%
sub-neg100.0%
Simplified100.0%
Final simplification96.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 2e-283)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 3e+108)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (- b c) (- (/ 0.6666666666666666 t) 0.8333333333333334))))))))
(/ x (+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2e-283) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 3e+108) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 2d-283) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 3d+108) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((b - c) * ((0.6666666666666666d0 / t) - 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2e-283) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 3e+108) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 2e-283: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 3e+108: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 2e-283) 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 <= 3e+108) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(b - c) * Float64(Float64(0.6666666666666666 / t) - 0.8333333333333334)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 2e-283) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 3e+108) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 2e-283], 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, 3e+108], 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[(b - c), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2 \cdot 10^{-283}:\\
\;\;\;\;\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 3 \cdot 10^{+108}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(b - c\right) \cdot \left(\frac{0.6666666666666666}{t} - 0.8333333333333334\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < 1.99999999999999989e-283Initial program 96.9%
Taylor expanded in t around 0 95.4%
if 1.99999999999999989e-283 < t < 2.99999999999999984e108Initial program 97.1%
Taylor expanded in a around 0 87.0%
*-commutative87.0%
associate-*r/87.0%
metadata-eval87.0%
Simplified87.0%
if 2.99999999999999984e108 < t Initial program 91.4%
Taylor expanded in t around inf 93.6%
mul-1-neg93.6%
distribute-rgt-neg-in93.6%
distribute-neg-in93.6%
metadata-eval93.6%
sub-neg93.6%
Simplified93.6%
Final simplification91.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 3.9e-141)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 7.5e-17)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (+ a (- 0.8333333333333334 (/ 0.6666666666666666 t)))))))))
(/ x (+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 3.9e-141) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 7.5e-17) {
tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 - (0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 3.9d-141) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 7.5d-17) then
tmp = x / (x + (y * exp((2.0d0 * (c * (a + (0.8333333333333334d0 - (0.6666666666666666d0 / t))))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 3.9e-141) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 7.5e-17) {
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 - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 3.9e-141: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 7.5e-17: 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 - c) * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 3.9e-141) 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-17) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 - Float64(0.6666666666666666 / t))))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 3.9e-141) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 7.5e-17) tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 - (0.6666666666666666 / t)))))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 3.9e-141], 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-17], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 3.9 \cdot 10^{-141}:\\
\;\;\;\;\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^{-17}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 - \frac{0.6666666666666666}{t}\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < 3.8999999999999997e-141Initial program 95.8%
Taylor expanded in t around 0 90.7%
if 3.8999999999999997e-141 < t < 7.49999999999999984e-17Initial program 100.0%
Taylor expanded in c around inf 65.9%
+-commutative65.9%
associate-*r/65.9%
metadata-eval65.9%
associate--l+65.9%
Simplified65.9%
if 7.49999999999999984e-17 < t Initial program 93.1%
Taylor expanded in t around inf 92.4%
mul-1-neg92.4%
distribute-rgt-neg-in92.4%
distribute-neg-in92.4%
metadata-eval92.4%
sub-neg92.4%
Simplified92.4%
Final simplification88.2%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= b -3.3e+47) (not (<= b 5.1)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
c
(+
a
(/
(- 0.6944444444444444 (/ (/ 0.4444444444444444 t) t))
(+ (/ 0.6666666666666666 t) 0.8333333333333334)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -3.3e+47) || !(b <= 5.1)) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (c * (a + ((0.6944444444444444 - ((0.4444444444444444 / t) / t)) / ((0.6666666666666666 / t) + 0.8333333333333334))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b <= (-3.3d+47)) .or. (.not. (b <= 5.1d0))) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * (c * (a + ((0.6944444444444444d0 - ((0.4444444444444444d0 / t) / t)) / ((0.6666666666666666d0 / t) + 0.8333333333333334d0))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -3.3e+47) || !(b <= 5.1)) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + ((0.6944444444444444 - ((0.4444444444444444 / t) / t)) / ((0.6666666666666666 / t) + 0.8333333333333334))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -3.3e+47) or not (b <= 5.1): tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * (a + ((0.6944444444444444 - ((0.4444444444444444 / t) / t)) / ((0.6666666666666666 / t) + 0.8333333333333334)))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -3.3e+47) || !(b <= 5.1)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(Float64(0.6944444444444444 - Float64(Float64(0.4444444444444444 / t) / t)) / Float64(Float64(0.6666666666666666 / t) + 0.8333333333333334))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -3.3e+47) || ~((b <= 5.1))) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * (c * (a + ((0.6944444444444444 - ((0.4444444444444444 / t) / t)) / ((0.6666666666666666 / t) + 0.8333333333333334)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -3.3e+47], N[Not[LessEqual[b, 5.1]], $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], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(N[(0.6944444444444444 - N[(N[(0.4444444444444444 / t), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(0.6666666666666666 / t), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.3 \cdot 10^{+47} \lor \neg \left(b \leq 5.1\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \frac{0.6944444444444444 - \frac{\frac{0.4444444444444444}{t}}{t}}{\frac{0.6666666666666666}{t} + 0.8333333333333334}\right)\right)}}\\
\end{array}
\end{array}
if b < -3.2999999999999999e47 or 5.0999999999999996 < b Initial program 94.1%
Taylor expanded in b around inf 89.1%
*-commutative89.1%
associate-*r/89.1%
metadata-eval89.1%
+-commutative89.1%
Simplified89.1%
if -3.2999999999999999e47 < b < 5.0999999999999996Initial program 95.8%
Taylor expanded in c around inf 80.0%
+-commutative80.0%
associate-*r/80.0%
metadata-eval80.0%
associate--l+80.0%
Simplified80.0%
flip--80.7%
metadata-eval80.7%
Applied egg-rr80.7%
associate-*l/80.7%
associate-*r/80.7%
metadata-eval80.7%
Simplified80.7%
Final simplification84.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b))))))))
(t_2 (/ x (+ x (* y (exp (* 2.0 (/ (* b 0.6666666666666666) t))))))))
(if (<= t -1.3e-301)
t_1
(if (<= t 1.32e-138)
t_2
(if (<= t 1.85e-106)
1.0
(if (<= t 1.5e-28)
t_2
(if (or (<= t 5.2e+227) (not (<= t 1e+283)))
(/ x (+ x (* y (exp (* 2.0 (* (- b c) -0.8333333333333334))))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (a * (c - b))))));
double t_2 = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t)))));
double tmp;
if (t <= -1.3e-301) {
tmp = t_1;
} else if (t <= 1.32e-138) {
tmp = t_2;
} else if (t <= 1.85e-106) {
tmp = 1.0;
} else if (t <= 1.5e-28) {
tmp = t_2;
} else if ((t <= 5.2e+227) || !(t <= 1e+283)) {
tmp = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334)))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
t_2 = x / (x + (y * exp((2.0d0 * ((b * 0.6666666666666666d0) / t)))))
if (t <= (-1.3d-301)) then
tmp = t_1
else if (t <= 1.32d-138) then
tmp = t_2
else if (t <= 1.85d-106) then
tmp = 1.0d0
else if (t <= 1.5d-28) then
tmp = t_2
else if ((t <= 5.2d+227) .or. (.not. (t <= 1d+283))) then
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * (-0.8333333333333334d0))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double t_2 = x / (x + (y * Math.exp((2.0 * ((b * 0.6666666666666666) / t)))));
double tmp;
if (t <= -1.3e-301) {
tmp = t_1;
} else if (t <= 1.32e-138) {
tmp = t_2;
} else if (t <= 1.85e-106) {
tmp = 1.0;
} else if (t <= 1.5e-28) {
tmp = t_2;
} else if ((t <= 5.2e+227) || !(t <= 1e+283)) {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * -0.8333333333333334)))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) t_2 = x / (x + (y * math.exp((2.0 * ((b * 0.6666666666666666) / t))))) tmp = 0 if t <= -1.3e-301: tmp = t_1 elif t <= 1.32e-138: tmp = t_2 elif t <= 1.85e-106: tmp = 1.0 elif t <= 1.5e-28: tmp = t_2 elif (t <= 5.2e+227) or not (t <= 1e+283): tmp = x / (x + (y * math.exp((2.0 * ((b - c) * -0.8333333333333334))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b * 0.6666666666666666) / t)))))) tmp = 0.0 if (t <= -1.3e-301) tmp = t_1; elseif (t <= 1.32e-138) tmp = t_2; elseif (t <= 1.85e-106) tmp = 1.0; elseif (t <= 1.5e-28) tmp = t_2; elseif ((t <= 5.2e+227) || !(t <= 1e+283)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * -0.8333333333333334)))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (a * (c - b)))))); t_2 = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t))))); tmp = 0.0; if (t <= -1.3e-301) tmp = t_1; elseif (t <= 1.32e-138) tmp = t_2; elseif (t <= 1.85e-106) tmp = 1.0; elseif (t <= 1.5e-28) tmp = t_2; elseif ((t <= 5.2e+227) || ~((t <= 1e+283))) tmp = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b * 0.6666666666666666), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.3e-301], t$95$1, If[LessEqual[t, 1.32e-138], t$95$2, If[LessEqual[t, 1.85e-106], 1.0, If[LessEqual[t, 1.5e-28], t$95$2, If[Or[LessEqual[t, 5.2e+227], N[Not[LessEqual[t, 1e+283]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * -0.8333333333333334), $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(a \cdot \left(c - b\right)\right)}}\\
t_2 := \frac{x}{x + y \cdot e^{2 \cdot \frac{b \cdot 0.6666666666666666}{t}}}\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{-301}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.32 \cdot 10^{-138}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{-106}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{-28}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+227} \lor \neg \left(t \leq 10^{+283}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot -0.8333333333333334\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -1.2999999999999999e-301 or 5.19999999999999964e227 < t < 9.99999999999999955e282Initial program 94.4%
Taylor expanded in a around inf 79.6%
if -1.2999999999999999e-301 < t < 1.32e-138 or 1.8499999999999999e-106 < t < 1.50000000000000001e-28Initial program 95.2%
Taylor expanded in t around 0 71.5%
Taylor expanded in b around inf 70.7%
*-commutative70.7%
Simplified70.7%
if 1.32e-138 < t < 1.8499999999999999e-106Initial program 100.0%
Taylor expanded in a around inf 51.5%
Taylor expanded in a around 0 27.4%
Taylor expanded in x around inf 75.8%
if 1.50000000000000001e-28 < t < 5.19999999999999964e227 or 9.99999999999999955e282 < t Initial program 95.1%
Taylor expanded in t around inf 91.3%
mul-1-neg91.3%
distribute-rgt-neg-in91.3%
distribute-neg-in91.3%
metadata-eval91.3%
sub-neg91.3%
Simplified91.3%
Taylor expanded in a around 0 85.5%
Final simplification79.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= t -6.5e-301)
t_1
(if (<= t 4.8e-136)
(/ x (+ x (* y (exp (* 2.0 (/ (* b 0.6666666666666666) t))))))
(if (<= t 1.85e-106)
1.0
(if (<= t 2.4e-17)
(/ x (+ x (* y (exp (* 2.0 (/ (* c -0.6666666666666666) t))))))
(if (or (<= t 5.9e+227) (not (<= t 6e+282)))
(/ x (+ x (* y (exp (* 2.0 (* (- b c) -0.8333333333333334))))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= -6.5e-301) {
tmp = t_1;
} else if (t <= 4.8e-136) {
tmp = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t)))));
} else if (t <= 1.85e-106) {
tmp = 1.0;
} else if (t <= 2.4e-17) {
tmp = x / (x + (y * exp((2.0 * ((c * -0.6666666666666666) / t)))));
} else if ((t <= 5.9e+227) || !(t <= 6e+282)) {
tmp = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334)))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
if (t <= (-6.5d-301)) then
tmp = t_1
else if (t <= 4.8d-136) then
tmp = x / (x + (y * exp((2.0d0 * ((b * 0.6666666666666666d0) / t)))))
else if (t <= 1.85d-106) then
tmp = 1.0d0
else if (t <= 2.4d-17) then
tmp = x / (x + (y * exp((2.0d0 * ((c * (-0.6666666666666666d0)) / t)))))
else if ((t <= 5.9d+227) .or. (.not. (t <= 6d+282))) then
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * (-0.8333333333333334d0))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= -6.5e-301) {
tmp = t_1;
} else if (t <= 4.8e-136) {
tmp = x / (x + (y * Math.exp((2.0 * ((b * 0.6666666666666666) / t)))));
} else if (t <= 1.85e-106) {
tmp = 1.0;
} else if (t <= 2.4e-17) {
tmp = x / (x + (y * Math.exp((2.0 * ((c * -0.6666666666666666) / t)))));
} else if ((t <= 5.9e+227) || !(t <= 6e+282)) {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * -0.8333333333333334)))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) tmp = 0 if t <= -6.5e-301: tmp = t_1 elif t <= 4.8e-136: tmp = x / (x + (y * math.exp((2.0 * ((b * 0.6666666666666666) / t))))) elif t <= 1.85e-106: tmp = 1.0 elif t <= 2.4e-17: tmp = x / (x + (y * math.exp((2.0 * ((c * -0.6666666666666666) / t))))) elif (t <= 5.9e+227) or not (t <= 6e+282): tmp = x / (x + (y * math.exp((2.0 * ((b - c) * -0.8333333333333334))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))) tmp = 0.0 if (t <= -6.5e-301) tmp = t_1; elseif (t <= 4.8e-136) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b * 0.6666666666666666) / t)))))); elseif (t <= 1.85e-106) tmp = 1.0; elseif (t <= 2.4e-17) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c * -0.6666666666666666) / t)))))); elseif ((t <= 5.9e+227) || !(t <= 6e+282)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * -0.8333333333333334)))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (a * (c - b)))))); tmp = 0.0; if (t <= -6.5e-301) tmp = t_1; elseif (t <= 4.8e-136) tmp = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t))))); elseif (t <= 1.85e-106) tmp = 1.0; elseif (t <= 2.4e-17) tmp = x / (x + (y * exp((2.0 * ((c * -0.6666666666666666) / t))))); elseif ((t <= 5.9e+227) || ~((t <= 6e+282))) tmp = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.5e-301], t$95$1, If[LessEqual[t, 4.8e-136], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b * 0.6666666666666666), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.85e-106], 1.0, If[LessEqual[t, 2.4e-17], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c * -0.6666666666666666), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 5.9e+227], N[Not[LessEqual[t, 6e+282]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * -0.8333333333333334), $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(a \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq -6.5 \cdot 10^{-301}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{-136}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{b \cdot 0.6666666666666666}{t}}}\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{-106}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-17}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{c \cdot -0.6666666666666666}{t}}}\\
\mathbf{elif}\;t \leq 5.9 \cdot 10^{+227} \lor \neg \left(t \leq 6 \cdot 10^{+282}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot -0.8333333333333334\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -6.49999999999999991e-301 or 5.9000000000000001e227 < t < 5.99999999999999994e282Initial program 94.4%
Taylor expanded in a around inf 79.6%
if -6.49999999999999991e-301 < t < 4.7999999999999997e-136Initial program 92.3%
Taylor expanded in t around 0 84.7%
Taylor expanded in b around inf 75.1%
*-commutative75.1%
Simplified75.1%
if 4.7999999999999997e-136 < t < 1.8499999999999999e-106Initial program 100.0%
Taylor expanded in a around inf 51.5%
Taylor expanded in a around 0 27.4%
Taylor expanded in x around inf 75.8%
if 1.8499999999999999e-106 < t < 2.39999999999999986e-17Initial program 100.0%
Taylor expanded in t around 0 45.2%
Taylor expanded in c around inf 66.0%
*-commutative66.0%
Simplified66.0%
if 2.39999999999999986e-17 < t < 5.9000000000000001e227 or 5.99999999999999994e282 < t Initial program 95.0%
Taylor expanded in t around inf 92.1%
mul-1-neg92.1%
distribute-rgt-neg-in92.1%
distribute-neg-in92.1%
metadata-eval92.1%
sub-neg92.1%
Simplified92.1%
Taylor expanded in a around 0 86.2%
Final simplification80.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= t 1.8e-308)
t_1
(if (<= t 1.15e-109)
1.0
(if (<= t 1.05e-61)
t_1
(if (<= t 2.2e-39)
1.0
(if (<= t 1900000000.0)
(/ x (+ x (* y (exp (* 2.0 (* c 0.8333333333333334))))))
(if (<= t 2.55e+210)
(/ x (+ x (* y (exp (* 2.0 (* b -0.8333333333333334))))))
t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= 1.8e-308) {
tmp = t_1;
} else if (t <= 1.15e-109) {
tmp = 1.0;
} else if (t <= 1.05e-61) {
tmp = t_1;
} else if (t <= 2.2e-39) {
tmp = 1.0;
} else if (t <= 1900000000.0) {
tmp = x / (x + (y * exp((2.0 * (c * 0.8333333333333334)))));
} else if (t <= 2.55e+210) {
tmp = x / (x + (y * exp((2.0 * (b * -0.8333333333333334)))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
if (t <= 1.8d-308) then
tmp = t_1
else if (t <= 1.15d-109) then
tmp = 1.0d0
else if (t <= 1.05d-61) then
tmp = t_1
else if (t <= 2.2d-39) then
tmp = 1.0d0
else if (t <= 1900000000.0d0) then
tmp = x / (x + (y * exp((2.0d0 * (c * 0.8333333333333334d0)))))
else if (t <= 2.55d+210) then
tmp = x / (x + (y * exp((2.0d0 * (b * (-0.8333333333333334d0))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= 1.8e-308) {
tmp = t_1;
} else if (t <= 1.15e-109) {
tmp = 1.0;
} else if (t <= 1.05e-61) {
tmp = t_1;
} else if (t <= 2.2e-39) {
tmp = 1.0;
} else if (t <= 1900000000.0) {
tmp = x / (x + (y * Math.exp((2.0 * (c * 0.8333333333333334)))));
} else if (t <= 2.55e+210) {
tmp = x / (x + (y * Math.exp((2.0 * (b * -0.8333333333333334)))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) tmp = 0 if t <= 1.8e-308: tmp = t_1 elif t <= 1.15e-109: tmp = 1.0 elif t <= 1.05e-61: tmp = t_1 elif t <= 2.2e-39: tmp = 1.0 elif t <= 1900000000.0: tmp = x / (x + (y * math.exp((2.0 * (c * 0.8333333333333334))))) elif t <= 2.55e+210: tmp = x / (x + (y * math.exp((2.0 * (b * -0.8333333333333334))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))) tmp = 0.0 if (t <= 1.8e-308) tmp = t_1; elseif (t <= 1.15e-109) tmp = 1.0; elseif (t <= 1.05e-61) tmp = t_1; elseif (t <= 2.2e-39) tmp = 1.0; elseif (t <= 1900000000.0) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * 0.8333333333333334)))))); elseif (t <= 2.55e+210) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * -0.8333333333333334)))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (a * (c - b)))))); tmp = 0.0; if (t <= 1.8e-308) tmp = t_1; elseif (t <= 1.15e-109) tmp = 1.0; elseif (t <= 1.05e-61) tmp = t_1; elseif (t <= 2.2e-39) tmp = 1.0; elseif (t <= 1900000000.0) tmp = x / (x + (y * exp((2.0 * (c * 0.8333333333333334))))); elseif (t <= 2.55e+210) tmp = x / (x + (y * exp((2.0 * (b * -0.8333333333333334))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 1.8e-308], t$95$1, If[LessEqual[t, 1.15e-109], 1.0, If[LessEqual[t, 1.05e-61], t$95$1, If[LessEqual[t, 2.2e-39], 1.0, If[LessEqual[t, 1900000000.0], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * 0.8333333333333334), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.55e+210], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * -0.8333333333333334), $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(a \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq 1.8 \cdot 10^{-308}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-109}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{-61}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{-39}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1900000000:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot 0.8333333333333334\right)}}\\
\mathbf{elif}\;t \leq 2.55 \cdot 10^{+210}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot -0.8333333333333334\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < 1.7999999999999999e-308 or 1.1500000000000001e-109 < t < 1.05e-61 or 2.55e210 < t Initial program 95.4%
Taylor expanded in a around inf 76.1%
if 1.7999999999999999e-308 < t < 1.1500000000000001e-109 or 1.05e-61 < t < 2.20000000000000001e-39Initial program 93.5%
Taylor expanded in a around inf 26.7%
Taylor expanded in a around 0 24.7%
Taylor expanded in x around inf 57.9%
if 2.20000000000000001e-39 < t < 1.9e9Initial program 100.0%
Taylor expanded in t around inf 65.4%
mul-1-neg65.4%
distribute-rgt-neg-in65.4%
distribute-neg-in65.4%
metadata-eval65.4%
sub-neg65.4%
Simplified65.4%
Taylor expanded in a around 0 65.4%
Taylor expanded in b around 0 86.2%
if 1.9e9 < t < 2.55e210Initial program 94.4%
Taylor expanded in t around inf 90.3%
mul-1-neg90.3%
distribute-rgt-neg-in90.3%
distribute-neg-in90.3%
metadata-eval90.3%
sub-neg90.3%
Simplified90.3%
Taylor expanded in a around 0 86.2%
Taylor expanded in b around inf 73.4%
Final simplification72.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* (- b c) -0.8333333333333334)))))))
(t_2 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= a -0.85)
t_2
(if (<= a -1.1e-301)
t_1
(if (<= a 2.55e-250)
(/ x (+ x (* (* y c) (* 2.0 a))))
(if (<= a 9.5e-28)
t_1
(if (<= a 1e+43)
(/
x
(+
x
(-
y
(*
2.0
(*
(* y b)
(- a (+ (/ 0.6666666666666666 t) -0.8333333333333334)))))))
t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334)))));
double t_2 = x / (x + (y * exp((2.0 * (a * (c - b))))));
double tmp;
if (a <= -0.85) {
tmp = t_2;
} else if (a <= -1.1e-301) {
tmp = t_1;
} else if (a <= 2.55e-250) {
tmp = x / (x + ((y * c) * (2.0 * a)));
} else if (a <= 9.5e-28) {
tmp = t_1;
} else if (a <= 1e+43) {
tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((b - c) * (-0.8333333333333334d0))))))
t_2 = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
if (a <= (-0.85d0)) then
tmp = t_2
else if (a <= (-1.1d-301)) then
tmp = t_1
else if (a <= 2.55d-250) then
tmp = x / (x + ((y * c) * (2.0d0 * a)))
else if (a <= 9.5d-28) then
tmp = t_1
else if (a <= 1d+43) then
tmp = x / (x + (y - (2.0d0 * ((y * b) * (a - ((0.6666666666666666d0 / t) + (-0.8333333333333334d0)))))))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((b - c) * -0.8333333333333334)))));
double t_2 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double tmp;
if (a <= -0.85) {
tmp = t_2;
} else if (a <= -1.1e-301) {
tmp = t_1;
} else if (a <= 2.55e-250) {
tmp = x / (x + ((y * c) * (2.0 * a)));
} else if (a <= 9.5e-28) {
tmp = t_1;
} else if (a <= 1e+43) {
tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((b - c) * -0.8333333333333334))))) t_2 = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) tmp = 0 if a <= -0.85: tmp = t_2 elif a <= -1.1e-301: tmp = t_1 elif a <= 2.55e-250: tmp = x / (x + ((y * c) * (2.0 * a))) elif a <= 9.5e-28: tmp = t_1 elif a <= 1e+43: tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334)))))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * -0.8333333333333334)))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))) tmp = 0.0 if (a <= -0.85) tmp = t_2; elseif (a <= -1.1e-301) tmp = t_1; elseif (a <= 2.55e-250) tmp = Float64(x / Float64(x + Float64(Float64(y * c) * Float64(2.0 * a)))); elseif (a <= 9.5e-28) tmp = t_1; elseif (a <= 1e+43) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(Float64(y * b) * Float64(a - Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334))))))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((b - c) * -0.8333333333333334))))); t_2 = x / (x + (y * exp((2.0 * (a * (c - b)))))); tmp = 0.0; if (a <= -0.85) tmp = t_2; elseif (a <= -1.1e-301) tmp = t_1; elseif (a <= 2.55e-250) tmp = x / (x + ((y * c) * (2.0 * a))); elseif (a <= 9.5e-28) tmp = t_1; elseif (a <= 1e+43) tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334)))))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * -0.8333333333333334), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -0.85], t$95$2, If[LessEqual[a, -1.1e-301], t$95$1, If[LessEqual[a, 2.55e-250], N[(x / N[(x + N[(N[(y * c), $MachinePrecision] * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e-28], t$95$1, If[LessEqual[a, 1e+43], N[(x / N[(x + N[(y - N[(2.0 * N[(N[(y * b), $MachinePrecision] * N[(a - N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot -0.8333333333333334\right)}}\\
t_2 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;a \leq -0.85:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -1.1 \cdot 10^{-301}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.55 \cdot 10^{-250}:\\
\;\;\;\;\frac{x}{x + \left(y \cdot c\right) \cdot \left(2 \cdot a\right)}\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-28}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 10^{+43}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(\left(y \cdot b\right) \cdot \left(a - \left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -0.849999999999999978 or 1.00000000000000001e43 < a Initial program 92.5%
Taylor expanded in a around inf 82.4%
if -0.849999999999999978 < a < -1.1e-301 or 2.5500000000000001e-250 < a < 9.50000000000000001e-28Initial program 96.5%
Taylor expanded in t around inf 73.7%
mul-1-neg73.7%
distribute-rgt-neg-in73.7%
distribute-neg-in73.7%
metadata-eval73.7%
sub-neg73.7%
Simplified73.7%
Taylor expanded in a around 0 73.7%
if -1.1e-301 < a < 2.5500000000000001e-250Initial program 94.9%
Taylor expanded in c around inf 89.9%
+-commutative89.9%
associate-*r/89.9%
metadata-eval89.9%
associate--l+89.9%
Simplified89.9%
Taylor expanded in c around 0 54.2%
Taylor expanded in a around inf 49.5%
*-commutative49.5%
associate-*r*64.3%
associate-*l*64.3%
Simplified64.3%
if 9.50000000000000001e-28 < a < 1.00000000000000001e43Initial program 100.0%
Taylor expanded in b around inf 64.5%
*-commutative64.5%
associate-*r/64.5%
metadata-eval64.5%
+-commutative64.5%
Simplified64.5%
Taylor expanded in b around 0 62.1%
associate--r+62.1%
sub-neg62.1%
associate-*r/62.1%
metadata-eval62.1%
metadata-eval62.1%
*-commutative62.1%
Simplified62.1%
Final simplification75.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a)))))))))
(if (<= t -2.95e-301)
t_1
(if (<= t 8.5e-138)
(/ x (+ x (* y (exp (* 2.0 (/ (* b 0.6666666666666666) t))))))
(if (<= t 2e-106)
1.0
(if (<= t 8e-18)
(/ x (+ x (* y (exp (* 2.0 (/ (* c -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 * ((b - c) * (-0.8333333333333334 - a))))));
double tmp;
if (t <= -2.95e-301) {
tmp = t_1;
} else if (t <= 8.5e-138) {
tmp = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t)))));
} else if (t <= 2e-106) {
tmp = 1.0;
} else if (t <= 8e-18) {
tmp = x / (x + (y * exp((2.0 * ((c * -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 * ((b - c) * ((-0.8333333333333334d0) - a))))))
if (t <= (-2.95d-301)) then
tmp = t_1
else if (t <= 8.5d-138) then
tmp = x / (x + (y * exp((2.0d0 * ((b * 0.6666666666666666d0) / t)))))
else if (t <= 2d-106) then
tmp = 1.0d0
else if (t <= 8d-18) then
tmp = x / (x + (y * exp((2.0d0 * ((c * (-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 * ((b - c) * (-0.8333333333333334 - a))))));
double tmp;
if (t <= -2.95e-301) {
tmp = t_1;
} else if (t <= 8.5e-138) {
tmp = x / (x + (y * Math.exp((2.0 * ((b * 0.6666666666666666) / t)))));
} else if (t <= 2e-106) {
tmp = 1.0;
} else if (t <= 8e-18) {
tmp = x / (x + (y * Math.exp((2.0 * ((c * -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 * ((b - c) * (-0.8333333333333334 - a)))))) tmp = 0 if t <= -2.95e-301: tmp = t_1 elif t <= 8.5e-138: tmp = x / (x + (y * math.exp((2.0 * ((b * 0.6666666666666666) / t))))) elif t <= 2e-106: tmp = 1.0 elif t <= 8e-18: tmp = x / (x + (y * math.exp((2.0 * ((c * -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(Float64(b - c) * Float64(-0.8333333333333334 - a))))))) tmp = 0.0 if (t <= -2.95e-301) tmp = t_1; elseif (t <= 8.5e-138) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b * 0.6666666666666666) / t)))))); elseif (t <= 2e-106) tmp = 1.0; elseif (t <= 8e-18) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c * -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 * ((b - c) * (-0.8333333333333334 - a)))))); tmp = 0.0; if (t <= -2.95e-301) tmp = t_1; elseif (t <= 8.5e-138) tmp = x / (x + (y * exp((2.0 * ((b * 0.6666666666666666) / t))))); elseif (t <= 2e-106) tmp = 1.0; elseif (t <= 8e-18) tmp = x / (x + (y * exp((2.0 * ((c * -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[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.95e-301], t$95$1, If[LessEqual[t, 8.5e-138], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b * 0.6666666666666666), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e-106], 1.0, If[LessEqual[t, 8e-18], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c * -0.6666666666666666), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{if}\;t \leq -2.95 \cdot 10^{-301}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-138}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{b \cdot 0.6666666666666666}{t}}}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-106}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 8 \cdot 10^{-18}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{c \cdot -0.6666666666666666}{t}}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -2.9499999999999999e-301 or 8.0000000000000006e-18 < t Initial program 94.7%
Taylor expanded in t around inf 89.0%
mul-1-neg89.0%
distribute-rgt-neg-in89.0%
distribute-neg-in89.0%
metadata-eval89.0%
sub-neg89.0%
Simplified89.0%
if -2.9499999999999999e-301 < t < 8.50000000000000035e-138Initial program 92.3%
Taylor expanded in t around 0 84.7%
Taylor expanded in b around inf 75.1%
*-commutative75.1%
Simplified75.1%
if 8.50000000000000035e-138 < t < 1.99999999999999988e-106Initial program 100.0%
Taylor expanded in a around inf 51.5%
Taylor expanded in a around 0 27.4%
Taylor expanded in x around inf 75.8%
if 1.99999999999999988e-106 < t < 8.0000000000000006e-18Initial program 100.0%
Taylor expanded in t around 0 45.2%
Taylor expanded in c around inf 66.0%
*-commutative66.0%
Simplified66.0%
Final simplification84.2%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= t -5.2e-300) (not (<= t 8.5e-17)))
(/ x (+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -5.2e-300) || !(t <= 8.5e-17)) {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((t <= (-5.2d-300)) .or. (.not. (t <= 8.5d-17))) then
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -5.2e-300) || !(t <= 8.5e-17)) {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -5.2e-300) or not (t <= 8.5e-17): tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -5.2e-300) || !(t <= 8.5e-17)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((t <= -5.2e-300) || ~((t <= 8.5e-17))) tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -5.2e-300], N[Not[LessEqual[t, 8.5e-17]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.2 \cdot 10^{-300} \lor \neg \left(t \leq 8.5 \cdot 10^{-17}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if t < -5.19999999999999993e-300 or 8.5e-17 < t Initial program 94.7%
Taylor expanded in t around inf 89.0%
mul-1-neg89.0%
distribute-rgt-neg-in89.0%
distribute-neg-in89.0%
metadata-eval89.0%
sub-neg89.0%
Simplified89.0%
if -5.19999999999999993e-300 < t < 8.5e-17Initial program 95.8%
Taylor expanded in b around inf 69.4%
*-commutative69.4%
associate-*r/69.4%
metadata-eval69.4%
+-commutative69.4%
Simplified69.4%
Final simplification83.5%
(FPCore (x y z t a b c)
:precision binary64
(if (or (<= b -3.2e+47) (not (<= b 0.00135)))
(/
x
(+
x
(*
y
(exp
(* 2.0 (* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (+ a (- 0.8333333333333334 (/ 0.6666666666666666 t)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b <= -3.2e+47) || !(b <= 0.00135)) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 - (0.6666666666666666 / 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 ((b <= (-3.2d+47)) .or. (.not. (b <= 0.00135d0))) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * (c * (a + (0.8333333333333334d0 - (0.6666666666666666d0 / 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 ((b <= -3.2e+47) || !(b <= 0.00135)) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * (a + (0.8333333333333334 - (0.6666666666666666 / t))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b <= -3.2e+47) or not (b <= 0.00135): tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * (c * (a + (0.8333333333333334 - (0.6666666666666666 / t)))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((b <= -3.2e+47) || !(b <= 0.00135)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 - Float64(0.6666666666666666 / t))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b <= -3.2e+47) || ~((b <= 0.00135))) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 - (0.6666666666666666 / t)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[b, -3.2e+47], N[Not[LessEqual[b, 0.00135]], $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], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(0.8333333333333334 - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.2 \cdot 10^{+47} \lor \neg \left(b \leq 0.00135\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 - \frac{0.6666666666666666}{t}\right)\right)\right)}}\\
\end{array}
\end{array}
if b < -3.2e47 or 0.0013500000000000001 < b Initial program 94.1%
Taylor expanded in b around inf 89.1%
*-commutative89.1%
associate-*r/89.1%
metadata-eval89.1%
+-commutative89.1%
Simplified89.1%
if -3.2e47 < b < 0.0013500000000000001Initial program 95.8%
Taylor expanded in c around inf 80.0%
+-commutative80.0%
associate-*r/80.0%
metadata-eval80.0%
associate--l+80.0%
Simplified80.0%
Final simplification84.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* c 0.8333333333333334))))))))
(if (<= b -25000000000000.0)
(/ x (+ x (* y (exp (* 2.0 (* b -0.8333333333333334))))))
(if (<= b 9.5e-252)
t_1
(if (<= b 2.85e-177)
(/ x (+ x (* (* y c) (* 2.0 a))))
(if (<= b 3.1e+69) 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 * 0.8333333333333334)))));
double tmp;
if (b <= -25000000000000.0) {
tmp = x / (x + (y * exp((2.0 * (b * -0.8333333333333334)))));
} else if (b <= 9.5e-252) {
tmp = t_1;
} else if (b <= 2.85e-177) {
tmp = x / (x + ((y * c) * (2.0 * a)));
} else if (b <= 3.1e+69) {
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 * 0.8333333333333334d0)))))
if (b <= (-25000000000000.0d0)) then
tmp = x / (x + (y * exp((2.0d0 * (b * (-0.8333333333333334d0))))))
else if (b <= 9.5d-252) then
tmp = t_1
else if (b <= 2.85d-177) then
tmp = x / (x + ((y * c) * (2.0d0 * a)))
else if (b <= 3.1d+69) 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 * 0.8333333333333334)))));
double tmp;
if (b <= -25000000000000.0) {
tmp = x / (x + (y * Math.exp((2.0 * (b * -0.8333333333333334)))));
} else if (b <= 9.5e-252) {
tmp = t_1;
} else if (b <= 2.85e-177) {
tmp = x / (x + ((y * c) * (2.0 * a)));
} else if (b <= 3.1e+69) {
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 * 0.8333333333333334))))) tmp = 0 if b <= -25000000000000.0: tmp = x / (x + (y * math.exp((2.0 * (b * -0.8333333333333334))))) elif b <= 9.5e-252: tmp = t_1 elif b <= 2.85e-177: tmp = x / (x + ((y * c) * (2.0 * a))) elif b <= 3.1e+69: 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 * 0.8333333333333334)))))) tmp = 0.0 if (b <= -25000000000000.0) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * -0.8333333333333334)))))); elseif (b <= 9.5e-252) tmp = t_1; elseif (b <= 2.85e-177) tmp = Float64(x / Float64(x + Float64(Float64(y * c) * Float64(2.0 * a)))); elseif (b <= 3.1e+69) 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 * 0.8333333333333334))))); tmp = 0.0; if (b <= -25000000000000.0) tmp = x / (x + (y * exp((2.0 * (b * -0.8333333333333334))))); elseif (b <= 9.5e-252) tmp = t_1; elseif (b <= 2.85e-177) tmp = x / (x + ((y * c) * (2.0 * a))); elseif (b <= 3.1e+69) 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 * 0.8333333333333334), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -25000000000000.0], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * -0.8333333333333334), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.5e-252], t$95$1, If[LessEqual[b, 2.85e-177], N[(x / N[(x + N[(N[(y * c), $MachinePrecision] * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.1e+69], t$95$1, 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot 0.8333333333333334\right)}}\\
\mathbf{if}\;b \leq -25000000000000:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot -0.8333333333333334\right)}}\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{-252}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2.85 \cdot 10^{-177}:\\
\;\;\;\;\frac{x}{x + \left(y \cdot c\right) \cdot \left(2 \cdot a\right)}\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{+69}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -2.5e13Initial program 89.8%
Taylor expanded in t around inf 75.8%
mul-1-neg75.8%
distribute-rgt-neg-in75.8%
distribute-neg-in75.8%
metadata-eval75.8%
sub-neg75.8%
Simplified75.8%
Taylor expanded in a around 0 69.7%
Taylor expanded in b around inf 61.7%
if -2.5e13 < b < 9.4999999999999993e-252 or 2.8499999999999999e-177 < b < 3.0999999999999998e69Initial program 95.4%
Taylor expanded in t around inf 71.9%
mul-1-neg71.9%
distribute-rgt-neg-in71.9%
distribute-neg-in71.9%
metadata-eval71.9%
sub-neg71.9%
Simplified71.9%
Taylor expanded in a around 0 63.5%
Taylor expanded in b around 0 62.8%
if 9.4999999999999993e-252 < b < 2.8499999999999999e-177Initial program 100.0%
Taylor expanded in c around inf 72.4%
+-commutative72.4%
associate-*r/72.4%
metadata-eval72.4%
associate--l+72.4%
Simplified72.4%
Taylor expanded in c around 0 47.1%
Taylor expanded in a around inf 67.7%
*-commutative67.7%
associate-*r*67.7%
associate-*l*67.7%
Simplified67.7%
if 3.0999999999999998e69 < b Initial program 96.8%
Taylor expanded in a around inf 61.3%
Taylor expanded in a around 0 43.7%
Taylor expanded in x around inf 72.6%
Final simplification65.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a -4.9e-89)
1.0
(if (<= a -1.7e-218)
(/
x
(+
x
(-
y
(*
2.0
(* (* y b) (- a (+ (/ 0.6666666666666666 t) -0.8333333333333334)))))))
(if (<= a 1e+30)
1.0
(/ x (+ x (* y (exp (* 2.0 (* b -0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -4.9e-89) {
tmp = 1.0;
} else if (a <= -1.7e-218) {
tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else if (a <= 1e+30) {
tmp = 1.0;
} else {
tmp = x / (x + (y * exp((2.0 * (b * -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 (a <= (-4.9d-89)) then
tmp = 1.0d0
else if (a <= (-1.7d-218)) then
tmp = x / (x + (y - (2.0d0 * ((y * b) * (a - ((0.6666666666666666d0 / t) + (-0.8333333333333334d0)))))))
else if (a <= 1d+30) then
tmp = 1.0d0
else
tmp = x / (x + (y * exp((2.0d0 * (b * (-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 (a <= -4.9e-89) {
tmp = 1.0;
} else if (a <= -1.7e-218) {
tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else if (a <= 1e+30) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * -0.8333333333333334)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= -4.9e-89: tmp = 1.0 elif a <= -1.7e-218: tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334)))))) elif a <= 1e+30: tmp = 1.0 else: tmp = x / (x + (y * math.exp((2.0 * (b * -0.8333333333333334))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= -4.9e-89) tmp = 1.0; elseif (a <= -1.7e-218) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(Float64(y * b) * Float64(a - Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334))))))); elseif (a <= 1e+30) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * -0.8333333333333334)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= -4.9e-89) tmp = 1.0; elseif (a <= -1.7e-218) tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334)))))); elseif (a <= 1e+30) tmp = 1.0; else tmp = x / (x + (y * exp((2.0 * (b * -0.8333333333333334))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, -4.9e-89], 1.0, If[LessEqual[a, -1.7e-218], N[(x / N[(x + N[(y - N[(2.0 * N[(N[(y * b), $MachinePrecision] * N[(a - N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1e+30], 1.0, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * -0.8333333333333334), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.9 \cdot 10^{-89}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq -1.7 \cdot 10^{-218}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(\left(y \cdot b\right) \cdot \left(a - \left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{elif}\;a \leq 10^{+30}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot -0.8333333333333334\right)}}\\
\end{array}
\end{array}
if a < -4.9e-89 or -1.69999999999999993e-218 < a < 1e30Initial program 94.5%
Taylor expanded in a around inf 50.7%
Taylor expanded in a around 0 38.5%
Taylor expanded in x around inf 61.4%
if -4.9e-89 < a < -1.69999999999999993e-218Initial program 100.0%
Taylor expanded in b around inf 74.7%
*-commutative74.7%
associate-*r/74.7%
metadata-eval74.7%
+-commutative74.7%
Simplified74.7%
Taylor expanded in b around 0 66.4%
associate--r+66.4%
sub-neg66.4%
associate-*r/66.4%
metadata-eval66.4%
metadata-eval66.4%
*-commutative66.4%
Simplified66.4%
if 1e30 < a Initial program 94.5%
Taylor expanded in t around inf 80.7%
mul-1-neg80.7%
distribute-rgt-neg-in80.7%
distribute-neg-in80.7%
metadata-eval80.7%
sub-neg80.7%
Simplified80.7%
Taylor expanded in a around 0 74.5%
Taylor expanded in b around inf 60.5%
Final simplification61.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* c a))))))))
(if (<= b -2.9e+277)
t_1
(if (<= b -25000000000000.0)
(/ x (+ x (* y (exp (* 2.0 (* b -0.8333333333333334))))))
(if (<= b 520.0) 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)))));
double tmp;
if (b <= -2.9e+277) {
tmp = t_1;
} else if (b <= -25000000000000.0) {
tmp = x / (x + (y * exp((2.0 * (b * -0.8333333333333334)))));
} else if (b <= 520.0) {
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)))))
if (b <= (-2.9d+277)) then
tmp = t_1
else if (b <= (-25000000000000.0d0)) then
tmp = x / (x + (y * exp((2.0d0 * (b * (-0.8333333333333334d0))))))
else if (b <= 520.0d0) 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)))));
double tmp;
if (b <= -2.9e+277) {
tmp = t_1;
} else if (b <= -25000000000000.0) {
tmp = x / (x + (y * Math.exp((2.0 * (b * -0.8333333333333334)))));
} else if (b <= 520.0) {
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))))) tmp = 0 if b <= -2.9e+277: tmp = t_1 elif b <= -25000000000000.0: tmp = x / (x + (y * math.exp((2.0 * (b * -0.8333333333333334))))) elif b <= 520.0: 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 * a)))))) tmp = 0.0 if (b <= -2.9e+277) tmp = t_1; elseif (b <= -25000000000000.0) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * -0.8333333333333334)))))); elseif (b <= 520.0) 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))))); tmp = 0.0; if (b <= -2.9e+277) tmp = t_1; elseif (b <= -25000000000000.0) tmp = x / (x + (y * exp((2.0 * (b * -0.8333333333333334))))); elseif (b <= 520.0) 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 * a), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.9e+277], t$95$1, If[LessEqual[b, -25000000000000.0], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * -0.8333333333333334), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 520.0], t$95$1, 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot a\right)}}\\
\mathbf{if}\;b \leq -2.9 \cdot 10^{+277}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -25000000000000:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot -0.8333333333333334\right)}}\\
\mathbf{elif}\;b \leq 520:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if b < -2.89999999999999983e277 or -2.5e13 < b < 520Initial program 95.9%
Taylor expanded in a around inf 61.4%
Taylor expanded in b around 0 63.1%
if -2.89999999999999983e277 < b < -2.5e13Initial program 87.7%
Taylor expanded in t around inf 83.0%
mul-1-neg83.0%
distribute-rgt-neg-in83.0%
distribute-neg-in83.0%
metadata-eval83.0%
sub-neg83.0%
Simplified83.0%
Taylor expanded in a around 0 78.2%
Taylor expanded in b around inf 68.5%
if 520 < b Initial program 97.3%
Taylor expanded in a around inf 61.8%
Taylor expanded in a around 0 41.8%
Taylor expanded in x around inf 70.0%
Final simplification65.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a -1.5e-130)
1.0
(if (<= a -1.5e-218)
(/ x (+ x (* y (+ (* 2.0 (/ -0.6666666666666666 (/ t c))) 1.0))))
(if (<= a 2.35e-29)
1.0
(if (<= a 1.5e+213)
(/ x (+ x (* y (+ (* 2.0 (* a (- c b))) 1.0))))
1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -1.5e-130) {
tmp = 1.0;
} else if (a <= -1.5e-218) {
tmp = x / (x + (y * ((2.0 * (-0.6666666666666666 / (t / c))) + 1.0)));
} else if (a <= 2.35e-29) {
tmp = 1.0;
} else if (a <= 1.5e+213) {
tmp = x / (x + (y * ((2.0 * (a * (c - b))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (a <= (-1.5d-130)) then
tmp = 1.0d0
else if (a <= (-1.5d-218)) then
tmp = x / (x + (y * ((2.0d0 * ((-0.6666666666666666d0) / (t / c))) + 1.0d0)))
else if (a <= 2.35d-29) then
tmp = 1.0d0
else if (a <= 1.5d+213) then
tmp = x / (x + (y * ((2.0d0 * (a * (c - b))) + 1.0d0)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -1.5e-130) {
tmp = 1.0;
} else if (a <= -1.5e-218) {
tmp = x / (x + (y * ((2.0 * (-0.6666666666666666 / (t / c))) + 1.0)));
} else if (a <= 2.35e-29) {
tmp = 1.0;
} else if (a <= 1.5e+213) {
tmp = x / (x + (y * ((2.0 * (a * (c - b))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= -1.5e-130: tmp = 1.0 elif a <= -1.5e-218: tmp = x / (x + (y * ((2.0 * (-0.6666666666666666 / (t / c))) + 1.0))) elif a <= 2.35e-29: tmp = 1.0 elif a <= 1.5e+213: tmp = x / (x + (y * ((2.0 * (a * (c - b))) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= -1.5e-130) tmp = 1.0; elseif (a <= -1.5e-218) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(-0.6666666666666666 / Float64(t / c))) + 1.0)))); elseif (a <= 2.35e-29) tmp = 1.0; elseif (a <= 1.5e+213) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(a * Float64(c - b))) + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= -1.5e-130) tmp = 1.0; elseif (a <= -1.5e-218) tmp = x / (x + (y * ((2.0 * (-0.6666666666666666 / (t / c))) + 1.0))); elseif (a <= 2.35e-29) tmp = 1.0; elseif (a <= 1.5e+213) tmp = x / (x + (y * ((2.0 * (a * (c - b))) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, -1.5e-130], 1.0, If[LessEqual[a, -1.5e-218], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(-0.6666666666666666 / N[(t / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.35e-29], 1.0, If[LessEqual[a, 1.5e+213], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.5 \cdot 10^{-130}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq -1.5 \cdot 10^{-218}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \frac{-0.6666666666666666}{\frac{t}{c}} + 1\right)}\\
\mathbf{elif}\;a \leq 2.35 \cdot 10^{-29}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 1.5 \cdot 10^{+213}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(a \cdot \left(c - b\right)\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if a < -1.49999999999999993e-130 or -1.4999999999999999e-218 < a < 2.3499999999999999e-29 or 1.5000000000000001e213 < a Initial program 94.7%
Taylor expanded in a around inf 57.8%
Taylor expanded in a around 0 40.1%
Taylor expanded in x around inf 63.0%
if -1.49999999999999993e-130 < a < -1.4999999999999999e-218Initial program 100.0%
Taylor expanded in c around inf 62.6%
+-commutative62.6%
associate-*r/62.6%
metadata-eval62.6%
associate--l+62.6%
Simplified62.6%
Taylor expanded in c around 0 68.0%
Taylor expanded in t around 0 66.1%
associate-*r/66.1%
associate-/l*66.1%
Simplified66.1%
if 2.3499999999999999e-29 < a < 1.5000000000000001e213Initial program 94.6%
Taylor expanded in a around inf 68.3%
Taylor expanded in a around 0 54.2%
Final simplification60.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a -7.2e-130)
1.0
(if (<= a -2e-220)
(/
x
(+
x
(*
y
(+
(* 2.0 (* c (+ 0.8333333333333334 (- a (/ 0.6666666666666666 t)))))
1.0))))
(if (<= a 7.3e-28)
1.0
(if (<= a 5e+211)
(/ x (+ x (* y (+ (* 2.0 (* a (- c b))) 1.0))))
1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -7.2e-130) {
tmp = 1.0;
} else if (a <= -2e-220) {
tmp = x / (x + (y * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0)));
} else if (a <= 7.3e-28) {
tmp = 1.0;
} else if (a <= 5e+211) {
tmp = x / (x + (y * ((2.0 * (a * (c - b))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (a <= (-7.2d-130)) then
tmp = 1.0d0
else if (a <= (-2d-220)) then
tmp = x / (x + (y * ((2.0d0 * (c * (0.8333333333333334d0 + (a - (0.6666666666666666d0 / t))))) + 1.0d0)))
else if (a <= 7.3d-28) then
tmp = 1.0d0
else if (a <= 5d+211) then
tmp = x / (x + (y * ((2.0d0 * (a * (c - b))) + 1.0d0)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -7.2e-130) {
tmp = 1.0;
} else if (a <= -2e-220) {
tmp = x / (x + (y * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0)));
} else if (a <= 7.3e-28) {
tmp = 1.0;
} else if (a <= 5e+211) {
tmp = x / (x + (y * ((2.0 * (a * (c - b))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= -7.2e-130: tmp = 1.0 elif a <= -2e-220: tmp = x / (x + (y * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0))) elif a <= 7.3e-28: tmp = 1.0 elif a <= 5e+211: tmp = x / (x + (y * ((2.0 * (a * (c - b))) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= -7.2e-130) tmp = 1.0; elseif (a <= -2e-220) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(c * Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))))) + 1.0)))); elseif (a <= 7.3e-28) tmp = 1.0; elseif (a <= 5e+211) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(a * Float64(c - b))) + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= -7.2e-130) tmp = 1.0; elseif (a <= -2e-220) tmp = x / (x + (y * ((2.0 * (c * (0.8333333333333334 + (a - (0.6666666666666666 / t))))) + 1.0))); elseif (a <= 7.3e-28) tmp = 1.0; elseif (a <= 5e+211) tmp = x / (x + (y * ((2.0 * (a * (c - b))) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, -7.2e-130], 1.0, If[LessEqual[a, -2e-220], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(c * N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.3e-28], 1.0, If[LessEqual[a, 5e+211], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7.2 \cdot 10^{-130}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq -2 \cdot 10^{-220}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(c \cdot \left(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\right)\right) + 1\right)}\\
\mathbf{elif}\;a \leq 7.3 \cdot 10^{-28}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 5 \cdot 10^{+211}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(a \cdot \left(c - b\right)\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if a < -7.2000000000000003e-130 or -1.99999999999999998e-220 < a < 7.2999999999999996e-28 or 4.9999999999999995e211 < a Initial program 94.7%
Taylor expanded in a around inf 57.8%
Taylor expanded in a around 0 40.1%
Taylor expanded in x around inf 63.0%
if -7.2000000000000003e-130 < a < -1.99999999999999998e-220Initial program 100.0%
Taylor expanded in c around inf 62.6%
+-commutative62.6%
associate-*r/62.6%
metadata-eval62.6%
associate--l+62.6%
Simplified62.6%
Taylor expanded in c around 0 68.0%
associate-*r*68.0%
+-commutative68.0%
associate-*r/68.0%
metadata-eval68.0%
associate-+r-68.0%
+-commutative68.0%
associate-+l-68.0%
sub-neg68.0%
neg-mul-168.0%
metadata-eval68.0%
associate-*r/68.0%
associate-*r*68.0%
associate-*r/68.0%
metadata-eval68.0%
neg-mul-168.0%
sub-neg68.0%
associate-+l-68.0%
+-commutative68.0%
associate-+r-68.0%
+-commutative68.0%
associate-+r-68.0%
Simplified68.0%
if 7.2999999999999996e-28 < a < 4.9999999999999995e211Initial program 94.6%
Taylor expanded in a around inf 68.3%
Taylor expanded in a around 0 54.2%
Final simplification60.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a -1.4e-88)
1.0
(if (<= a -1.75e-218)
(/
x
(+
x
(-
y
(*
2.0
(* (* y b) (- a (+ (/ 0.6666666666666666 t) -0.8333333333333334)))))))
(if (<= a 2.55e-29)
1.0
(if (<= a 9e+211)
(/ x (+ x (* y (+ (* 2.0 (* a (- c b))) 1.0))))
1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -1.4e-88) {
tmp = 1.0;
} else if (a <= -1.75e-218) {
tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else if (a <= 2.55e-29) {
tmp = 1.0;
} else if (a <= 9e+211) {
tmp = x / (x + (y * ((2.0 * (a * (c - b))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (a <= (-1.4d-88)) then
tmp = 1.0d0
else if (a <= (-1.75d-218)) then
tmp = x / (x + (y - (2.0d0 * ((y * b) * (a - ((0.6666666666666666d0 / t) + (-0.8333333333333334d0)))))))
else if (a <= 2.55d-29) then
tmp = 1.0d0
else if (a <= 9d+211) then
tmp = x / (x + (y * ((2.0d0 * (a * (c - b))) + 1.0d0)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= -1.4e-88) {
tmp = 1.0;
} else if (a <= -1.75e-218) {
tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else if (a <= 2.55e-29) {
tmp = 1.0;
} else if (a <= 9e+211) {
tmp = x / (x + (y * ((2.0 * (a * (c - b))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= -1.4e-88: tmp = 1.0 elif a <= -1.75e-218: tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334)))))) elif a <= 2.55e-29: tmp = 1.0 elif a <= 9e+211: tmp = x / (x + (y * ((2.0 * (a * (c - b))) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= -1.4e-88) tmp = 1.0; elseif (a <= -1.75e-218) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(Float64(y * b) * Float64(a - Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334))))))); elseif (a <= 2.55e-29) tmp = 1.0; elseif (a <= 9e+211) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(a * Float64(c - b))) + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= -1.4e-88) tmp = 1.0; elseif (a <= -1.75e-218) tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334)))))); elseif (a <= 2.55e-29) tmp = 1.0; elseif (a <= 9e+211) tmp = x / (x + (y * ((2.0 * (a * (c - b))) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, -1.4e-88], 1.0, If[LessEqual[a, -1.75e-218], N[(x / N[(x + N[(y - N[(2.0 * N[(N[(y * b), $MachinePrecision] * N[(a - N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.55e-29], 1.0, If[LessEqual[a, 9e+211], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.4 \cdot 10^{-88}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq -1.75 \cdot 10^{-218}:\\
\;\;\;\;\frac{x}{x + \left(y - 2 \cdot \left(\left(y \cdot b\right) \cdot \left(a - \left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right)\right)\right)\right)}\\
\mathbf{elif}\;a \leq 2.55 \cdot 10^{-29}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 9 \cdot 10^{+211}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(a \cdot \left(c - b\right)\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if a < -1.39999999999999988e-88 or -1.75e-218 < a < 2.54999999999999993e-29 or 9e211 < a Initial program 94.5%
Taylor expanded in a around inf 59.5%
Taylor expanded in a around 0 40.6%
Taylor expanded in x around inf 63.6%
if -1.39999999999999988e-88 < a < -1.75e-218Initial program 100.0%
Taylor expanded in b around inf 74.7%
*-commutative74.7%
associate-*r/74.7%
metadata-eval74.7%
+-commutative74.7%
Simplified74.7%
Taylor expanded in b around 0 66.4%
associate--r+66.4%
sub-neg66.4%
associate-*r/66.4%
metadata-eval66.4%
metadata-eval66.4%
*-commutative66.4%
Simplified66.4%
if 2.54999999999999993e-29 < a < 9e211Initial program 94.6%
Taylor expanded in a around inf 68.3%
Taylor expanded in a around 0 54.2%
Final simplification61.2%
(FPCore (x y z t a b c) :precision binary64 (if (<= a 3.9e-28) 1.0 (if (<= a 3e+211) (/ x (+ x (* y (+ (* 2.0 (* a (- c b))) 1.0)))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 3.9e-28) {
tmp = 1.0;
} else if (a <= 3e+211) {
tmp = x / (x + (y * ((2.0 * (a * (c - b))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (a <= 3.9d-28) then
tmp = 1.0d0
else if (a <= 3d+211) then
tmp = x / (x + (y * ((2.0d0 * (a * (c - b))) + 1.0d0)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 3.9e-28) {
tmp = 1.0;
} else if (a <= 3e+211) {
tmp = x / (x + (y * ((2.0 * (a * (c - b))) + 1.0)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 3.9e-28: tmp = 1.0 elif a <= 3e+211: tmp = x / (x + (y * ((2.0 * (a * (c - b))) + 1.0))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 3.9e-28) tmp = 1.0; elseif (a <= 3e+211) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(2.0 * Float64(a * Float64(c - b))) + 1.0)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= 3.9e-28) tmp = 1.0; elseif (a <= 3e+211) tmp = x / (x + (y * ((2.0 * (a * (c - b))) + 1.0))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 3.9e-28], 1.0, If[LessEqual[a, 3e+211], N[(x / N[(x + N[(y * N[(N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 3.9 \cdot 10^{-28}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 3 \cdot 10^{+211}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(a \cdot \left(c - b\right)\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if a < 3.89999999999999999e-28 or 3e211 < a Initial program 95.2%
Taylor expanded in a around inf 58.3%
Taylor expanded in a around 0 41.6%
Taylor expanded in x around inf 60.8%
if 3.89999999999999999e-28 < a < 3e211Initial program 94.6%
Taylor expanded in a around inf 68.3%
Taylor expanded in a around 0 54.2%
Final simplification58.9%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 4.4e+105) 1.0 (if (<= c 9.5e+252) (/ x (+ x (* -1.3333333333333333 (/ c (/ t y))))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 4.4e+105) {
tmp = 1.0;
} else if (c <= 9.5e+252) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 4.4d+105) then
tmp = 1.0d0
else if (c <= 9.5d+252) then
tmp = x / (x + ((-1.3333333333333333d0) * (c / (t / y))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 4.4e+105) {
tmp = 1.0;
} else if (c <= 9.5e+252) {
tmp = x / (x + (-1.3333333333333333 * (c / (t / y))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 4.4e+105: tmp = 1.0 elif c <= 9.5e+252: tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 4.4e+105) tmp = 1.0; elseif (c <= 9.5e+252) tmp = Float64(x / Float64(x + Float64(-1.3333333333333333 * Float64(c / Float64(t / y))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 4.4e+105) tmp = 1.0; elseif (c <= 9.5e+252) tmp = x / (x + (-1.3333333333333333 * (c / (t / y)))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 4.4e+105], 1.0, If[LessEqual[c, 9.5e+252], N[(x / N[(x + N[(-1.3333333333333333 * N[(c / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 4.4 \cdot 10^{+105}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 9.5 \cdot 10^{+252}:\\
\;\;\;\;\frac{x}{x + -1.3333333333333333 \cdot \frac{c}{\frac{t}{y}}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if c < 4.40000000000000014e105 or 9.49999999999999972e252 < c Initial program 94.8%
Taylor expanded in a around inf 60.3%
Taylor expanded in a around 0 39.5%
Taylor expanded in x around inf 58.8%
if 4.40000000000000014e105 < c < 9.49999999999999972e252Initial program 96.8%
Taylor expanded in c around inf 80.6%
+-commutative80.6%
associate-*r/80.6%
metadata-eval80.6%
associate--l+80.6%
Simplified80.6%
Taylor expanded in c around 0 67.7%
Taylor expanded in t around 0 61.6%
associate-/l*58.6%
Simplified58.6%
Final simplification58.8%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 6.2e+22) 1.0 (if (<= c 1.05e+253) (/ x (+ x (* (* y c) (* 2.0 a)))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 6.2e+22) {
tmp = 1.0;
} else if (c <= 1.05e+253) {
tmp = x / (x + ((y * c) * (2.0 * a)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 6.2d+22) then
tmp = 1.0d0
else if (c <= 1.05d+253) then
tmp = x / (x + ((y * c) * (2.0d0 * a)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 6.2e+22) {
tmp = 1.0;
} else if (c <= 1.05e+253) {
tmp = x / (x + ((y * c) * (2.0 * a)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 6.2e+22: tmp = 1.0 elif c <= 1.05e+253: tmp = x / (x + ((y * c) * (2.0 * a))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 6.2e+22) tmp = 1.0; elseif (c <= 1.05e+253) tmp = Float64(x / Float64(x + Float64(Float64(y * c) * Float64(2.0 * a)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 6.2e+22) tmp = 1.0; elseif (c <= 1.05e+253) tmp = x / (x + ((y * c) * (2.0 * a))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 6.2e+22], 1.0, If[LessEqual[c, 1.05e+253], N[(x / N[(x + N[(N[(y * c), $MachinePrecision] * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 6.2 \cdot 10^{+22}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.05 \cdot 10^{+253}:\\
\;\;\;\;\frac{x}{x + \left(y \cdot c\right) \cdot \left(2 \cdot a\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if c < 6.2000000000000004e22 or 1.0500000000000001e253 < c Initial program 95.4%
Taylor expanded in a around inf 61.3%
Taylor expanded in a around 0 40.5%
Taylor expanded in x around inf 60.2%
if 6.2000000000000004e22 < c < 1.0500000000000001e253Initial program 93.4%
Taylor expanded in c around inf 75.8%
+-commutative75.8%
associate-*r/75.8%
metadata-eval75.8%
associate--l+75.8%
Simplified75.8%
Taylor expanded in c around 0 60.5%
Taylor expanded in a around inf 49.8%
*-commutative49.8%
associate-*r*58.4%
associate-*l*58.4%
Simplified58.4%
Final simplification59.9%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 3.7e+207) 1.0 (if (<= c 1.05e+253) (* -0.75 (* (/ t c) (/ x y))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 3.7e+207) {
tmp = 1.0;
} else if (c <= 1.05e+253) {
tmp = -0.75 * ((t / c) * (x / y));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 3.7d+207) then
tmp = 1.0d0
else if (c <= 1.05d+253) then
tmp = (-0.75d0) * ((t / c) * (x / y))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 3.7e+207) {
tmp = 1.0;
} else if (c <= 1.05e+253) {
tmp = -0.75 * ((t / c) * (x / y));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 3.7e+207: tmp = 1.0 elif c <= 1.05e+253: tmp = -0.75 * ((t / c) * (x / y)) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 3.7e+207) tmp = 1.0; elseif (c <= 1.05e+253) tmp = Float64(-0.75 * Float64(Float64(t / c) * Float64(x / y))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 3.7e+207) tmp = 1.0; elseif (c <= 1.05e+253) tmp = -0.75 * ((t / c) * (x / y)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 3.7e+207], 1.0, If[LessEqual[c, 1.05e+253], N[(-0.75 * N[(N[(t / c), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 3.7 \cdot 10^{+207}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.05 \cdot 10^{+253}:\\
\;\;\;\;-0.75 \cdot \left(\frac{t}{c} \cdot \frac{x}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if c < 3.7e207 or 1.0500000000000001e253 < c Initial program 94.7%
Taylor expanded in a around inf 61.3%
Taylor expanded in a around 0 39.4%
Taylor expanded in x around inf 57.5%
if 3.7e207 < c < 1.0500000000000001e253Initial program 100.0%
Taylor expanded in c around inf 86.2%
+-commutative86.2%
associate-*r/86.2%
metadata-eval86.2%
associate--l+86.2%
Simplified86.2%
Taylor expanded in c around 0 79.3%
Taylor expanded in t around 0 66.6%
times-frac65.8%
*-commutative65.8%
Simplified65.8%
Final simplification58.0%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 3.8e+205) 1.0 (if (<= c 1.7e+252) (* -0.75 (/ (* x t) (* y c))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 3.8e+205) {
tmp = 1.0;
} else if (c <= 1.7e+252) {
tmp = -0.75 * ((x * t) / (y * c));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 3.8d+205) then
tmp = 1.0d0
else if (c <= 1.7d+252) then
tmp = (-0.75d0) * ((x * t) / (y * c))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 3.8e+205) {
tmp = 1.0;
} else if (c <= 1.7e+252) {
tmp = -0.75 * ((x * t) / (y * c));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 3.8e+205: tmp = 1.0 elif c <= 1.7e+252: tmp = -0.75 * ((x * t) / (y * c)) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 3.8e+205) tmp = 1.0; elseif (c <= 1.7e+252) tmp = Float64(-0.75 * Float64(Float64(x * t) / Float64(y * c))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 3.8e+205) tmp = 1.0; elseif (c <= 1.7e+252) tmp = -0.75 * ((x * t) / (y * c)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 3.8e+205], 1.0, If[LessEqual[c, 1.7e+252], N[(-0.75 * N[(N[(x * t), $MachinePrecision] / N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 3.8 \cdot 10^{+205}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.7 \cdot 10^{+252}:\\
\;\;\;\;-0.75 \cdot \frac{x \cdot t}{y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if c < 3.8e205 or 1.7e252 < c Initial program 94.7%
Taylor expanded in a around inf 61.3%
Taylor expanded in a around 0 39.4%
Taylor expanded in x around inf 57.5%
if 3.8e205 < c < 1.7e252Initial program 100.0%
Taylor expanded in c around inf 86.2%
+-commutative86.2%
associate-*r/86.2%
metadata-eval86.2%
associate--l+86.2%
Simplified86.2%
Taylor expanded in c around 0 79.3%
Taylor expanded in t around 0 66.6%
Final simplification58.0%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 3.7e+204) 1.0 (if (<= c 1.08e+253) (/ (* x 0.5) (* a (* y c))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 3.7e+204) {
tmp = 1.0;
} else if (c <= 1.08e+253) {
tmp = (x * 0.5) / (a * (y * c));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 3.7d+204) then
tmp = 1.0d0
else if (c <= 1.08d+253) then
tmp = (x * 0.5d0) / (a * (y * c))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 3.7e+204) {
tmp = 1.0;
} else if (c <= 1.08e+253) {
tmp = (x * 0.5) / (a * (y * c));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 3.7e+204: tmp = 1.0 elif c <= 1.08e+253: tmp = (x * 0.5) / (a * (y * c)) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 3.7e+204) tmp = 1.0; elseif (c <= 1.08e+253) tmp = Float64(Float64(x * 0.5) / Float64(a * Float64(y * c))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 3.7e+204) tmp = 1.0; elseif (c <= 1.08e+253) tmp = (x * 0.5) / (a * (y * c)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 3.7e+204], 1.0, If[LessEqual[c, 1.08e+253], N[(N[(x * 0.5), $MachinePrecision] / N[(a * N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 3.7 \cdot 10^{+204}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 1.08 \cdot 10^{+253}:\\
\;\;\;\;\frac{x \cdot 0.5}{a \cdot \left(y \cdot c\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if c < 3.7e204 or 1.08000000000000004e253 < c Initial program 94.7%
Taylor expanded in a around inf 61.3%
Taylor expanded in a around 0 39.4%
Taylor expanded in x around inf 57.5%
if 3.7e204 < c < 1.08000000000000004e253Initial program 100.0%
Taylor expanded in c around inf 86.2%
+-commutative86.2%
associate-*r/86.2%
metadata-eval86.2%
associate--l+86.2%
Simplified86.2%
Taylor expanded in c around 0 79.3%
Taylor expanded in c around inf 79.3%
*-commutative79.3%
associate-*l/79.3%
associate-*r*79.3%
*-commutative79.3%
associate-*r/79.3%
metadata-eval79.3%
+-commutative79.3%
associate--l+79.3%
Simplified79.3%
Taylor expanded in a around inf 52.1%
*-commutative52.1%
associate-*l*72.4%
*-commutative72.4%
Simplified72.4%
Final simplification58.4%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 95.0%
Taylor expanded in a around inf 61.2%
Taylor expanded in a around 0 38.2%
Taylor expanded in x around inf 55.3%
Final simplification55.3%
(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 2023257
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:herbie-target
(if (< t -2.118326644891581e-50) (/ x (+ x (* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b))))))) (if (< t 5.196588770651547e-123) (/ x (+ x (* y (exp (* 2.0 (/ (- (* (* z (sqrt (+ t a))) (* (* 3.0 t) (- a (/ 5.0 6.0)))) (* (- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0) (* (- a (/ 5.0 6.0)) (* (- b c) t)))) (* (* (* t t) 3.0) (- a (/ 5.0 6.0))))))))) (/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))