
(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 23 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
(+ 0.8333333333333334 (- a (/ 0.6666666666666666 t)))
(- c b)
(* (sqrt (+ a t)) (/ z t))))
x)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / fma(y, pow(exp(2.0), fma((0.8333333333333334 + (a - (0.6666666666666666 / t))), (c - b), (sqrt((a + t)) * (z / t)))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))), Float64(c - b), Float64(sqrt(Float64(a + t)) * Float64(z / t)))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(c - b), $MachinePrecision] + N[(N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right), c - b, \sqrt{a + t} \cdot \frac{z}{t}\right)\right)}, x\right)}
\end{array}
Initial program 96.1%
+-commutative96.1%
fma-def96.1%
Simplified99.2%
Final simplification99.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* (sqrt (+ a t)) z) t)
(* (- c b) (- (+ 0.8333333333333334 a) (/ 2.0 (* t 3.0)))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(/ (+ (* z (sqrt a)) (* (- c b) -0.6666666666666666)) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((sqrt((a + t)) * z) / t) + ((c - b) * ((0.8333333333333334 + a) - (2.0 / (t * 3.0))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x / (x + (y * exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + ((c - b) * -0.6666666666666666)) / t)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((Math.sqrt((a + t)) * z) / t) + ((c - b) * ((0.8333333333333334 + a) - (2.0 / (t * 3.0))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.exp((2.0 * t_1))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + ((c - b) * -0.6666666666666666)) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((math.sqrt((a + t)) * z) / t) + ((c - b) * ((0.8333333333333334 + a) - (2.0 / (t * 3.0)))) tmp = 0 if t_1 <= math.inf: tmp = x / (x + (y * math.exp((2.0 * t_1)))) else: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + ((c - b) * -0.6666666666666666)) / t))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(sqrt(Float64(a + t)) * z) / t) + Float64(Float64(c - b) * Float64(Float64(0.8333333333333334 + a) - Float64(2.0 / Float64(t * 3.0))))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * t_1))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(Float64(c - b) * -0.6666666666666666)) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((sqrt((a + t)) * z) / t) + ((c - b) * ((0.8333333333333334 + a) - (2.0 / (t * 3.0)))); tmp = 0.0; if (t_1 <= Inf) tmp = x / (x + (y * exp((2.0 * t_1)))); else tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + ((c - b) * -0.6666666666666666)) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(N[Sqrt[N[(a + t), $MachinePrecision]], $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision] + N[(N[(c - b), $MachinePrecision] * N[(N[(0.8333333333333334 + a), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * t$95$1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(N[(c - b), $MachinePrecision] * -0.6666666666666666), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\sqrt{a + t} \cdot z}{t} + \left(c - b\right) \cdot \left(\left(0.8333333333333334 + a\right) - \frac{2}{t \cdot 3}\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + \left(c - b\right) \cdot -0.6666666666666666}{t}}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 99.6%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) Initial program 0.0%
Taylor expanded in t around 0 67.7%
Final simplification98.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(*
(- c b)
(+
0.8333333333333334
(* 0.6666666666666666 (/ -1.0 t))))))))))))
(if (<= t 2e-284)
(/
x
(+
x
(*
y
(exp
(* 2.0 (/ (+ (* z (sqrt a)) (* (- c b) -0.6666666666666666)) t))))))
(if (<= t 1.02e-47)
t_1
(if (<= t 200000000000.0)
(/
x
(+
x
(*
y
(pow
(exp (+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a)))
(* 2.0 b)))))
(if (<= t 8e+161)
t_1
(/
x
(+
x
(* y (exp (* 2.0 (* (- c b) (+ 0.8333333333333334 a)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((c - b) * (0.8333333333333334 + (0.6666666666666666 * (-1.0 / t)))))))));
double tmp;
if (t <= 2e-284) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + ((c - b) * -0.6666666666666666)) / t)))));
} else if (t <= 1.02e-47) {
tmp = t_1;
} else if (t <= 200000000000.0) {
tmp = x / (x + (y * pow(exp(((0.6666666666666666 / t) + (-0.8333333333333334 - a))), (2.0 * b))));
} else if (t <= 8e+161) {
tmp = t_1;
} else {
tmp = x / (x + (y * exp((2.0 * ((c - b) * (0.8333333333333334 + a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((c - b) * (0.8333333333333334d0 + (0.6666666666666666d0 * ((-1.0d0) / t)))))))))
if (t <= 2d-284) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((c - b) * (-0.6666666666666666d0))) / t)))))
else if (t <= 1.02d-47) then
tmp = t_1
else if (t <= 200000000000.0d0) then
tmp = x / (x + (y * (exp(((0.6666666666666666d0 / t) + ((-0.8333333333333334d0) - a))) ** (2.0d0 * b))))
else if (t <= 8d+161) then
tmp = t_1
else
tmp = x / (x + (y * exp((2.0d0 * ((c - b) * (0.8333333333333334d0 + a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((c - b) * (0.8333333333333334 + (0.6666666666666666 * (-1.0 / t)))))))));
double tmp;
if (t <= 2e-284) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + ((c - b) * -0.6666666666666666)) / t)))));
} else if (t <= 1.02e-47) {
tmp = t_1;
} else if (t <= 200000000000.0) {
tmp = x / (x + (y * Math.pow(Math.exp(((0.6666666666666666 / t) + (-0.8333333333333334 - a))), (2.0 * b))));
} else if (t <= 8e+161) {
tmp = t_1;
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((c - b) * (0.8333333333333334 + a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((c - b) * (0.8333333333333334 + (0.6666666666666666 * (-1.0 / t))))))))) tmp = 0 if t <= 2e-284: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + ((c - b) * -0.6666666666666666)) / t))))) elif t <= 1.02e-47: tmp = t_1 elif t <= 200000000000.0: tmp = x / (x + (y * math.pow(math.exp(((0.6666666666666666 / t) + (-0.8333333333333334 - a))), (2.0 * b)))) elif t <= 8e+161: tmp = t_1 else: tmp = x / (x + (y * math.exp((2.0 * ((c - b) * (0.8333333333333334 + a)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(c - b) * Float64(0.8333333333333334 + Float64(0.6666666666666666 * Float64(-1.0 / t)))))))))) tmp = 0.0 if (t <= 2e-284) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(Float64(c - b) * -0.6666666666666666)) / t)))))); elseif (t <= 1.02e-47) tmp = t_1; elseif (t <= 200000000000.0) tmp = Float64(x / Float64(x + Float64(y * (exp(Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a))) ^ Float64(2.0 * b))))); elseif (t <= 8e+161) tmp = t_1; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c - b) * Float64(0.8333333333333334 + a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((c - b) * (0.8333333333333334 + (0.6666666666666666 * (-1.0 / t))))))))); tmp = 0.0; if (t <= 2e-284) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + ((c - b) * -0.6666666666666666)) / t))))); elseif (t <= 1.02e-47) tmp = t_1; elseif (t <= 200000000000.0) tmp = x / (x + (y * (exp(((0.6666666666666666 / t) + (-0.8333333333333334 - a))) ^ (2.0 * b)))); elseif (t <= 8e+161) tmp = t_1; else tmp = x / (x + (y * exp((2.0 * ((c - b) * (0.8333333333333334 + a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(c - b), $MachinePrecision] * N[(0.8333333333333334 + N[(0.6666666666666666 * N[(-1.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 2e-284], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(N[(c - b), $MachinePrecision] * -0.6666666666666666), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.02e-47], t$95$1, If[LessEqual[t, 200000000000.0], N[(x / N[(x + N[(y * N[Power[N[Exp[N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(2.0 * b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e+161], t$95$1, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c - b), $MachinePrecision] * N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(c - b\right) \cdot \left(0.8333333333333334 + 0.6666666666666666 \cdot \frac{-1}{t}\right)\right)}}\\
\mathbf{if}\;t \leq 2 \cdot 10^{-284}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + \left(c - b\right) \cdot -0.6666666666666666}{t}}}\\
\mathbf{elif}\;t \leq 1.02 \cdot 10^{-47}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 200000000000:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{\frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right)}\right)}^{\left(2 \cdot b\right)}}\\
\mathbf{elif}\;t \leq 8 \cdot 10^{+161}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(c - b\right) \cdot \left(0.8333333333333334 + a\right)\right)}}\\
\end{array}
\end{array}
if t < 2.00000000000000007e-284Initial program 88.1%
Taylor expanded in t around 0 90.3%
if 2.00000000000000007e-284 < t < 1.02000000000000002e-47 or 2e11 < t < 8.0000000000000003e161Initial program 99.1%
Taylor expanded in a around 0 94.8%
if 1.02000000000000002e-47 < t < 2e11Initial program 100.0%
Taylor expanded in b around inf 70.4%
associate-*r/70.4%
metadata-eval70.4%
+-commutative70.4%
Simplified70.4%
Taylor expanded in y around 0 70.4%
associate-*r*70.4%
associate--r+70.4%
sub-neg70.4%
mul-1-neg70.4%
+-commutative70.4%
associate--l+70.4%
associate-*r*70.4%
associate-*r*70.4%
associate--l+70.4%
+-commutative70.4%
mul-1-neg70.4%
sub-neg70.4%
associate--r+70.4%
Simplified85.1%
if 8.0000000000000003e161 < t Initial program 95.6%
Taylor expanded in t around inf 100.0%
+-commutative100.0%
*-commutative100.0%
associate-*r*100.0%
neg-mul-1100.0%
neg-sub0100.0%
associate--r-100.0%
neg-sub0100.0%
+-commutative100.0%
sub-neg100.0%
Simplified100.0%
Final simplification94.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))))
(if (<= t -1.2e+70)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 7e-47)
t_1
(if (<= t 1e-33)
(/ x (+ x (* y (exp (* (- c b) 1.6666666666666667)))))
(if (<= t 7.2e-19)
t_1
(if (<= t 0.0038)
(/ x (log1p (expm1 (+ y (- x (* 2.0 (* a (* y (- b c)))))))))
(/
x
(+
x
(*
y
(exp (* 2.0 (* (- c b) (+ 0.8333333333333334 a))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
double tmp;
if (t <= -1.2e+70) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 7e-47) {
tmp = t_1;
} else if (t <= 1e-33) {
tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667))));
} else if (t <= 7.2e-19) {
tmp = t_1;
} else if (t <= 0.0038) {
tmp = x / log1p(expm1((y + (x - (2.0 * (a * (y * (b - c))))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((c - b) * (0.8333333333333334 + a))))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
double tmp;
if (t <= -1.2e+70) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 7e-47) {
tmp = t_1;
} else if (t <= 1e-33) {
tmp = x / (x + (y * Math.exp(((c - b) * 1.6666666666666667))));
} else if (t <= 7.2e-19) {
tmp = t_1;
} else if (t <= 0.0038) {
tmp = x / Math.log1p(Math.expm1((y + (x - (2.0 * (a * (y * (b - c))))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((c - b) * (0.8333333333333334 + a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) tmp = 0 if t <= -1.2e+70: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 7e-47: tmp = t_1 elif t <= 1e-33: tmp = x / (x + (y * math.exp(((c - b) * 1.6666666666666667)))) elif t <= 7.2e-19: tmp = t_1 elif t <= 0.0038: tmp = x / math.log1p(math.expm1((y + (x - (2.0 * (a * (y * (b - c)))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((c - b) * (0.8333333333333334 + a)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))) tmp = 0.0 if (t <= -1.2e+70) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 7e-47) tmp = t_1; elseif (t <= 1e-33) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c - b) * 1.6666666666666667))))); elseif (t <= 7.2e-19) tmp = t_1; elseif (t <= 0.0038) tmp = Float64(x / log1p(expm1(Float64(y + Float64(x - Float64(2.0 * Float64(a * Float64(y * Float64(b - c))))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c - b) * Float64(0.8333333333333334 + a))))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.2e+70], 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, 7e-47], t$95$1, If[LessEqual[t, 1e-33], N[(x / N[(x + N[(y * N[Exp[N[(N[(c - b), $MachinePrecision] * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.2e-19], t$95$1, If[LessEqual[t, 0.0038], N[(x / N[Log[1 + N[(Exp[N[(y + N[(x - N[(2.0 * N[(a * N[(y * N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]] - 1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c - b), $MachinePrecision] * N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{if}\;t \leq -1.2 \cdot 10^{+70}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-47}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 10^{-33}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\mathbf{elif}\;t \leq 7.2 \cdot 10^{-19}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 0.0038:\\
\;\;\;\;\frac{x}{\mathsf{log1p}\left(\mathsf{expm1}\left(y + \left(x - 2 \cdot \left(a \cdot \left(y \cdot \left(b - c\right)\right)\right)\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(c - b\right) \cdot \left(0.8333333333333334 + a\right)\right)}}\\
\end{array}
\end{array}
if t < -1.19999999999999993e70Initial program 86.2%
Taylor expanded in a around inf 100.0%
if -1.19999999999999993e70 < t < 6.9999999999999996e-47 or 1.0000000000000001e-33 < t < 7.2000000000000002e-19Initial program 94.5%
Taylor expanded in t around 0 84.5%
Taylor expanded in a around 0 82.3%
if 6.9999999999999996e-47 < t < 1.0000000000000001e-33Initial program 100.0%
Taylor expanded in t around inf 86.2%
+-commutative86.2%
*-commutative86.2%
associate-*r*86.2%
neg-mul-186.2%
neg-sub086.2%
associate--r-86.2%
neg-sub086.2%
+-commutative86.2%
sub-neg86.2%
Simplified86.2%
Taylor expanded in a around 0 86.2%
if 7.2000000000000002e-19 < t < 0.00379999999999999999Initial program 100.0%
Taylor expanded in a around inf 64.0%
Taylor expanded in a around 0 64.8%
associate-+r+64.8%
+-commutative64.8%
*-commutative64.8%
Simplified64.8%
log1p-expm1-u100.0%
associate-+l+100.0%
*-commutative100.0%
Applied egg-rr100.0%
if 0.00379999999999999999 < t Initial program 97.6%
Taylor expanded in t around inf 94.6%
+-commutative94.6%
*-commutative94.6%
associate-*r*94.6%
neg-mul-194.6%
neg-sub094.6%
associate--r-94.6%
neg-sub094.6%
+-commutative94.6%
sub-neg94.6%
Simplified94.6%
Final simplification89.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -3.7e+68)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 1.62e-121)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 2e+14)
(/
x
(+
x
(*
y
(pow
(exp (+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a)))
(* 2.0 b)))))
(/ x (+ x (* y (exp (* 2.0 (* (- c b) (+ 0.8333333333333334 a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -3.7e+68) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 1.62e-121) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 2e+14) {
tmp = x / (x + (y * pow(exp(((0.6666666666666666 / t) + (-0.8333333333333334 - a))), (2.0 * b))));
} else {
tmp = x / (x + (y * exp((2.0 * ((c - b) * (0.8333333333333334 + a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-3.7d+68)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 1.62d-121) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 2d+14) then
tmp = x / (x + (y * (exp(((0.6666666666666666d0 / t) + ((-0.8333333333333334d0) - a))) ** (2.0d0 * b))))
else
tmp = x / (x + (y * exp((2.0d0 * ((c - b) * (0.8333333333333334d0 + a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -3.7e+68) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 1.62e-121) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 2e+14) {
tmp = x / (x + (y * Math.pow(Math.exp(((0.6666666666666666 / t) + (-0.8333333333333334 - a))), (2.0 * b))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((c - b) * (0.8333333333333334 + a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -3.7e+68: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 1.62e-121: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 2e+14: tmp = x / (x + (y * math.pow(math.exp(((0.6666666666666666 / t) + (-0.8333333333333334 - a))), (2.0 * b)))) else: tmp = x / (x + (y * math.exp((2.0 * ((c - b) * (0.8333333333333334 + a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -3.7e+68) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 1.62e-121) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 2e+14) tmp = Float64(x / Float64(x + Float64(y * (exp(Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a))) ^ Float64(2.0 * b))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c - b) * 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.7e+68) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 1.62e-121) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 2e+14) tmp = x / (x + (y * (exp(((0.6666666666666666 / t) + (-0.8333333333333334 - a))) ^ (2.0 * b)))); else tmp = x / (x + (y * exp((2.0 * ((c - b) * (0.8333333333333334 + a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -3.7e+68], 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.62e-121], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e+14], N[(x / N[(x + N[(y * N[Power[N[Exp[N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(2.0 * b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c - b), $MachinePrecision] * N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.7 \cdot 10^{+68}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 1.62 \cdot 10^{-121}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+14}:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{\frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right)}\right)}^{\left(2 \cdot b\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(c - b\right) \cdot \left(0.8333333333333334 + a\right)\right)}}\\
\end{array}
\end{array}
if t < -3.69999999999999998e68Initial program 86.2%
Taylor expanded in a around inf 100.0%
if -3.69999999999999998e68 < t < 1.6199999999999999e-121Initial program 92.6%
Taylor expanded in t around 0 89.0%
Taylor expanded in a around 0 85.7%
if 1.6199999999999999e-121 < t < 2e14Initial program 100.0%
Taylor expanded in b around inf 72.3%
associate-*r/72.3%
metadata-eval72.3%
+-commutative72.3%
Simplified72.3%
Taylor expanded in y around 0 72.3%
associate-*r*72.3%
associate--r+72.3%
sub-neg72.3%
mul-1-neg72.3%
+-commutative72.3%
associate--l+72.3%
associate-*r*72.3%
associate-*r*72.3%
associate--l+72.3%
+-commutative72.3%
mul-1-neg72.3%
sub-neg72.3%
associate--r+72.3%
Simplified79.8%
if 2e14 < t Initial program 97.5%
Taylor expanded in t around inf 95.2%
+-commutative95.2%
*-commutative95.2%
associate-*r*95.2%
neg-mul-195.2%
neg-sub095.2%
associate--r-95.2%
neg-sub095.2%
+-commutative95.2%
sub-neg95.2%
Simplified95.2%
Final simplification89.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 1.05e-190)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* (- c b) -0.6666666666666666)) t))))))
(if (<= t 3.6e-121)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 1.26e+14)
(/
x
(+
x
(*
y
(pow
(exp (+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a)))
(* 2.0 b)))))
(/ x (+ x (* y (exp (* 2.0 (* (- c b) (+ 0.8333333333333334 a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.05e-190) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + ((c - b) * -0.6666666666666666)) / t)))));
} else if (t <= 3.6e-121) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 1.26e+14) {
tmp = x / (x + (y * pow(exp(((0.6666666666666666 / t) + (-0.8333333333333334 - a))), (2.0 * b))));
} else {
tmp = x / (x + (y * exp((2.0 * ((c - b) * (0.8333333333333334 + a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 1.05d-190) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((c - b) * (-0.6666666666666666d0))) / t)))))
else if (t <= 3.6d-121) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 1.26d+14) then
tmp = x / (x + (y * (exp(((0.6666666666666666d0 / t) + ((-0.8333333333333334d0) - a))) ** (2.0d0 * b))))
else
tmp = x / (x + (y * exp((2.0d0 * ((c - b) * (0.8333333333333334d0 + a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.05e-190) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + ((c - b) * -0.6666666666666666)) / t)))));
} else if (t <= 3.6e-121) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 1.26e+14) {
tmp = x / (x + (y * Math.pow(Math.exp(((0.6666666666666666 / t) + (-0.8333333333333334 - a))), (2.0 * b))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((c - b) * (0.8333333333333334 + a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1.05e-190: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + ((c - b) * -0.6666666666666666)) / t))))) elif t <= 3.6e-121: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 1.26e+14: tmp = x / (x + (y * math.pow(math.exp(((0.6666666666666666 / t) + (-0.8333333333333334 - a))), (2.0 * b)))) else: tmp = x / (x + (y * math.exp((2.0 * ((c - b) * (0.8333333333333334 + a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1.05e-190) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(Float64(c - b) * -0.6666666666666666)) / t)))))); elseif (t <= 3.6e-121) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 1.26e+14) tmp = Float64(x / Float64(x + Float64(y * (exp(Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a))) ^ Float64(2.0 * b))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c - b) * 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.05e-190) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + ((c - b) * -0.6666666666666666)) / t))))); elseif (t <= 3.6e-121) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 1.26e+14) tmp = x / (x + (y * (exp(((0.6666666666666666 / t) + (-0.8333333333333334 - a))) ^ (2.0 * b)))); else tmp = x / (x + (y * exp((2.0 * ((c - b) * (0.8333333333333334 + a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 1.05e-190], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(N[(c - b), $MachinePrecision] * -0.6666666666666666), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e-121], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.26e+14], N[(x / N[(x + N[(y * N[Power[N[Exp[N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(2.0 * b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c - b), $MachinePrecision] * N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.05 \cdot 10^{-190}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + \left(c - b\right) \cdot -0.6666666666666666}{t}}}\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-121}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 1.26 \cdot 10^{+14}:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{\frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right)}\right)}^{\left(2 \cdot b\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(c - b\right) \cdot \left(0.8333333333333334 + a\right)\right)}}\\
\end{array}
\end{array}
if t < 1.04999999999999996e-190Initial program 91.2%
Taylor expanded in t around 0 92.9%
if 1.04999999999999996e-190 < t < 3.59999999999999984e-121Initial program 95.0%
Taylor expanded in t around 0 65.0%
Taylor expanded in a around 0 95.2%
if 3.59999999999999984e-121 < t < 1.26e14Initial program 100.0%
Taylor expanded in b around inf 72.3%
associate-*r/72.3%
metadata-eval72.3%
+-commutative72.3%
Simplified72.3%
Taylor expanded in y around 0 72.3%
associate-*r*72.3%
associate--r+72.3%
sub-neg72.3%
mul-1-neg72.3%
+-commutative72.3%
associate--l+72.3%
associate-*r*72.3%
associate-*r*72.3%
associate--l+72.3%
+-commutative72.3%
mul-1-neg72.3%
sub-neg72.3%
associate--r+72.3%
Simplified79.8%
if 1.26e14 < t Initial program 97.5%
Taylor expanded in t around inf 95.2%
+-commutative95.2%
*-commutative95.2%
associate-*r*95.2%
neg-mul-195.2%
neg-sub095.2%
associate--r-95.2%
neg-sub095.2%
+-commutative95.2%
sub-neg95.2%
Simplified95.2%
Final simplification91.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (- c b) 1.6666666666666667))))))
(t_2 (/ x (+ x (* y (exp (* 2.0 (* a (- c b))))))))
(t_3 (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))))
(if (<= t -3.7e+68)
t_2
(if (<= t 5e-47)
t_3
(if (<= t 9.5e-34)
t_1
(if (<= t 1.45e-19) t_3 (if (<= t 3.1e+16) t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp(((c - b) * 1.6666666666666667))));
double t_2 = x / (x + (y * exp((2.0 * (a * (c - b))))));
double t_3 = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
double tmp;
if (t <= -3.7e+68) {
tmp = t_2;
} else if (t <= 5e-47) {
tmp = t_3;
} else if (t <= 9.5e-34) {
tmp = t_1;
} else if (t <= 1.45e-19) {
tmp = t_3;
} else if (t <= 3.1e+16) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x / (x + (y * exp(((c - b) * 1.6666666666666667d0))))
t_2 = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
t_3 = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
if (t <= (-3.7d+68)) then
tmp = t_2
else if (t <= 5d-47) then
tmp = t_3
else if (t <= 9.5d-34) then
tmp = t_1
else if (t <= 1.45d-19) then
tmp = t_3
else if (t <= 3.1d+16) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp(((c - b) * 1.6666666666666667))));
double t_2 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double t_3 = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
double tmp;
if (t <= -3.7e+68) {
tmp = t_2;
} else if (t <= 5e-47) {
tmp = t_3;
} else if (t <= 9.5e-34) {
tmp = t_1;
} else if (t <= 1.45e-19) {
tmp = t_3;
} else if (t <= 3.1e+16) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp(((c - b) * 1.6666666666666667)))) t_2 = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) t_3 = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) tmp = 0 if t <= -3.7e+68: tmp = t_2 elif t <= 5e-47: tmp = t_3 elif t <= 9.5e-34: tmp = t_1 elif t <= 1.45e-19: tmp = t_3 elif t <= 3.1e+16: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c - b) * 1.6666666666666667))))) t_2 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))) t_3 = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))) tmp = 0.0 if (t <= -3.7e+68) tmp = t_2; elseif (t <= 5e-47) tmp = t_3; elseif (t <= 9.5e-34) tmp = t_1; elseif (t <= 1.45e-19) tmp = t_3; elseif (t <= 3.1e+16) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp(((c - b) * 1.6666666666666667)))); t_2 = x / (x + (y * exp((2.0 * (a * (c - b)))))); t_3 = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); tmp = 0.0; if (t <= -3.7e+68) tmp = t_2; elseif (t <= 5e-47) tmp = t_3; elseif (t <= 9.5e-34) tmp = t_1; elseif (t <= 1.45e-19) tmp = t_3; elseif (t <= 3.1e+16) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(N[(c - b), $MachinePrecision] * 1.6666666666666667), $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]}, Block[{t$95$3 = N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.7e+68], t$95$2, If[LessEqual[t, 5e-47], t$95$3, If[LessEqual[t, 9.5e-34], t$95$1, If[LessEqual[t, 1.45e-19], t$95$3, If[LessEqual[t, 3.1e+16], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
t_2 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
t_3 := \frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{if}\;t \leq -3.7 \cdot 10^{+68}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-47}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{-34}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{-19}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{+16}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -3.69999999999999998e68 or 1.45e-19 < t < 3.1e16Initial program 95.4%
Taylor expanded in a around inf 82.0%
if -3.69999999999999998e68 < t < 5.00000000000000011e-47 or 9.49999999999999985e-34 < t < 1.45e-19Initial program 94.4%
Taylor expanded in t around 0 85.3%
Taylor expanded in a around 0 83.0%
if 5.00000000000000011e-47 < t < 9.49999999999999985e-34 or 3.1e16 < t Initial program 97.6%
Taylor expanded in t around inf 94.7%
+-commutative94.7%
*-commutative94.7%
associate-*r*94.7%
neg-mul-194.7%
neg-sub094.7%
associate--r-94.7%
neg-sub094.7%
+-commutative94.7%
sub-neg94.7%
Simplified94.7%
Taylor expanded in a around 0 83.6%
Final simplification83.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t -3.8e+68)
(/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))
(if (<= t 4e-47)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(/ x (+ x (* y (exp (* 2.0 (* (- c b) (+ 0.8333333333333334 a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -3.8e+68) {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
} else if (t <= 4e-47) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * ((c - b) * (0.8333333333333334 + a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= (-3.8d+68)) then
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
else if (t <= 4d-47) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * ((c - b) * (0.8333333333333334d0 + a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= -3.8e+68) {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
} else if (t <= 4e-47) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((c - b) * (0.8333333333333334 + a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= -3.8e+68: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) elif t <= 4e-47: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * ((c - b) * (0.8333333333333334 + a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= -3.8e+68) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); elseif (t <= 4e-47) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(c - b) * 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.8e+68) tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); elseif (t <= 4e-47) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); else tmp = x / (x + (y * exp((2.0 * ((c - b) * (0.8333333333333334 + a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, -3.8e+68], 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, 4e-47], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(c - b), $MachinePrecision] * N[(0.8333333333333334 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.8 \cdot 10^{+68}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-47}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(c - b\right) \cdot \left(0.8333333333333334 + a\right)\right)}}\\
\end{array}
\end{array}
if t < -3.8000000000000001e68Initial program 86.2%
Taylor expanded in a around inf 100.0%
if -3.8000000000000001e68 < t < 3.9999999999999999e-47Initial program 94.1%
Taylor expanded in t around 0 84.4%
Taylor expanded in a around 0 82.0%
if 3.9999999999999999e-47 < t Initial program 98.0%
Taylor expanded in t around inf 89.5%
+-commutative89.5%
*-commutative89.5%
associate-*r*89.5%
neg-mul-189.5%
neg-sub089.5%
associate--r-89.5%
neg-sub089.5%
+-commutative89.5%
sub-neg89.5%
Simplified89.5%
Final simplification86.8%
(FPCore (x y z t a b c) :precision binary64 (if (or (<= t -1.65e+69) (not (<= t 3e-47))) (/ x (+ x (* y (exp (* (- c b) 1.6666666666666667))))) (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -1.65e+69) || !(t <= 3e-47)) {
tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667))));
} else {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((t <= (-1.65d+69)) .or. (.not. (t <= 3d-47))) then
tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667d0))))
else
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -1.65e+69) || !(t <= 3e-47)) {
tmp = x / (x + (y * Math.exp(((c - b) * 1.6666666666666667))));
} else {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (t <= -1.65e+69) or not (t <= 3e-47): tmp = x / (x + (y * math.exp(((c - b) * 1.6666666666666667)))) else: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((t <= -1.65e+69) || !(t <= 3e-47)) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c - b) * 1.6666666666666667))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((t <= -1.65e+69) || ~((t <= 3e-47))) tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667)))); else tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[t, -1.65e+69], N[Not[LessEqual[t, 3e-47]], $MachinePrecision]], N[(x / N[(x + N[(y * N[Exp[N[(N[(c - b), $MachinePrecision] * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.65 \cdot 10^{+69} \lor \neg \left(t \leq 3 \cdot 10^{-47}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\end{array}
\end{array}
if t < -1.6499999999999999e69 or 3.00000000000000017e-47 < t Initial program 97.4%
Taylor expanded in t around inf 90.0%
+-commutative90.0%
*-commutative90.0%
associate-*r*90.0%
neg-mul-190.0%
neg-sub090.0%
associate--r-90.0%
neg-sub090.0%
+-commutative90.0%
sub-neg90.0%
Simplified90.0%
Taylor expanded in a around 0 79.3%
if -1.6499999999999999e69 < t < 3.00000000000000017e-47Initial program 94.1%
Taylor expanded in t around 0 84.4%
Taylor expanded in a around 0 82.0%
Final simplification80.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -1e+27)
(/ x (* y (exp (* (- c b) 1.6666666666666667))))
(if (<= (- b c) 0.0002)
(/
x
(+
x
(-
y
(*
2.0
(* (* y b) (- a (+ (/ 0.6666666666666666 t) -0.8333333333333334)))))))
(if (<= (- b c) 2e+147)
1.0
(if (<= (- b c) 1e+254)
(/ x (+ x (+ y (* 1.3333333333333333 (/ y (/ t (- b c)))))))
1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -1e+27) {
tmp = x / (y * exp(((c - b) * 1.6666666666666667)));
} else if ((b - c) <= 0.0002) {
tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else if ((b - c) <= 2e+147) {
tmp = 1.0;
} else if ((b - c) <= 1e+254) {
tmp = x / (x + (y + (1.3333333333333333 * (y / (t / (b - c))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= (-1d+27)) then
tmp = x / (y * exp(((c - b) * 1.6666666666666667d0)))
else if ((b - c) <= 0.0002d0) then
tmp = x / (x + (y - (2.0d0 * ((y * b) * (a - ((0.6666666666666666d0 / t) + (-0.8333333333333334d0)))))))
else if ((b - c) <= 2d+147) then
tmp = 1.0d0
else if ((b - c) <= 1d+254) then
tmp = x / (x + (y + (1.3333333333333333d0 * (y / (t / (b - c))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -1e+27) {
tmp = x / (y * Math.exp(((c - b) * 1.6666666666666667)));
} else if ((b - c) <= 0.0002) {
tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334))))));
} else if ((b - c) <= 2e+147) {
tmp = 1.0;
} else if ((b - c) <= 1e+254) {
tmp = x / (x + (y + (1.3333333333333333 * (y / (t / (b - c))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -1e+27: tmp = x / (y * math.exp(((c - b) * 1.6666666666666667))) elif (b - c) <= 0.0002: tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334)))))) elif (b - c) <= 2e+147: tmp = 1.0 elif (b - c) <= 1e+254: tmp = x / (x + (y + (1.3333333333333333 * (y / (t / (b - c)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -1e+27) tmp = Float64(x / Float64(y * exp(Float64(Float64(c - b) * 1.6666666666666667)))); elseif (Float64(b - c) <= 0.0002) tmp = Float64(x / Float64(x + Float64(y - Float64(2.0 * Float64(Float64(y * b) * Float64(a - Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334))))))); elseif (Float64(b - c) <= 2e+147) tmp = 1.0; elseif (Float64(b - c) <= 1e+254) tmp = Float64(x / Float64(x + Float64(y + Float64(1.3333333333333333 * Float64(y / Float64(t / Float64(b - c))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= -1e+27) tmp = x / (y * exp(((c - b) * 1.6666666666666667))); elseif ((b - c) <= 0.0002) tmp = x / (x + (y - (2.0 * ((y * b) * (a - ((0.6666666666666666 / t) + -0.8333333333333334)))))); elseif ((b - c) <= 2e+147) tmp = 1.0; elseif ((b - c) <= 1e+254) tmp = x / (x + (y + (1.3333333333333333 * (y / (t / (b - c)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -1e+27], N[(x / N[(y * N[Exp[N[(N[(c - b), $MachinePrecision] * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 0.0002], 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[N[(b - c), $MachinePrecision], 2e+147], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 1e+254], N[(x / N[(x + N[(y + N[(1.3333333333333333 * N[(y / N[(t / N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -1 \cdot 10^{+27}:\\
\;\;\;\;\frac{x}{y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\mathbf{elif}\;b - c \leq 0.0002:\\
\;\;\;\;\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}\;b - c \leq 2 \cdot 10^{+147}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 10^{+254}:\\
\;\;\;\;\frac{x}{x + \left(y + 1.3333333333333333 \cdot \frac{y}{\frac{t}{b - c}}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -1e27Initial program 94.8%
Taylor expanded in t around inf 78.6%
+-commutative78.6%
*-commutative78.6%
associate-*r*78.6%
neg-mul-178.6%
neg-sub078.6%
associate--r-78.6%
neg-sub078.6%
+-commutative78.6%
sub-neg78.6%
Simplified78.6%
Taylor expanded in a around 0 74.5%
Taylor expanded in x around 0 74.5%
if -1e27 < (-.f64 b c) < 2.0000000000000001e-4Initial program 100.0%
Taylor expanded in b around inf 67.2%
associate-*r/67.2%
metadata-eval67.2%
+-commutative67.2%
Simplified67.2%
Taylor expanded in b around 0 57.9%
associate-*r*59.3%
associate--r+59.3%
sub-neg59.3%
associate-*r/59.3%
metadata-eval59.3%
metadata-eval59.3%
Simplified59.3%
if 2.0000000000000001e-4 < (-.f64 b c) < 2e147 or 9.9999999999999994e253 < (-.f64 b c) Initial program 95.1%
Taylor expanded in a around inf 63.8%
Taylor expanded in a around 0 44.8%
associate-+r+44.8%
+-commutative44.8%
*-commutative44.8%
Simplified44.8%
Taylor expanded in x around inf 74.6%
if 2e147 < (-.f64 b c) < 9.9999999999999994e253Initial program 92.6%
Taylor expanded in t around 0 44.9%
Taylor expanded in a around 0 82.1%
Taylor expanded in t around inf 54.6%
associate-/l*46.2%
Simplified64.3%
Final simplification69.1%
(FPCore (x y z t a b c) :precision binary64 (if (<= y -3e+197) (/ x (+ (+ x y) (* 2.0 (* a (* y (- c b)))))) (/ x (+ x (* y (exp (* (- c b) 1.6666666666666667)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -3e+197) {
tmp = x / ((x + y) + (2.0 * (a * (y * (c - b)))));
} else {
tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (y <= (-3d+197)) then
tmp = x / ((x + y) + (2.0d0 * (a * (y * (c - b)))))
else
tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -3e+197) {
tmp = x / ((x + y) + (2.0 * (a * (y * (c - b)))));
} else {
tmp = x / (x + (y * Math.exp(((c - b) * 1.6666666666666667))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -3e+197: tmp = x / ((x + y) + (2.0 * (a * (y * (c - b))))) else: tmp = x / (x + (y * math.exp(((c - b) * 1.6666666666666667)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -3e+197) tmp = Float64(x / Float64(Float64(x + y) + Float64(2.0 * Float64(a * Float64(y * Float64(c - b)))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(c - b) * 1.6666666666666667))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (y <= -3e+197) tmp = x / ((x + y) + (2.0 * (a * (y * (c - b))))); else tmp = x / (x + (y * exp(((c - b) * 1.6666666666666667)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -3e+197], N[(x / N[(N[(x + y), $MachinePrecision] + N[(2.0 * N[(a * N[(y * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(N[(c - b), $MachinePrecision] * 1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3 \cdot 10^{+197}:\\
\;\;\;\;\frac{x}{\left(x + y\right) + 2 \cdot \left(a \cdot \left(y \cdot \left(c - b\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(c - b\right) \cdot 1.6666666666666667}}\\
\end{array}
\end{array}
if y < -3.0000000000000002e197Initial program 100.0%
Taylor expanded in a around inf 57.9%
Taylor expanded in a around 0 75.8%
associate-+r+75.8%
+-commutative75.8%
*-commutative75.8%
Simplified75.8%
if -3.0000000000000002e197 < y Initial program 95.6%
Taylor expanded in t around inf 74.7%
+-commutative74.7%
*-commutative74.7%
associate-*r*74.7%
neg-mul-174.7%
neg-sub074.7%
associate--r-74.7%
neg-sub074.7%
+-commutative74.7%
sub-neg74.7%
Simplified74.7%
Taylor expanded in a around 0 67.0%
Final simplification68.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -2e+63)
(/ x (* y (+ 1.0 (* (- c b) (* 2.0 a)))))
(if (<= (- b c) -5e+37)
1.0
(if (<= (- b c) 5e-90)
(/ x (+ (+ x y) (* 2.0 (* y (* a c)))))
(if (<= (- b c) 1e+189)
1.0
(if (<= (- b c) 2e+214)
(/ x (+ y (* 1.3333333333333333 (/ y (/ t (- b c))))))
1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -2e+63) {
tmp = x / (y * (1.0 + ((c - b) * (2.0 * a))));
} else if ((b - c) <= -5e+37) {
tmp = 1.0;
} else if ((b - c) <= 5e-90) {
tmp = x / ((x + y) + (2.0 * (y * (a * c))));
} else if ((b - c) <= 1e+189) {
tmp = 1.0;
} else if ((b - c) <= 2e+214) {
tmp = x / (y + (1.3333333333333333 * (y / (t / (b - c)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= (-2d+63)) then
tmp = x / (y * (1.0d0 + ((c - b) * (2.0d0 * a))))
else if ((b - c) <= (-5d+37)) then
tmp = 1.0d0
else if ((b - c) <= 5d-90) then
tmp = x / ((x + y) + (2.0d0 * (y * (a * c))))
else if ((b - c) <= 1d+189) then
tmp = 1.0d0
else if ((b - c) <= 2d+214) then
tmp = x / (y + (1.3333333333333333d0 * (y / (t / (b - c)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -2e+63) {
tmp = x / (y * (1.0 + ((c - b) * (2.0 * a))));
} else if ((b - c) <= -5e+37) {
tmp = 1.0;
} else if ((b - c) <= 5e-90) {
tmp = x / ((x + y) + (2.0 * (y * (a * c))));
} else if ((b - c) <= 1e+189) {
tmp = 1.0;
} else if ((b - c) <= 2e+214) {
tmp = x / (y + (1.3333333333333333 * (y / (t / (b - c)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -2e+63: tmp = x / (y * (1.0 + ((c - b) * (2.0 * a)))) elif (b - c) <= -5e+37: tmp = 1.0 elif (b - c) <= 5e-90: tmp = x / ((x + y) + (2.0 * (y * (a * c)))) elif (b - c) <= 1e+189: tmp = 1.0 elif (b - c) <= 2e+214: tmp = x / (y + (1.3333333333333333 * (y / (t / (b - c))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -2e+63) tmp = Float64(x / Float64(y * Float64(1.0 + Float64(Float64(c - b) * Float64(2.0 * a))))); elseif (Float64(b - c) <= -5e+37) tmp = 1.0; elseif (Float64(b - c) <= 5e-90) tmp = Float64(x / Float64(Float64(x + y) + Float64(2.0 * Float64(y * Float64(a * c))))); elseif (Float64(b - c) <= 1e+189) tmp = 1.0; elseif (Float64(b - c) <= 2e+214) tmp = Float64(x / Float64(y + Float64(1.3333333333333333 * Float64(y / Float64(t / Float64(b - c)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= -2e+63) tmp = x / (y * (1.0 + ((c - b) * (2.0 * a)))); elseif ((b - c) <= -5e+37) tmp = 1.0; elseif ((b - c) <= 5e-90) tmp = x / ((x + y) + (2.0 * (y * (a * c)))); elseif ((b - c) <= 1e+189) tmp = 1.0; elseif ((b - c) <= 2e+214) tmp = x / (y + (1.3333333333333333 * (y / (t / (b - c))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -2e+63], N[(x / N[(y * N[(1.0 + N[(N[(c - b), $MachinePrecision] * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], -5e+37], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 5e-90], N[(x / N[(N[(x + y), $MachinePrecision] + N[(2.0 * N[(y * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 1e+189], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 2e+214], N[(x / N[(y + N[(1.3333333333333333 * N[(y / N[(t / N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -2 \cdot 10^{+63}:\\
\;\;\;\;\frac{x}{y \cdot \left(1 + \left(c - b\right) \cdot \left(2 \cdot a\right)\right)}\\
\mathbf{elif}\;b - c \leq -5 \cdot 10^{+37}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 5 \cdot 10^{-90}:\\
\;\;\;\;\frac{x}{\left(x + y\right) + 2 \cdot \left(y \cdot \left(a \cdot c\right)\right)}\\
\mathbf{elif}\;b - c \leq 10^{+189}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 2 \cdot 10^{+214}:\\
\;\;\;\;\frac{x}{y + 1.3333333333333333 \cdot \frac{y}{\frac{t}{b - c}}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -2.00000000000000012e63Initial program 95.2%
Taylor expanded in a around inf 65.1%
Taylor expanded in a around 0 49.0%
associate-+r+49.0%
+-commutative49.0%
*-commutative49.0%
Simplified49.0%
Taylor expanded in y around inf 40.8%
associate-*r*40.8%
Simplified40.8%
if -2.00000000000000012e63 < (-.f64 b c) < -4.99999999999999989e37 or 5.00000000000000019e-90 < (-.f64 b c) < 1e189 or 1.9999999999999999e214 < (-.f64 b c) Initial program 94.2%
Taylor expanded in a around inf 58.2%
Taylor expanded in a around 0 38.9%
associate-+r+38.9%
+-commutative38.9%
*-commutative38.9%
Simplified38.9%
Taylor expanded in x around inf 65.6%
if -4.99999999999999989e37 < (-.f64 b c) < 5.00000000000000019e-90Initial program 100.0%
Taylor expanded in a around inf 76.8%
Taylor expanded in a around 0 58.3%
associate-+r+58.3%
+-commutative58.3%
*-commutative58.3%
Simplified58.3%
Taylor expanded in c around inf 58.4%
associate-*r*58.5%
Simplified58.5%
if 1e189 < (-.f64 b c) < 1.9999999999999999e214Initial program 100.0%
Taylor expanded in t around 0 43.3%
Taylor expanded in a around 0 86.2%
Taylor expanded in x around 0 86.2%
Taylor expanded in t around inf 72.3%
associate-/l*86.2%
Simplified86.2%
Final simplification56.4%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) -2e+201)
(/ x (+ (+ x y) (* 2.0 (* a (* y (- c b))))))
(if (<= (- b c) 5e-90)
(/ x (+ x (* y (+ 1.0 (* (- c b) (* 2.0 a))))))
(if (<= (- b c) 2e+147)
1.0
(if (<= (- b c) 1e+254)
(/ x (+ x (+ y (* 1.3333333333333333 (/ y (/ t (- b c)))))))
1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -2e+201) {
tmp = x / ((x + y) + (2.0 * (a * (y * (c - b)))));
} else if ((b - c) <= 5e-90) {
tmp = x / (x + (y * (1.0 + ((c - b) * (2.0 * a)))));
} else if ((b - c) <= 2e+147) {
tmp = 1.0;
} else if ((b - c) <= 1e+254) {
tmp = x / (x + (y + (1.3333333333333333 * (y / (t / (b - c))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= (-2d+201)) then
tmp = x / ((x + y) + (2.0d0 * (a * (y * (c - b)))))
else if ((b - c) <= 5d-90) then
tmp = x / (x + (y * (1.0d0 + ((c - b) * (2.0d0 * a)))))
else if ((b - c) <= 2d+147) then
tmp = 1.0d0
else if ((b - c) <= 1d+254) then
tmp = x / (x + (y + (1.3333333333333333d0 * (y / (t / (b - c))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= -2e+201) {
tmp = x / ((x + y) + (2.0 * (a * (y * (c - b)))));
} else if ((b - c) <= 5e-90) {
tmp = x / (x + (y * (1.0 + ((c - b) * (2.0 * a)))));
} else if ((b - c) <= 2e+147) {
tmp = 1.0;
} else if ((b - c) <= 1e+254) {
tmp = x / (x + (y + (1.3333333333333333 * (y / (t / (b - c))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= -2e+201: tmp = x / ((x + y) + (2.0 * (a * (y * (c - b))))) elif (b - c) <= 5e-90: tmp = x / (x + (y * (1.0 + ((c - b) * (2.0 * a))))) elif (b - c) <= 2e+147: tmp = 1.0 elif (b - c) <= 1e+254: tmp = x / (x + (y + (1.3333333333333333 * (y / (t / (b - c)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= -2e+201) tmp = Float64(x / Float64(Float64(x + y) + Float64(2.0 * Float64(a * Float64(y * Float64(c - b)))))); elseif (Float64(b - c) <= 5e-90) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(Float64(c - b) * Float64(2.0 * a)))))); elseif (Float64(b - c) <= 2e+147) tmp = 1.0; elseif (Float64(b - c) <= 1e+254) tmp = Float64(x / Float64(x + Float64(y + Float64(1.3333333333333333 * Float64(y / Float64(t / Float64(b - c))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= -2e+201) tmp = x / ((x + y) + (2.0 * (a * (y * (c - b))))); elseif ((b - c) <= 5e-90) tmp = x / (x + (y * (1.0 + ((c - b) * (2.0 * a))))); elseif ((b - c) <= 2e+147) tmp = 1.0; elseif ((b - c) <= 1e+254) tmp = x / (x + (y + (1.3333333333333333 * (y / (t / (b - c)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], -2e+201], N[(x / N[(N[(x + y), $MachinePrecision] + N[(2.0 * N[(a * N[(y * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 5e-90], N[(x / N[(x + N[(y * N[(1.0 + N[(N[(c - b), $MachinePrecision] * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 2e+147], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 1e+254], N[(x / N[(x + N[(y + N[(1.3333333333333333 * N[(y / N[(t / N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq -2 \cdot 10^{+201}:\\
\;\;\;\;\frac{x}{\left(x + y\right) + 2 \cdot \left(a \cdot \left(y \cdot \left(c - b\right)\right)\right)}\\
\mathbf{elif}\;b - c \leq 5 \cdot 10^{-90}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + \left(c - b\right) \cdot \left(2 \cdot a\right)\right)}\\
\mathbf{elif}\;b - c \leq 2 \cdot 10^{+147}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 10^{+254}:\\
\;\;\;\;\frac{x}{x + \left(y + 1.3333333333333333 \cdot \frac{y}{\frac{t}{b - c}}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < -2.00000000000000008e201Initial program 94.1%
Taylor expanded in a around inf 60.2%
Taylor expanded in a around 0 63.3%
associate-+r+63.3%
+-commutative63.3%
*-commutative63.3%
Simplified63.3%
if -2.00000000000000008e201 < (-.f64 b c) < 5.00000000000000019e-90Initial program 97.5%
Taylor expanded in a around inf 70.9%
Taylor expanded in a around 0 51.8%
associate-*r*51.8%
Simplified51.8%
if 5.00000000000000019e-90 < (-.f64 b c) < 2e147 or 9.9999999999999994e253 < (-.f64 b c) Initial program 96.1%
Taylor expanded in a around inf 63.4%
Taylor expanded in a around 0 44.4%
associate-+r+44.4%
+-commutative44.4%
*-commutative44.4%
Simplified44.4%
Taylor expanded in x around inf 69.5%
if 2e147 < (-.f64 b c) < 9.9999999999999994e253Initial program 92.6%
Taylor expanded in t around 0 44.9%
Taylor expanded in a around 0 82.1%
Taylor expanded in t around inf 54.6%
associate-/l*46.2%
Simplified64.3%
Final simplification59.9%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) 5e-90)
(/ x (+ x (* y (+ 1.0 (* (- c b) (* 2.0 a))))))
(if (<= (- b c) 2e+147)
1.0
(if (<= (- b c) 1e+254)
(/ x (+ x (+ y (* 1.3333333333333333 (/ y (/ t (- b c)))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 5e-90) {
tmp = x / (x + (y * (1.0 + ((c - b) * (2.0 * a)))));
} else if ((b - c) <= 2e+147) {
tmp = 1.0;
} else if ((b - c) <= 1e+254) {
tmp = x / (x + (y + (1.3333333333333333 * (y / (t / (b - c))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= 5d-90) then
tmp = x / (x + (y * (1.0d0 + ((c - b) * (2.0d0 * a)))))
else if ((b - c) <= 2d+147) then
tmp = 1.0d0
else if ((b - c) <= 1d+254) then
tmp = x / (x + (y + (1.3333333333333333d0 * (y / (t / (b - c))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 5e-90) {
tmp = x / (x + (y * (1.0 + ((c - b) * (2.0 * a)))));
} else if ((b - c) <= 2e+147) {
tmp = 1.0;
} else if ((b - c) <= 1e+254) {
tmp = x / (x + (y + (1.3333333333333333 * (y / (t / (b - c))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= 5e-90: tmp = x / (x + (y * (1.0 + ((c - b) * (2.0 * a))))) elif (b - c) <= 2e+147: tmp = 1.0 elif (b - c) <= 1e+254: tmp = x / (x + (y + (1.3333333333333333 * (y / (t / (b - c)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= 5e-90) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(Float64(c - b) * Float64(2.0 * a)))))); elseif (Float64(b - c) <= 2e+147) tmp = 1.0; elseif (Float64(b - c) <= 1e+254) tmp = Float64(x / Float64(x + Float64(y + Float64(1.3333333333333333 * Float64(y / Float64(t / Float64(b - c))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= 5e-90) tmp = x / (x + (y * (1.0 + ((c - b) * (2.0 * a))))); elseif ((b - c) <= 2e+147) tmp = 1.0; elseif ((b - c) <= 1e+254) tmp = x / (x + (y + (1.3333333333333333 * (y / (t / (b - c)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], 5e-90], N[(x / N[(x + N[(y * N[(1.0 + N[(N[(c - b), $MachinePrecision] * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 2e+147], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 1e+254], N[(x / N[(x + N[(y + N[(1.3333333333333333 * N[(y / N[(t / N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq 5 \cdot 10^{-90}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + \left(c - b\right) \cdot \left(2 \cdot a\right)\right)}\\
\mathbf{elif}\;b - c \leq 2 \cdot 10^{+147}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 10^{+254}:\\
\;\;\;\;\frac{x}{x + \left(y + 1.3333333333333333 \cdot \frac{y}{\frac{t}{b - c}}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < 5.00000000000000019e-90Initial program 96.8%
Taylor expanded in a around inf 68.5%
Taylor expanded in a around 0 51.2%
associate-*r*51.2%
Simplified51.2%
if 5.00000000000000019e-90 < (-.f64 b c) < 2e147 or 9.9999999999999994e253 < (-.f64 b c) Initial program 96.1%
Taylor expanded in a around inf 63.4%
Taylor expanded in a around 0 44.4%
associate-+r+44.4%
+-commutative44.4%
*-commutative44.4%
Simplified44.4%
Taylor expanded in x around inf 69.5%
if 2e147 < (-.f64 b c) < 9.9999999999999994e253Initial program 92.6%
Taylor expanded in t around 0 44.9%
Taylor expanded in a around 0 82.1%
Taylor expanded in t around inf 54.6%
associate-/l*46.2%
Simplified64.3%
Final simplification58.0%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) 0.0002)
(/
x
(-
x
(*
y
(-
-1.0
(* 2.0 (* (+ 0.8333333333333334 (- a (/ 0.6666666666666666 t))) c))))))
(if (<= (- b c) 2e+147)
1.0
(if (<= (- b c) 1e+254)
(/ x (+ x (+ y (* 1.3333333333333333 (/ y (/ t (- b c)))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 0.0002) {
tmp = x / (x - (y * (-1.0 - (2.0 * ((0.8333333333333334 + (a - (0.6666666666666666 / t))) * c)))));
} else if ((b - c) <= 2e+147) {
tmp = 1.0;
} else if ((b - c) <= 1e+254) {
tmp = x / (x + (y + (1.3333333333333333 * (y / (t / (b - c))))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= 0.0002d0) then
tmp = x / (x - (y * ((-1.0d0) - (2.0d0 * ((0.8333333333333334d0 + (a - (0.6666666666666666d0 / t))) * c)))))
else if ((b - c) <= 2d+147) then
tmp = 1.0d0
else if ((b - c) <= 1d+254) then
tmp = x / (x + (y + (1.3333333333333333d0 * (y / (t / (b - c))))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 0.0002) {
tmp = x / (x - (y * (-1.0 - (2.0 * ((0.8333333333333334 + (a - (0.6666666666666666 / t))) * c)))));
} else if ((b - c) <= 2e+147) {
tmp = 1.0;
} else if ((b - c) <= 1e+254) {
tmp = x / (x + (y + (1.3333333333333333 * (y / (t / (b - c))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= 0.0002: tmp = x / (x - (y * (-1.0 - (2.0 * ((0.8333333333333334 + (a - (0.6666666666666666 / t))) * c))))) elif (b - c) <= 2e+147: tmp = 1.0 elif (b - c) <= 1e+254: tmp = x / (x + (y + (1.3333333333333333 * (y / (t / (b - c)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= 0.0002) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(2.0 * Float64(Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))) * c)))))); elseif (Float64(b - c) <= 2e+147) tmp = 1.0; elseif (Float64(b - c) <= 1e+254) tmp = Float64(x / Float64(x + Float64(y + Float64(1.3333333333333333 * Float64(y / Float64(t / Float64(b - c))))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= 0.0002) tmp = x / (x - (y * (-1.0 - (2.0 * ((0.8333333333333334 + (a - (0.6666666666666666 / t))) * c))))); elseif ((b - c) <= 2e+147) tmp = 1.0; elseif ((b - c) <= 1e+254) tmp = x / (x + (y + (1.3333333333333333 * (y / (t / (b - c)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], 0.0002], N[(x / N[(x - N[(y * N[(-1.0 - N[(2.0 * N[(N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 2e+147], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 1e+254], N[(x / N[(x + N[(y + N[(1.3333333333333333 * N[(y / N[(t / N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq 0.0002:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - 2 \cdot \left(\left(0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\right) \cdot c\right)\right)}\\
\mathbf{elif}\;b - c \leq 2 \cdot 10^{+147}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 10^{+254}:\\
\;\;\;\;\frac{x}{x + \left(y + 1.3333333333333333 \cdot \frac{y}{\frac{t}{b - c}}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < 2.0000000000000001e-4Initial program 97.0%
Taylor expanded in c around inf 71.0%
associate-*r/71.0%
metadata-eval71.0%
+-commutative71.0%
Simplified71.0%
Taylor expanded in c around 0 51.7%
+-commutative51.7%
associate-*r/51.7%
metadata-eval51.7%
unsub-neg51.7%
+-commutative51.7%
associate-+l+51.7%
remove-double-neg51.7%
mul-1-neg51.7%
distribute-neg-in51.7%
metadata-eval51.7%
associate-*r/51.7%
sub-neg51.7%
sub-neg51.7%
Simplified51.7%
if 2.0000000000000001e-4 < (-.f64 b c) < 2e147 or 9.9999999999999994e253 < (-.f64 b c) Initial program 95.1%
Taylor expanded in a around inf 63.8%
Taylor expanded in a around 0 44.8%
associate-+r+44.8%
+-commutative44.8%
*-commutative44.8%
Simplified44.8%
Taylor expanded in x around inf 74.6%
if 2e147 < (-.f64 b c) < 9.9999999999999994e253Initial program 92.6%
Taylor expanded in t around 0 44.9%
Taylor expanded in a around 0 82.1%
Taylor expanded in t around inf 54.6%
associate-/l*46.2%
Simplified64.3%
Final simplification58.5%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) 5e-90)
(/ x (+ x (* y (+ 1.0 (* (- c b) (* 2.0 a))))))
(if (<= (- b c) 1e+189)
1.0
(if (<= (- b c) 2e+214)
(/ x (+ y (* 1.3333333333333333 (/ y (/ t (- b c))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 5e-90) {
tmp = x / (x + (y * (1.0 + ((c - b) * (2.0 * a)))));
} else if ((b - c) <= 1e+189) {
tmp = 1.0;
} else if ((b - c) <= 2e+214) {
tmp = x / (y + (1.3333333333333333 * (y / (t / (b - c)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= 5d-90) then
tmp = x / (x + (y * (1.0d0 + ((c - b) * (2.0d0 * a)))))
else if ((b - c) <= 1d+189) then
tmp = 1.0d0
else if ((b - c) <= 2d+214) then
tmp = x / (y + (1.3333333333333333d0 * (y / (t / (b - c)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 5e-90) {
tmp = x / (x + (y * (1.0 + ((c - b) * (2.0 * a)))));
} else if ((b - c) <= 1e+189) {
tmp = 1.0;
} else if ((b - c) <= 2e+214) {
tmp = x / (y + (1.3333333333333333 * (y / (t / (b - c)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= 5e-90: tmp = x / (x + (y * (1.0 + ((c - b) * (2.0 * a))))) elif (b - c) <= 1e+189: tmp = 1.0 elif (b - c) <= 2e+214: tmp = x / (y + (1.3333333333333333 * (y / (t / (b - c))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= 5e-90) tmp = Float64(x / Float64(x + Float64(y * Float64(1.0 + Float64(Float64(c - b) * Float64(2.0 * a)))))); elseif (Float64(b - c) <= 1e+189) tmp = 1.0; elseif (Float64(b - c) <= 2e+214) tmp = Float64(x / Float64(y + Float64(1.3333333333333333 * Float64(y / Float64(t / Float64(b - c)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= 5e-90) tmp = x / (x + (y * (1.0 + ((c - b) * (2.0 * a))))); elseif ((b - c) <= 1e+189) tmp = 1.0; elseif ((b - c) <= 2e+214) tmp = x / (y + (1.3333333333333333 * (y / (t / (b - c))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], 5e-90], N[(x / N[(x + N[(y * N[(1.0 + N[(N[(c - b), $MachinePrecision] * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(b - c), $MachinePrecision], 1e+189], 1.0, If[LessEqual[N[(b - c), $MachinePrecision], 2e+214], N[(x / N[(y + N[(1.3333333333333333 * N[(y / N[(t / N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq 5 \cdot 10^{-90}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(1 + \left(c - b\right) \cdot \left(2 \cdot a\right)\right)}\\
\mathbf{elif}\;b - c \leq 10^{+189}:\\
\;\;\;\;1\\
\mathbf{elif}\;b - c \leq 2 \cdot 10^{+214}:\\
\;\;\;\;\frac{x}{y + 1.3333333333333333 \cdot \frac{y}{\frac{t}{b - c}}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (-.f64 b c) < 5.00000000000000019e-90Initial program 96.8%
Taylor expanded in a around inf 68.5%
Taylor expanded in a around 0 51.2%
associate-*r*51.2%
Simplified51.2%
if 5.00000000000000019e-90 < (-.f64 b c) < 1e189 or 1.9999999999999999e214 < (-.f64 b c) Initial program 94.8%
Taylor expanded in a around inf 59.7%
Taylor expanded in a around 0 39.9%
associate-+r+39.9%
+-commutative39.9%
*-commutative39.9%
Simplified39.9%
Taylor expanded in x around inf 64.7%
if 1e189 < (-.f64 b c) < 1.9999999999999999e214Initial program 100.0%
Taylor expanded in t around 0 43.3%
Taylor expanded in a around 0 86.2%
Taylor expanded in x around 0 86.2%
Taylor expanded in t around inf 72.3%
associate-/l*86.2%
Simplified86.2%
Final simplification57.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x y))))
(if (<= c -1.65e-86)
1.0
(if (<= c -3.4e-191)
t_1
(if (<= c 8.5e-308)
1.0
(if (<= c 9.2e-173)
t_1
(if (<= c 2.35e+75) 1.0 (* 0.5 (/ (/ x a) (* y c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + y);
double tmp;
if (c <= -1.65e-86) {
tmp = 1.0;
} else if (c <= -3.4e-191) {
tmp = t_1;
} else if (c <= 8.5e-308) {
tmp = 1.0;
} else if (c <= 9.2e-173) {
tmp = t_1;
} else if (c <= 2.35e+75) {
tmp = 1.0;
} else {
tmp = 0.5 * ((x / a) / (y * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + y)
if (c <= (-1.65d-86)) then
tmp = 1.0d0
else if (c <= (-3.4d-191)) then
tmp = t_1
else if (c <= 8.5d-308) then
tmp = 1.0d0
else if (c <= 9.2d-173) then
tmp = t_1
else if (c <= 2.35d+75) then
tmp = 1.0d0
else
tmp = 0.5d0 * ((x / a) / (y * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + y);
double tmp;
if (c <= -1.65e-86) {
tmp = 1.0;
} else if (c <= -3.4e-191) {
tmp = t_1;
} else if (c <= 8.5e-308) {
tmp = 1.0;
} else if (c <= 9.2e-173) {
tmp = t_1;
} else if (c <= 2.35e+75) {
tmp = 1.0;
} else {
tmp = 0.5 * ((x / a) / (y * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + y) tmp = 0 if c <= -1.65e-86: tmp = 1.0 elif c <= -3.4e-191: tmp = t_1 elif c <= 8.5e-308: tmp = 1.0 elif c <= 9.2e-173: tmp = t_1 elif c <= 2.35e+75: tmp = 1.0 else: tmp = 0.5 * ((x / a) / (y * c)) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + y)) tmp = 0.0 if (c <= -1.65e-86) tmp = 1.0; elseif (c <= -3.4e-191) tmp = t_1; elseif (c <= 8.5e-308) tmp = 1.0; elseif (c <= 9.2e-173) tmp = t_1; elseif (c <= 2.35e+75) tmp = 1.0; else tmp = Float64(0.5 * Float64(Float64(x / a) / Float64(y * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + y); tmp = 0.0; if (c <= -1.65e-86) tmp = 1.0; elseif (c <= -3.4e-191) tmp = t_1; elseif (c <= 8.5e-308) tmp = 1.0; elseif (c <= 9.2e-173) tmp = t_1; elseif (c <= 2.35e+75) tmp = 1.0; else tmp = 0.5 * ((x / a) / (y * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.65e-86], 1.0, If[LessEqual[c, -3.4e-191], t$95$1, If[LessEqual[c, 8.5e-308], 1.0, If[LessEqual[c, 9.2e-173], t$95$1, If[LessEqual[c, 2.35e+75], 1.0, N[(0.5 * N[(N[(x / a), $MachinePrecision] / N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y}\\
\mathbf{if}\;c \leq -1.65 \cdot 10^{-86}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq -3.4 \cdot 10^{-191}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 8.5 \cdot 10^{-308}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 9.2 \cdot 10^{-173}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2.35 \cdot 10^{+75}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \frac{\frac{x}{a}}{y \cdot c}\\
\end{array}
\end{array}
if c < -1.64999999999999993e-86 or -3.39999999999999994e-191 < c < 8.49999999999999972e-308 or 9.19999999999999951e-173 < c < 2.34999999999999992e75Initial program 96.8%
Taylor expanded in a around inf 59.6%
Taylor expanded in a around 0 40.4%
associate-+r+40.4%
+-commutative40.4%
*-commutative40.4%
Simplified40.4%
Taylor expanded in x around inf 55.7%
if -1.64999999999999993e-86 < c < -3.39999999999999994e-191 or 8.49999999999999972e-308 < c < 9.19999999999999951e-173Initial program 98.1%
Taylor expanded in a around inf 78.2%
Taylor expanded in a around 0 58.7%
+-commutative58.7%
Simplified58.7%
if 2.34999999999999992e75 < c Initial program 92.0%
Taylor expanded in a around inf 67.2%
Taylor expanded in a around 0 57.7%
associate-+r+57.7%
+-commutative57.7%
*-commutative57.7%
Simplified57.7%
Taylor expanded in a around inf 53.5%
associate-*r/53.5%
associate-*r*42.3%
Simplified42.3%
Taylor expanded in c around inf 51.6%
associate-/r*45.6%
Simplified45.6%
Final simplification54.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<= a 5.2e-36)
1.0
(if (<= a 1.66e+28)
(/ x (+ y (* 1.3333333333333333 (/ y (/ t (- b c))))))
(if (<= a 5.1e+212) 1.0 (/ x (* y (+ 1.0 (* (- c b) (* 2.0 a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 5.2e-36) {
tmp = 1.0;
} else if (a <= 1.66e+28) {
tmp = x / (y + (1.3333333333333333 * (y / (t / (b - c)))));
} else if (a <= 5.1e+212) {
tmp = 1.0;
} else {
tmp = x / (y * (1.0 + ((c - b) * (2.0 * 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 (a <= 5.2d-36) then
tmp = 1.0d0
else if (a <= 1.66d+28) then
tmp = x / (y + (1.3333333333333333d0 * (y / (t / (b - c)))))
else if (a <= 5.1d+212) then
tmp = 1.0d0
else
tmp = x / (y * (1.0d0 + ((c - b) * (2.0d0 * 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 (a <= 5.2e-36) {
tmp = 1.0;
} else if (a <= 1.66e+28) {
tmp = x / (y + (1.3333333333333333 * (y / (t / (b - c)))));
} else if (a <= 5.1e+212) {
tmp = 1.0;
} else {
tmp = x / (y * (1.0 + ((c - b) * (2.0 * a))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 5.2e-36: tmp = 1.0 elif a <= 1.66e+28: tmp = x / (y + (1.3333333333333333 * (y / (t / (b - c))))) elif a <= 5.1e+212: tmp = 1.0 else: tmp = x / (y * (1.0 + ((c - b) * (2.0 * a)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 5.2e-36) tmp = 1.0; elseif (a <= 1.66e+28) tmp = Float64(x / Float64(y + Float64(1.3333333333333333 * Float64(y / Float64(t / Float64(b - c)))))); elseif (a <= 5.1e+212) tmp = 1.0; else tmp = Float64(x / Float64(y * Float64(1.0 + Float64(Float64(c - b) * Float64(2.0 * a))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= 5.2e-36) tmp = 1.0; elseif (a <= 1.66e+28) tmp = x / (y + (1.3333333333333333 * (y / (t / (b - c))))); elseif (a <= 5.1e+212) tmp = 1.0; else tmp = x / (y * (1.0 + ((c - b) * (2.0 * a)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 5.2e-36], 1.0, If[LessEqual[a, 1.66e+28], N[(x / N[(y + N[(1.3333333333333333 * N[(y / N[(t / N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.1e+212], 1.0, N[(x / N[(y * N[(1.0 + N[(N[(c - b), $MachinePrecision] * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 5.2 \cdot 10^{-36}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 1.66 \cdot 10^{+28}:\\
\;\;\;\;\frac{x}{y + 1.3333333333333333 \cdot \frac{y}{\frac{t}{b - c}}}\\
\mathbf{elif}\;a \leq 5.1 \cdot 10^{+212}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(1 + \left(c - b\right) \cdot \left(2 \cdot a\right)\right)}\\
\end{array}
\end{array}
if a < 5.2000000000000001e-36 or 1.6599999999999999e28 < a < 5.1000000000000002e212Initial program 96.9%
Taylor expanded in a around inf 61.9%
Taylor expanded in a around 0 47.2%
associate-+r+47.2%
+-commutative47.2%
*-commutative47.2%
Simplified47.2%
Taylor expanded in x around inf 51.3%
if 5.2000000000000001e-36 < a < 1.6599999999999999e28Initial program 100.0%
Taylor expanded in t around 0 76.9%
Taylor expanded in a around 0 76.9%
Taylor expanded in x around 0 57.9%
Taylor expanded in t around inf 41.0%
associate-/l*45.6%
Simplified45.6%
if 5.1000000000000002e212 < a Initial program 90.0%
Taylor expanded in a around inf 87.9%
Taylor expanded in a around 0 49.7%
associate-+r+49.7%
+-commutative49.7%
*-commutative49.7%
Simplified49.7%
Taylor expanded in y around inf 61.3%
associate-*r*61.3%
Simplified61.3%
Final simplification52.4%
(FPCore (x y z t a b c) :precision binary64 (if (<= a 6.5e+213) 1.0 (/ x (* y (+ 1.0 (* (- c b) (* 2.0 a)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 6.5e+213) {
tmp = 1.0;
} else {
tmp = x / (y * (1.0 + ((c - b) * (2.0 * 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 (a <= 6.5d+213) then
tmp = 1.0d0
else
tmp = x / (y * (1.0d0 + ((c - b) * (2.0d0 * 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 (a <= 6.5e+213) {
tmp = 1.0;
} else {
tmp = x / (y * (1.0 + ((c - b) * (2.0 * a))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 6.5e+213: tmp = 1.0 else: tmp = x / (y * (1.0 + ((c - b) * (2.0 * a)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 6.5e+213) tmp = 1.0; else tmp = Float64(x / Float64(y * Float64(1.0 + Float64(Float64(c - b) * Float64(2.0 * a))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= 6.5e+213) tmp = 1.0; else tmp = x / (y * (1.0 + ((c - b) * (2.0 * a)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 6.5e+213], 1.0, N[(x / N[(y * N[(1.0 + N[(N[(c - b), $MachinePrecision] * N[(2.0 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 6.5 \cdot 10^{+213}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(1 + \left(c - b\right) \cdot \left(2 \cdot a\right)\right)}\\
\end{array}
\end{array}
if a < 6.49999999999999982e213Initial program 97.2%
Taylor expanded in a around inf 60.7%
Taylor expanded in a around 0 47.0%
associate-+r+47.0%
+-commutative47.0%
*-commutative47.0%
Simplified47.0%
Taylor expanded in x around inf 48.9%
if 6.49999999999999982e213 < a Initial program 90.0%
Taylor expanded in a around inf 87.9%
Taylor expanded in a around 0 49.7%
associate-+r+49.7%
+-commutative49.7%
*-commutative49.7%
Simplified49.7%
Taylor expanded in y around inf 61.3%
associate-*r*61.3%
Simplified61.3%
Final simplification50.8%
(FPCore (x y z t a b c) :precision binary64 (if (<= a 3.4e+227) 1.0 (/ (* x -0.5) (* y (* a b)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 3.4e+227) {
tmp = 1.0;
} else {
tmp = (x * -0.5) / (y * (a * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (a <= 3.4d+227) then
tmp = 1.0d0
else
tmp = (x * (-0.5d0)) / (y * (a * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 3.4e+227) {
tmp = 1.0;
} else {
tmp = (x * -0.5) / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 3.4e+227: tmp = 1.0 else: tmp = (x * -0.5) / (y * (a * b)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 3.4e+227) tmp = 1.0; else tmp = Float64(Float64(x * -0.5) / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= 3.4e+227) tmp = 1.0; else tmp = (x * -0.5) / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 3.4e+227], 1.0, N[(N[(x * -0.5), $MachinePrecision] / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 3.4 \cdot 10^{+227}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot -0.5}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if a < 3.39999999999999989e227Initial program 97.3%
Taylor expanded in a around inf 61.7%
Taylor expanded in a around 0 47.2%
associate-+r+47.2%
+-commutative47.2%
*-commutative47.2%
Simplified47.2%
Taylor expanded in x around inf 48.5%
if 3.39999999999999989e227 < a Initial program 88.2%
Taylor expanded in a around inf 85.8%
Taylor expanded in a around 0 49.3%
associate-+r+49.3%
+-commutative49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in a around inf 49.2%
associate-*r/49.2%
associate-*r*52.1%
Simplified52.1%
Taylor expanded in c around 0 43.0%
associate-*r/43.0%
*-commutative43.0%
*-commutative43.0%
associate-*l*57.6%
Simplified57.6%
Final simplification49.7%
(FPCore (x y z t a b c) :precision binary64 (if (<= y -2.35e+197) (/ x (+ x y)) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -2.35e+197) {
tmp = x / (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 (y <= (-2.35d+197)) then
tmp = x / (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 (y <= -2.35e+197) {
tmp = x / (x + y);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -2.35e+197: tmp = x / (x + y) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -2.35e+197) tmp = Float64(x / 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 (y <= -2.35e+197) tmp = x / (x + y); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -2.35e+197], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.35 \cdot 10^{+197}:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -2.35e197Initial program 100.0%
Taylor expanded in a around inf 57.9%
Taylor expanded in a around 0 54.4%
+-commutative54.4%
Simplified54.4%
if -2.35e197 < y Initial program 95.6%
Taylor expanded in a around inf 65.8%
Taylor expanded in a around 0 44.0%
associate-+r+44.0%
+-commutative44.0%
*-commutative44.0%
Simplified44.0%
Taylor expanded in x around inf 48.6%
Final simplification49.2%
(FPCore (x y z t a b c) :precision binary64 (if (<= y -2.1e+208) (/ x y) 1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -2.1e+208) {
tmp = 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 (y <= (-2.1d+208)) then
tmp = 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 (y <= -2.1e+208) {
tmp = x / y;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -2.1e+208: tmp = x / y else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -2.1e+208) tmp = 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 (y <= -2.1e+208) tmp = x / y; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -2.1e+208], N[(x / y), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.1 \cdot 10^{+208}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -2.0999999999999998e208Initial program 100.0%
Taylor expanded in a around inf 54.7%
Taylor expanded in a around 0 54.6%
+-commutative54.6%
Simplified54.6%
Taylor expanded in x around 0 54.6%
if -2.0999999999999998e208 < y Initial program 95.7%
Taylor expanded in a around inf 66.1%
Taylor expanded in a around 0 44.5%
associate-+r+44.5%
+-commutative44.5%
*-commutative44.5%
Simplified44.5%
Taylor expanded in x around inf 48.6%
Final simplification49.2%
(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 96.1%
Taylor expanded in a around inf 64.9%
Taylor expanded in a around 0 47.5%
associate-+r+47.5%
+-commutative47.5%
*-commutative47.5%
Simplified47.5%
Taylor expanded in x around inf 46.3%
Final simplification46.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 2023271
(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)))))))))))